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

接口说明

  • 调用该接口之前,请确保您已在具有 IPv6 网段的 VPC 中创建了支持 IPv6 地址的 ECS,具体操作,请参见搭建 IPv6 专有网络
  • AllocateIpv6InternetBandwidth 接口不支持并发购买同一个 IPv6 公网带宽。

流控信息

请求速率为300/60(s)。更多流控信息,请前往配额中心查看

授权信息

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

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:AllocateIpv6InternetBandwidth
Create
Ipv6InternetBandwidth
acs:vpc:{#regionId}:{#accountId}:ipv6bandwidth/*

请求参数

字段名称字段详情
RegionIdstring

IPv6 网关的地域 ID。您可以通过调用 DescribeRegions 接口获取地域 ID。

示例值:cn-huhehaote参考取值来源:
    DescribeRegions
Ipv6GatewayIdstring

IPv6 网关的 ID。

示例值:ipv6gw-uf6hcyzu65v98v3du****参考取值来源:
    CreateIpv6Gateway
    DescribeIpv6Gateways
Ipv6AddressIdstring

IPv6 地址的 ID。

示例值:ipv6-2zen5j4axcp5l5qyy****参考取值来源:
    AllocateIpv6Address
    DescribeIpv6Addresses
InternetChargeTypestring

IPv6 公网带宽的计费方式。取值:展开详情

示例值:PayByBandwidth
Bandwidthinteger<int32>

IPv6 地址的公网带宽。单位:Mbps。展开详情

示例值:200
ClientTokenstring

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

示例值:123e4567-e89b-12d3-a456-426655440000
DryRunboolean

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

示例值:false

返回参数

字段名称字段详情
Ipv6AddressIdstring

IPv6 地址的 ID。

示例值:ipv6-2zen5j4axcp5l5qyy****
RequestIdstring

请求 ID。

示例值:6972A26E-99B1-4367-9890-FBDEBB0F5E7D
InternetBandwidthIdstring

开通公网带宽后,要查询的 IPv6 网关对应的公网带宽实例 ID。

示例值:ipv6bw-uf6hcyzu65v98v3du****

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
IllegalParam.Bandwidth
The param of %s is illegal.诊断
400
MissingParam.Ipv6InstanceId
The param of Ipv6InstanceId is missing.诊断
400
InvalidIpv6Instance.NotFound
The specified Ipv6AddressId or Ipv6InternetBandwidthId is not found.诊断
400
IllegalParam.ChargeType
The param of %s is illegal.诊断
400
IllegalParam.InternetChargeType
The param of %s is illegal.诊断
400
OperationUnsupported.PrePaid
%s is unsupported.诊断
400
OperationFailed.Ipv6GatewayDisMatchIpv6Address
The operation is failed because of %s.诊断
400
OperationFailed.InternetBandwidthAlreadyExisted
The operation is failed because of %s.诊断
400
OperationFailed.Ipv6GatewayNotExist
The operation is failed because of %s.诊断
400
IncorrectStatus.Ipv6Instance
The status of %s [%s] is incorrect.诊断
400
IllegalParam.Ipv6Address
The param of %s is illegal.诊断
400
UnsupportedFeature.InternetChargeTypeOnFreeIpv6Address
The feature of %s is not supported.诊断
400
UnsupportedFeature.InternetChargeTypeOnStaticIsp
The feature of %s is not supported.诊断
400
OperationUnsupported.ULA
%s is unsupported.诊断
400
OperationFailed.OpenCdtServiceFirst
The operation is failed because of %s.诊断
404
InvalidRegionId.NotFound
The specified RegionId does not exist in our records.诊断
404
ResourceNotFound.Ipv6Address
The specified resource of %s is not found.诊断
500
OperationFailed.QueryAccountInfo
Query account info failed when create order.诊断
500
OperationFailed.SaleValidate
Validate sale condition with subArticle failed.诊断
500
SystemBusy
The system is busy. Please try again later.诊断

变更历史

变更时间变更内容概要操作
2024-07-24
新增请求参数DryRun
2023-12-08
变更错误码500
2023-08-30
变更错误码500
2023-08-03
变更错误码400
新增错误码500

相关示例

开启ipv6带宽->为ipv6带宽创建仅主动出规则
2021-12-17
分配ipv6带宽->删除ipv6带宽
2021-12-17
创建ipv6网关->为ipv6地址开启ipv6带宽
2021-12-17