MENU
      getCloudMysqlTargetSubnetList

        getCloudMysqlTargetSubnetList


        기사 요약

        VPC 환경에서 이용 가능합니다.

        Cloud DB for MySQL에서 사용할 수 있는 Subnet 목록을 조회합니다.

        요청

        요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

        메서드URI
        GET, POST/getCloudMysqlTargetSubnetList

        요청 헤더

        Cloud DB for MySQL (VPC) API에서 공통으로 사용하는 헤더에 대한 자세한 내용은 Cloud DB for MySQL (VPC) 요청 헤더를 참조해 주십시오.

        요청 파라미터

        파라미터에 대한 설명은 다음과 같습니다.

        필드타입필수 여부설명
        regionCodeStringOptional리전 코드
        • 조회할 Subnet의 리전 코드
        • getRegionList를 통해 확인
        • getRegionList 조회 결과의 첫 번째 리전(기본값)
        vpcNoStringRequiredVPC 번호로 필터링
        cloudMysqlImageProductCodeStringRequiredCloud DB for MySQL 이미지 상품 코드로 필터링
        isPublicBooleanOptionalPublic Subnet 여부로 필터링
        • true | false
        responseFormatTypeStringOptional응답 결과의 형식
        • xml (기본값) | json

        요청 예시

        요청 예시는 다음과 같습니다.

        curl --location --request GET 'https://ncloud.apigw.ntruss.com/vmysql/v2/getCloudMysqlTargetSubnetList
        ?regionCode=KR
        &vpcNo=****83
        &cloudMysqlImageProductCode=SW.VDBAS.DBAAS.LNX64.CNTOS.0708.MYSQL.8018.B050'
        --header 'x-ncp-apigw-timestamp: {Timestamp}'
        --header 'x-ncp-iam-access-key: {Access Key}'
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
        Curl

        응답

        응답 형식을 설명합니다.

        응답 바디

        응답 바디는 TargetSubnetList를 참조해 주십시오.

        응답 상태 코드

        네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 자세한 내용은 Ncloud API 응답 상태 코드를 참조해 주십시오.

        응답 예시

        응답 예시는 다음과 같습니다.

        • responseFormatType=json 일 때
        {
            "getCloudMysqlTargetSubnetListResponse": {
                "totalRows": 3,
                "targetSubnetList": [
                    {
                        "subnetNo": "****91",
                        "subnetName": "test-***",
                        "vpcNo": "****83",
                        "vpcName": "test-***",
                        "zoneCode": "KR-1",
                        "subnet": "192.168.*.0/28",
                        "isPublic": true,
                        "createdDate": "2024-06-03T08:53:40+0900"
                    },
                    {
                        "subnetNo": "****93",
                        "subnetName": "test-***",
                        "vpcNo": "****83",
                        "vpcName": "test-***",
                        "zoneCode": "KR-2",
                        "subnet": "192.168.*.0/24",
                        "isPublic": true,
                        "createdDate": "2022-03-30T10:01:13+0900"
                    }
                ],
                "requestId": "b9cf9a98-****-****-****-ba0d20cf0567",
                "returnCode": "0",
                "returnMessage": "success"
            }
        }
        JSON
        • responseFormatType=xml (기본값) 일 때
        <?xml version="1.0" encoding="UTF-8"?>
        <getCloudMysqlTargetSubnetListResponse>
            <requestId>b9cf9a98-****-****-****-ba0d20cf0567</requestId>
            <returnCode>0</returnCode>
            <returnMessage>success</returnMessage>
            <totalRows>3</totalRows>
            <targetSubnetList>
                <targetSubnet>
                    <subnetNo>****83</subnetNo>
                    <subnetName>test-***</subnetName>
                    <vpcNo>****83</vpcNo>
                    <vpcName>test-***</vpcName>
                    <zoneCode>KR-1</zoneCode>
                    <subnet>192.168.*.0/28</subnet>
                    <isPublic>true</isPublic>
                    <createdDate>2024-06-03T08:53:40+0900</createdDate>
                </targetSubnet>
                <targetSubnet>
                    <subnetNo>****93</subnetNo>
                    <subnetName>test-***</subnetName>
                    <vpcNo>****83</vpcNo>
                    <vpcName>test-***</vpcName>
                    <zoneCode>KR-2</zoneCode>
                    <subnet>192.168.*.0/24</subnet>
                    <isPublic>true</isPublic>
                    <createdDate>2022-03-30T10:01:13+0900</createdDate>
                </targetSubnet>
            </targetSubnetList>
        </getCloudMysqlTargetSubnetListResponse>
        XML

        이 문서가 도움이 되었습니까?

        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.