Mengkueri layanan aplikasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetServiceList |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
No |
ID region. |
cn-zhangjiakou |
| ServiceType |
string |
No |
Jenis framework. |
dubbo |
| AppId |
string |
Yes |
ID aplikasi. |
xxx@xxx |
| ServiceName |
string |
No |
Nama layanan. |
com.alibaba.xxx |
| Ip |
string |
No |
Alamat IP. |
127.0.0.1 |
| AcceptLanguage |
string |
No |
Bahasa respons. |
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Struktur data. |
||
| HttpStatusCode |
integer |
Kode status HTTP yang dikembalikan. |
200 |
| Message |
string |
Pesan yang dikembalikan. |
success |
| RequestId |
string |
ID permintaan. |
xxx-xxx-xxx |
| Data |
array<object> |
Entri data yang dikembalikan. |
|
|
array<object> |
Hasil permintaan. |
||
| EdasAppName |
string |
Nama aplikasi. |
test |
| DubboApplicationName |
string |
Nama aplikasi Dubbo. |
dubbo-application |
| Version |
string |
Informasi versi. |
1.0.0 |
| SpringApplicationName |
string |
Nama aplikasi Spring. |
spring-application |
| RegistryType |
string |
Jenis registry layanan. |
nacos |
| ServiceType |
string |
Jenis layanan. |
dubbo |
| ServiceName |
string |
Nama layanan. |
com.alibaba.xxx |
| Methods |
array<object> |
Metode. |
|
|
object |
Metode. |
||
| Paths |
array |
The paths. |
|
|
string |
The path of the service. |
/path |
|
| ParameterTypes |
array |
The data types of the parameters. |
|
|
string |
The data type of the parameter. |
int |
|
| RequestMethods |
array |
The methods. |
|
|
string |
The method. |
sayHello |
|
| Name |
string |
The name of the method. |
sayHello |
| MethodController |
string |
The controller of the method. |
com.alibaba.SayHelloController |
| ReturnType |
string |
The type of the return value. |
int |
| Metadata |
object |
Metadata. |
{} |
| Group |
string |
Grup. |
dubbo |
| Code |
integer |
Kode status yang dikembalikan. |
200 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "xxx-xxx-xxx",
"Data": [
{
"EdasAppName": "test",
"DubboApplicationName": "dubbo-application",
"Version": "1.0.0",
"SpringApplicationName": "spring-application",
"RegistryType": "nacos",
"ServiceType": "dubbo",
"ServiceName": "com.alibaba.xxx",
"Methods": [
{
"Paths": [
"/path"
],
"ParameterTypes": [
"int"
],
"RequestMethods": [
"sayHello"
],
"Name": "sayHello",
"MethodController": "com.alibaba.SayHelloController",
"ReturnType": "int"
}
],
"Metadata": {},
"Group": "dubbo"
}
],
"Code": 200,
"Success": true
}
Kode kesalahan
|
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 |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.