调用ModifyVpcPeerConnection接口修改VPC对等连接实例的名称或者描述信息。
接口说明
-
ModifyVpcPeerConnection 接口属于异步接口,即系统会先返回一个 RequestId,但该 VPC 对等连接实例并未修改完成,系统后台的修改任务仍在进行。您可以调用 GetVpcPeerConnectionAttribute 查询 VPC 对等连接实例的状态。
当 VPC 对等连接实例处于 Updating 状态时,表示正在修改中。
当 VPC 对等连接实例处于 Activated 状态时,表示修改完成。
-
ModifyVpcPeerConnection 接口不支持并发修改同一个 VPC 对等连接实例的名称和描述信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
vpc:ModifyVpcPeerConnection |
update |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
InstanceId |
string |
是 |
需要修改名称或者描述信息的 VPC 对等连接实例 ID。 |
pcc-lnk0m24khwvtkm**** |
Name |
string |
否 |
需要修改的 VPC 对等连接的名称,即修改后的名称。 名称长度为 1~128 个字符,不能以 |
vpcpeername |
Description |
string |
否 |
需要修改的 VPC 对等连接的描述信息,即修改后的描述信息。 描述长度为 1~256 个字符,不能以 |
newdescription |
Bandwidth |
integer |
否 |
需要修改的 VPC 对等连接的带宽,单位:Mbps,取值范围为大于 0 的整数。 |
100 |
DryRun |
boolean |
否 |
是否只预检此次请求。取值:
|
false |
ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。 |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
LinkType |
string |
否 |
链路类型。 可选值为 Platinum(铂金),Gold(金),默认为 Gold(金)。 说明
如需指定该参数,请确保您创建的是跨地域的对等连接。 |
Gold |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
RpcResponse |
||
RequestId |
string |
请求 ID。 |
880C99E1-449B-524A-B81F-1EC53D2A7EAC |
示例
正常返回示例
JSON
格式
{
"RequestId": "880C99E1-449B-524A-B81F-1EC53D2A7EAC"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | ResourceNotFound.InstanceId | The specified resource of %s is not found. | 未找到指定实例 |
400 | IncorrectStatus.VpcPeer | The status of %s [%s] is incorrect. | 对等连接实例状态不符合要求,该状态下对对连接实例不能被接收。 |
400 | IncorrectBusinessStatus.VpcPeer | The business status of %s [%s] is incorrect. | 当前实例状态异常,不允许进行当前操作 |
400 | OperationFailed.BandwidthCannotBeChangedInSameRegion | The operation failed because the bandwidth cannot be changed in the same region. | 操作失败,因为同地域的VpcPeer实例不允许修改带宽值。 |
400 | QuotaExceeded.Bandwidth | The quota of bandwidth is exceeded. | 传入的带宽值非法 |
400 | OperationFailed.InterRegionLinkTypeNotSupported | The same region not supported link type feature. | 同地域不支持链路类型特性 |
400 | OperationFailed.RegionIdNotSupportLinkType | The feature link type is not supported in the region. | 地域不支持该特性金银铜设置 |
400 | OperationFailed.SpecificLinkTypeNotSupported | The operation failed because the special link type of user is not opened. | 该账号不支持特殊链路类型 |
400 | OperationDenied.ServiceManagedInstance | Operation is denied because the specified instance belongs to service manager. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。