最近更新时间:2024.04.22 17:46:23
首次发布时间:2023.05.09 08:46:44
调用 ModifyCenServiceRouteEntryAttributes 接口,修改指定的云服务访问路由的描述或发布范围。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyCenServiceRouteEntryAttributes | 要执行的操作,取值为ModifyCenServiceRouteEntryAttributes。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
CenId | String | 是 | cen-2nim00ybaylts7trquyzt**** | 云企业网实例的ID。您可以调用DescribeCens接口获取云企业网实例ID。 |
DestinationCidrBlock | String | 是 | 100.XX.XX.0/24 | 云服务部署的地址,必须属于100.64.0.0/10 或fd00:64::/32 网段。 |
ServiceRegionId | String | 是 | cn-beijing | 云服务所属的地域。 |
Description | String | 否 | test-service-route | 云服务访问的描述信息。
|
PublishMode | String | 否 | LocalDCGW | 云服务路由的发布范围。
|
PublishToInstances.N.InstanceRegionId | String | 否 | PublishToInstances.1.InstanceRegionId=cn-guangzhou&PublishToInstances.2.InstanceRegionId=cn-beijing | 云服务路由需要发布的地域。 |
PublishToInstances.N.InstanceType | String | 否 | PublishToInstances.1.InstanceType=VPC&PublishToInstances.2.InstanceType=VPC | 云服务访问路由需要发布的网络实例类型。取值如下:
|
PublishToInstances.N.InstanceId | String | 否 | PublishToInstances.1.InstanceId=vpc-7qthudw0ll6jmc****&PublishToInstances.2.InstanceId=vpc-uf6o8d1dj8sjwxi6o**** | 云服务访问路由需要发布的网络实例ID。
|
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 20211222122528010225**** | 请求ID。 |
GET /?Action=ModifyCenServiceRouteEntryAttributes&Version=2020-04-01&CenId=cen-2nim00ybaylts7trquyzt****&DestinationCidrBlock=100.XX.XX.0/24&ServiceRegionId=cn-beijing HTTP/1.1 Host: open.volcengineapi.com Service: cen Region: cn-beijing
{ "ResponseMetadata": { "RequestId": "20211222122528010225****", "Action": "ModifyCenServiceRouteEntryAttributes", "Version": "2020-04-01", "Service": "cen", "Region": "cn-beijing" }, "Result": {} }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidCidr.Malformed | The specified cidr block is malformed. | 指定的网段格式不合法。 |
400 | InvalidDescription.Malformed | The specified description is malformed. | 指定的描述格式不合法,请修复描述格式后重试。 |
400 | InvalidDescription.Malformed | The specified description is malformed. Ensure the maximum length of description is 255. | 指定的描述格式不合法,描述长度不能超过255个字符。 |
400 | InvalidServiceRouteEntry.NotFound | The specified service route entry does not exist. | 指定的云服务访问路由不存在。 |
400 | InvalidServiceRoute.PublishInstanceDuplicated | The specified publish instance is specified more than once in the request. | 指定的发布实例存在重复。 |
403 | Forbidden.CreateServiceRoute | You are not authorized to perform operations on the service route. | 无权限对指定资源进行操作, 请开通云服务访问的白名单。 |
404 | InvalidServiceRoute.PublishInstanceNotFound | The specified publish instance does not exist. | 指定的发布实例不存在。 |
409 | InvalidCen.InvalidStatus | The specified CEN instance is not in the correct status for the request. | 指定的云企业网实例所处的状态无法响应该请求,请稍后再试。 |
409 | InvalidServiceRouteEntry.InvalidStatus | The specified CEN service route is not in the correct status for the request. | 指定的云服务路由所处的状态无法响应该请求,请稍后再试。 |