ListEndpoints

Updated at:

Queries a list of VPC endpoints created on the Elasticsearch Serverless platform.

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

es-serverless:ListEndpoint

list

*All Resource

*

None None

Request syntax

GET /openapi/es-serverless/endpoints HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

type

string

Yes

The endpoint type. Default value: VPC.

VPC

pageNumber

integer

No

The page number. Default value: 1.

1

pageSize

integer

No

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

10

vpcId

string

No

The ID of the VPC.

vpc-bp1212sb7cj2j4e6x****

resourceId

string

No

The resource ID. For VPC-type resources, the resource ID corresponds to the PrivateLink instance ID.

ep-bp1id41dd116e52e****

Response elements

Element

Type

Description

Example

object

The response body structure.

requestId

string

The request ID.

D6030CE6-9FEB-5B2F-84AC-3ADE3CBA89E5

result

array<object>

The returned results.

array<object>

The returned results.

endpointId

string

The endpoint ID.

essep-2f46b743f60****

resourceId

string

The resource ID. For VPC-type resources, the resource ID corresponds to the PrivateLink instance ID.

ep-bp1id41dd116e52e****

vpcId

string

The ID of the VPC.

vpc-uf6gykvwcirp886ef****

status

string

The status of the endpoint. Valid values:

  • Creating: The endpoint is being created.

  • Active: The endpoint is available.

  • Pending: The endpoint is being modified.

  • Deleting: The endpoint is being deleted.

Active

connectionStatus

string

Endpoint connection status of the endpoint. Valid values:

  • Pending: Endpoint connection is being modified.

  • Connecting: The endpoint is connecting.

  • Connected: The endpoint is connected.

  • Disconnecting: The endpoint is disconnecting.

  • Disconnected: The endpoint is disconnected.

  • Deleting: Endpoint connection is being deleted.

  • ServiceDeleted: The service associated with the endpoint has been deleted.

Pending

type

string

The endpoint type. Default value: VPC.

VPC

created

integer

The creation timestamp, in seconds.

1701259721

updated

integer

The update timestamp, in seconds.

1701259721

name

string

The name of the endpoint.

test

endpointZones

array<object>

The list of zone information.

object

The zone information.

zoneId

string

The zone ID.

cn-hangzhou-k

vSwitchId

string

The ID of the vSwitch. The zone where the vSwitch resides must be the same as the zone of the Serverless application.

vsw-bp194pz9iez****

securityGroupIds

array

The list of security group IDs.

string

The security group ID.

sg-bp1278950t9ykn2s****

domain

string

The domain name of the endpoint.

ep-bp1i522d****a3.epsrv-bp1f****gei.cn-hangzhou.privatelink.aliyuncs.com

totalCount

integer

The total number of records.

10

Examples

Success response

JSON format

{
  "requestId": "D6030CE6-9FEB-5B2F-84AC-3ADE3CBA89E5",
  "result": [
    {
      "endpointId": "essep-2f46b743f60****",
      "resourceId": "ep-bp1id41dd116e52e****\n",
      "vpcId": "vpc-uf6gykvwcirp886ef****",
      "status": "Active",
      "connectionStatus": "Pending",
      "type": "VPC",
      "created": 1701259721,
      "updated": 1701259721,
      "name": "test",
      "endpointZones": [
        {
          "zoneId": "cn-hangzhou-k",
          "vSwitchId": "vsw-bp194pz9iez****"
        }
      ],
      "securityGroupIds": [
        "sg-bp1278950t9ykn2s****"
      ],
      "domain": "ep-bp1i522d****a3.epsrv-bp1f****gei.cn-hangzhou.privatelink.aliyuncs.com"
    }
  ],
  "totalCount": 10
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.