This API is used to query ECS groups.
GET /v1/{project_id}/cloudservers/os-server-groups?limit={limit}&marker={marker}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
No |
Integer |
Specifies the upper limit on the number of returned server groups. The maximum value is 1000. |
marker |
No |
String |
Specifies the marker that points to the ECS group. The query starts from the next piece of data indexed by this parameter. Parameters marker and limit must be used together. |
None
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the ECS group UUID. |
name |
String |
Specifies the ECS group name. |
members |
Array of strings |
Specifies the ECSs contained in an ECS group. |
metadata |
Object |
Specifies the ECS group metadata. |
policies |
Array of strings |
Specifies the policies associated with the ECS group. Options:
|
GET https://{endpoint}/v1/{project_id}/cloudservers/os-server-groups
{ "server_groups": [ { "id": "616fb98f-46ca-475e-917e-2563e5a8cd19", "name": "test", "policies": ["anti-affinity"], "members": [], "metadata": {} } ], "page_info": { "next_marker": "616fb98f-46ca-475e-917e-2563e5a8cd19" } }
See Error Codes.