To generate Access token, send a POST request to /oauth/v1/accesstokens
.
Name | Type | Required |
---|---|---|
clientId: <API key> | String | true |
clientSecret: <API private key> | String | true |
curl -X POST \
https://api.customer.jp/oauth/v1/accesstokens\
-H 'Content-Type: application/json' \
-d '{
"grantType": "client_credentials",
"clientId": "YNG2yIyLDA3TqODlEXvLRwL7HzBjDsCQ",
"clientSecret": "uDczeZJlxYvuzqcU",
"code": ""
}'
Content-Type: application/json
content-type: application/json;
status: 201 Created
{
"accessToken": "HnGma03YnFPIF4DMttywiSOCGUHR",
"tokenType": "BearerToken",
"expiresIn": "3599",
"scope": "",
"issuedAt": "1550570350202"
}
WebARENA Indigo allows you to add SSH public keys to the interface so that you can embed your public key into an Instance, at the time of creation. Only the public key is required to take advantage of this functionality.
Authorization: Bearer {accessToken}
To list all of the keys in your account, send a GET request to /sshkey
.
The response will be a JSON object with a key set to ssh_keys
. The value of this will be an array of key objects, each of which contains the standard key attributes.
Name | Type | Description |
---|---|---|
id | integer | This is a unique identification number for the key. This can be used to reference a specific SSH key when you wish to embed a key into an Instance. |
public_key | string | This is the entire public key string that is embedded in the root user's authorized_keys file, if you choose to include this SSH key during the Instance creation. |
name | string | This is the human-readable display name for the given SSH key. This is used to easily identify the SSH keys, when they are displayed. |
Status | string | SSH key status |
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/vm/sshkey \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 Ok
{
"success": true,
"total": 2,
"sshkeys": [
{
"id": 5,
"service_id": "wsi-000001",
"user_id": 431,
"name": "Example",
"sshkey": "example1",
"status": "ACTIVE",
"created_at": "2018-11-01 17:18:00",
"updated_at": "2018-11-01 17:18:12"
},
{
"id": 5,
"service_id": "wsi-000001",
"user_id": 431,
"name": "Example",
"sshkey": "example2",
"status": "ACTIVE",
"created_at": "2018-11-01 05:37:03",
"updated_at": "2018-11-01 05:37:03"
}
]
}
To list all of the active SSH keys in your account, send a GET request to /sshkey/active/status
.
The response will be a JSON object with a key set to ssh_keys
. The value of this will be an array of key objects, each of which contains the standard key attributes.
Name | Type | Description |
---|---|---|
id | integer | This is a unique identification number for the key. This can be used to reference a specific SSH key when you wish to embed a key into an Instance. |
public_key | string | This is the entire public key string that is embedded in the root user's authorized_keys file, if you choose to include this SSH key during the Instance creation. |
name | string | This is the human-readable display name for the given SSH key. This is used to easily identify the SSH keys, when they are displayed. |
Status | string | SSH key status |
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/vm/sshkey/active/status \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 Ok
{
"success": true,
"total": 2,
"sshkeys": [
{
"id": 5,
"service_id": "wsi-000001",
"user_id": 431,
"name": "Example",
"sshkey": "examplekey1",
"status": "ACTIVE",
"created_at": "2018-11-01 17:18:00",
"updated_at": "2018-11-01 17:18:12"
},
{
"id": 5,
"service_id": "wsi-000001",
"user_id": 431,
"name": "Example",
"sshkey": "examplekey2",
"status": "ACTIVE",
"created_at": "2018-11-01 05:37:03",
"updated_at": "2018-11-01 05:37:03"
}
]
}
To add a SSH public key to your WebARENA Indigo account, send a POST request to /sshkey
. Set the "name" attribute to the name you wish to use and the "public_key" attribute to a string of the full public key you are adding.
Name | Type | Description |
---|---|---|
sshName | string | The name to give the new SSH key in your account. |
sshKey | string | A string containing the entire public key. |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/vm/sshkey \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{
"sshName":"Example",
"sshKey":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDRGTcjdlRYZ9"
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 201 Created
{
"success": true,
"message": "SSH key has been added successfully",
"sshKey": {
"name": "Example",
"sshkey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDRGTcjdlRYZ9",
"status": "ACTIVE",
"user_id": 431,
"service_id": "wsi-000001",
"updated_at": "2019-10-23 11:24:31",
"created_at": "2019-10-23 11:24:31",
"id": 892
}
}
To view details about a key, send a GET request to
/sshkey/{id}
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/vm/sshkey/34 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"sshKey": [
{
"id": 5,
"service_id": "wsi-000001",
"user_id": 431,
"name": "Example",
"sshkey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDRGTcjdlRYZ9J4KEaZ3A8FwPSWKHak1UKUusSX",
"status": "ACTIVE",
"created_at": "2018-11-01 17:35:32",
"updated_at": "2018-11-01 17:35:32"
}
]
}
To update the name of a SSH key, send a PUT request to /sshkey/{id}
.
Name | Type | Description |
---|---|---|
sshName | string | The name to give the new SSH key in your account. |
sshKey | string | A string containing the entire public key. |
sshKeyStatus | string | SSH key status (ACTIVE / DEACTIVE) |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/vm/sshkey/34 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{
"sshName": "Example",
"sshKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDRGTcjdlRYZ9J4KEaZ3A8FwPSWKHak1UKUusSX",
"sshKeyStatus": "ACTIVE"
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "SSH key has been updated successfully"
}
To destroy a public SSH key in your account, send a DELETE request to /sshkey/{id}
.
curl -X DELETE \
https://api.customer.jp/webarenaIndigo/v1/vm/sshkey/34 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "SSH key has been removed successfully"
}
WebARENA Indigo allows you to Generate API key for accessing the API.
Authorization: Bearer {accessToken}
To generate API key to your WebARENA Indigo account, send a GET request to /create/apikey
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/auth/create/apikey \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 201 Created
{
"apiKey": "m70QyrbMUZWl06SfSAvRBPQO0ofsadf",
"apiSecret": "LmAY0pB1xA1fas"
}
To list all of the API Keys in your account, send a GET request to /apikey
.
Name | Type | Description |
---|---|---|
id | integer | API key id |
user_id | integer | User Id |
serviceid | string | Contract servce id |
apikey | string | API Key |
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/auth/apikey \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 Ok
{
"success": true,
"total": 1,
"accesstokens": [
{
"id": 434,
"apiKey": "3PwzRzZyXAmBSi0NiYGQjUGpDfsadf",
"created_at": "2019-10-21 11:17:08"
}
]
}
To destroy a API Key, send a DELETE request to /apikey/{id}
.
curl -X DELETE \
https://api.customer.jp/webarenaIndigo/v1/auth/apikey/88 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "API Key is removed successfully"
}
WebARENA Indigo allows you to manage Instance.
Authorization: Bearer {accessToken}
To view details about Instance types, send a GET request to /instancetypes
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/vm/instancetypes \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"total": 1,
"instanceTypes": [
{
"id": 1,
"name": "instance",
"display_name": "KVM Instance",
"created_at": "2019-02-12 22:46:35",
"updated_at": "2019-02-12 22:46:35"
}
]
}
To view details about a region list, send a GET request to
/getregion?instanceTypeId=1
.
Name | Type | Description |
---|---|---|
id | integer | Region id |
name | string | Region name |
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/vm/getregion?instanceTypeId=1 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"total": 2,
"regionlist": [
{
"id": 1,
"name": "Tokyo",
"use_possible_date": "2018-09-30 12:00:00"
},
{
"id": 2,
"name": "Tokyo1",
"use_possible_date": "2018-12-09 00:00:00"
}
]
}
To view details about a OS list, send a GET request to
/oslist
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/vm/oslist?instanceTypeId=1 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"total": 1,
"osCategory": [
{
"id": 1,
"name": "Ubuntu",
"logo": "Ubudu.png",
"osLists": [
{
"id": 1,
"categoryid": 1,
"name": "Ubuntu18.04",
"viewname": "Ubuntu 18.04",
"instancetype_id": 1
}
]
}
]
}
To view details about an instance specification list, send a GET request to
/getinstancespec?instanceTypeId=1&osId=1
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/vm/getinstancespec?instanceTypeId=1&osId=1 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"total": 1,
"speclist": [
{
"id": 1,
"name": "2 CPU & 2 GB RAM plan",
"description": "2 CPU & 2 GB RAM plan",
"use_possible_date": "2019-01-03 08:50:00",
"instancetype_id": 1,
"created_at": "2019-01-04 08:40:57",
"updated_at": "2019-01-04 08:40:57",
"instance_type": {
"id": 1,
"name": "instance",
"display_name": "KVM Instance",
"created_at": "2019-02-12 22:46:35",
"updated_at": "2019-02-12 22:46:35"
}
}
]
}
To add an Instance to your WebARENA Indigo account, send a POST request to /api/v1/createinstance
.
Name | Type | Description | Required |
---|---|---|---|
sshKeyId | Integer | SSH key Id | true |
regionId | Integer | Region Id | true |
osId | Integer | OS Id | true |
instancePlan | Integer | Instance specification id | true |
instanceName | String | Instance Name | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/vm/createinstance \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{
"sshKeyId": 11,
"regionId": 1,
"osId": 1,
"instancePlan": 1,
"instanceName": "Centos Dev Env"
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 201 Created
{
"success": true,
"message": "Instance created successfully",
"vms": {
"id": 3,
"instance_name": "Centos Dev Env",
"set_no": 10,
"vps_kind": "10",
"sequence_id": 3,
"user_id": 1,
"service_id": "wsi-000001",
"status": "UNUSED",
"sshkey_id": 1,
"start_date": {
"date": "2018-11-10 10:03:17.744562",
"timezone_type": 3,
"timezone": "UTC"
},
"host_id": 1,
"plan": "2CR2GB",
"disk_point": 12,
"memsize": 2,
"cpus": 2,
"os_id": 1,
"otherstatus": 10,
"uuid": "9868faef-e658-4880-b4ad-fd3078e51b6a",
"uidgid": 100003,
"vnc_port": 10003,
"vnc_passwd": "fHTsl4EoLfMksYKW",
"arpaname": "192-168-0-3.pro.static.arena.ne.jp",
"arpadate": "",
"status_change_date": {
"date": "2018-11-10 10:03:17.746562",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": null,
"vm_revert": 0
}
}
To add an Windows Instance to your WebARENA Indigo account, send a POST request to /api/v1/createinstance
.
Name | Type | Description | Required |
---|---|---|---|
winPassword | String | Windows password | true |
regionId | Integer | Region Id | true |
osId | Integer | OS Id | true |
instancePlan | Integer | Instance specification id | true |
instanceName | String | Instance Name | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/vm/createinstance \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{
"winPassword": "Test#2345jh",
"regionId": 1,
"osId": 1,
"instancePlan": 1,
"instanceName": "Centos Dev Env"
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 201 Created
{
"success": true,
"message": "Instance created successfully",
"vms": {
"id": 3,
"instance_name": "Centos Dev Env",
"set_no": 10,
"vps_kind": "10",
"sequence_id": 3,
"user_id": 1,
"service_id": "wsi-000001",
"status": "UNUSED",
"sshkey_id": 1,
"start_date": {
"date": "2018-11-10 10:03:17.744562",
"timezone_type": 3,
"timezone": "UTC"
},
"host_id": 1,
"plan": "2CR2GB",
"disk_point": 12,
"memsize": 2,
"cpus": 2,
"os_id": 1,
"otherstatus": 10,
"uuid": "9868faef-e658-4880-b4ad-fd3078e51b6a",
"uidgid": 100003,
"vnc_port": 10003,
"vnc_passwd": "fHTsl4EoLfMksYKW",
"arpaname": "192-168-0-3.pro.static.arena.ne.jp",
"arpadate": "",
"status_change_date": {
"date": "2018-11-10 10:03:17.746562",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": null,
"vm_revert": 0
}
}
To add an Import URL Instance to your WebARENA Indigo account, send a POST request to /api/v1/createinstance
.
Name | Type | Description | Required |
---|---|---|---|
importUrl | String | Import VM URL Path | true |
regionId | Integer | Region Id | true |
osId | Integer | OS Id | true |
instancePlan | Integer | Instance specification id | true |
instanceName | String | Instance Name | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/vm/createinstance \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{
"importUrl": "https://203.138.52.188/cloudn_os/CentOS7.qcow2",
"regionId": 1,
"osId": 1,
"instancePlan": 2,
"instanceName": "ImportURLinstance"
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 201 Created
{
"success": true,
"message": "Instance created successfully",
"vms": {
"id": 3,
"instance_name": "Centos Dev Env",
"set_no": 10,
"vps_kind": "10",
"sequence_id": 3,
"user_id": 1,
"service_id": "wsi-000001",
"status": "UNUSED",
"sshkey_id": 1,
"start_date": {
"date": "2018-11-10 10:03:17.744562",
"timezone_type": 3,
"timezone": "UTC"
},
"host_id": 1,
"plan": "2CR2GB",
"disk_point": 12,
"memsize": 2,
"cpus": 2,
"os_id": 1,
"otherstatus": 10,
"uuid": "9868faef-e658-4880-b4ad-fd3078e51b6a",
"uidgid": 100003,
"vnc_port": 10003,
"vnc_passwd": "fHTsl4EoLfMksYKW",
"arpaname": "192-168-0-3.pro.static.arena.ne.jp",
"arpadate": "",
"status_change_date": {
"date": "2018-11-10 10:03:17.746562",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": null,
"vm_revert": 0
}
}
To add an Snapshot Instance to your WebARENA Indigo account, send a POST request to /api/v1/createinstance
.
Name | Type | Description | Required |
---|---|---|---|
sshKeyId | Integer | SSH key Id | true |
snapshotId | Integer | Snapshot Id | true |
instancePlan | Integer | Instance specification Id | true |
instanceName | String | Instance Name | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/vm/createinstance \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{
"sshKeyId": 1480,
"snapshotId": "457",
"instancePlan": 5,
"instanceName": "from-api-2"
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 201 Created
{
"success": true,
"message": "Instance created successfully",
"vms": {
"id": 3,
"instance_name": "Centos Dev Env",
"set_no": 10,
"vps_kind": "10",
"sequence_id": 3,
"user_id": 1,
"service_id": "wsi-000001",
"status": "UNUSED",
"sshkey_id": 1,
"start_date": {
"date": "2018-11-10 10:03:17.744562",
"timezone_type": 3,
"timezone": "UTC"
},
"host_id": 1,
"plan": "2CR2GB",
"disk_point": 12,
"memsize": 2,
"cpus": 2,
"os_id": 1,
"otherstatus": 10,
"uuid": "9868faef-e658-4880-b4ad-fd3078e51b6a",
"uidgid": 100003,
"vnc_port": 10003,
"vnc_passwd": "fHTsl4EoLfMksYKW",
"arpaname": "192-168-0-3.pro.static.arena.ne.jp",
"arpadate": "",
"status_change_date": {
"date": "2018-11-10 10:03:17.746562",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": null,
"vm_revert": 0
}
}
To view details about a Instance list, send a GET request to
/getinstancelist
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/vm/getinstancelist \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
[
{
"id": 20,
"instance_name": "Centos Dev Env",
"set_no": 10,
"vps_kind": 10,
"sequence_id": 20,
"user_id": 18,
"service_id": "wsi-000200",
"status": "UNUSED",
"sshkey_id": 5,
"start_date": "2018-11-07 17:11:21",
"host_id": 2,
"plan": "2CR2GB",
"disk_point": 12,
"memsize": 2,
"cpus": 2,
"os_id": 1,
"otherstatus": 10,
"uuid": "92fa4815-1ec1-403b-93bc-514a11dfeb56",
"uidgid": 100001,
"vnc_port": 10001,
"vnc_passwd": "6z2d9ngprQuxofs6",
"arpaname": "192-168-0-20.pro.static.arena.ne.jp",
"arpadate": 0,
"status_change_date": "2018-11-07 17:11:21",
"updated_at": null,
"vm_revert": 0,
"VEID": "10100000000020",
"os": {
"id": 1,
"name": "CentOS6.6",
"viewname": "CentOS 6.6"
},
"ip": "192.168.0.20"
},
{
"id": 19,
"instance_name": "Centos Dev Env",
"set_no": 10,
"vps_kind": 10,
"sequence_id": 19,
"user_id": 18,
"service_id": "wsi-000200",
"status": "UNUSED",
"sshkey_id": 11,
"start_date": "2018-11-07 17:11:08",
"host_id": 2,
"plan": "2CR2GB",
"disk_point": 12,
"memsize": 2,
"cpus": 2,
"os_id": 1,
"otherstatus": 10,
"uuid": "372827ec-0946-494f-911c-fbb0bceba399",
"uidgid": 100001,
"vnc_port": 10001,
"vnc_passwd": "GXr3VkGhGofT3yf8",
"arpaname": "192-168-0-19.pro.static.arena.ne.jp",
"arpadate": 0,
"status_change_date": "2018-11-07 17:11:08",
"updated_at": null,
"vm_revert": 0,
"VEID": "10100000000019",
"os": {
"id": 1,
"name": "CentOS6.6",
"viewname": "CentOS 6.6"
},
"ip": "192.168.0.19"
}]
To update an instance status in your WebARENA Indigo account, send a POST request to /api/v1/statusupdate
.
Name | Type | Description | Required |
---|---|---|---|
instanceId | Integer | Instance Id | true |
status | String | Status (start,stop,forcestop,reset,destroy) | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/vm/instance/statusupdate \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"instanceId":"16","status":"stop"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 Ok
{
"success": true,
"message": "Instance has stopped successfully ",
"sucessCode": "I20009",
"instanceStatus": "shutoff"
}
WebARENA Indigo allows you to manage Firewall.
Authorization: Bearer {accessToken}
To add a firewall to your WebARENA Indigo account, send a POST request to /api/v1/createfirewall
.
Name | Type | Description | Required |
---|---|---|---|
name | String | Firewall template name | true |
inbound | Array | Inbound rules | true (Minimum one rule required from inbound OR outbound) |
outbound | Array | Outbound rules | true (Minimum one rule required from inbound OR outbound) |
instances | Array | Instance id's to assign | false |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/nw/createfirewall \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{
"name":"Example",
"inbound":[
{"type":"HTTP","protocol":"TCP","port":"80","source":"0.0.0.0"},
{"type":"HTTPS","protocol":"TCP","port":"443","source":"0.0.0.0"}
],
"outbound":[
{"type":"HTTP","protocol":"TCP","port":"80","source":"0.0.0.0"},
{"type":"HTTPS","protocol":"TCP","port":"443","source":"0.0.0.0"}
],
"instances":["6","5"]
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "Firewall template has been created successfully.",
"sucessCode": "F60002",
"firewallId": 55
}
To view Firewall list, send a GET request to
/getfirewalllist
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/nw/getfirewalllist \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
[
{
"id": 55,
"service_id": "wsi-00003",
"user_id": 6,
"name": "Example",
"status": 1,
"created_at": "2018-11-14 10:35:33",
"updated_at": "2018-11-14 10:35:33"
},
{
"id": 47,
"service_id": "wsi-00003",
"user_id": 6,
"name": "Example2",
"status": 1,
"created_at": "2018-10-30 10:07:46",
"updated_at": "2018-11-05 04:54:15"
}]
To retrieve a Firewall template, send a GET request to
/gettemplate/{id}
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/nw/gettemplate/55 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"id": 55,
"name": "Example",
"direction": "in",
"type": "HTTP",
"protocol": "TCP",
"port": "80",
"source": "0.0.0.0"
},
{
"id": 55,
"name": "Example",
"direction": "in",
"type": "HTTPS",
"protocol": "TCP",
"port": "443",
"source": "0.0.0.0"
},
{
"id": 55,
"name": "Example",
"direction": "out",
"type": "HTTP",
"protocol": "TCP",
"port": "80",
"source": "0.0.0.0"
},
{
"id": 55,
"name": "Example",
"direction": "out",
"type": "HTTPS",
"protocol": "TCP",
"port": "443",
"source": "0.0.0.0"
}
To update a firewall, send a PUT request to /api/v1/updatefirewall
.
Name | Type | Description | Required |
---|---|---|---|
templateid | Integer | Firewall template name | true |
name | String | Firewall template name | true |
inbound | Array | Inbound rules | true (Minimum one rule required from inbound OR outbound) |
outbound | Array | Outbound rules | true (Minimum one rule required from inbound OR outbound) |
instances | Array | Instance id's to assign | false |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/nw/updatefirewall \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjNiZjI5MWU4NmMyMTY4ZTMxN2U2OTViMGFmYjI3MzBjYzUwZWFiYjg4MzIwZmQzMTcwY2FhYjE5ZDRjNzZmMDlkYzAyZWI4YTU1ZTYyN2Q0In0.eyJhdWQiOiJjbGllbnQxIiwianRpIjoiM2JmMjkxZTg2YzIxNjhlMzE3ZTY5NWIwYWZiMjczMGNjNTBlYWJiODgzMjBmZDMxNzBjYWFiMTlkNGM3NmYwOWRjMDJlYjhhNTVlNjI3ZDQiLCJpYXQiOjE1NDE1NjY2MjIsIm5iZiI6MTU0MTU2NjYyMiwiZXhwIjoxNTQxNjUzMDIyLCJzdWIiOiIxNzEiLCJzY29wZXMiOltdfQ.efsYC4sJx1Arms5qwuBf5tbBjGxJ1Ep_p6XYSf9ugO8PiZECmPcl4p3MaqPs_Loxz_EcQODGqIKSF3w0KBpf-gC9vGD4G_4pikGgpsRcmvsvJ64X5K1p_WOI_v_REUo3adW7Gu4QXyDeEjiAGesl23dSi0C4EZHQ2x7L7joGAzkS0cWASWrM7H3cOKIlXDVtqh8fdykSkxXghx504SSiDzObXt28VnFY4fRvqKawe2-vMvG5EmZgAejriyPIS8nbrd2gnlLCaBTD96u4qz05w4MRtgPPWSfQ8e6sYMavXGau8D60KSyTstJyVV3AKX5GY5ESD15Ikt4tSIWlk8BbdNovnkGx8oKv_rkDEY1thWu_40Jgf7plUQ9ox_kf1kbhhj-YXSxfpQFT_tLFIaM3Ntb-FhfFlaw37OhC93B79Bq0J3RbQO7qw3hPKaIb0AdTL_iYjU2IKUUZ6Sr--GuZiqWW5Ls-L4OTkl7NyNc0G8ZJk5Pibavgp91B1Do5jpVS43IsuQGKmVfLRqJc-mR5RR3FmbKaGvj3ULvxN9kYYeP2e98bcHIBmkWhMgkuaZqUFrgTdq6a9fc0vhUZTmNVINGjCA6BLCixTrQfZ_eAtIam2jW4TGZB0yuQuLNa-yKx_Sop6rwVv-y9U7H-gvXE5G-K7lIXd0-Lz-sROhKMwtA' \
-d '{
"templateid":"55",
"name":"Example",
"inbound":[
{"type":"HTTP","protocol":"TCP","port":"80","source":"0.0.0.0"},
{"type":"HTTPS","protocol":"TCP","port":"443","source":"0.0.0.0"}
],
"outbound":[
{"type":"HTTP","protocol":"TCP","port":"80","source":"0.0.0.0"},
{"type":"HTTPS","protocol":"TCP","port":"443","source":"0.0.0.0"}
],
"instances":["6","5"]
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "Firewall template is updated successfully.",
"sucessCode": "F6004",
"firewallId": 55
}
To assign a firewall to the instance, send a POST request to /api/v1/assign
.
Name | Type | Description | Required |
---|---|---|---|
templateid | Integer | Firewall template id | true |
instanceid | Integer | Instance id | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/nw/assign \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{
"instanceid":"4",
"templateid":"8"
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "Firewall template is assigned successfully.",
"sucessCode": "F60003"
}
To delete an unassigned firewall, send a DELETE request to /api/v1/deletefirewall/{id}
.
curl -X DELETE \
https://api.customer.jp/webarenaIndigo/v1/nw/deletefirewall/30 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "Firewall template has been deleted successfully.",
"sucessCode": "F6005"
}
WebARENA Indigo allows you to manage Snapshots.
Authorization: Bearer {accessToken}
To create a snapshot to an instance, send a POST request to /api/v1/takesnapshot
.
Name | Type | Description | Required |
---|---|---|---|
name | String | Snapshot Name | true |
instanceid | Integer | Instance Id | true |
slotnum | Integer | Slot Number (It must be 0) | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/disk/takesnapshot \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"name":"Example", "instanceid":12, "slotnum":"0"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 Created
{"STATUS":0}
To view snapshot list, send a GET request to
/snapshotlist/{instanceid}
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/disk/snapshotlist/{instanceid} \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
[
{
"id": 3,
"name": "Example",
"service_id": "wsi-000401",
"user_id": "134",
"disk_id": 29,
"volume": 1,
"slot_number": 0,
"status": "created",
"size": "2000",
"deleted": 0,
"completed_timestamp": "2018-11-27 07:24:05",
"deleted_timestamp": "0000-00-00 00:00:00"
},
{
"id": 8,
"name": "Example2",
"service_id": "wsi-000401",
"user_id": "134",
"disk_id": 29,
"volume": 2,
"slot_number": 0,
"status": "failed",
"size": "2000",
"deleted": 0,
"completed_timestamp": "2018-11-27 10:43:22",
"deleted_timestamp": "0000-00-00 00:00:00"
}
]
To retry creating snapshot, send a POST request to /api/v1/retakesnapshot
.
Name | Type | Description | Required |
---|---|---|---|
instanceid | Integer | Instance Id | true |
snapshotid | Integer | Retry Snapshot Id | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/disk/retakesnapshot \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"instanceid":12, "snapshotid":"11"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 Created
{"STATUS":0}
To restore snapshot to an existing instance, send a POST request to /api/v1/restoresnapshot
.
Name | Type | Description | Required |
---|---|---|---|
instanceid | Integer | Instance Id | true |
snapshotid | Integer | Snapshot Id | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/disk/restoresnapshot \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"instanceid":"12", "snapshotid":"12"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 Created
{"STATUS":0}
To delete snapshot, send a DELETE request to /api/v1/deletesnapshot/{id}
.
curl -X DELETE \
https://api.customer.jp/webarenaIndigo/v1/disk/deletesnapshot/10 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 Created
{"STATUS":0}
WebARENA Indigo allows you to manage DNS.
Authorization: Bearer {accessToken}
To add a domain, send a POST request to /registerdomain
.
Name | Type | Description | Required |
---|---|---|---|
domain_name | String | Domain Name | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/dns/registerdomain \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"domain_name":"example.com"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "Domain added successfully",
"sucessCode": "D80002",
"zoneId": 26
}
To view domain list, send a GET request to /getdomainlist
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/dns/getdomainlist \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
[
{
"id": 26,
"zone": "example.com",
"zone_id": 0,
"verify_status": "Verification Pending",
"verify_type": "",
"verify_token": "",
"user_id": 128,
"service_id": "wsi-000403",
"deleted": 0,
"created_at": "2019-02-28 10:03:25",
"verified_at": "2019-02-28 11:03:05",
"deleted_at": null
},
{
"id": 1,
"zone": "example2.com",
"zone_id": 10222,
"verify_status": "Verification Completed",
"verify_type": "NS",
"verify_token": "adth6koxedhw8qvqhwyk2o4.customer.ne.jp",
"user_id": 128,
"service_id": "wsi-000403",
"deleted": 0,
"created_at": "2019-02-28 06:03:18",
"verified_at": "2019-02-28 07:03:05",
"deleted_at": null
}
]
To get domain record, send a GET request to /getdomainrecord/{id}
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/dns/getdomainrecord/26 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"id": 43,
"zone": "example.com",
"zone_id": 102756,
"verify_status": "Verification Completed",
"verify_type": "NS",
"verify_token": "w9edpa2il9gown45719zjq1bv96yzl.customer.ne.jp",
"user_id": 128,
"service_id": "wsi-000403",
"deleted": 0,
"created_at": "2019-03-01 05:17:34",
"verified_at": "2019-03-01 11:03:05",
"deleted_at": null
}
To cancel domain, send a DELETE request to /canceldomain/{id}
.
curl -X DELETE \
https://api.customer.jp/webarenaIndigo/v1/dns/canceldomain/26 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "Domain cancelled successfully.",
"sucessCode": "D80003"
}
To create a verification token, send a POST request to /domainverificationtoken
.
Name | Type | Description | Required |
---|---|---|---|
zoneid | Numeric | Id (id column value from get domain api result) | true |
verifytype | String | Verification Type (TXT, NS) | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/dns/domainverificationtoken \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zoneid":"29", "verifytype":"NS"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
o6j5brpsjbnjdsu7wzvo8ub0j05akk.customer.ne.jp
To cancel verification token, send a DELETE request to /canceldomainverification/{id}
.
curl -X DELETE \
https://api.customer.jp/webarenaIndigo/v1/dns/canceldomainverification/26 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "Domain verification cancelled successfully.",
"sucessCode": "D80024"
}
To verify domain, send a GET request to /domainverification/{id}
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/dns/domainverification/26 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "Domain verification completed successfully",
"sucessCode": "D80018",
"DNSZoneId": "102756",
"type": "NS"
}
To get domain DNS records, send a GET request to /editdomain/{id}
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/dns/editdomain/26 \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"zone_records": [
{
"value": [
{
"minimum": "3600",
"serial": "1551174766",
"mname": "test-asns1.customer.ne.jp",
"retry": "1800",
"refresh": "3600",
"rname": "example@gmail.com",
"expire": "3628800"
}
],
"ttl": 86400,
"name": "example.com",
"class": "IN",
"type": "SOA"
},
{
"value": [
{
"nsdname": "test-asns1.customer.ne.jp"
},
{
"nsdname": "test-asns2.customer.ne.jp"
}
],
"ttl": 86400,
"name": "example.com",
"class": "IN",
"type": "NS"
},
{
"value": [
{
"preference": "10",
"exchange": "1600.7218.com"
}
],
"ttl": 500,
"name": "2202.example.com",
"class": "IN",
"type": "MX"
},
{
"value": [
{
"address": "fe80:0:0:0:202:b3ff:fe1e:8329"
}
],
"ttl": 500,
"name": "376.example.com",
"class": "IN",
"type": "AAAA"
},
{
"value": [
{
"nsdname": "3743.com"
}
],
"ttl": 500,
"name": "784.example.com",
"class": "IN",
"type": "NS"
},
{
"value": [
{
"address": "192.168.0.11"
},
{
"address": "192.168.1.2"
}
],
"ttl": 500,
"name": "805.example.com",
"class": "IN",
"type": "A"
},
{
"value": [
{
"priority": "10",
"port": "80",
"target": "2001.example.com",
"weight": "10"
}
],
"ttl": 500,
"name": "8411.example.com",
"class": "IN",
"type": "SRV"
},
{
"value": [
{
"txtdata": [
"8585"
]
}
],
"ttl": 500,
"name": "8533.example.com",
"class": "IN",
"type": "TXT"
},
{
"value": [
{
"cname": "7331.com"
}
],
"ttl": 500,
"name": "9782.example.com",
"class": "IN",
"type": "CNAME"
}
]
}
To get TTL list, send a GET request to /getttl
.
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/dns/getttl \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
[
{
"id": 1,
"name": "5 Minutes",
"value": 300
},
{
"id": 2,
"name": "15 Minutes",
"value": 900
},
{
"id": 3,
"name": "30 Minutes",
"value": 1800
},
{
"id": 4,
"name": "1 Hour",
"value": 3600
},
{
"id": 5,
"name": "4 Hours",
"value": 14400
},
{
"id": 6,
"name": "8 Hours",
"value": 28800
},
{
"id": 7,
"name": "12 Hours",
"value": 43200
},
{
"id": 8,
"name": "1 Day",
"value": 86400
},
{
"id": 9,
"name": "1 Week",
"value": 604800
}
]
To add a A record, send a POST request to /addARecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
address | Array | IP V4 | true |
ttl | Numeric | TTL Value | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/dns/addARecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"24513", "domain_name":"example.com", "host_name":"dev", "address":["192.168.0.11","192.168.1.2"], "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "A record added successfully.",
"sucessCode": "D80005"
}
To update a A record, send a PUT request to /updateARecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
address | Array | IP V4 | true |
ttl | Numeric | TTL Value | true |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/dns/updateARecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"dev", "address":["192.168.0.11","192.168.1.12"], "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "A record updated successfully.",
"sucessCode": "D80004"
}
To add a AAAA record, send a POST request to /api/v1/addAAAARecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
address | String | IP V6 | true |
ttl | Numeric | TTL Value | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/dns/addAAAARecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"24513", "domain_name":"example.com", "host_name":"dev", "address":"FE80:0000:0000:0000:0202:B3FF:FE1E:8329", "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "AAAA record added successfully.",
"sucessCode": "D80007"
}
To update a AAAA record, send a PUT request to /updateAAAARecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
address | String | IP V6 | true |
ttl | Numeric | TTL Value | true |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/dns/updateAAAARecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"24513", "domain_name":"example.com", "host_name":"dev", "address":"FE80:0000:0000:0000:0202:B3FF:FE1E:8329", "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "AAAA record updated successfully.",
"sucessCode": "D80008"
}
To add a CNAME record, send a POST request to /addCNAMERecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
host_name_alias | String | Alias Name | true |
ttl | Numeric | TTL Value | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/dns/addCNAMERecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"dev", "host_name_alias":"test.com", "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "CNAME record added successfully.",
"sucessCode": "D80022"
}
To update a CNAME record, send a PUT request to /updateCNAMERecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
host_name_alias | String | Alias Name | true |
ttl | Numeric | TTL Value | true |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/dns/updateCNAMERecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www", "host_name_alias":"test.com", "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "CNAME record updated successfully.",
"sucessCode": "D80023"
}
To add a MX record, send a POST request to /addMXRecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
mail_server | String | Mail Server Name | true |
priority | Numeric | Priority | true |
ttl | Numeric | TTL Value | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/dns/addMXRecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www", "mail_server":"mail.example.com", "priority":"100", "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "MX record added successfully.",
"sucessCode": "D80010"
}
To update a MX record, send a PUT request to /updateMXRecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
mail_server | String | Mail Server Name | true |
priority | Numeric | Priority | true |
ttl | Numeric | TTL Value | true |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/dns/updateMXRecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www", "mail_server":"mail.example.com", "priority":"100", "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "MX record updated successfully.",
"sucessCode": "D80011"
}
To add a TXT record, send a POST request to /addTXTRecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
txt_value | String | TXT Value | true |
ttl | Numeric | TTL Value | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/dns/addTXTRecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www", "txt_value":"100", "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "TXT record added successfully.",
"sucessCode": "D80013"
}
To update a TXT record, send a PUT request to /updateTXTRecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
txt_value | String | TXT Value | true |
ttl | Numeric | TTL Value | true |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/dns/updateTXTRecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www", "txt_value":"100", "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "TXT record updated successfully.",
"sucessCode": "D80014"
}
To add a NS record, send a POST request to /addNSRecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
to_server | Array | Server Address | true |
ttl | Numeric | TTL Value | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/dns/addNSRecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www", "to_server":["example1.com","example2.com"], "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "NS record added successfully.",
"sucessCode": "D80016"
}
To update a NS record, send a PUT request to /updateNSRecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
to_server | Array | Server Address | true |
ttl | Numeric | TTL Value | true |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/dns/updateNSRecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www", "to_server":["example1.com","example2.com"], "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "NS record updated successfully.",
"sucessCode": "D80017"
}
To add a SRV record, send a POST request to /addSRVRecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
priority | Numeric | Priority | true |
target | String | Target | true |
weight | Numeric | Weight | true |
port | Numeric | Port | true |
ttl | Numeric | TTL Value | true |
curl -X POST \
https://api.customer.jp/webarenaIndigo/v1/dns/addSRVRecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www", "priority":10,"target":"app2.","weight":50,"port":80, "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "SRV record added successfully.",
"sucessCode": "D80019"
}
To update a SRV record, send a POST request to /updateSRVRecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name | true |
priority | Numeric | Priority | true |
target | String | Target | true |
weight | Numeric | Weight | true |
port | Numeric | Port | true |
ttl | Numeric | TTL Value | true |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/dns/updateSRVRecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www1", "priority":10,"target":"app2.","weight":50,"port":80, "ttl":"600"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "SRV record updated successfully.",
"sucessCode": "D80020"
}
To delete a DNS record, send a DELETE request to /deleteNSRecord
.
Name | Type | Description | Required |
---|---|---|---|
zone_id | Numeric | DNS Zone Id (zone_id column value from get domain response) | true |
domain_name | String | Domain Name (zone column value from get domain response) | true |
host_name | String | Host Name (Host name of the record to be deleted) | true |
type | String | DNS Record Type (A, AAAA, CNAME, MX, TXT, NS, SRV) | true |
curl -X DELETE \
https://api.customer.jp/webarenaIndigo/v1/dns/deleteNSRecord \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{"zone_id":"102756", "domain_name":"example.com", "host_name":"www", "type":"A"}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "A record deleted successfully.",
"sucessCode": "D80006"
}
WebARENA Indigo allows you to update Licenses.
Authorization: Bearer {accessToken}
To list all of the Licenses , send a GET request to /license/list
.
The response will be a JSON object with a key set to licenses
. The value of this will be an array of key objects, each of which contains the standard key attributes.
Name | Type | Description |
---|---|---|
id | integer | This is a unique identification number for the license. This can be used to reference a specific license when you wish to embed a key into an update license quantity. |
product_name | string | License product name |
product_code | string | License product code. |
quantity | integer | License usage quantity |
curl -X GET \
https://api.customer.jp/webarenaIndigo/v1/vm/license/list \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 Ok
{
"success": true,
"total": 1,
"licenses": [
{
"id": 5,
"product_name": "Remote Desktop Services SAL",
"product_code": RDS,
"quantity": 50,
"created_at": "2018-11-01 17:18:00",
"updated_at": "2018-11-01 17:18:12"
}
]
}
To update the License quantity, send a PUT request to /license/{id}/update
.
Name | Type | Description |
---|---|---|
quantity | integer | License quantity. |
curl -X PUT \
https://api.customer.jp/webarenaIndigo/v1/vm/license/34/update \
-H 'Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR' \
-d '{
"quantity": 10
}'
Authorization: Bearer HnGma03YnFPIF4DMttywiSOCGUHR
content-type: application/json;
status: 200 OK
{
"success": true,
"message": "License updated successfully."
}