getCloudMssqlTargetSubnetList
    • PDF

    getCloudMssqlTargetSubnetList

    • PDF

    Article Summary

    VPC環境で利用できます。

    使用できる Subnetリストを照会します。

    コマンド

    コマンド構文は、次のとおりです。

    ncloud vmssql getCloudMssqlTargetSubnetList [regionCode] [vpcNo] [cloudMssqlImageProductCode] [isPublic] [output]
    

    パラメータ

    パラメータについての説明は、次のとおりです。

    パラメータタイプ要否説明制約事項
    regionCodeStringNリージョンコード
    - regionCodeは、getRegionListアクションを通じて取得
    - default: getRegionList照会結果の最初のリージョンを選択
    -
    vpcNoStringYVPC番号
    - vpcNoは、getCloudMssqlTargetVpcListアクションを通じて取得
    -
    cloudMssqlImageProductCodeStringYCloud DB for MSSQLイメージ商品コード
    - cloudMssqlImageProductCodeは、getCloudMssqlImageProductListアクションの productCodeで取得
    -
    isPublicBooleanNPublic Subnetの照会有無-
    outputStringNレスポンス結果のフォーマットタイプ
    - options: xml | json
    - default: json
    -

    レスポンス

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

    • TargetSubnetListタイプ

      TargetSubnetList extends CommonResponse説明
      private Integer totalRows;照会されたリストの総数
      private List<TargetSubnet> targetSubnetList = new ArrayList<>();Subnetリスト
    • TargetSubnetタイプ

      TargetSubnet説明
      private String subnetNo;Subnet番号
      private String subnetName;Subnet名
      private String vpcNo;VPC番号
      private String vpcName;VPC名
      private String zoneCode;Zoneコード
      private String subnet;IPアドレスの範囲
      private Boolean isPublic;Public Subnetの有無
      private Date createdDate;作成日

    呼び出しとレスポンス例を説明します。

    呼び出し例

    呼び出し例は、次のとおりです。

    ncloud vmssql getCloudMssqlTargetSubnetList --regionCode KR --vpcNo **65 --cloudMssqlImageProductCode SW.VMSSL.OS.WND64.WINNT.SVR2016.MSSQL.15020005.SE.B100
    

    レスポンス例

    レスポンス例は、次のとおりです。

    レスポンス結果フォーマットタイプ(output)が jsonの場合

    レスポンス結果フォーマットタイプ(output)が jsonの場合は、次のとおりです。

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

    レスポンス結果フォーマットタイプ(responseFormatType)が xmlの場合

    レスポンス結果フォーマットタイプ(responseFormatType)が xmlの場合は、次のとおりです。

    <getCloudMssqlTargetSubnetListResponse>
        <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>
    </getCloudMssqlTargetSubnetListResponse>
    

    この記事は役に立ちましたか?

    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.