Skip to main content

DescribeVpcAttribute

Description

call the DescribeVpcAttribute interface to query the configuration information of the specified VPC.

Request Method

POST

Request Path

/apsara/route/Vpc/DescribeVpcAttribute

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
IsDefaultBODYbooleanNofalsewhether it is the default VPC, value: false: not the default VPC. true(default): is the default VPC.
VpcIdBODYstringYesvpc-bp18sth14qii3pnv****ID of VPC to query.
regionIdBODYstringYesNo sample value for this parameter.region id
DryRunBODYbooleanNofalsewhether to precheck only this request. true: sends a check request and does not query the resource status. Check items include whether the AccessKey is valid, the authorization status of RAM users, and whether required parameters are filled in. If the check fails, the corresponding error is returned. If the check passes, error code DryRunOperation will be returned. false(default): send a normal request, return a 2xx HTTP status code after checking and directly query the resource status.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the VPC belongs. you can obtain the region by calling DescribeRegions interface ID.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}