All Products
Search
Document Center

Enterprise Distributed Application Service:ListConsumedServices

Last Updated:Jan 08, 2024

Queries the services that are consumed by an application.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Debug

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /pop/v5/service/listConsumedServices

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the application.

a66c5d1f-****-****-8c2b-6925f781b203

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message that is returned.

success
RequestIdstring

The ID of the request.

a5281053-08e4-47a5-b2ab-5c0323de7b5a
ConsumedServicesListobject []

The information about consumed services.

DockerApplicationboolean

Indicates whether the application runs in a Docker container. Valid values:

  • true: The application runs in a Docker container.
  • false: The application does not run in a Docker container.
true
Typestring

The type of the consumed service.

HSF
Versionstring

The version of the consumed service.

1.0
AppIdstring

The ID of the application.

a5281053-08e4-47a5-b2ab-5c0323de7b5a
Group2Ipstring

A reserved parameter.

""
Namestring

The name of the consumed service.

service
Ipsarray
string

The address where the service can be subscribed to.

102.XX.XX.23
Groupsarray
string

The service group that corresponds to the consumed service.

”group“

Examples

Sample success responses

JSONformat

{
  "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

For a list of error codes, visit the Service error codes.