All Products
Search
Document Center

Cloud Enterprise Network:DeleteRouteServiceInCen

Last Updated:Jan 11, 2023

Deletes the connection to a cloud service.

Operation Description

Usage notes

DeleteRouteServiceInCen is an asynchronous operation. After you send a request, the system returns the request ID but the operation is still being performed in the system background. You can call DescribeRouteServicesInCen to query the status of the connection to a cloud service.

  • If a cloud service is in the Deleting state, the connection to the cloud service is being deleted. You can query the connection but you cannot perform other operations.
  • If no connection to a cloud service can be found, the connection to the cloud service is deleted.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All resources is used in the Resource type column of the operation.
  • Condition keyword: refers to the condition keyword defined by the cloud product itself.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operate access level Resource type conditional keyword Association operation
cen:DeleteRouteServiceInCen WRITE
  • CEN
    acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}
    without
without

Request parameters

Parameter Type Required Description Example
CenId string Yes

The ID of the Cloud Enterprise Network (CEN) instance.

cen-7qthudw0ll6jmc****
Host string Yes

The IP addresses or CIDR blocks of the cloud service.

100.118.28.0/24
HostRegionId string Yes

The ID of the region in which the cloud service is deployed.

cn-hangzhou
AccessRegionId string Yes

The ID of the region in which the network instance of the cloud service that you want to access is deployed.

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

cn-hangzhou
HostVpcId string No

The ID of the virtual private cloud (VPC) that is associated with the cloud service.

vpc-bp1t36rn9l53iwbsf****

Response parameters

Parameter Type Description Example
object
RequestId string

The ID of the request.

2315DEB7-5E92-423A-91F7-4C1EC9AD97C3

Example

Normal return example

JSONFormat

{
  "RequestId": "2315DEB7-5E92-423A-91F7-4C1EC9AD97C3"
}

Error codes

Http code Error code Error message
400 InvalidOperation.CloudRouteNumberInvalid Cloud route number is invalid
403 InvalidOperation.CloudRouteStatusNotAllow Operation is prohibited because status of cloud route is invalid.

For a list of error codes, visit the API error center.