getRegionList
    • PDF

    getRegionList

    • PDF

    Article summary

    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:

    MethodURI
    GET, POST/region/getRegionList

    Request headers

    The following describes the headers.

    FieldDescription
    x-ncp-apigw-timestampIt indicates the elapsed time in milliseconds since January 1, 1970 00:00:00 UTC
    • Request is considered invalid if the timestamp differs from the current time by more than 5 minutes
    x-ncp-apigw-signature-v2Access key ID issued on the NAVER Cloud Platform portal or in Sub Account
    x-ncp-iam-access-keySignature used to encrypt the body with the secret key that maps with the access key ID
    • HmacSHA256 is used for the HMAC encryption algorithm

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    regionCodeStringOptionalRegion 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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.