ListNetworkAccessEndpoints

Updated at:

Queries the network access endpoints of an IDaaS EIAM instance.

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

eiam:ListNetworkAccessEndpoints

get

*NetworkAccessEndpoint

acs:eiam:{#regionId}:{#accountId}:instance/{#InstanceId}/networkaccessendpoint/*

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

NextToken

string

No

The pagination token. Set this parameter to the value of NextToken returned from the previous API call. Leave this parameter empty for the first call.

NTxxxxxexample

MaxResults

integer

No

The number of entries per page for paging in a paged query. The maximum value is 100.

20

NetworkAccessEndpointType

string

No

The type of the network access endpoint. Valid values:

  • shared: shared network access endpoint

  • private: private network access endpoint

Default value: private.

private

VpcId

string

No

The ID of the VPC to which the private network access endpoint is connected. This parameter does not take effect when NetworkAccessEndpointType is set to shared.

vpc-examplexxx

VpcRegionId

string

No

The region of the VPC to which the private network access endpoint is connected. The region must be returned by the ListNetworkAccessEndpointAvailableRegions operation. This parameter does not take effect when NetworkAccessEndpointType is set to shared.

cn-hangzhou

NetworkAccessEndpointStatus

string

No

The status of the network access endpoint. Valid values:

  • pending: pending initialization

  • creating: being created

  • running: running

  • deleting: being deleted

This filter does not take effect when NetworkAccessEndpointType is set to shared.

running

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

0441BD79-92F3-53AA-8657-F8CE4A2B912A

TotalCount

integer

The total number of entries returned.

100

NextToken

string

The pagination token returned for the current call.

NTxxxexample

NetworkAccessEndpoints

array<object>

The network access endpoints.

array<object>

The network access endpoint information.

InstanceId

string

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

NetworkAccessEndpointId

string

The ID of the network access endpoint.

nae_examplexxx

NetworkAccessEndpointName

string

The name of the network access endpoint, such as xx business VPC access endpoint.

VPC access endpoint for xx service

VpcId

string

The ID of the VPC to which the private network access endpoint is connected.

vpc-examplexxx

VpcRegionId

string

The region of the VPC to which the private network access endpoint is connected.

cn-hangzhou

VSwitchIds

array

The vSwitches to which the private network access endpoint is connected.

["vsw-examplexxx"]

string

The vSwitch ID.

vsw-2vc8z0f90z4k6xxxxx

SecurityGroupId

string

The ID of the security group used by the private network access endpoint.

sg-examplexxx

Status

string

The status of the network access endpoint. Valid values:

  • pending: pending initialization

  • creating: being created

  • running: running

  • deleting: being deleted

running

NetworkAccessEndpointType

string

The type of the network access endpoint. Valid values:

  • shared: shared network access endpoint

  • private: private network access endpoint

private

CreateTime

integer

The time when the network access endpoint was created. The time is displayed as a UNIX timestamp in milliseconds.

1649830226000

UpdateTime

integer

The time when the network access endpoint was last updated. The time is displayed as a UNIX timestamp in milliseconds.

1649830226000

BackupVpcEndpoint

object

The VPC configurations of the backup network access endpoint.

BackupVpcRegionId

string

The region of the VPC for the backup network access endpoint.

cn-beijing

BackupVpcId

string

The ID of the VPC for the backup network access endpoint.

vpc-examplexxx

BackupVSwitchIds

array

The vSwitches for the backup network access endpoint.

string

The ID of the vSwitch for the backup network access endpoint.

vsw-wz94gvcxxxxx

BackupSecurityGroupId

string

The ID of the security group for the backup network access endpoint.

sg-examplexxx

BackupEgressPublicIpAddresses

array

The public egress IP addresses of the backup network access endpoint.

string

The public egress IP address of the backup network access endpoint.

Important No value is returned. You must go to the VPC console to query the IP address of the NAT gateway.

""

BackupEgressPrivateIpAddresses

array

The private egress IP addresses of the backup network access endpoint.

string

The private egress IP address of the backup network access endpoint.

172.16.x.x

Examples

Success response

JSON format

{
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
  "TotalCount": 100,
  "NextToken": "NTxxxexample",
  "NetworkAccessEndpoints": [
    {
      "InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
      "NetworkAccessEndpointId": "nae_examplexxx",
      "NetworkAccessEndpointName": "VPC access endpoint for xx service",
      "VpcId": "vpc-examplexxx",
      "VpcRegionId": "cn-hangzhou",
      "VSwitchIds": [
        "vsw-2vc8z0f90z4k6xxxxx"
      ],
      "SecurityGroupId": "sg-examplexxx",
      "Status": "running",
      "NetworkAccessEndpointType": "private",
      "CreateTime": 1649830226000,
      "UpdateTime": 1649830226000,
      "BackupVpcEndpoint": {
        "BackupVpcRegionId": "cn-beijing",
        "BackupVpcId": "vpc-examplexxx",
        "BackupVSwitchIds": [
          "vsw-wz94gvcxxxxx"
        ],
        "BackupSecurityGroupId": "sg-examplexxx",
        "BackupEgressPublicIpAddresses": [
          "\"\""
        ],
        "BackupEgressPrivateIpAddresses": [
          "172.16.x.x"
        ]
      }
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.