getCloudPostgresqlInstanceList
VPC環境で利用できます。
Cloud DB for PostgreSQLインスタンスリストを照会します。
リクエスト
リクエスト形式を説明します。リクエスト形式は次の通りです。
メソッド | URI |
---|
GET, POST | /getCloudPostgresqlInstanceList |
リクエストヘッダ
Cloud DB for PostgreSQL (VPC) APIで共通して使用されるヘッダの詳細は、Cloud DB for PostgreSQL (VPC)のリクエストヘッダをご参照ください。
リクエストパラメータ
パラメータの説明は次の通りです。
フィールド | タイプ | 必須の有無 | 説明 |
---|
regionCode | String | Optional | リージョンコード- 照会対象の Cloud DB for PostgreSQLインスタンスのリージョンコード
- getRegionListを通じて確認
getRegionList 照会結果の最初のリージョン(デフォルト)
|
zoneCode | String | Optional | ゾーンコードでフィルタリング |
vpcNo | String | Optional | VPC番号でフィルタリング |
subnetNo | String | Optional | Subnet番号でフィルタリング |
cloudPostgresqlServiceName | String | Optional | Cloud DB for PostgreSQLサービス名でフィルタリング |
cloudPostgresqlInstanceNoList.N | List<String> | Optional | Cloud DB for PostgreSQLインスタンス番号リスト- Cloud DB for PostgreSQLインスタンス番号でフィルタリング
- getCloudPostgresqlInstanceListを通じて確認
- <例>
cloudPostgresqlInstanceNoList.1=1234&cloudPostgresqlInstanceNoList.2=2345
|
cloudPostgresqlServerName | String | Optional | Cloud DB for PostgreSQLサーバ名でフィルタリング |
cloudPostgresqlServerInstanceNoList.N | List<String> | Optional | Cloud DB for PostgreSQLサーバインスタンス番号リスト- Cloud DB for PostgreSQLサーバインスタンス番号でフィルタリング
- getCloudPostgresqlInstanceListを通じて確認
- <例>
cloudPostgresqlServerInstanceNoList.1=1234&cloudPostgresqlServerInstanceNoList.2=2345
|
pageNo | Integer | Optional | ページングされた結果のページ番号pageNo 、pageSize を利用してページング処理- 0 (最小)
|
pageSize | Integer | Conditional | ページごとに表示する結果数pageNo 、pageSize を利用してページング処理pageNo 入力時、必須- 1 (最小)
|
responseFormatType | String | Optional | レスポンス結果の形式 |
リクエスト例
リクエストのサンプルコードは次の通りです。
レスポンス
レスポンス形式を説明します。
レスポンスボディ
レスポンスボディの詳細は、CloudPostgresqlInstanceListをご参照ください。
レスポンスステータスコード
NAVERクラウドプラットフォームでで共通して使用されるレスポンスステータスコードの詳細は、Ncloud APIのレスポンスステータスコードをご参照ください。
レスポンス例
レスポンスのサンプルコードは次の通りです。
responseFormatType=json
の場合
{
"getCloudPostgresqlInstanceListResponse": {
"totalRows": 1,
"cloudPostgresqlInstanceList": [
{
"cloudPostgresqlInstanceNo": "****925",
"cloudPostgresqlServiceName": "test-****",
"cloudPostgresqlInstanceStatusName": "running",
"cloudPostgresqlInstanceStatus": {
"code": "CREAT",
"codeName": "CLOUD DATABASE(VPC) Created State"
},
"cloudPostgresqlInstanceOperation": {
"code": "NULL",
"codeName": "CLOUD DATABASE(VPC) Null OP"
},
"isHa": true,
"isMultiZone": true,
"cloudPostgresqlConfigList": [
"sample_config=sample_value"
],
"cloudPostgresqlServerInstanceList": [
{
"cloudPostgresqlServerInstanceNo": "****926",
"cloudPostgresqlServerName": "test-****-001-523a",
"cloudPostgresqlServerRole": {
"code": "M",
"codeName": "Primary"
},
"cloudPostgresqlServerInstanceStatusName": "running",
"cloudPostgresqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC) Server Running State"
},
"cloudPostgresqlServerInstanceOperation": {
"code": "NOOP",
"codeName": "CLOUD DATABASE(VPC) Server Null OP"
},
"regionCode": "KR",
"zoneCode": "KR-1",
"vpcNo": "****87",
"subnetNo": "****49",
"dataStorageSize": 10737418240,
"cpuCount": 2,
"memorySize": 8589934592
},
{
"cloudPostgresqlServerInstanceNo": "****932",
"cloudPostgresqlServerName": "test-****-002-523b",
"cloudPostgresqlServerRole": {
"code": "H",
"codeName": "Secondary"
},
"cloudPostgresqlServerInstanceStatusName": "running",
"cloudPostgresqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC) Server Running State"
},
"cloudPostgresqlServerInstanceOperation": {
"code": "NOOP",
"codeName": "CLOUD DATABASE(VPC) Server Null OP"
},
"regionCode": "KR",
"zoneCode": "KR-2",
"vpcNo": "****87",
"subnetNo": "****51",
"dataStorageSize": 10737418240,
"cpuCount": 2,
"memorySize": 8589934592
}
]
}
],
"requestId": "5092443c-****-****-****-7e916678d405",
"returnCode": "0",
"returnMessage": "success"
}
}
responseFormatType=xml
(デフォルト)の場合
あなたのフィードバックをありがとう!私たちのチームはあなたに戻って取得します