The guide describes API v2.0 of the DNS Plus service.
DNS Plus API v2.0 supports Appkey and User Access Key tokens for API call authentication and authorization.
An Appkey is a unique authentication key issued for each NHN Cloud service, used to identify the service and validate API requests.
The User Access Key token is a temporary, Bearer-type access token issued from a User Access Key.
For more information on how to check and use each authentication method, see Appkey and User Access Key Token.
The issued token must be included in the request header.
| Name | Type | Format | Required | Description |
|---|---|---|---|---|
| X-NHN-AUTHORIZATION | Header | String | O | Bearer type token issued by the Public API |
[Success response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
}
}
[Failure response body]
{
"header": {
"isSuccessful": false,
"resultCode": 4010001,
"resultMessage": "Invalid appKey. "
}
}
[URI]
| Method | URI |
|---|---|
| GET | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones |
[Request Body]
curl -X GET 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones'
[Options]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| zoneIdList | List | Up to 3,000 | Optional | DNS zone ID list | |
| zoneStatusList | List | CREATING, DELETING, DELETING_FAIL, USE |
Optional | DNS zone status list (CREATING: Creating, DELETING: Deleting, DELETING_FAIL: Deletion failed, USE: In use) |
|
| searchZoneName | String | Optional | DNS zone name to search | ||
| engineId | String | Optional | DNS server ID | ||
| page | int | Minimum 1 | Optional | 1 | Page number |
| limit | int | Minimum 1, maximum 3,000 | Optional | 50 | Number of items to retrieve |
| sortDirection | String | DESC, ASC | Optional | DESC | Sort direction (DESC: Descending, ASC: Ascending) |
| sortKey | String | CREATED_AT, UPDATED_AT, ZONE_NAME, ZONE_STATUS, RECORDSET_COUNT |
Optional | CREATED_AT | Sort key (CREATED_AT: Creation date, UPDATED_AT: Last modified date, ZONE_NAME: DNS zone name, ZONE_STATUS: DNS zone status, RECORDSET_COUNT: Record set count) |
[Response Body]
{
"header": {
// Omitted
},
"totalCount": 1,
"zoneList": [
{
"engineId": "e13a1bcf0aa8e07f6a4fae94ed869c39",
"zoneId": "bff20a9a-24cf-4670-8b34-007622ec010e",
"zoneName": "test.dnsplus.com.",
"zoneStatus": "USE",
"description": "Test",
"createdAt": "2019-06-04T12:32:50.000+09:00",
"updatedAt": "2019-06-04T12:32:50.000+09:00",
"recordsetCount": 2
}
]
}
[Fields]
| Name | Type | Description |
|---|---|---|
| totalCount | long | Total number of DNS zones |
| zoneList | List | DNS zone list |
| zoneList[0].engineId | String | DNS server ID |
| zoneList[0].zoneId | String | DNS zone ID |
| zoneList[0].zoneName | String | DNS zone name |
| zoneList[0].zoneStatus | String | DNS zone status |
| zoneList[0].description | String | Description |
| zoneList[0].createdAt | DateTime | Creation date |
| zoneList[0].updatedAt | DateTime | Last modified date |
| zoneList[0].recordsetCount | long | Record set count |
[URI]
| Method | URI |
|---|---|
| POST | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones |
[Request Body]
curl -X POST 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones' \
-H 'Content-Type: application/json' \
--data '{ "zone": { "zoneName": "test.dnsplus.com.", "description": "test" }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| zone | Object | Required | DNS zone | ||
| zone.zoneName | String | Max 254 characters Lowercase letters, numbers, '.', '-', '_' Last character must be '.' |
Required | Name of the DNS zone to create; enter the domain as an FQDN |
|
| zone.description | String | Max 255 characters | Optional | DNS zone description |
[Response Body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"zone": {
"engineId": "e13a1bcf0aa8e07f6a4fae94ed869c39",
"zoneId": "bff20a9a-24cf-4670-8b34-007622ec010e",
"zoneName": "test.dnsplus.com.",
"zoneStatus": "USE",
"description": "test",
"createdAt": "2019-06-04T12:32:50.000+09:00",
"updatedAt": "2019-06-04T12:32:50.000+09:00",
"recordsetCount": 2
}
}
[URI]
| Method | URI |
|---|---|
| PUT | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId} |
[Request Body]
curl -X PUT 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}' \
-H 'Content-Type: application/json' \
--data '{ "zone": { "description": "test" }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| zone | Object | Required | DNS zone | ||
| zone.description | String | Max 255 characters | Optional | DNS zone description |
[Response Body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"zone": {
"engineId": "e13a1bcf0aa8e07f6a4fae94ed869c39",
"zoneId": "bff20a9a-24cf-4670-8b34-007622ec010e",
"zoneName": "test.dnsplus.com.",
"zoneStatus": "USE",
"description": "test",
"createdAt": "2019-06-04T12:32:50.000+09:00",
"updatedAt": "2019-06-04T12:42:00.000+09:00",
"recordsetCount": 2
}
}
[URI]
| Method | URI |
|---|---|
| DELETE | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/async |
[Request Body]
curl -X DELETE 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/async?
zoneIdList=bff20a9a-24cf-4670-8b34-007622ec010e,52bc0031-37eb-4b82-b4d7-eaab24188dc4'
[Field]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| zoneIdList | List | Minimum 1, maximum 3,000 | Required | DNS zone ID list |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
}
}
[URI]
| Method | URI |
|---|---|
| GET | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets |
[Request Body]
curl -X GET 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets'
[Options]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordsetIdList | List | Up to 3,000 | Optional | Record set list | |
| recordsetTypeList | List | A, AAAA, CAA, CNAME, MX, NAPTR, PTR, TXT, SRV, NS, SOA |
Optional | Record set type list | |
| searchRecordsetName | String | Optional | Record set name to search | ||
| page | int | Minimum 1 | Optional | 1 | Page number |
| limit | int | Minimum 1, maximum 3,000 | Optional | 50 | Number of items to retrieve |
| sortDirection | String | DESC, ASC | Optional | DESC | Sort direction (DESC: Descending, ASC: Ascending) |
| sortKey | String | CREATED_AT, UPDATED_AT, RECORDSET_NAME, RECORDSET_TYPE, RECORDSET_TTL |
Optional | CREATED_AT | Sort key (CREATED_AT: Creation date, UPDATED_AT: Last modified date, RECORDSET_NAME: Record set name, RECORDSET_TYPE: Record set type, RECORDSET_TTL: TTL (seconds)) |
[Response Body]
{
"header": {
// Omitted
},
"totalCount": 2,
"recordsetList": [
{
"recordsetId": "9e92b547-e2c1-4398-8904-552e0ca465e2",
"recordsetName": "test.dnsplus.com.",
"recordsetType": "SOA",
"recordsetTtl": 1500,
"recordsetStatus": "USE",
"createdAt": "2019-06-04T12:32:50.000+09:00",
"updatedAt": "2019-06-04T12:32:50.000+09:00",
"recordList": [
{
"recordDisabled": false,
"recordContent": "ns1.dnsplus.com. hostmaster.dnsplus.com. 2019060401 10800 3600 604800 1200",
// Omitted: Varies by record set type
}
]
},
{
"recordsetId": "edb9512b-6e62-409c-99ee-092d340e0adf",
"recordsetName": "test.dnsplus.com.",
"recordsetType": "NS",
"recordsetTtl": 1500,
"recordsetStatus": "USE",
"createdAt": "2019-06-04T12:32:50.000+09:00",
"updatedAt": "2019-06-04T12:32:50.000+09:00",
"recordList": [
{
"recordDisabled": false,
"recordContent": "ns.toastdns-jin.com.",
// Omitted: Varies by record set type
},
{
"recordDisabled": false,
"recordContent": "ns.toastdns-jin.net.",
// Omitted: Varies by record set type
}
]
}
]
}
[Field]
| Name | Type | Description |
|---|---|---|
| totalCount | long | Total number of record sets |
| recordsetList | List | Record set list |
| recordsetList[0].recordsetId | String | Record set ID |
| recordsetList[0].recordsetName | String | Record set name |
| recordsetList[0].recordsetType | String | Record set type |
| recordsetList[0].recordsetTtl | int | Update interval for record set information on the name server |
| recordsetList[0].recordsetStatus | String | Record set status |
| recordsetList[0].createdAt | DateTime | Creation date |
| recordsetList[0].updatedAt | DateTime | Last modified date |
| recordsetList[0].recordList | List | Record list |
| recordsetList[0].recordList[0].recordDisabled | boolean | Whether record is disabled or not |
| recordsetList[0].recordList[0].recordContent | String | Record value displayed in a single line, as described in Detailed field by record set type |
[URI]
| Method | URI |
|---|---|
| POST | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets |
[Request Body]
curl -X POST 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets' \
-H 'Content-Type: application/json' \
--data '{ "recordset": { "recordsetName": "sub.test.dnsplus.com.", "recordsetType": "A", "recordsetTtl": 86400, "recordList": [{ "recordDisabled": false, "recordContent": "1.1.1.1" }] }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset | Object | Required | Record set | ||
| recordset.recordsetName | String | Max 254 characters Lowercase letters, numbers, '.', '-', '_' (including DNS zone name) |
Required | Name of the record set to create; enter the domain as an FQDN |
|
| recordset.recordsetType | String | A, AAAA, CAA, CNAME, MX, NAPTR, PTR, TXT, SRV, NS |
Required | Record set type | |
| recordset.recordsetTtl | int | Minimum 10, maximum 2,147,483,647 | Required | Update interval for record set information on the name server | |
| recordset.recordList | List | Required | Record list | ||
| recordset.recordList[0].recordDisabled | boolean | Optional | false | Whether record is disabled or not | |
| recordset.recordList[0].recordContent | String | Required | Record value displayed in a single line, as described in Detailed field by record set type |
[Detailed field by record set type]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].ipV4 | String | Required | IPv4 format address |
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].ipV6 | String | Required | IPv6 format address |
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].flags | int | 0 or 128 | Required | 0 for defined tags, 128 for custom tags |
|
| recordset.recordList[0].tag | String | TAG_ISSUE, TAG_ISSUEWILD, TAG_IODEF, custom tag max 15 |
Required | TAG_ISSUE: issue tag, TAG_ISSUEWILD: issuewild tag, TAG_IODEF: iodef tag, custom tag |
|
| recordset.recordList[0].stringValue | String | Max 512 characters (including quotation marks) | Required | Content based on the tag |
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].domainName | String | Max 255 characters | Required | Enter the domain as an FQDN |
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].priority | int | Minimum 0, maximum 65,535 | Required | Priority | |
| recordset.recordList[0].domainName | String | Max 255 characters | Required | Enter the domain as an FQDN |
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].order | int | Minimum 0, maximum 65,535 | Required | Order | |
| recordset.recordList[0].preference | int | Minimum 0, maximum 65,535 | Required | Preference | |
| recordset.recordList[0].flags | String | Max 3 characters (including quotation marks) | Required | Flags | |
| recordset.recordList[0].service | String | Max 257 characters (including quotation marks) | Required | Service | |
| recordset.recordList[0].regexp | String | Max 257 characters (including quotation marks) | Required | Regular expression | |
| recordset.recordList[0].replacement | String | Max 255 characters | Required | Enter '.' or the domain as an FQDN as the replacement value |
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].domainName | String | Max 255 characters | Required | Enter the domain as an FQDN |
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].stringValue | String | Max 4,096 bytes (including quotation marks) | Required | Text content |
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].priority | int | Minimum 0, maximum 65,535 | Required | Priority | |
| recordset.recordList[0].weight | int | Minimum 0, maximum 65,535 | Required | Weight | |
| recordset.recordList[0].port | int | Minimum 0, maximum 65,535 | Required | Port | |
| recordset.recordList[0].domainName | String | Max 255 characters | Required | Enter the domain as an FQDN |
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset.recordList[0].domainName | String | Max 255 characters | Required | Enter the domain as an FQDN |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"recordset": {
"recordsetId": "d0b7ee57-8e41-438f-ad04-d4b316793d42",
"recordsetName": "sub.test.dnsplus.com.",
"recordsetType": "A",
"recordsetTtl": 86400,
"recordsetStatus": "USE",
"createdAt": "2019-06-04T12:32:50.000+09:00",
"updatedAt": "2019-06-04T12:32:50.000+09:00",
"recordList": [
{
"recordDisabled": false,
"recordContent": "1.1.1.1",
"ipV4": "1.1.1.1"
}
]
}
}
[URI]
| Method | URI |
|---|---|
| POST | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets/list |
[Request Body]
curl -X POST 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets/list' \
-H 'Content-Type: application/json' \
--data '{ "recordsetList": [{ "recordsetName": "sub.test.dnsplus.com.", "recordsetType": "A", "recordsetTtl": 86400, "recordList": [{ "recordDisabled": false, "recordContent": "1.1.1.1" }] }]}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordsetList | List | Required | Record set list | ||
| recordsetList[0].recordsetName | String | Max 254 characters Lowercase letters, numbers, '.', '-', '_' (including DNS zone name) |
Required | Name of the record set to create; enter the domain as an FQDN |
|
| recordsetList[0].recordsetType | String | A, AAAA, CAA, CNAME, MX, NAPTR, PTR, TXT, SRV, NS |
Required | Record set type | |
| recordsetList[0].recordsetTtl | int | Minimum 10, maximum 2,147,483,647 | Required | Update interval for record set information on the name server | |
| recordsetList[0].recordList | List | Required | Record list | ||
| recordsetList[0].recordList[0].recordDisabled | boolean | Optional | false | Whether record is disabled or not | |
| recordsetList[0].recordList[0].recordContent | String | Required | Record value displayed in a single line, as described in Detailed field by record set type |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
}
}
[URI]
| Method | URI |
|---|---|
| PUT | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets/{recordsetId} |
[Request Body]
curl -X PUT 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets/{recordsetId}' \
-H 'Content-Type: application/json' \
--data '{ "recordset": { "recordsetType": "A", "recordsetTtl": 86400, "recordList": [{ "recordDisabled": false, "recordContent": "1.1.1.1" }] }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordset | Object | Required | Record set | ||
| recordset.recordsetType | String | A, AAAA, CAA, CNAME, MX, NAPTR, PTR, TXT, SRV, NS |
Required | Record set type | |
| recordset.recordsetTtl | int | Minimum 10, maximum 2,147,483,647 | Required | Update interval for record set information on the name server | |
| recordset.recordList | List | Required | Record list | ||
| recordset.recordList[0].recordDisabled | boolean | Required | Whether record is disabled or not | ||
| recordset.recordList[0].recordContent | String | Required | Record value displayed in a single line, as described in Detailed field by record set type |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"recordset": {
"recordsetId": "d0b7ee57-8e41-438f-ad04-d4b316793d42",
"recordsetName": "sub.test.dnsplus.com.",
"recordsetType": "A",
"recordsetTtl": 86400,
"recordsetStatus": "USE",
"createdAt": "2019-06-04T12:32:50.000+09:00",
"updatedAt": "2019-06-04T12:42:00.000+09:00",
"recordList": [
{
"recordDisabled": false,
"recordContent": "1.1.1.1",
"ipV4": "1.1.1.1"
}
]
}
}
[URI]
| Method | URI |
|---|---|
| DELETE | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets |
[Request Body]
curl -X DELETE 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/zones/{zoneId}/recordsets?
recordsetIdList=edb9512b-6e62-409c-99ee-092d340e0adf,edb9512b-6e62-409c-99ee-092d340e0adf'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| recordsetIdList | List | Minimum 1, maximum 3,000 | Required | Record set ID list |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
}
}
[URI]
| Method | URI |
|---|---|
| GET | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs |
[Request Body]
curl -X GET 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs?showHealthy=true'
[Options]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| gslbIdList | List | Up to 3,000 | Optional | GSLB ID list | |
| searchGslbName | String | Optional | GSLB name to search | ||
| gslbDomain | String | Optional | GSLB domain | ||
| showHealthy | boolean | Optional | Whether to display health check results | ||
| page | int | Minimum 1 | Optional | 1 | Page number |
| limit | int | Minimum 1, maximum 3,000 | Optional | 50 | Number of items to retrieve |
| sortDirection | String | DESC, ASC | Optional | DESC | Sort direction (DESC: Descending, ASC: Ascending) |
| sortKey | String | CREATED_AT, UPDATED_AT, GSLB_NAME, GSLB_DOMAIN, GSLB_TTL, GSLB_ROUTING_RULE, GSLB_DISABLED |
Optional | CREATED_AT | Sort key (CREATED_AT: Creation date, UPDATED_AT: Last modified date, GSLB_NAME: GSLB name, GSLB_DOMAIN: GSLB domain, GSLB_TTL: GSLB domain update interval, GSLB_ROUTING_RULE: Routing rule, GSLB_DISABLED: Whether GSLB is disabled) |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"totalCount": 1,
"gslbList": [
{
"gslbId": "91de0c6f-aeaa-44ec-b361-822acfcd5921",
"gslbName": "GSLB-test",
"gslbDomain": "rgpac3e7q9onlipdfg.toastgslb.com",
"gslbTtl": 300,
"gslbRoutingRule": "GEOLOCATION",
"gslbDisabled": false,
"healthy": true,
"connectedPoolList": [
{
"poolId": "8e4326d4-3862-4b46-819e-83a786add570",
"connectedPoolOrder": 1,
"pool": {
// Omitting Pool information
}
},
{
"poolId": "2f89d3fe-03bc-4711-826e-db2c89c12818",
"connectedPoolOrder": 2,
"connectedPoolRegionContent": "NORTHEAST_ASIA,SOUTHEAST_ASIA",
"pool": {
// Omitting Pool information
}
}
],
"createdAt": "2019-12-18T20:44:02.000+09:00",
"updatedAt": "2019-12-18T21:01:05.000+09:00"
}
]
}
[Fields]
| Name | Type | Description |
|---|---|---|
| totalCount | long | Total number of GSLBs |
| gslbList | List | GSLB list |
| gslbList[0].gslbId | String | GSLB ID |
| gslbList[0].gslbName | String | GSLB name |
| gslbList[0].gslbDomain | String | GSLB domain |
| gslbList[0].gslbTtl | String | GSLB domain update interval |
| gslbList[0].gslbRoutingRule | String | Routing rule |
| gslbList[0].gslbDisabled | boolean | Whether GSLB is disabled |
| gslbList[0].healthy | boolean | Whether GSLB is healthy |
| gslbList[0].connectedPoolList | List | Connected pool list |
| gslbList[0].connectedPoolList[0].poolId | String | Connected pool ID |
| gslbList[0].connectedPoolList[0].pool | Object | Connected pool information |
| gslbList[0].connectedPoolList[0].connectedPoolOrder | int | Connected pool priority |
| gslbList[0].connectedPoolList[0].connectedPoolRegionContent | String | Connected pool region displayed in a single line |
| gslbList[0].createdAt | DateTime | Creation date |
| gslbList[0].updatedAt | DateTime | Last modified date |
[URI]
| Method | URI |
|---|---|
| POST | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs |
[Request Body]
curl -X POST 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs' \
-H 'Content-Type: application/json' \
--data '{ "gslb": { "gslbName": "GSLB-test", "gslbTtl": 300, "gslbRoutingRule": "FAILOVER", "connectedPoolList": [ { "poolId": "8e4326d4-3862-4b46-819e-83a786add570", "connectedPoolOrder": 1 }, { "poolId": "2f89d3fe-03bc-4711-826e-db2c89c12818", "connectedPoolOrder": 2 } ] }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| gslb | Object | Required | GSLB | ||
| gslb.gslbName | String | Max 100 characters, uppercase and lowercase letters, numbers, '-', '_' |
Required | GSLB name | |
| gslb.gslbTtl | int | Required | GSLB domain update interval | ||
| gslb.gslbRoutingRule | String | FAILOVER, RANDOM, GEOLOCATION | Required | Routing rule | |
| gslb.gslbDisabled | boolean | Optional | false | Whether GSLB is disabled | |
| gslb.connectedPoolList | List | Optional | Connected pool list | ||
| gslb.connectedPoolList[0].poolId | String | Required | Connected pool ID | ||
| gslb.connectedPoolList[0].connectedPoolOrder | int | Minimum 1, maximum 2,147,483,647 | Required | Connected pool priority | |
| gslb.connectedPoolList[0].connectedPoolRegionContent | String | WESTERN_NORTH_AMERICA, EASTERN_NORTH_AMERICA, WESTERN_EUROPE, EASTERN_EUROPE, NORTHERN_SOUTH_AMERICA, SOUTHERN_SOUTH_AMERICA, OCEANIA, MIDDLE_EAST, NORTHERN_AFRICA, SOUTHERN_AFRICA, INDIA, SOUTHEAST_ASIA, NORTHEAST_ASIA |
Optional | Connected pool region settings |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"gslb": {
"gslbId": "91de0c6f-aeaa-44ec-b361-822acfcd5921",
"gslbName": "GSLB-test",
"gslbDomain": "rgpac3e7q9onlipdfg.toastgslb.com",
"gslbTtl": 300,
"gslbRoutingRule": "FAILOVER",
"gslbDisabled": false,
"connectedPoolList": [
{
"poolId": "8e4326d4-3862-4b46-819e-83a786add570",
"connectedPoolOrder": 1,
"pool": {
// Omitting Pool information
}
},
{
"poolId": "2f89d3fe-03bc-4711-826e-db2c89c12818",
"connectedPoolOrder": 2,
"pool": {
// Omitting Pool information
}
}
],
"createdAt": "2019-12-18T20:44:02.000+09:00",
"updatedAt": "2019-12-18T20:44:03.000+09:00"
}
}
[URI]
| Method | URI |
|---|---|
| PUT | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs/{gslbId} |
[Request Body]
curl -X PUT 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs/{gslbId}' \
-H 'Content-Type: application/json' \
--data '{ "gslb": { "gslbName": "GSLB-test", "gslbTtl": 300, "gslbDisabled": true, "gslbRoutingRule": "GEOLOCATION", "connectedPoolList": [ { "poolId": "8e4326d4-3862-4b46-819e-83a786add570", "connectedPoolOrder": 1 }, { "poolId": "2f89d3fe-03bc-4711-826e-db2c89c12818", "connectedPoolOrder": 2, "connectedPoolRegionContent": "NORTHEAST_ASIA,SOUTHEAST_ASIA" } ] }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| gslb | Object | Required | GSLB | ||
| gslb.gslbName | String | Max 100 characters, uppercase and lowercase letters, numbers, '-', '_' |
Required | GSLB name | |
| gslb.gslbTtl | int | Required | GSLB domain update interval | ||
| gslb.gslbRoutingRule | String | FAILOVER, RANDOM, GEOLOCATION | Required | Routing rule | |
| gslb.gslbDisabled | boolean | Optional | false | Whether GSLB is disabled | |
| gslb.connectedPoolList | List | Optional | Connected pool list | ||
| gslb.connectedPoolList[0].poolId | String | Required | Connected pool ID | ||
| gslb.connectedPoolList[0].connectedPoolOrder | int | Minimum 1, maximum 2,147,483,647 | Required | Connected pool priority | |
| gslb.connectedPoolList[0].connectedPoolRegionContent | String | WESTERN_NORTH_AMERICA, EASTERN_NORTH_AMERICA, WESTERN_EUROPE, EASTERN_EUROPE, NORTHERN_SOUTH_AMERICA, SOUTHERN_SOUTH_AMERICA, OCEANIA, MIDDLE_EAST, NORTHERN_AFRICA, SOUTHERN_AFRICA, INDIA, SOUTHEAST_ASIA, NORTHEAST_ASIA |
Optional | Connected pool region settings |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"gslb": {
"gslbId": "91de0c6f-aeaa-44ec-b361-822acfcd5921",
"gslbName": "GSLB-test",
"gslbDomain": "rgpac3e7q9onlipdfg.toastgslb.com",
"gslbTtl": 300,
"gslbRoutingRule": "GEOLOCATION",
"gslbDisabled": true,
"connectedPoolList": [
{
"poolId": "8e4326d4-3862-4b46-819e-83a786add570",
"connectedPoolOrder": 1,
"pool": {
// Omitting Pool information
}
},
{
"poolId": "2f89d3fe-03bc-4711-826e-db2c89c12818",
"connectedPoolOrder": 2,
"connectedPoolRegionContent": "NORTHEAST_ASIA,SOUTHEAST_ASIA",
"pool": {
// Omitting Pool information
}
}
],
"createdAt": "2019-12-18T20:44:02.000+09:00",
"updatedAt": "2019-12-18T20:59:49.000+09:00"
}
}
[URI]
| Method | URI |
|---|---|
| DELETE | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs |
[Request Body]
curl -X DELETE 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs?
gslbIdList=91de0c6f-aeaa-44ec-b361-822acfcd5921,269eff10-f3c0-4b11-b072-ec53e7c604bf'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| gslbIdList | List | Minimum 1, maximum 3,000 | Required | GSLB ID list |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
}
}
[URI]
| Method | URI |
|---|---|
| POST | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs/{gslbId}/connected-pools/{poolId} |
[Request Body]
curl -X POST 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs/{gslbId}/connected-pools/{poolId}' \
-H 'Content-Type: application/json' \
--data '{ "connectedPool": { "connectedPoolOrder": 1 } }'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| connectedPool | Object | Required | Connected pool | ||
| connectedPool.connectedPoolOrder | int | Minimum 1, maximum 2,147,483,647 | Required | Connected pool priority | |
| connectedPool.connectedPoolRegionContent | String | WESTERN_NORTH_AMERICA, EASTERN_NORTH_AMERICA, WESTERN_EUROPE, EASTERN_EUROPE, NORTHERN_SOUTH_AMERICA, SOUTHERN_SOUTH_AMERICA, OCEANIA, MIDDLE_EAST, NORTHERN_AFRICA, SOUTHERN_AFRICA, INDIA, SOUTHEAST_ASIA, NORTHEAST_ASIA |
Optional | Connected pool region settings |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"connectedPoolList": [
{
"poolId": "52da0e48-9062-43f7-bef8-8aec4b795bfe",
"connectedPoolOrder": 1,
"pool": {
// Omitting Pool information
}
},
{
"poolId": "8e4326d4-3862-4b46-819e-83a786add570",
"connectedPoolOrder": 2,
"pool": {
// Omitting Pool information
}
},
{
"poolId": "2f89d3fe-03bc-4711-826e-db2c89c12818",
"connectedPoolOrder": 3,
"connectedPoolRegionContent": "NORTHEAST_ASIA,SOUTHEAST_ASIA",
"pool": {
// Omitting Pool information
}
}
]
}
[URI]
| Method | URI |
|---|---|
| PUT | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs/{gslbId}/connected-pools/{poolId} |
[Request Body]
curl -X PUT 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs/{gslbId}/connected-pools/{poolId}' \
-H 'Content-Type: application/json' \
--data '{ "connectedPool": { "connectedPoolOrder": 1, "connectedPoolRegionContent": "WESTERN_NORTH_AMERICA" } }'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| connectedPool | Object | Required | Connected pool | ||
| connectedPool.connectedPoolOrder | int | Minimum 1, maximum 2,147,483,647 | Required | Connected pool priority | |
| connectedPool.connectedPoolRegionContent | String | WESTERN_NORTH_AMERICA, EASTERN_NORTH_AMERICA, WESTERN_EUROPE, EASTERN_EUROPE, NORTHERN_SOUTH_AMERICA, SOUTHERN_SOUTH_AMERICA, OCEANIA, MIDDLE_EAST, NORTHERN_AFRICA, SOUTHERN_AFRICA, INDIA, SOUTHEAST_ASIA, NORTHEAST_ASIA |
Optional | Connected pool region settings |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"connectedPoolList": [
{
"poolId": "52da0e48-9062-43f7-bef8-8aec4b795bfe",
"connectedPoolOrder": 1,
"connectedPoolRegionContent": "WESTERN_NORTH_AMERICA",
"pool": {
// Omitting Pool information
}
},
{
"poolId": "8e4326d4-3862-4b46-819e-83a786add570",
"connectedPoolOrder": 2,
"pool": {
// Omitting Pool information
}
},
{
"poolId": "2f89d3fe-03bc-4711-826e-db2c89c12818",
"connectedPoolOrder": 3,
"connectedPoolRegionContent": "NORTHEAST_ASIA,SOUTHEAST_ASIA",
"pool": {
// Omitting Pool information
}
}
]
}
[URI]
| Method | URI |
|---|---|
| DELETE | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs/{gslbId}/connected-pools |
[Request Body]
curl -X DELETE 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/gslbs/{gslbId}/connected-pools?
poolIdList=52da0e48-9062-43f7-bef8-8aec4b795bfe,12bc396a-eb97-4a6b-ab4c-73d1a1dfb093'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| poolIdList | List | Minimum 1, maximum 3,000 | Required | Pool ID list |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"connectedPoolList": [
{
"poolId": "8e4326d4-3862-4b46-819e-83a786add570",
"connectedPoolOrder": 2,
"pool": {
// Omitting Pool information
}
},
{
"poolId": "2f89d3fe-03bc-4711-826e-db2c89c12818",
"connectedPoolOrder": 3,
"connectedPoolRegionContent": "NORTHEAST_ASIA,SOUTHEAST_ASIA",
"pool": {
// Omitting Pool information
}
}
]
}
[URI]
| Method | URI |
|---|---|
| GET | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/pools |
[Request Body]
curl -X GET 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/pools?showHealthy=true'
[Options]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| poolIdList | List | Up to 3,000 | Optional | Pool ID list | |
| searchPoolName | String | Optional | Pool name to search | ||
| healthCheckId | String | Optional | Connected health check ID | ||
| showHealthy | boolean | Optional | Whether to display health check results | ||
| page | int | Minimum 1 | Optional | 1 | Page number |
| limit | int | Minimum 1, maximum 3,000 | Optional | 50 | Number of items to retrieve |
| sortDirection | String | DESC, ASC | Optional | DESC | Sort direction (DESC: Descending, ASC: Ascending) |
| sortKey | String | CREATED_AT, UPDATED_AT, POOL_NAME, POOL_DISABLED, HEALTH_CHECK_ID |
Optional | CREATED_AT | Sort key (CREATED_AT: Creation date, UPDATED_AT: Last modified date, POOL_NAME: Pool name, POOL_DISABLED: Whether the pool is disabled, HEALTH_CHECK_ID: Connected health check ID) |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"totalCount": 1,
"poolList": [
{
"poolId": "8e4326d4-3862-4b46-819e-83a786add570",
"poolName": "POOL-test",
"poolDisabled": false,
"healthy": true,
"healthCheckId": "b9165853-7859-4309-8059-48f12ebdbc17",
"healthCheck": {
// Omitting health check information
},
"endpointList": [
{
"endpointAddress": "test.dnsplus.com",
"endpointWeight": 1.0,
"endpointDisabled": false,
"healthy": true,
"failureReason": "No failures"
},
{
"endpointAddress": "123.123.123.123",
"endpointWeight": 1.0,
"endpointDisabled": false,
"healthy": false,
"failureReason": "HTTP timeout occurred"
},
{
"endpointAddress": "test2.dnsplus.com",
"endpointWeight": 1.0,
"endpointDisabled": true
}
],
"createdAt": "2019-12-18T18:36:02.000+09:00",
"updatedAt": "2019-12-18T18:43:31.000+09:00"
}
]
}
[Fields]
| Name | Type | Description |
|---|---|---|
| totalCount | long | Total number of pools |
| poolList | List | Pool list |
| poolList[0].poolId | String | Pool ID |
| poolList[0].poolName | String | Pool name |
| poolList[0].poolDisabled | boolean | Whether the pool is disabled |
| poolList[0].healthy | boolean | Whether the pool is healthy |
| poolList[0].healthCheckId | String | Connected health check ID |
| poolList[0].healthCheck | Object | Connected health check information |
| poolList[0].endpointList | List | Endpoint list |
| poolList[0].endpointList[0].endpointAddress | String | Endpoint address |
| poolList[0].endpointList[0].endpointWeight | double | Endpoint weight |
| poolList[0].endpointList[0].healthy | boolean | Whether the endpoint is healthy |
| poolList[0].endpointList[0].failureReason | String | Reason for endpoint failure |
| poolList[0].createdAt | DateTime | Creation date |
| poolList[0].updatedAt | DateTime | Last modified date |
[URI]
| Method | URI |
|---|---|
| POST | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/pools |
[Request Body]
curl -X POST 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/pools' \
-H 'Content-Type: application/json' \
--data '{ "pool": { "poolName": "POOL-test", "endpointList": [ { "endpointAddress": "test.dnsplus.com" }, { "endpointAddress": "123.123.123.123" } ] }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| pool | Object | Required | Pool | ||
| pool.poolName | String | Max 100 characters, uppercase and lowercase letters, numbers, '-', '_' |
Required | Pool name | |
| pool.poolDisabled | boolean | Optional | false | Whether the pool is disabled | |
| pool.healthCheckId | String | Optional | Health check ID | ||
| pool.endpointList | List | Required | Endpoint list | ||
| pool.endpointList[0].endpointAddress | String | Max 254 characters, lowercase letters, numbers, '.', '-', '_' |
Required | Endpoint address | |
| pool.endpointList[0].endpointWeight | double | Minimum 0, maximum 1.00 | Optional | 1.00 | Endpoint weight |
| pool.endpointList[0].endpointDisabled | boolean | Optional | false | Whether the endpoint is disabled |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"pool": {
"poolId": "8e4326d4-3862-4b46-819e-83a786add570",
"poolName": "POOL-test",
"poolDisabled": false,
"healthCheckId": "",
"endpointList": [
{
"endpointAddress": "test.dnsplus.com",
"endpointWeight": 1.0,
"endpointDisabled": false
},
{
"endpointAddress": "123.123.123.123",
"endpointWeight": 1.0,
"endpointDisabled": false
}
],
"createdAt": "2019-12-18T18:36:02.000+09:00",
"updatedAt": "2019-12-18T18:36:02.000+09:00"
}
}
[URI]
| Method | URI |
|---|---|
| PUT | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/pools/{poolId} |
[Request Body]
curl -X PUT 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/pools/{poolId}' \
-H 'Content-Type: application/json' \
--data '{ "pool": { "poolName": "POOL-test", "poolDisabled": true, "healthCheckId": "b9165853-7859-4309-8059-48f12ebdbc17", "endpointList": [ { "endpointAddress": "test.dnsplus.com", "endpointWeight": 1.00, "endpointDisabled": true }, { "endpointAddress": "123.123.123.123", "endpointWeight": 0.5, "endpointDisabled": true } ] }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| pool | Object | Required | Pool | ||
| pool.poolName | String | Max 100 characters, uppercase and lowercase letters, numbers, '-', '_' |
Required | Pool name | |
| pool.poolDisabled | boolean | Optional | false | Whether the pool is disabled | |
| pool.healthCheckId | String | Optional | Health check ID | ||
| pool.endpointList | List | Required | Endpoint list | ||
| pool.endpointList[0].endpointAddress | String | Max 254 characters, lowercase letters, numbers, '.', '-', '_' |
Required | Endpoint address | |
| pool.endpointList[0].endpointWeight | double | Minimum 0, maximum 1.00 | Optional | 1.00 | Endpoint weight |
| pool.endpointList[0].endpointDisabled | boolean | Optional | false | Whether the endpoint is disabled |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"pool": {
"poolId": "8e4326d4-3862-4b46-819e-83a786add570",
"poolName": "POOL-test",
"poolDisabled": true,
"healthCheckId": "b9165853-7859-4309-8059-48f12ebdbc17",
"healthCheck": {
// Omitting health check information
},
"endpointList": [
{
"endpointAddress": "test.dnsplus.com",
"endpointWeight": 1.0,
"endpointDisabled": true
},
{
"endpointAddress": "123.123.123.123",
"endpointWeight": 0.5,
"endpointDisabled": true
}
],
"createdAt": "2019-12-18T18:36:02.000+09:00",
"updatedAt": "2019-12-18T18:37:45.000+09:00"
}
}
[URI]
| Method | URI |
|---|---|
| DELETE | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/pools |
[Request Body]
curl -X DELETE 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/pools?
poolIdList=8e4326d4-3862-4b46-819e-83a786add570,2f89d3fe-03bc-4711-826e-db2c89c12818'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| poolIdList | List | Minimum 1, maximum 3,000 | Required | Pool ID list |
[Response Body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
}
}
[URI]
| Method | URI |
|---|---|
| GET | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/health-checks |
[Request Body]
curl -X GET 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/health-checks'
[Options]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| healthCheckIdList | List | Up to 3,000 | Optional | Health check ID list | |
| searchHealthCheckName | String | Optional | Health check name to search | ||
| page | int | Minimum 1 | Optional | 1 | Page number |
| limit | int | Minimum 1, maximum 3,000 | Optional | 50 | Number of items to retrieve |
| sortDirection | String | DESC, ASC | Optional | DESC | Sort direction (DESC: Descending, ASC: Ascending) |
| sortKey | String | CREATED_AT, UPDATED_AT, HEALTH_CHECK_NAME, PROTOCOL, PORT |
Optional | CREATED_AT | Sort key (CREATED_AT: Creation date, UPDATED_AT: Last modified date, HEALTH_CHECK_NAME: Health check name, PROTOCOL: Protocol, PORT: Port) |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"totalCount": 1,
"healthCheckList": [
{
"healthCheckId": "b9165853-7859-4309-8059-48f12ebdbc17",
"healthCheckName": "HTTPS-443",
"protocol": "HTTPS",
"port": 443,
"interval": 60,
"timeout": 5,
"retries": 2,
"path": "/",
"expectedCodes": "2xx",
"expectedBody": "OK",
"allowInsecure": false,
"requestHeaderList": [
{ "Host": "nhncloud.com" }
],
"createdAt": "2019-12-18T12:31:34.000+09:00",
"updatedAt": "2019-12-18T14:19:20.000+09:00"
}
]
}
[Fields]
| Name | Type | Description |
|---|---|---|
| totalCount | long | Total number of health checks |
| healthCheckList | List | Health check list |
| healthCheckList[0].healthCheckId | String | Health check ID |
| healthCheckList[0].healthCheckName | String | Health check name |
| healthCheckList[0].protocol | String | Protocol |
| healthCheckList[0].port | int | Port |
| healthCheckList[0].interval | int | Health check interval |
| healthCheckList[0].timeout | int | Maximum response wait time |
| healthCheckList[0].retries | int | Maximum retry count |
| healthCheckList[0].path | String | Path |
| healthCheckList[0].expectedCodes | String | Expected status code |
| healthCheckList[0].expectedBody | String | Expected response body |
| healthCheckList[0].allowInsecure | boolean | Skip certificate verification |
| healthCheckList[0].requestHeaderList | List | Request header list |
| healthCheckList[0].requestHeaderList[0] | Object | Request header name and value object |
| healthCheckList[0].createdAt | DateTime | Creation date |
| healthCheckList[0].updatedAt | DateTime | Last modified date |
[URI]
| Method | URI |
|---|---|
| POST | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/health-checks |
[Request Body]
curl -X POST 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/health-checks' \
-H 'Content-Type: application/json' \
--data '{ "healthCheck": { "healthCheckName": "HTTPS-443", "protocol": "HTTPS", "port": 443, "interval": 60, "timeout": 5, "retries": 2, "path": "/", "expectedCodes": "2xx", "allowInsecure": false, "requestHeaderList": [{ "Host": "nhncloud.com" }] }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| healthCheck | Object | Required | Health check | ||
| healthCheck.healthCheckName | String | Max 100 characters, uppercase and lowercase letters, numbers, '-', '_' |
Required | Health check name | |
| healthCheck.protocol | String | HTTPS, HTTP, TCP | Required | Health check protocol | |
| healthCheck.port | int | Minimum 1, maximum 65,535 | Required | Health check port | |
| healthCheck.interval | int | Minimum 10 or (retries+1)*timeout, maximum 3,600 | Optional | 60 | Health check interval |
| healthCheck.timeout | int | Minimum 1, maximum 10 | Optional | 5 | Maximum response wait time |
| healthCheck.retries | int | Minimum 0, maximum 5 | Optional | 2 | Maximum retry count |
| healthCheck.path | String | Max 254 characters, must start with '/' |
Optional | Health check path; used for HTTPS and HTTP |
|
| healthCheck.expectedCodes | String | Numbers and wildcard 'x' | Optional | Expected health check status code; used for HTTPS and HTTP Example: 2xx, 20x, 200 |
|
| healthCheck.expectedBody | String | Max 10 KB | Optional | Expected health check response body; used for HTTPS and HTTP |
|
| healthCheck.allowInsecure | boolean | Optional | Skip certificate verification for health check; used for HTTPS |
||
| healthCheck.requestHeaderList | List | Optional | Request header list; used for HTTPS and HTTP; items in the list must be entered in the format { "header name": "header value" } |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"healthCheck": {
"healthCheckId": "b9165853-7859-4309-8059-48f12ebdbc17",
"healthCheckName": "HTTPS-443",
"protocol": "HTTPS",
"port": 443,
"interval": 60,
"timeout": 5,
"retries": 2,
"path": "/",
"expectedCodes": "2xx",
"allowInsecure": false,
"requestHeaderList": [
{ "Host": "nhncloud.com" }
],
"createdAt": "2019-12-18T12:31:34.000+09:00",
"updatedAt": "2019-12-18T12:31:34.000+09:00"
}
}
[URI]
| Method | URI |
|---|---|
| PUT | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/health-checks/{healthCheckId} |
[Request Body]
curl -X PUT 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/health-checks/{healthCheckId}' \
-H 'Content-Type: application/json' \
--data '{ "healthCheck": { "healthCheckName": "HTTPS-443", "protocol": "HTTPS", "port": 443, "interval": 60, "timeout": 5, "retries": 2, "path": "/", "expectedCodes": "3xx", "allowInsecure": false }}'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| healthCheck | Object | Required | Health check | ||
| healthCheck.healthCheckName | String | Max 100 characters, uppercase and lowercase letters, numbers, '-', '_' |
Required | Health check name | |
| healthCheck.protocol | String | HTTPS, HTTP, TCP | Required | Health check protocol | |
| healthCheck.port | int | Minimum 1, maximum 65,535 | Required | Health check port | |
| healthCheck.interval | int | Minimum 10 or (retries+1)*timeout, maximum 3,600 | Optional | Health check interval | |
| healthCheck.timeout | int | Minimum 1, maximum 10 | Optional | Maximum response wait time | |
| healthCheck.retries | int | Minimum 0, maximum 5 | Optional | Maximum retry count | |
| healthCheck.path | String | Max 254 characters, must start with '/' |
Optional | Health check path; used for HTTPS and HTTP |
|
| healthCheck.expectedCodes | String | Numbers and wildcard 'x' | Optional | Expected health check status code; used for HTTPS and HTTP Example: 2xx, 20x, 200 |
|
| healthCheck.expectedBody | String | Max 10 KB | Optional | Expected health check response body; used for HTTPS and HTTP |
|
| healthCheck.allowInsecure | boolean | Optional | Skip certificate verification for health check; used for HTTPS |
||
| healthCheck.requestHeaderList | List | Optional | Request header list; used for HTTPS and HTTP; items in the list must be entered in the format { "header name": "header value" } |
[Response Body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"healthCheck": {
"healthCheckId": "b9165853-7859-4309-8059-48f12ebdbc17",
"healthCheckName": "HTTPS-443",
"protocol": "HTTPS",
"port": 443,
"interval": 60,
"timeout": 5,
"retries": 2,
"path": "/",
"expectedCodes": "3xx",
"allowInsecure": false,
"requestHeaderList": [
{ "Host": "nhncloud.com" }
],
"createdAt": "2019-12-18T12:31:34.000+09:00",
"updatedAt": "2019-12-18T12:36:20.000+09:00"
}
}
[URI]
| Method | URI |
|---|---|
| DELETE | https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/health-checks |
[Request Body]
curl -X DELETE 'https://dnsplus.api.nhncloudservice.com/dnsplus/v2.0/appkeys/{appkey}/health-checks?
healthCheckIdList=b9165853-7859-4309-8059-48f12ebdbc17,d2629d6b-9381-4645-9cf3-43d7ad491e2b'
[Fields]
| Name | Type | Valid Range | Required | Default | Description |
|---|---|---|---|---|---|
| healthCheckIdList | List | Minimum 1, maximum 3,000 | Required | Health check ID list |
[Response body]
{
"header": {
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
}
}