All Products
Search
Document Center

Virtual Private Cloud:ListVpcEndpointServicesByEndUser

Last Updated:Mar 22, 2024

Queries available endpoint services.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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:
    • The required resource types are displayed in bold characters.
    • 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
vpc:ListVpcEndpointServicesByEndUserList
  • GatewayEndpoint
    acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceNamestringNo

The name of the endpoint service that you want to query.

com.aliyun.cn-hangzhou.oss
NextTokenstringNo

The token that is used for the next query. Valid values:

  • If this is your first query and no next queries are to be sent, ignore this parameter.
  • If a next query is to be performed, set the value to the NextToken value returned in the last call to the ListListenerCertificates operation.
FFmyTO70tTpLG6I3FmYAXGKPd****
MaxResultslongNo

The number of entries to return per page. Valid values: 1 to 100. Default value: 20.

20
RegionIdstringYes

The region ID of the gateway endpoint.

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

0AB1129F-32C1-5E4D-9E22-E4A859CA46EB
NextTokenstring

The token that is used for the next query. Valid values:

  • If no value is returned for NextToken, no next queries are sent.
  • If NextToken is returned, the value is the token that is used for the next query.
FFmyTO70tTpLG6I3FmYAXGKPd****
MaxResultslong

The number of entries returned per page.

20
Servicesobject []

The list of entries returned.

ServiceIdstring

The ID of the endpoint service.

vpces-m5enwdmilo210aibo9****
ServiceNamestring

The name of the endpoint service.

com.aliyun.cn-hangzhou.oss
DefaultPolicyDocumentstring

The default access policy.

{ \"Version\" : \"1\", \"Statement\" : [ { \"Effect\" : \"Allow\", \"Action\" : \"*\", \"Principal\" : \"*\", \"Resource\" : \"*\" } ] }
SupportPolicyboolean

Indicate whether the endpoint service supports the access policy. Valid values:

  • false
  • true
true
ServiceDomainstring

The domain name of the cloud service to which the endpoint service belongs.

oss-admin.aliyuncs.com
TotalCountstring

The total number of entries returned.

2

Examples

Sample success responses

JSONformat

{
  "RequestId": "0AB1129F-32C1-5E4D-9E22-E4A859CA46EB",
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "MaxResults": 20,
  "Services": [
    {
      "ServiceId": "vpces-m5enwdmilo210aibo9****",
      "ServiceName": "com.aliyun.cn-hangzhou.oss",
      "DefaultPolicyDocument": "{   \\\"Version\\\" : \\\"1\\\",   \\\"Statement\\\" : [ {     \\\"Effect\\\" : \\\"Allow\\\",     \\\"Action\\\" : \\\"*\\\",     \\\"Principal\\\" : \\\"*\\\",     \\\"Resource\\\" : \\\"*\\\"   } ] }",
      "SupportPolicy": true,
      "ServiceDomain": "oss-admin.aliyuncs.com"
    }
  ],
  "TotalCount": "2"
}

Error codes

HTTP status codeError codeError messageDescription
400ResourceNotFound.EndpointServiceIdThe specified resource gateway endpoint service is not found.-
400IllegalParam.NextTokenThe specified NextToken is invalid.The specified NextToken is invalid.

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

Change history

Change timeSummary of changesOperation
2023-08-25The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Output ParametersThe response structure of the API has changed.