在实例已绑定辅网卡的前提下,为辅网卡分配辅助私网IP。
名称 | 类型 | 是否可缺省 | 描述 |
---|---|---|---|
Action | String | 否 | 系统规定参数。取值:AssignPrivateIpAddress |
NetworkInterfaceId | String | 否 | 弹性网卡ID |
PrivateIpAddress.N | String | 是 | 私有IP地址 |
SecondaryPrivateIpAddressCount | Integer | 是 | 指定私有IP地址数量,自动从交换机的空闲IP地址中分配IP地址 |
名称 | 类型 | 描述 |
---|---|---|
RequestId | String | 请求ID |
NetworkInterface | 网络接口类型 | 网卡的信息 |
http://vpc.cn-guangzhou-1.api.ksyun.com/?
Action=AssignPrivateIpAddress
&Version=2016-03-04
&NetworkInterfaceId=9fb88b7d-3b86-4f98-bf2f-325dd7b239c8
&PrivateIpAddress.1=10.7.0.27
&PrivateIpAddress.1=10.7.0.78
{
"RequestId": "02b686d9-baa5-4821-aa43-f2c6a7011a62",
"NetworkInterface": {
"SecurityGroupSet": [
{
"SecurityGroupId": "c94bad58-9b72-4b15-b087-1c7902f5cf8c",
"SecurityGroupName": "Ksc_SG"
}
],
"Ipv6PublicIpAddressSet": [],
"Ipv6Public": false,
"NetworkInterfaceName": "test___12",
"VpcId": "4669cb54-f70b-488b-9c9b-f91f837df38d",
"VpcName": "test_dns",
"SubnetId": "aa3676e3-ecb6-4b08-8d64-0712e0c663a4",
"SubnetName": "test_a_2",
"SecurityGroupId": "c94bad58-9b72-4b15-b087-1c7902f5cf8c",
"SecurityGroupName": "Ksc_SG",
"InstanceId": "3ba90ef5-43ee-4f3e-9af9-8e8acd0980bc",
"PrivateIpAddress": "10.22.23.26",
"InstanceType": "kec",
"DNS2": "198.18.254.31",
"DNS1": "198.18.254.30",
"NetworkInterfaceType": "extension",
"MacAddress": "fa:16:3e:65:7d:9f",
"NetworkInterfaceId": "341310f3-7291-4da3-87d2-e3d8c31ecebe",
"CreateTime": "2021-11-04 17:23:35",
"AvailabilityZoneName": "cn-beijing-6a",
"AssignedPrivateIpAddressSet": [
{
"PrivateIpAddress": "10.22.23.103"
},
{
"PrivateIpAddress": "10.22.23.3"
},
{
"PrivateIpAddress": "10.22.23.35"
},
{
"PrivateIpAddress": "10.22.23.121"
}
]
}
}
文档内容是否对您有帮助?
评价建议不能为空
非常感谢您的反馈,我们会继续努力做到更好!