调用DeleteTransitRouter接口,删除指定的中转路由器实例。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteTransitRouter | 要执行的操作,取值为DeleteTransitRouter。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
TransitRouterId | String | 是 | tr-7qthudw0ll6jmc**** | 中转路由器实例的ID。您可以调用DescribeTransitRouters接口获取中转路由器实例ID。 |
本接口无特有的返回参数。更多信息请见返回结构。
GET /?Action=DeleteTransitRouter&Version=2020-04-01&TransitRouterId=tr-7qthudw0ll6jmc**** HTTP/1.1 Host: open.volcengineapi.com Service: transitrouter Region: cn-guangzhou
{ "ResponseMetadata": { "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****", "Action": "DeleteTransitRouter", "Version": "2020-04-01", "Service": "transitrouter", "Region": "cn-guangzhou" }, "Result": {} }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidTransitRouter.DefaultRouteTableWithRouteEntry | The specified Transit Router has route entries in its system route table, and cannot be deleted. | 指定的中转路由器的系统路由表中存在自定义路由,无法删除。 |
400 | InvalidTransitRouter.InvalidStatus | The specified Transit Router is not in the correct status for the request. | 指定的中转路由器所处状态无法响应该请求。 |
400 | InvalidTransitRouter.WithAttachment | The specified Transit Router has attachments, and cannot be deleted. | 指定的中转路由器包含网络实例,无法删除。 |
400 | InvalidTransitRouter.WithCustomizedRouteTable | The specified Transit Router has customized route tables, and cannot be deleted. | 指定的中转路由器存在自定义路由表,无法删除。 |
400 | InvalidTransitRouter.WithGrantRule | The specified Transit Router has grant rules and cannot be deleted. | 指定的中转路由器存在授权规则,无法删除。 |
400 | InvalidTransitRouter.WithRoutePolicy | The specified Transit Router has route policies, and cannot be deleted. | 指定的中转路由器包含路由策略,无法删除。 |
400 | InvalidTransitRouter.WithForwardPolicyTable | The specified Transit Router has forward policy tables, and cannot be deleted. | 指定的中转路由器存在转发策略,无法删除。 |
400 | InvalidTransitRouter.WithTrafficQosMarkingPolicy | The specified Transit Router has traffic qos marking policies, and cannot be deleted. | 指定的中转路由器包含流标记策略,无法删除。 |
400 | InvalidTransitRouter.WithTrafficQosQueuePolicy | The specified Transit Router has traffic qos queue policies, and cannot be deleted. | 指定的中转路由器包含流队列策略,无法删除。 |
403 | Forbidden.NoPermissionToOperate | You are not authorized to operate the specified resource. | 无权限操作指定的资源。 |
404 | InvalidTransitRouter.NotFound | The specified Transit Router does not exist. | 指定的中转路由器不存在。 |