Queries the consumers of a specified service with pagination.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadService |
get |
*All Resource
|
None | None |
Request syntax
POST /pop/sp/api/mseForOam/getServiceConsumersPage HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| region |
string |
No |
The ID of the region. |
cn-hangzhou |
| namespace |
string |
No |
The ID of the namespace. |
cn-hangzhou:doc-test |
| origin |
string |
No |
The data source. Valid values:
|
agent |
| serviceType |
string |
No |
The type of the service. |
dubbo |
| appId |
string |
No |
The ID of the application. |
efbda488-7b33-432f-a40d-****0047**** |
| source |
string |
No |
The service source. Set this parameter to edas. |
edas |
| serviceId |
string |
No |
The ID of the service. This parameter is deprecated. You can ignore it. |
com.alibabacloud.hipstershop.CartService |
| serviceName |
string |
No |
The name of the service. |
com.alibabacloud.hipstershop.CartService |
| serviceVersion |
string |
No |
The version of the service. |
1.0.0 |
| group |
string |
No |
The service group. |
DUBBO |
| ip |
string |
No |
The IP address of the service provider. Fuzzy match is supported. |
10.20.x.xx |
| registryType |
string |
No |
The type of the service registry. This parameter is deprecated. You can ignore it. |
nacos |
| page |
integer |
No |
The number of the page to return. |
0 |
| size |
integer |
No |
The number of entries returned per page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Code |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
success |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
object |
The returned data. |
|
| TotalPages |
integer |
The total number of pages. |
1 |
| TotalElements |
integer |
The total number of entries. |
3 |
| Size |
integer |
The number of entries per page. |
5 |
| Content |
array<object> |
The list of service consumers. |
|
|
object |
A service consumer entry. |
||
| Ip |
string |
The IP address of the service consumer. |
10.20.x.xx |
| EdasAppName |
string |
The name of the consumer application. |
k8s-lq-cartservice |
| EdassAppId |
string |
The ID of the consumer application. |
efbda488-7b33-432f-a40d-****0047**** |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"Success": true,
"Data": {
"TotalPages": 1,
"TotalElements": 3,
"Size": 5,
"Content": [
{
"Ip": "10.20.x.xx",
"EdasAppName": "k8s-lq-cartservice",
"EdassAppId": "efbda488-7b33-432f-a40d-****0047****"
}
]
}
}
Error codes
See Error CodesError Codes for a complete list.
Release notes
See Release NotesRelease Notes for a complete list.