Mengambil daftar layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetServiceListPage |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
No |
Wilayah. |
cn-hangzhou |
| Namespace |
string |
No |
Nama namespace MSE. |
default |
| AppName |
string |
No |
Nama aplikasi. |
example-app |
| ServiceType |
string |
No |
Tipe layanan. |
springCloud |
| AppId |
string |
No |
ID aplikasi. |
dez4xxxxx@f3f75ed8ffxxxxx |
| ServiceName |
string |
No |
Nama layanan. |
sc-A |
| PageNumber |
integer |
No |
Nomor halaman. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan per halaman. |
10 |
| Ip |
string |
No |
Alamat IP yang dikueri. |
223.5.5.5 |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid adalah zh untuk bahasa Mandarin (default) dan en untuk bahasa Inggris. |
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the request was successful. |
True |
| Message |
string |
The response message. |
OK |
| RequestId |
string |
The ID of the request. |
A2F946FB-F2E3-5BF4-8CBE-xxxxxxxx |
| Data |
object |
The response data. |
|
| Result |
array<object> |
The list of services on the current page. |
|
|
object |
The details of 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 |
Contoh
Respons sukses
JSONformat
{
"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"
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.