ModifyVpcPeerConnection_VPC对等连接_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

  • ModifyVpcPeerConnection 接口属于异步接口,即系统会先返回一个 RequestId,但该 VPC 对等连接实例并未修改完成,系统后台的修改任务仍在进行。您可以调用 GetVpcPeerConnectionAttribute 查询 VPC 对等连接实例的状态。

    • 当 VPC 对等连接实例处于 Updating 状态时,表示正在修改中。
    • 当 VPC 对等连接实例处于 Activated 状态时,表示修改完成。
  • ModifyVpcPeerConnection 接口不支持并发修改同一个 VPC 对等连接实例的名称和描述信息。

流控信息

请求速率为360/60(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:ModifyVpcPeerConnection
Update
全部资源
*

请求参数

字段名称字段详情
InstanceIdstring

需要修改名称或者描述信息的 VPC 对等连接实例 ID。

示例值:pcc-lnk0m24khwvtkm****
Namestring

需要修改的 VPC 对等连接的名称,即修改后的名称。展开详情

示例值:vpcpeername
Descriptionstring

需要修改的 VPC 对等连接的描述信息,即修改后的描述信息。展开详情

示例值:newdescription
Bandwidthinteger<int32>

需要修改的 VPC 对等连接的带宽,单位:Mbps,取值范围为大于 0 的整数。

示例值:100
DryRunboolean

是否只预检此次请求。取值:展开详情

示例值:false
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:0c593ea1-3bea-11e9-b96b-88e9fe637760
LinkTypestring

链路类型。展开详情

示例值:Gold

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:880C99E1-449B-524A-B81F-1EC53D2A7EAC

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
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.诊断
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.诊断

变更历史

变更时间变更内容概要操作
2024-12-04
变更错误码400
新增请求参数LinkType
2023-07-25
变更错误码400
2022-07-05
新增请求参数Bandwidth
2022-07-05
变更错误码400
2022-04-14
变更返回参数
  • 1
  • 2
  • 10 条/页

相关示例