Querying the Basic Environment Information List of an Application
Function
This API is used to query the basic environment information list of an application.
Calling Method
For details, see Calling APIs.
URI
GET /v1/applications/{application_id}/host-groups/base/infos
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
application_id |
Yes |
String |
Application ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_uuid |
Yes |
String |
Project ID |
os |
No |
String |
Operating system: Windows or Linux |
page_index |
No |
Integer |
Page number |
page_size |
No |
Integer |
Number of records on each page |
name |
No |
String |
Search by host cluster name |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
status |
String |
Request success or failure status |
total |
Integer |
Total quantity |
result |
Array of EnvironmentBaseInfo objects |
Basic environment information list |
Example Requests
https://{endpoint}/v1/applications/fe50d93c5a7f4335bb44a68419606ced/host-groups/base/infos?project_uuid=7e6caf3cd9a64d5b8ea451e38221892e&page_index=1&page_size=1000
Example Responses
Status code: 200
OK: The request is successful.
{ "status" : "success", "result" : [ { "name" : "Create an environment test permission", "os" : "linux", "uuid" : "c51d2173c541496c9561f77ccdacf13e", "group_id" : "c51d2173c541496c9561f77ccdacf13e", "host_count" : 0 } ], "total" : 1 }
Status Codes
Status Code |
Description |
---|---|
200 |
OK: The request is successful. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.