Mengambil daftar layanan mikro yang dilanggan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:ListConsumedServices |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /pop/v1/sam/service/listConsumedServices HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi. |
b2a8a925-477a-4ed7-b825-d5e22500**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The returned message.
|
success |
| TraceId |
string |
The ID of the request trace. Use this ID to query the details of a request. |
0a98a02315955564772843261e**** |
| Data |
array<object> |
The information about the microservices. |
|
|
object |
The information about the microservices. |
||
| Type |
string |
The type of the published service. |
RPC |
| Groups |
array |
The groups to which the consumed services belong. |
|
|
string |
The groups to which the consumed services belong. |
HSF |
|
| Version |
string |
The version of the published service. |
1.0.0 |
| AppId |
string |
The application ID. |
b2a8a925-477a-4ed7-b825-d5e22500**** |
| Group2Ip |
string |
A reserved field. |
{} |
| Ips |
array |
The service subscription addresses. |
|
|
string |
The service subscription address. |
10.0.0.1 |
|
| Name |
string |
The name of the published service. |
com.alibaba.nodejs.ItemService |
| ErrorCode |
string |
The error code.
|
|
| Code |
string |
The HTTP status code.
|
200 |
| Success |
boolean |
Indicates whether the list of subscribed microservices was retrieved.
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": [
{
"Type": "RPC",
"Groups": [
"HSF"
],
"Version": "1.0.0",
"AppId": "b2a8a925-477a-4ed7-b825-d5e22500****",
"Group2Ip": "{}",
"Ips": [
"10.0.0.1"
],
"Name": "com.alibaba.nodejs.ItemService"
}
],
"ErrorCode": "",
"Code": "200",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.