VPC を照会します。
この API は廃止されました。一時的にアクセス可能ですが、更新やバグ修正対応は一切行われません。代わりに Vpc(2016-04-28) - DescribeVpcs への移行を推奨します。より強化された機能に加え、サポートも引き続きご利用いただけます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:DescribeVpcs |
get |
*すべてのリソース。
|
|
なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| VpcId |
string |
任意 |
||
| RegionId |
string |
必須 |
||
| IsDefault |
boolean |
任意 |
||
| PageNumber |
integer |
任意 |
||
| PageSize |
integer |
任意 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| PageSize |
integer |
||
| RequestId |
string |
||
| PageNumber |
integer |
||
| TotalCount |
integer |
||
| Vpcs |
object |
||
| Vpc |
array<object> |
||
|
array<object> |
|||
| CreationTime |
string |
||
| VpcName |
string |
||
| Status |
string |
||
| VpcId |
string |
||
| VRouterId |
string |
||
| IsDefault |
boolean |
||
| CidrBlock |
string |
||
| Description |
string |
||
| RegionId |
string |
||
| VSwitchIds |
object |
||
| VSwitchId |
array |
||
|
string |
|||
| UserCidrs |
object |
||
| UserCidr |
array |
||
|
string |
例
成功レスポンス
JSONJSON
{
"PageSize": 0,
"RequestId": "",
"PageNumber": 0,
"TotalCount": 0,
"Vpcs": {
"Vpc": [
{
"CreationTime": "",
"VpcName": "",
"Status": "",
"VpcId": "",
"VRouterId": "",
"IsDefault": false,
"CidrBlock": "",
"Description": "",
"RegionId": "",
"VSwitchIds": {
"VSwitchId": [
""
]
},
"UserCidrs": {
"UserCidr": [
""
]
}
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidAliuid | User Id is not valid. | |
| 400 | InvalidResourceGroupId.NotFound | The Specified ResourceGroupId not exists. | |
| 400 | OperationUnsupported.ResourceGroupId | %s | |
| 400 | InvalidVpcIdNumber.NotSupported | The number of vpcIds exceeds the limit. | |
| 400 | InvalidTagKey | The tag keys are not valid. | |
| 400 | InvalidTagValue | The tag values are not valid. | |
| 400 | IellgalParameter.OwnerAccount | The specified parameter OwnerAccount is not valid. | |
| 400 | OperationFailed.Endpoint | Operation failed because the RegionId is unavailable in this endpoint. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId is not found. | リージョン情報が無効です。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。