AssignLeniPrivateIpAddress
Assign a secondary private IP address to the specified Lingjun Elastic Network Interface (ENI). You can optionally let the system auto-assign the IP address.
Operation description
Assign a secondary private IP address to the specified Lingjun Elastic Network Interface (ENI).
-
If the PrivateIp field is empty, the system automatically assigns a secondary private IP address and returns its unique identifier.
-
You can use the GetLeniPrivateIpAddress or ListLeniPrivateIpAddresses API operations to verify whether the secondary private IP address was assigned successfully.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:AssignLeniPrivateIpAddress |
update |
*ElasticNetworkInterface
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-wulanchabu |
| PrivateIpAddress |
string |
No |
The secondary private IP address for the Lingjun ENI. If not specified, the system auto-assigns one. |
10.0.**** |
| ElasticNetworkInterfaceId |
string |
Yes |
The Lingjun ENI ID. |
leni-1234**** |
| Description |
string |
No |
A description. |
Description |
| ClientToken |
string |
No |
An idempotency token. |
3fd79d62-ab1d-11ec-9a53-0242ac110004 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| Code |
integer |
The status code. |
0 |
| Message |
string |
The response message. |
Success |
| RequestId |
string |
The request ID. |
A88DFED5-24B7-5A3E-87DE-380BF06F3C90 |
| Content |
object |
The response content. |
|
| IpName |
string |
The unique identifier of the secondary private IP address for the Lingjun ENI. |
sip-lzwx**** |
| ElasticNetworkInterfaceId |
string |
The Lingjun ENI ID. |
leni-1234**** |
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
Examples
Success response
JSON format
{
"Code": 0,
"Message": "Success",
"RequestId": "A88DFED5-24B7-5A3E-87DE-380BF06F3C90",
"Content": {
"IpName": "sip-lzwx****",
"ElasticNetworkInterfaceId": "leni-1234****"
},
"AccessDeniedDetail": "None"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.