Queries consumed services.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadService |
get |
*Application
|
None | None |
Request syntax
GET /pop/v5/service/listConsumedServices HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. |
a66c5d1f-****-****-8c2b-6925f781b203 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The status code. |
200 |
| Message |
string |
The returned message. |
success |
| RequestId |
string |
The unique request ID. |
a5281053-08e4-47a5-b2ab-5c0323de7b5a |
| ConsumedServicesList |
object |
||
| ListConsumedServices |
array<object> |
The list of consumed services. |
|
|
array<object> |
|||
| DockerApplication |
boolean |
Indicates whether the application is a Docker application.
|
true |
| Type |
string |
The type of the consumed service. |
HSF |
| Version |
string |
The version of the consumed service. |
1.0 |
| AppId |
string |
The application ID. |
a5281053-08e4-47a5-b2ab-5c0323de7b5a |
| Group2Ip |
string |
A reserved parameter. |
"" |
| Name |
string |
The name of the consumed service. |
service |
| Ips |
object |
||
| ip |
array |
||
|
string |
The IP address for service subscription. |
102.XX.XX.23 |
|
| Groups |
object |
||
| group |
array |
||
|
string |
The group of the consumed service. |
”group“ |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "a5281053-08e4-47a5-b2ab-5c0323de7b5a",
"ConsumedServicesList": {
"ListConsumedServices": [
{
"DockerApplication": true,
"Type": "HSF",
"Version": "1.0",
"AppId": "a5281053-08e4-47a5-b2ab-5c0323de7b5a",
"Group2Ip": "\"\"",
"Name": "service",
"Ips": {
"ip": [
"102.XX.XX.23"
]
},
"Groups": {
"group": [
"”group“"
]
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.