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

流控信息

当前云产品API请求速率暂未透出。

授权信息

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

具体说明如下:展开详情

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

请求参数

字段名称字段详情
RegionIdstring

地域 ID。

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

IPv6 地址所在的交换机的 ID。

示例值:vsw-asdfjlnaue4g****参考取值来源:
    CreateVSwitch
    DescribeVSwitches
    ListVSwitchCidrReservations
    GetVSwitchCidrReservationUsage
Ipv6Addressstring

指定要申请的 IPv6 地址。指定的 IPv6 地址必须是在所属交换机的地址段内的空闲地址。

示例值:2408:XXXX:153:3921:851c:c435:7b12:1c5f参考取值来源:
    DescribeIpv6Addresses
    AllocateIpv6InternetBandwidth
Ipv6AddressNamestring

IPv6 地址的实例名称。展开详情

示例值:ipv6-name参考取值来源:
    DescribeIpv6Addresses
Ipv6AddressDescriptionstring

IPv6 地址的实例描述。展开详情

示例值:ipv6-description
AddressTypestring

IPv6 地址的类型,取值:展开详情

示例值:IPv6Address参考取值来源:
    DescribeIpv6Addresses
ResourceGroupIdstring

资源组 ID。关于资源组的更多信息,请参见什么是资源组

示例值:rg-bp67acfmxazb4ph****
Tagarray<object>

资源的标签列表。

子级条数 <= 21
ClientTokenstring

客户端 Token,用于保证请求的幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。展开详情

示例值:02fb3da4-130e-11e9-8e44-0016e04****
DryRunboolean

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

示例值:false

返回参数

字段名称字段详情
Ipv6AddressIdstring

IPv6 地址的实例 ID。

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

IPv6 地址。

示例值:2408:XXXX:153:3921:851c:c435:7b12:1c5f
ResourceGroupIdstring

资源组 ID。

示例值:rg-acfmxazdjdhd****
RequestIdstring

请求 ID。

示例值:54B48E3D-DF70-471B-AA93-08E683A1B45

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
OperationFailed.IPv6AddressAlreadyAllocated
The operation is failed because of the ipv6 address specified was allocated.诊断
400
OperationFailed.AddressNotInVSwitchCidr
The operation is failed because of %s.诊断
400
IllegalParam.IpAddress
The param of %s is illegal.诊断
400
OperationFailed.IPv6Disabled
Operation failed because IPv6 is not enabled for the vSwitch.诊断
400
OperationFailed.IpPrefixMustInVSwitchCidrReservation
The specified ip prefix must in reserved segment the VSwitch.诊断
400
Forbidden.OperateShareResource
You cannot operate shared resources.诊断
400
QuotaExceeded.IPv6PrefixMask
The quota of specifed ipv6 prefix mask is exceeded.诊断
400
OperationUnsupported.Ipv6Feature
The IPv6 feature is not supported in the region.诊断
400
IllegalParam.Ipv6Prefix
The param of Ipv6Prefix is illegal.诊断
400
OperationFailed.ExistIPv6Used
The operation is failed because of some ipv6 in the ipv6 prefix is already in use.诊断
400
OperationUnsupported.UnboundIpv6PrefixFeature
The region does not support creating IPv6 prefix that are not bound to any resources.诊断
400
OperationUnsupported.UnboundIpv6Feature
The region does not support creating IPv6 addresses that are not bound to any resources.诊断
404
ResourceNotFound.VSwitch
The specified resource of %s is not found.诊断
404
ResourceNotFound.VSwitchCidrReservation
The dependent vswitch cidr reservation is not found.诊断

变更历史

变更时间变更内容概要操作
2024-08-08
变更错误码400
变更错误码404
2024-06-28
变更错误码400
新增请求参数AddressType

相关示例