getCloudPostgreSqlTargetSubnetList
- 印刷する
- PDF
getCloudPostgreSqlTargetSubnetList
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
VPC環境で利用できます。
Cloud DB for PostgreSQLで使用可能な Subnetリストを照会します。
リクエスト
リクエストパラメータ
パラメータ | タイプ | 要否 | 説明 | 制約事項 |
---|---|---|---|---|
regionCode | String | N | リージョンコード - regionCodeは、getRegionListアクションを通じて取得する - default: getRegionList照会結果の最初のリージョンを選択する | - |
vpcNo | String | Y | VPC番号 - vpcNoは、getCloudPostgresqlTargetVpcListアクションを通じて取得する | - |
cloudPostgresqlImageProductCode | String | Y | Cloud DB for PostgreSQLイメージ商品コード - CloudPostgresqlImageProductCodeは、getCloudPostgresqlImageProductListアクションの productCodeで取得する | - |
isPublic | Boolean | N | Public Subnet照会有無 | - |
responseFormatType | String | N | レスポンス結果のフォーマットタイプ - options: xml | json - default: xml | - |
レスポンス
レスポンスボディ
レスポンスボディは、TargetSubnetListをご参照ください。
例
リクエスト例
リクエスト構文例は次のとおりです。
GET {API_URL}/getCloudPostgresqlTargetSubnetList
?regionCode=KR
&vpcNo=25****
&cloudPostgresqlImageProductCode=SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.133.B050
レスポンス例
レスポンス構文例は、次のとおりです。
レスポンス結果のフォーマットタイプ(responseFormatType)が jsonの場合
{
"getCloudPostgresqlTargetSubnetListResponse": {
"requestId": "415050c7-bda1-43b6-9af1-f5ade127ad82",
"returnCode": 0,
"returnMessage": "success",
"totalRows": 2,
"targetSubnetList": [
{
"subnetNo": "37****",
"subnetName": "test-****-private-kr1",
"vpcNo": "25****",
"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": "25****",
"vpcName": "test-****",
"zoneCode": "KR-1",
"subnet": "192.168.1.0/24",
"isPublic": true,
"createdDate": "2022-03-24T18:00:00+0900"
}
]
}
}
レスポンス結果のフォーマットタイプ(responseFormatType)が xmlの場合
<getCloudPostgresqlTargetSubnetListResponse>
<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>25****</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>25****</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>
</getCloudPostgresqlTargetSubnetListResponse>
この記事は役に立ちましたか?