Queries the services that are published by an application.

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 uses only the common request header. For more information, see Common request parameters.

Request syntax

GET /pop/v5/service/listPublishedServices HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
AppId String Yes 1fbd8b72-****-****-bdfe-478dbc914121

The ID of the application.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Message String success

The returned message that indicates whether the request is successful.

PublishedServicesList Array

The published services queried.

ListPublishedServices
AppId String ECD1D6FC-4307-4583-BA6F-215F3857E****

The ID of the application.

DockerApplication Boolean false

Indicates whether the application runs in a Docker container.

Group2Ip String ""

A reserved field for the consumed service.

Groups List DEFAULT_GROUP

The service group that corresponds to the published service.

Ips List 112.XX.XX.24

The address where the service can be subscribed to.

Name String providers:com.****

The name of the published service.

Type String RESTful

The type of the published service.

Version String --

The version of the published service.

RequestId String 1D6FC-4307-4583-BA6F-215F3857E****

The ID of the request.

Examples

Sample requests

GET /pop/v5/service/listPublishedServices HTTP/1.1
Common request header
{
  "AppId": "1fbd8b72-****-****-bdfe-478dbc914121"
}

Sample success responses

XML format

<Message>success</Message>
<Code>200</Code>
<PublishedServicesList>
    <ListPublishedServices>
        <Groups>
            <group>DEFAULT_GROUP</group>
        </Groups>
        <Name>providers:com.****</Name>
        <DockerApplication>false</DockerApplication>
        <Type>RESTful</Type>
        <Group2Ip/>
        <Version>--</Version>
        <Ips>
        </Ips>
    </ListPublishedServices>
</PublishedServicesList>

JSON format

{
	"Message": "success",
	"Code": 200,
	"PublishedServicesList": {
		"ListPublishedServices": [
			{
				"Groups": {
					"group": [
						"DEFAULT_GROUP"
					]
				},
				"Name": "providers:com.****",
				"DockerApplication": false,
				"Type": "RESTful",
				"Group2Ip": {},
				"Version": "--",
				"Ips": {
					"ip": []
				}
			}
		]
	}
}

Error codes

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