GetMetaCountry
    • PDF

    GetMetaCountry

    • PDF

    Article summary

    Available in VPC

    Get the country information searchable from the Network Traffic Monitoring service.

    Request

    This section describes the request format. The method and URI are as follows:

    MethodURI
    GET/meta/v1/country

    Request headers

    For information about the headers common to all Network Traffic Monitoring APIs, see Network Traffic Monitoring request headers.

    Request query parameters

    You can use the following query parameters with your request:

    FieldTypeRequiredDescription
    pageIntegerRequiredPage number
    • 0 - N
    sizeIntegerRequiredPage output count
    • 1 - 100
    cntryNmStringOptionalCountry name
    • English

    Request example

    The request example is as follows:

    curl --location --request GET https://vpc-ntm.apigw.ntruss.com/meta/v1/country?cntryNm=South&page=0&size=3
    --header 'x-ncp-apigw-timestamp: {Timestamp}' \
    --header 'x-ncp-iam-access-key: {Access Key}' \
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
    --header 'x-ncp-dmn_cd: PUB' \
    

    Response

    This section describes the response format.

    Response body

    The response body includes the following data:

    FieldTypeRequiredDescription
    cntryCdInteger-Country code
    cntryNmString-Country name

    Response status codes

    For information about the HTTP status codes common to all Network Traffic Monitoring APIs, see Network Traffic Monitoring response status codes.

    Response example

    The response example is as follows:

    [
        {
            "cntryCd": "GS",
            "cntryNm": "South Georgia and the South Sandwich Islands"
        },
        {
            "cntryCd": "KR",
            "cntryNm": "South Korea"
        },
        {
            "cntryCd": "SS",
            "cntryNm": "South Sudan"
        }
    ]
    

    Was this article helpful?

    What's Next
    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.