Queries the virtual private clouds (VPCs) associated with an instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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.

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 return value.

RequestId String BAE9349D-A587-4F9A-B574-9DA0EF2638D1

The ID of the request.

Enable Boolean true

Indicates whether the VPC is enabled.

LinkedVpcs Array N/A

The 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.

Domains List null

null

Examples

Sample requests

http(s)://[Endpoint]/? Action=GetInstanceVpcEndpoint
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&ModuleName=chart
&<Common request parameters>

Sample success responses

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>

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"
}

Error codes

For a list of error codes, visit the API Error Center.