修改IPAM作用范围的基本信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:UpdateIpamScope |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
IPAM 托管地域 ID。您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| IpamScopeId |
string |
是 |
IPAM 作用范围实例 ID。 |
ipam-scope-glfmcyldpm8lsy**** |
| IpamScopeName |
string |
否 |
要修改的 IPAM 作用范围的名称。 长度为 1~128 个字符,不能以 |
test |
| IpamScopeDescription |
string |
否 |
要修改的 IPAM 作用范围的描述信息。 长度为 1~256 个字符,必须以英文大小写字母开头,但不能以 |
test description |
| VSwitchConflictDetection |
boolean |
否 |
是否开启自定义 Scope 内 VSwitch Cidr 冲突检测功能。 |
false |
| DryRun |
boolean |
否 |
是否只预检此次请求。取值:
|
false |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。 |
123e4567-e89b-12d3-a456-426655440000 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回的信息列表。 |
||
| RequestId |
string |
请求 ID。 |
BA8054F5-852A-570A-ACFF-BCA63E0B02D5 |
示例
正常返回示例
JSON格式
{
"RequestId": "BA8054F5-852A-570A-ACFF-BCA63E0B02D5"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ResourceNotFound.IpamScope | The specified resource of IPAM scope is not found. | 输入的IPAM作用范围不存在。 |
| 400 | IncorrectStatus.IpamScope | The status of the IPAM scope is incorrect. | IPAM作用范围的状态不正确。 |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | DryRun校验通过。 |
| 400 | UnsupportedFeature.ScopeConflictDetection | The VSwitch CIDR conflict detection feature is not enabled for your account. | 当前账号未开通交换机网段冲突检测功能。 |
| 400 | OperationDenied.PublicScopeConflictDetection | The VSwitch CIDR conflict detection feature is not supported for a public IPAM scope. | 公网类型的IPAM Scope不支持开启交换机网段冲突检测功能。 |
| 400 | OperationDenied.DefaultScopeConflictDetection | The VSwitch CIDR conflict detection feature is not supported for the default IPAM scope. | 默认IPAM Scope不支持开启交换机网段冲突检测功能。 |
| 400 | OperationDenied.ConflictDetectionNotChanged | The operation is not allowed because the specified VSwitchConflictDetection value is the same as the current value. | 指定的交换机冲突检测开关值与当前值相同,无需修改。 |
| 400 | OperationDenied.VSwitchInReservedState | The operation is not allowed because there are VSwitch CIDR blocks in the Reserved state within the IPAM scope. | IPAM Scope内仍存在处于Reserved状态的交换机网段,无法执行该操作。 |
| 400 | OperationDenied.IpamScopeInMiddleStatus | The operation is not allowed because the IPAM scope is in an intermediate state. Please try again later. | IPAM Scope处于中间状态,暂不允许该操作,请稍后重试。 |
| 400 | QuotaExceeded.IpamVpcCidrPerConflictDetectionScope | The number of IPv4 VPC CIDRs per conflict detection scope exceeds the quota (%s/%s). | 单个冲突检测Scope下的IPv4 VPC网段数量超出配额(已用%s/上限%s)。 |
| 400 | QuotaExceeded.IpamVSwitchCidrPerConflictDetectionScope | The number of IPv4 VSwitch CIDRs per conflict detection scope exceeds the quota (%s/%s). | 单个冲突检测Scope下的IPv4 交换机网段数量超出配额(已用%s/上限%s)。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。