GetMetaSubnet
    • PDF

    GetMetaSubnet

    • PDF

    Article Summary

    Overview

    Available in the VPC environment.

    Inquire the Subnet available on NTM.

    Request

    API URL

    URL: https://vpc-ntm.apigw.ntruss.com/meta/v1/subnet
    Method: GET
    

    Request header

    The request header specified in the common setting is required.

    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    
    Parameter NameRequiredTypeConstraintsDescription
    SubnetNameNStringSubnetNamePrefix
    regionCodeYStringregion code, default KR

    Example

    Request example

    GET /meta/v1/subnet?subnetName=subne&regionCode=KR
    Host: vpc-ntm.apigw.ntruss.com
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    Response example

    HTTP code 200 and Subnet information are inquired if the inquiry is completed without errors.

    [
      {
        "subnetNo": 1925,
        "subnetName": "subnet3",
        "subnet": "10.0.3.0/24",
        "gateway": "10.0.3.1",
        "zoneNo": 2,
        "zoneName": "KR-1",
        "vpcNo": 458,
        "vpcName": "vpc-sample",
        "statusCode": "RUN",
        "statusName": "Running"
      }
    ]
    

    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.