Querying Details About an ECS Group
Function
This API is used to query details about an ECS group.
Debugging
You can debug this API in API Explorer.
Authorization
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the permissions listed below are required.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
ecs:cloudServers:showServerGroup |
read |
- |
- |
ecs:cloudServers:get |
- |
URI
GET /v1/{project_id}/cloudservers/os-server-groups/{server_group_id}
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
project_id |
Yes |
Definition Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
|
server_group_id |
Yes |
Definition Specifies an ECS group UUID. Constraints N/A Range N/A Default Value N/A |
Request
None
Response
Table 2 describes the response parameters.
|
Parameter |
Type |
Description |
|---|---|---|
|
server_group |
Object |
Definition Specifies the ECS group information. For details, see Table 3. Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Definition Specifies an ECS group UUID. Range N/A |
|
name |
String |
Definition Specifies the ECS group name. Range N/A |
|
policies |
Array of strings |
Definition Specifies the policies associated with the ECS group. Range N/A |
|
members |
Array of strings |
Definition Specifies the ECS contained in an ECS group. Range N/A |
|
metadata |
Object |
Definition Specifies the ECS group metadata. Range N/A |
Example Request
Query details about the specified ECS group.
GET https://{endpoint}/v1/{project_id}/cloudservers/os-server-groups/{server_group_id}
Example Response
{
"server_group": {
"id": "5bbcc3c4-1da2-4437-a48a-66f15b1b13f9",
"name": "test",
"policies": ["anti-affinity"],
"members": [],
"metadata": {}
}
}
Returned Values
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot