Modifies the name and description of a custom route entry.

Usage notes

You cannot repeatedly call the ModifyRouteEntry operation to modify the name and description of a custom route within the specified period of time.

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
RegionId String Yes cn-hangzhou

The ID of the region to which the route belongs.

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

RouteEntryName String No EntryName

The name of the route entry.

The name must be 1 to 128 characters in length, and cannot start with http:// or https://.

RouteEntryId String Yes rte-acfvgfsghfdd****

The ID of the custom route entry.

Description String No EntryDescription

The description of the route entry.

The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

Action String Yes ModifyRouteEntry

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

Response parameters

Parameter Type Example Description
RequestId String 861E6630-AEC0-4B2D-B214-6CB5E44B7F04

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?RegionId=cn-hangzhou
&RouteEntryName=EntryName
&RouteEntryId=rte-acfvgfsghfdd****
&Description=EntryDescription
&Action=ModifyRouteEntry
&Common request parameters

Sample responses

XML format

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

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

JSON format

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

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

Error codes

HttpCode Error code Error message Description
400 InvalidRouteEntryId.NotFound Specified RouteEntryId does not exist. The error message returned because the specified route entry does not exist.
400 InvalidRouteEntryName.Malformed Specified RouteEntry name is not valid. The error message returned because the name of the route entry is invalid.
400 InvalidRouteEntryId.NotFound The specified routeEntry does not exist. The error message returned because the specified route entry does not exist.
400 OperationDenied.ModifyManagedRouteEntry The operation is not allowed because of route entry is managed. The error message returned because managed route entries cannot be modified.
403 Forbbiden User not authorized to operate on the specified resource. The error message returned because you are unauthorized to perform this operation on the specified resource. Apply for the required permissions and try again.

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