getCloudMysqlTargetSubnetList

Prev Next

VPC環境で利用できます。

概要

使用可能な Subnetリストを照会します。

リクエスト

リクエストパラメータ

パラメータ名 要否 タイプ 制約事項 説明
regionCode No String - リージョンコード
regionCodeは、getRegionListアクションを通じて取得可能
Default: getRegionList照会結果の最初のリージョンを選択
vpcNo Yes String - VPC番号
vpcNoは、getCloudMysqlTargetVpcListアクションを通じて取得可能
cloudMysqlImageProductCode Yes String - Cloud DB for MySQLの画像商品コード
cloudMysqlImageProductCodeは、getCloudMysqlImageProductListアクションの productCodeで取得可能
isPublic No Boolean -Public Subnetの有無
output No String - レスポンス結果のフォーマットタイプ
Options : xml | json
Default : json

レスポンス

レスポンスデータのタイプ

  • TargetSubnetListタイプ
TargetSubnetList extends CommonResponse
private Integer totalRows;
private List<TargetSubnet> targetSubnetList = new ArrayList<>();
TargetSubnet
private String subnetNo;
private String subnetName;
private String vpcNo;
private String vpcName;
private String zoneCode;
private String subnet;
private Boolean isPublic;
private Date createdDate;

リクエスト例

ncloud vmysql getCloudMysqlTargetSubnetList --regionCode KR --vpcNo **65 --cloudMysqlImageProductCode SW.VDBAS.DBAAS.LNX64.CNTOS.0708.MYSQL.8018.B050

レスポンス例

<getCloudMysqlTargetSubnetListResponse>
    <requestId>415050c7-bda1-43b6-9af1-f5ade127ad82</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>2</totalRows>
    <targetSubnetList>
        <targetSubnet>
            <subnetNo>37****</subnetNo>
            <subnetName>test-****-private-kr1</subnetName>
            <vpcNo>**65</vpcNo>
            <vpcName>test-****</vpcName>
            <zoneCode>KR-1</zoneCode>
            <subnet>192.168.0.0/24</subnet>
            <isPublic>false</isPublic>>
            <createdDate>2022-03-24T18:00:00+0900</createdDate>
        </targetSubnet>
        <targetSubnet>
            <subnetNo>37****</subnetNo>
            <subnetName>test-****-public-kr1</subnetName>
            <vpcNo>**65</vpcNo>
            <vpcName>test-****</vpcName>
            <zoneCode>KR-1</zoneCode>
            <subnet>192.168.1.0/24</subnet>
            <isPublic>true</isPublic>>
            <createdDate>2022-03-24T18:00:00+0900</createdDate>
        </targetSubnet>
    </targetSubnetList>
</getCloudMysqlTargetSubnetListResponse>