All Products
Search
Document Center

ENS:DescribeEnsEipAddresses

Last Updated:Dec 23, 2025

Queries elastic IP addresses (EIPs).

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ens:DescribeEnsEipAddresseslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AllocationIdstringNo

The ID of the EIP that you want to query. You can specify up to 50 EIP IDs. Separate multiple IDs with commas (,).

eip-5q9uwkd9bznjpxz8hr6cirnjk
EipAddressstringNo

The EIP that you want to query. You can specify up to 50 EIPs. Separate multiple EIPs with commas (,).

192.168.0.1
AssociatedInstanceIdstringNo

The ID of the instance with which you want to associate the EIP.

lb-5t18quoohsrc3xkf86spmnu77
AssociatedInstanceTypestringNo

The type of the instance that is associated with the EIP. Valid values:

  • EnsInstance: ENS instance in a VPC
  • SlbInstance: SLB instance
SlbInstance
EnsRegionIdstringNo

The ID of the Edge Node Service (ENS) node.

cn-chengdu-telecom
EipNamestringNo

The name of the EIP.

test
StandbystringNo

Specifies whether the EIP is a secondary EIP. Valid values:

  • true
  • false
true
EnsRegionIdsarrayNo

The IDs of edge nodes. You can specify 1 to 100 IDs.

stringNo

The ID of the edge node.

cn-chengdu-telecom-4
PageNumberintegerNo

The page number. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Maximum value: 100. Default value: 10.

50

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

8629F679-B51D-4194-A1CC-5D8F504C362B
EipAddressesobject

Details of the EIPs.

[\"106.14.194.193\"]
PageNumberinteger

The page number. Valid values: an integer that is greater than 0. Default value: 1.

1
PageSizeinteger

The number of entries per page. Default value: 10. Valid values: 10 to 100.

50
TotalCountinteger

The total number of entries returned.

7

Examples

Sample success responses

JSONformat

{
  "RequestId": "8629F679-B51D-4194-A1CC-5D8F504C362B",
  "EipAddresses": {
    "test": "test",
    "test2": 1
  },
  "PageNumber": 1,
  "PageSize": 50,
  "TotalCount": 7
}

Error codes

HTTP status codeError codeError message
400ens.interface.errorFailed to call API.
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-18The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details
2023-03-02The Error code has changed. The request parameters of the API has changedView Change Details