GetLniPrivateIpAddress

Updated at:

Queries the details of a secondary private IP address.

Operation description

Queries the details of a secondary private IP address of a Lingjun network interface.

A Lingjun network interface (LNI) is a system network interface that comes with a Lingjun node. You cannot create an LNI by calling an API. You can call the ListNetworkInterfaces operation to query existing LNIs within the current account.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eflo:GetLniPrivateIpAddress

get

*PrivateIpAddress

acs:eflo:{#regionId}:{#accountId}:NetworkInterface/{#NetworkInterfaceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-wulanchabu

NetworkInterfaceId

string

Yes

The ID of the Lingjun network interface.

lni-bp18exxqa2rvfn45e5pz

IpName

string

Yes

The unique identifier of the IP address.

sip-xxxxx

Response elements

Element

Type

Description

Example

object

The response information.

Code

integer

The status code returned by the system.

0

Message

string

The error message, which indicates the cause of the exception when the instance status is abnormal.

Success

RequestId

string

The ID of the request, which is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues.

DBAD15D6-3F47-5B36-8A92-57C2919D13D0

Content

object

The response content.

RegionId

string

The region ID.

cn-wulanchabu

GmtCreate

string

The creation time.

2022-12-26 20:16:36

NetworkInterfaceId

string

The ID of the Lingjun network interface.

lni-2ze4uww7n6hsfzrwq77y

IpName

string

The unique identifier of the IP address.

sip-xxxxx

PrivateIpAddress

string

The secondary private IP address of the Lingjun network interface.

10.42.5.92

IpAddressMac

string

The MAC address of the secondary private IP address.

00-ff-84-15-ba-67

Status

string

The instance status.

Available

Description

string

The description.

test

Message

string

The error message, which indicates the cause of the exception when the instance status is abnormal.

Success

SubnetId

string

The instance ID of the Lingjun subnet.

subnet-aj93mko8

ResourceGroupId

string

The instance ID of the resource group.

rg-aek2l4sq6l7unhi

AccessDeniedDetail

string

The detailed reasons for access denial.

None

Examples

Success response

JSON format

{
  "Code": 0,
  "Message": "Succeeded",
  "RequestId": "DBAD15D6-3F47-5B36-8A92-57C2919D13D0",
  "Content": {
    "RegionId": "cn-wulanchabu",
    "GmtCreate": "2022-12-26 20:16:36",
    "NetworkInterfaceId": "lni-2ze4uww7n6hsfzrwq77y",
    "IpName": "sip-xxxxx",
    "PrivateIpAddress": "10.42.5.92",
    "IpAddressMac": "00-ff-84-15-ba-67",
    "Status": "Available",
    "Description": "Test",
    "Message": "You don't have the permission of this operation, action=eflo:ListVpdRouteEntries, arn=acs:eflo:cn-wulanchabu:1263399219805497:vpd_rte/*, resourceGroup=null",
    "SubnetId": "subnet-aj93mko8",
    "ResourceGroupId": "rg-aek2l4sq6l7unhi"
  },
  "AccessDeniedDetail": "None"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.