Queries service consumers.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation only uses the common request header. For more information, see Common request parameters.

Request syntax

POST|GET /pop/sp/api/mseForOam/getServiceConsumersPage HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
region String Query No cn-hangzhou

The ID of the region.

namespace String Query No cn-hangzhou:doc-test

The ID of the namespace.

origin String Query No agent

The source of the data. Valid values:

  • agent: required if you use the new service query feature to pass the query result.
  • registry: required if you use the earlier service query feature to pass the query result.
serviceType String Query No dubbo

The type of the service.

appId String Query No efbda488-7b33-432f-a40d-****0047****

The ID of the application.

source String Query No edas

The source of the service. Set the value to edas.

serviceId String Query No com.alibabacloud.hipstershop.CartService

The ID of the service. This parameter is obsolete and you can ignore it.

serviceName String Query No com.alibabacloud.hipstershop.CartService

The name of the service.

serviceVersion String Query No 1.0.0

The version of the service.

group String Query No DUBBO

The service group.

ip String Query No 10.20.x.xx

The IP address of the service provider. Fuzzy searches are supported.

registryType String Query No nacos

The type of the registration. This parameter is obsolete and you can ignore it.

page Integer Query No 0

The number of the page to return.

size Integer Query No 10

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned HTTP status code of the request.

Data Struct

The data struct.

Content Array of Provider

The array returned.

EdasAppName String k8s-lq-cartservice

The name of the service consumer.

EdassAppId String efbda488-7b33-432f-a40d-****0047****

The ID of the service consumer.

Ip String 10.20.x.xx

The IP address of the service consumer.

Size Integer 5

The number of entries returned per page.

TotalElements Integer 3

The total number of entries returned.

TotalPages Integer 1

The total number of pages returned.

Message String success

The message returned for the request.

Success Boolean true

Indicates whether the request is successful.

Examples

Sample requests

POST /pop/sp/api/mseForOam/getServiceConsumersPage HTTP/1.1
Common request parameters

Sample success responses

XML format

<GetServiceConsumersPage>
  <Message>success</Message>
  <Data>
        <Size>5</Size>
        <Content>
              <EdassAppId>efbda488-7b33-432f-a40d-****0047****</EdassAppId>
              <EdasAppName>k8s-lq-cartservice</EdasAppName>
              <Ip>10.20.x.xx</Ip>
        </Content>
        <TotalElements>3</TotalElements>
        <TotalPages>1</TotalPages>
  </Data>
  <Code>200</Code>
  <Success>true</Success>
</GetServiceConsumersPage>

JSON format

{
    "Message": "success",
    "Data": {
        "Size": 5,
        "Content": {
            "EdassAppId": "efbda488-7b33-432f-a40d-****0047****",
            "EdasAppName": "k8s-lq-cartservice",
            "Ip": "10.20.x.xx"
        },
        "TotalElements": 3,
        "TotalPages": 1
    },
    "Code": 200,
    "Success": true
}

Error codes

For a list of error codes, visit the API Error Center.