Disables a router interface.

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 DeactivateRouterInterface

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

RegionId String Yes cn-hangzhou

The ID of the region where the router interface is deployed.

You can call the DescribeRegions operation to query the most recent region list.

RouterInterfaceId String Yes ri-2zeo3xzyf38r4urz****

The ID of the router interface.

Response parameters

Parameter Type Example Description
RequestId String BE7EB53A-99AB-4DA8-AEDE-75FA90D046A6

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeactivateRouterInterface
&RegionId=cn-hangzhou
&RouterInterfaceId=ri-2zeo3xzyf38r4urz****
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DeactivateRouterInterfaceResponse>
    <RequestId>BE7EB53A-99AB-4DA8-AEDE-75FA90D046A6</RequestId>
</DeactivateRouterInterfaceResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "BE7EB53A-99AB-4DA8-AEDE-75FA90D046A6"
}

Error codes

HttpCode Error code Error message Description
400 IncorrectStatus RouterInterface can be operated by this action only when it's status is Active. The error message returned because the operation cannot be performed. The operation can be performed only when the the router interface is in the Active state.
404 InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our record. The error message returned because the specified router interface does not exist. Check whether the specified router interface is valid.

For a list of error codes, see Service error codes.