Query Service Environment List

Last updated: 2019-07-24 17:24:50

API Description

This API (DescribeServiceEnvironmentList) is used to query the list of environments of a service. All the environments and their statuses under the service can be queried.

Input Parameters

The following request parameter list only provides API request parameters. Other parameters can be found in Common Request Parameters.

Parameter Name Required Type Description
serviceId Yes String The unique ID of the service to be queried.
limit No Int Number of results to be returned.
offset No Int Offset.

Output Parameters

Parameter Name Type Description
code Int Common error code. 0: Successful; other values: Failed. For more information, see Common Error Codes on the Error Codes page.
codeDesc String Error code at business side. For a successful operation, "Success" is returned. In case of an error, a message describing the reason for the error is returned.
message String Module error message description depending on API.
totalCount String Total number of environments.
environmentList List of Array The list of environments.

environmentList is a list of environments, which is an array of environmentAttribute. environmentAttribute is composed as follows:

Parameter Name Type Description
environmentName String The environment name.
url String The access path.
status Int Publishing status. 1: Published. 0: Not published
verisonName String The running version.


&<Common request parameters>

The returned results are as below: