Retrieves a list of services.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetServiceListPage |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
No |
The region. |
cn-hangzhou |
| Namespace |
string |
No |
The name of the MSE namespace. |
default |
| AppName |
string |
No |
The name of the application. |
example-app |
| ServiceType |
string |
No |
The type of the service. |
springCloud |
| AppId |
string |
No |
The ID of the application. |
dez4xxxxx@f3f75ed8ffxxxxx |
| ServiceName |
string |
No |
The name of the service. |
sc-A |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
| Ip |
string |
No |
The IP address to query. |
223.5.5.5 |
| AcceptLanguage |
string |
No |
The language of the response. Valid values: `zh` (default): Chinese, and `en`: English. |
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the request was successful. |
True |
| Message |
string |
The message that is returned. |
OK |
| RequestId |
string |
The request ID. |
A2F946FB-F2E3-5BF4-8CBE-xxxxxxxx |
| Data |
object |
The returned data. |
|
| Result |
array<object> |
The data on the current page. |
|
|
object |
The information about each service. |
||
| AppName |
string |
The name of the application. |
example-app |
| Version |
string |
The version of the service. |
1 |
| InstanceNum |
integer |
The number of nodes for the service. |
1 |
| GmtModifyTime |
string |
The time when the service was last updated. |
123456 |
| AppId |
string |
The ID of the application. |
dez4xxxxx@f3f75ed8ffxxxxx |
| ServiceName |
string |
The name of the service. |
sc-A |
| Group |
string |
The service group. |
DEFAULT_GROUP |
| ServiceType |
string |
||
| TotalSize |
string |
The total number of entries. |
100 |
| PageNumber |
string |
The current page number. |
1 |
| PageSize |
string |
The number of entries per page. |
10 |
Examples
Success response
JSON format
{
"Success": true,
"Message": "OK",
"RequestId": "A2F946FB-F2E3-5BF4-8CBE-xxxxxxxx",
"Data": {
"Result": [
{
"AppName": "example-app",
"Version": "1",
"InstanceNum": 1,
"GmtModifyTime": "123456",
"AppId": "dez4xxxxx@f3f75ed8ffxxxxx",
"ServiceName": "sc-A",
"Group": "DEFAULT_GROUP",
"ServiceType": ""
}
],
"TotalSize": "100",
"PageNumber": "1",
"PageSize": "10"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.