Queries available endpoint services.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceName |
string |
No |
The name of the endpoint service that you want to query. |
com.aliyun.cn-hangzhou.oss |
| NextToken |
string |
No |
The token that is used for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries to return per page. Valid values: 1 to 100. Default value: 20. |
20 |
| RegionId |
string |
Yes |
The region ID of the gateway endpoint. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
0AB1129F-32C1-5E4D-9E22-E4A859CA46EB |
| NextToken |
string |
The token that is used for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
The number of entries returned per page. |
20 |
| Services |
array<object> |
The list of entries returned. |
|
|
object |
|||
| ServiceId |
string |
The ID of the endpoint service. |
vpces-m5enwdmilo210aibo9**** |
| ServiceName |
string |
The name of the endpoint service. |
com.aliyun.cn-hangzhou.oss |
| DefaultPolicyDocument |
string |
The default access policy. |
{ \"Version\" : \"1\", \"Statement\" : [ { \"Effect\" : \"Allow\", \"Action\" : \"*\", \"Principal\" : \"*\", \"Resource\" : \"*\" } ] } |
| SupportPolicy |
boolean |
Indicate whether the endpoint service supports the access policy. Valid values:
|
true |
| ServiceDomain |
string |
The domain name of the cloud service to which the endpoint service belongs. |
oss-admin.aliyuncs.com |
| TotalCount |
string |
The total number of entries returned. |
2 |
Examples
Success response
JSON format
{
"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 code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotFound.EndpointServiceId | The specified resource gateway endpoint service is not found. | |
| 400 | IllegalParam.NextToken | The specified NextToken is invalid. | The specified NextToken is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.