You can call this operation to query services published by an application.
Debugging
Request headers
This operation only uses common request headers. For more information, see the Common request parameters topic.
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 whose published services you want to query. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The returned code. |
Message | String | success |
The returned message. |
RequestId | String | 1D6FC-4307-4583-BA6F-215F3857EAF4 | Request ID |
PublishedServicesList | Array |
The returned list of published services. |
|
AppId | String | ECD1D6FC-4307-4583-BA6F-215F3857E*** |
The ID of the application where the service is published. |
DockerApplication | Boolean | false |
Indicates whether the application where the service is published is a Docker application. |
Group2Ip | String | "" |
A reserved field for the service returned. |
Name | String | providers:com**** |
The name of the published service returned. |
Type | String | RESTful |
The type of the published service returned. |
Version | String | -- |
The version of the published service returned. |
Groups | List | DEFAULT_GROUP |
The group corresponding to the published service returned. |
Ips | List | 112.XX.XX.24 |
The address where the service can be subscribed. |
Examples
Sample requests
GET /pop/v5/service/listPublishedServices HTTP/1.1
Common request headers
{
"AppId": "1fbd8b72-****-****-bdfe-478dbc914121"
}
Sample success responses
JSON
format
{
"Message": "success",
"Code": 200,
"PublishedServicesList": {
"ListPublishedServices": [
{
"Groups": {
"group": [
"DEFAULT_GROUP"
]
},
"Name": "providers:com.helianhealth.systemcenter.api.ContactService::",
"DockerApplication": false,
"Type": "RESTful",
"Group2Ip": {},
"Version": "--",
"Ips": {
"ip": []
}
}
]
}
}
XML
format
<Message>success</Message>
<Code>200</Code>
<PublishedServicesList>
<ListPublishedServices>
<Groups>
<group>DEFAULT_GROUP</group>
</Groups>
<Name>providers:com.helianhealth.systemcenter.api.ContactService::</Name>
<DockerApplication>false</DockerApplication>
<Type>RESTful</Type>
<Group2Ip/>
<Version>--</Version>
<Ips>
</Ips>
</ListPublishedServices>
</PublishedServicesList>
Error codes
For a list of error codes, visit the API Error Center.