AssignPrivateIpAddress
Applies for a private secondary IP address for the current LNI. You can also call this operation to assign a secondary MAC address to the current LNI.
Operation description
Apply for secondary private IP addresses
-
By default, each network interface controller can apply for three secondary private IP addresses. If the quota is exceeded, contact the administrator.
-
The secondary private IP address is allocated from the Lingjun subnet to which the current network interface controller belongs. The first address and the last two addresses belong to reserved addresses and do not participate in the allocation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:AssignPrivateIpAddress |
create |
*PrivateIpAddress
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-wulanchabu |
| NetworkInterfaceId |
string |
Yes |
The ID of the network interface controller. |
lni-bp18exxqa2rvfn45e5pz |
| SubnetId |
string |
Yes |
It belongs to the Lingjun subnet. |
subnet-f3zfzmnc |
| PrivateIpAddress |
string |
No |
The secondary private IP address. |
10.0.6.194 |
| Description |
string |
No |
The description of the variable. |
test测试 |
| AssignMac |
boolean |
No |
Specifies whether to assign a mac address. |
true |
| SkipConfig |
boolean |
No |
The default value is false. If you set the value to true, the secondary private IP address application process can be accelerated. Note
For more information, submit a ticket. |
false |
| ClientToken |
string |
No |
By default, popApi is not ignored and idempotent |
3fd79d62-ab1d-11ec-9a53-0242ac110004 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response entity object. |
||
| Code |
integer |
The response status code. |
0 |
| Message |
string |
The error message. (If the instance is in the Exception state, the exception cause is prompted.) |
success |
| RequestId |
string |
The request ID. |
AC8C713A-A9F4-5984-A5E1-76496DF35153 |
| Content |
object |
The response data. |
|
| NetworkInterfaceId |
string |
Lingjun network interface controller ID. |
lni-bp18exxqa2rvfn45e5pz |
| IpName |
string |
The unique IP identifier. |
sip-8exxqa2r |
| AccessDeniedDetail |
string |
The detailed reason why the access was denied. |
None |
Examples
Success response
JSON format
{
"Code": 0,
"Message": "success",
"RequestId": "AC8C713A-A9F4-5984-A5E1-76496DF35153",
"Content": {
"NetworkInterfaceId": "lni-bp18exxqa2rvfn45e5pz",
"IpName": "sip-8exxqa2r"
},
"AccessDeniedDetail": "None"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.