Queries whether you can change the network type of a PolarDB-X 1.0 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 DescribeInstanceSwitchNetwork

The operation that you want to perform. Set the value to DescribeInstanceSwitchNetwork.

DrdsInstanceId String Yes drds*********

The ID of the PolarDB-X 1.0 instance.

Response parameters

Parameter Type Example Description
RequestId String 03E12FE3-1638-483E-A9B6-1A9120SER56T

Indicates the ID of the request.

Success Boolean true

Indicates whether the request is successful.

VpcInfos Array of VpcInfo

Indicates the information about the virtual private cloud (VPC) in which the instance is deployed.

VpcInfo
RegionId String cn-hangzhou

Indicates the ID of the region in which the instance is deployed.

VpcId String vpc_id

Indicates the ID of the VPC.

VpcName String vpc_name

Indicates the name of the VPC.

VswitchInfos Array of VswitchInfo

Indicates information about the vSwitch to which the instance is connected.

VswitchInfo
AzoneId String cn-hangzhou-a

Indicates the ID of the zone in which the instance is deployed.

DrdsSupported Boolean true

Indicates whether you can change the network type of the instance.

VpcId String vpc_id

Indicates the ID of the VPC.

VswitchId String vswitch_id

Indicates the ID of the vSwitch.

VswitchName String vswitch_name

Indicates the name of the vSwitch.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeInstanceSwitchNetwork
&DrdsInstanceId=drds*********
&<Common request parameters>

Sample success responses

XML format

<RequestId>03E12FE3-1638-483E-A9B6-1A9120SER56T</RequestId>
<VpcInfos>
    <VpcInfo>
        <VpcId>vpc_id</VpcId>
        <VpcName>vpc_name</VpcName>
        <RegionId>cn-hangzhou</RegionId>
        <VswitchInfos>
            <VswitchInfo>
                <DrdsSupported>true</DrdsSupported>
                <VpcId>vpc_id</VpcId>
                <VswitchName>vswitch_name</VswitchName>
                <AzoneId>cn-hangzhou-a</AzoneId>
                <VswitchId>vswitch_id</VswitchId>
            </VswitchInfo>
        </VswitchInfos>
    </VpcInfo>
</VpcInfos>
<Success>true</Success>

JSON format

{"RequestId":"03E12FE3-1638-483E-A9B6-1A9120SER56T","VpcInfos":{"VpcInfo":[{"VpcId":"vpc_id","VpcName":"vpc_name","RegionId":"cn-hangzhou","VswitchInfos":{"VswitchInfo":[{"DrdsSupported":"true","VpcId":"vpc_id","VswitchName":"vswitch_name","AzoneId":"cn-hangzhou-a","VswitchId":"vswitch_id"}]}}]},"Success":"true"}

Error codes

HttpCode Error code Error message Description
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred.

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