Retrieves a VPC associated with an instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetInstanceVpcEndpoint |
The operation that you want to perform. Set the value to GetInstanceVpcEndpoint. |
InstanceId | String | Yes | cri-kmsiwlxxdcvaduwb |
The ID of the instance. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where the instance resides. |
ModuleName | String | No | chart |
The name of the module in the instance. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
Code | String | success |
The code returned for the request. |
RequestId | String | BAE9349D-A587-4F9A-B574-9DA0EF2638D1 |
The ID of the request. |
[DO NOT TRANSLATE] | [DO NOT TRANSLATE] | [DO NOT TRANSLATE] |
[DO NOT TRANSLATE] |
LinkedVpcs | Array |
A list of VPCs associated with the instance. |
|
VpcId | String | vpc-uf6aamu2nomfr1thdmovq |
The ID of the VPC. |
VswitchId | String | vsw-uf62m5vmxl2e72dk7rsd5 |
The ID of the VSwitch. |
Ip | String | null |
The IP address of the instance resolved in the VPC. |
DefaultAccess | Boolean | false |
Indicates whether the default policy is used to access the instance. |
Status | String | CREATING |
The association status of the VPC. |
[DO NOT TRANSLATE] | [DO NOT TRANSLATE] | [DO NOT TRANSLATE] |
[DO NOT TRANSLATE] |
Examples
Sample requests
http(s)://[Endpoint]/? Action=GetInstanceVpcEndpoint
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&ModuleName=chart
&<Common request parameters>
Sample success responses
JSON
format
{
"IsSuccess":true,
"RequestId":"BAE9349D-A587-4F9A-B574-9DA0EF2638D1",
"Enable":true,
"LinkedVpcs":[
{
"Status":"CREATING",
"VpcId":"vpc-uf6aamu2nomfr1thdmovq",
"DefaultAccess":false,
"VswitchId":"vsw-uf62m5vmxl2e72dk7rsd5"
}
],
"Code":"success"
}
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>BAE9349D-A587-4F9A-B574-9DA0EF2638D1</RequestId>
<Enable>true</Enable>
<LinkedVpcs>
<Status>CREATING</Status>
<VpcId>vpc-uf6aamu2nomfr1thdmovq</VpcId>
<DefaultAccess>false</DefaultAccess>
<VswitchId>vsw-uf62m5vmxl2e72dk7rsd5</VswitchId>
</LinkedVpcs>
<Code>success</Code>
Error codes
For a list of error codes, visit the API Error Center.