ListExternalServices
Retrieves external service information for a gateway.
Operation description
This operation supports creating multiple services.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:ListExternalServices |
none |
*Gateway
|
None | None |
Request syntax
GET /v1/gateways/{gatewayId}/external-services HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| gatewayId |
string |
No |
The gateway ID. Exact match. |
gw-d76t026m1hkv70tla0e0 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| sourceType |
string |
No |
The service source type used to filter results. Valid values:
|
FC3 |
| limit |
integer |
No |
The maximum number of entries to return. Valid range: (0, 100]. Default value: 10. |
100 |
| nameLike |
string |
No |
Keyword for fuzzy matching by API name. |
imah |
| importableOnly |
boolean |
No |
Whether to return only services that have not been imported. |
true |
| paiWorkspaceId |
string |
No |
The workspace ID of the PAI-EAS service. |
667435 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema. |
||
| requestId |
string |
The request ID. |
D9B03B59-B2D6-51B0-A7E9-AF8466E320CA |
| code |
string |
The response code. |
Ok |
| message |
string |
The response message. |
Failed to upload data. Please try again |
| data |
object |
The list of APIs. |
|
| items |
array<object> |
The service information. |
|
|
array<object> |
The zone ID. |
||
| namespace |
string |
PUBLIC |
|
| namespaceShowName |
string |
PUBLIC |
|
| services |
array<object> |
||
|
object |
|||
| name |
string |
enable-slash-merge |
|
| namespace |
string |
public |
Examples
Success response
JSON format
{
"requestId": "D9B03B59-B2D6-51B0-A7E9-AF8466E320CA",
"code": "Ok",
"message": "Failed to upload data. Please try again",
"data": {
"items": [
{
"namespace": "PUBLIC",
"namespaceShowName": "PUBLIC",
"services": [
{
"name": "enable-slash-merge",
"namespace": "public"
}
]
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.