getRegionList
- Print
- PDF
getRegionList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in Classic and VPC
View the list of available regions.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
GET, POST | /region/getRegionList |
Request headers
The following describes the headers.
Field | Description |
---|---|
x-ncp-apigw-timestamp | It indicates the elapsed time in milliseconds since January 1, 1970 00:00:00 UTC
|
x-ncp-apigw-signature-v2 | Access key ID issued on the NAVER Cloud Platform portal or in Sub Account |
x-ncp-iam-access-key | Signature used to encrypt the body with the secret key that maps with the access key ID
|
Request query parameters
The following describes the parameters.
Field | Type | Required | Description |
---|---|---|---|
regionCode | String | Optional | Region code to view
|
Request example
The following is a sample request.
curl --location --request GET 'https://billingapi.apigw.ntruss.com/billing/v1/region/getRegionList' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Sub Account Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
The following describes the response format.
Response body
See RegionList (For Billing) for the response body.
Response status codes
For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.
Response example
The following is a sample response.
{
"getRegionListResponse": {
"totalRows": 6,
"regionList": [
{
"regionNo": 0,
"regionCode": "COM",
"regionName": "Common"
},
{
"regionNo": 1,
"regionCode": "KR",
"regionName": "Korea"
},
{
"regionNo": 7,
"regionCode": "SGN",
"regionName": "Singapore(New)"
},
{
"regionNo": 8,
"regionCode": "JPN",
"regionName": "Japan(New)"
},
{
"regionNo": 9,
"regionCode": "USWN",
"regionName": "US-West(New)"
},
{
"regionNo": 10,
"regionCode": "DEN",
"regionName": "Germany(New)"
}
],
"requestId": "ea95e478-6984-48e7-be34-7a8dcf016016",
"returnCode": "0",
"returnMessage": "success"
}
}
Was this article helpful?