AttachDhcpOptionsSetToVpc_专有网络_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.

接口说明

  • AttachDhcpOptionsSetToVpc 接口属于异步接口,即系统返回一个请求 ID,但该 DHCP 选项集尚未关联到 VPC,系统后台的关联任务仍在进行。您可以调用 DescribeVpcAttribute 查询 DHCP 选项集的关联状态:
    • 当 DHCP 选项集处于 Pending 状态时,表示 DHCP 选项集正在关联中。
    • 当 DHCP 选项集处于 InUse 状态时,表示 DHCP 选项集关联成功。
  • AttachDhcpOptionsSetToVpc 接口不支持在同一个 VPC 下并发关联 DHCP 选项集。

流控信息

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

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
RegionIdstring

DHCP 选项集所在的地域。您可以通过调用 DescribeRegions 接口获取地域 ID。

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
DhcpOptionsSetIdstring

DHCP 选项集的 ID。

示例值:dopt-o6w0df4epg9zo8isy****参考取值来源:
    ListDhcpOptionsSets
    CreateDhcpOptionsSet
VpcIdstring

DHCP 选项集关联的 VPC 的 ID。

示例值:vpc-sfdkfdjkdf****参考取值来源:
    CreateVpc
ClientTokenstring

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

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

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

示例值:false

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:0ED8D006-F706-4D23-88ED-E11ED28DCAC0

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Forbidden.OperateShareResource
You cannot operate shared resources.诊断
400
InvalidDhcpOptionsSetId.NotFound
The specified dhcpOptionsSetId does not exist.诊断
400
IncorrectStatus.DhcpOptionsSet
The DhcpOptionsSet status does not support this operation.诊断
400
InvalidVpcId.NotFound
Specified value of VpcId is not found in our record.诊断
400
IncorrectStatus.VpcDhcpOptionsSet
The dhcpOptionsSet status of VPC does not support this operation.诊断
400
OperationFailed.AttachmentExist
The current VPC is already attached to a DHCP options set.诊断
400
QuotaExceeded.AttachVpcNumber
The maximum number of VPCs that can be attached to a DHCP options set is exceeded.诊断
400
TaskConflict
The operation is too frequent. Please wait a moment and try again.诊断
404
InvalidRegionId.NotFound
The specified RegionId does not exist.诊断

变更历史

暂无变更历史

相关示例

创建Dhcp选项集 --> 修改Dhcp选项集 --> 查询Dhcp选项集 --> 绑定Dhcp选项集
2021-12-15