调用ModifyRouteEntry修改自定义路由条目的名称和描述。

使用说明

ModifyRouteEntry接口不支持并发修改同一个自定义路由条目的名称和描述。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
RegionId String cn-hangzhou

路由条目所在的地域ID。

您可以通过调用DescribeRegions接口获取地域ID。

RouteEntryName String EntryName

路由条目的名称。

名称长度为1~128个字符,不能以http://https://开头。

RouteEntryId String rte-acfvgfsghfdd****

自定义路由条目ID。

Description String EntryDescription

路由条目的描述。

描述长度为1~256个字符,不能以http://https://开头。

Action String ModifyRouteEntry

系统规定参数。取值:ModifyRouteEntry

返回数据

名称 类型 示例值 描述
RequestId String 861E6630-AEC0-4B2D-B214-6CB5E44B7F04

请求ID。

示例

请求示例

http(s)://[Endpoint]/?RegionId=cn-hangzhou
&RouteEntryName=EntryName
&RouteEntryId=rte-acfvgfsghfdd****
&Description=EntryDescription
&Action=ModifyRouteEntry
&公共请求参数

正常返回示例

XML格式

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

<ModifyRouteEntryResponse>
    <RequestId>861E6630-AEC0-4B2D-B214-6CB5E44B7F04</RequestId>
</ModifyRouteEntryResponse>

JSON格式

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

{
  "RequestId" : "861E6630-AEC0-4B2D-B214-6CB5E44B7F04"
}

错误码

HttpCode 错误码 错误信息 描述
400 InvalidRouteEntryId.NotFound Specified RouteEntryId does not exist. 指定的路由条目未找到
400 InvalidRouteEntryName.Malformed Specified RouteEntry name is not valid. 无法修改,因为指定的路由条目名称无效
400 InvalidRouteEntryId.NotFound The specified routeEntry does not exist. 指定的路由条目不存在。
400 OperationDenied.ModifyManagedRouteEntry The operation is not allowed because of route entry is managed. 无法修改被托管的路由。
403 Forbbiden User not authorized to operate on the specified resource. 您没有权限操作该资源,请您申请操作权限后再试。

访问错误中心查看更多错误码。