Get the list of a user's groups.
offset | integer >= 0 Default: 0 Zero-based resource offset to start the response from Example: offset=10 | ||||||||
limit | integer [ 0 .. 1000 ] The maximum number of records to return. Example: limit=10 | ||||||||
filter | string Limit the resources operated on by an endpoint or when used with a multiple-GET endpoint, return only the subset of resources that match the filter. The filter grammar is a subset of OData 4.0. NOTE: The filter query parameter must use URL encoding.
Most clients do this automatically with inputs provided to them specifically as query parameters. Encoding must be done manually for any query parameters provided as part of the URL.
Groups can be filtered by:
The following examples are not an exhaustive list of all possible filtering options. Return groups where a property equals a value.
<property> eq <value>
filter=name eq 'Production Group'Return groups where a nested property equals a value.
<property>/<nestedProperty> eq <value>
filter=autoAddServerTags/Department eq 'Development - Texas'Return group where name == my+group filter=name%20eq%20%27my%2Bgroup%27Return groups where a property does not equal a value
not <property> eq <value>
filter=not autoAddServerTags/Department eq 'Development - Texas'Return groups with populated property.
not <property> eq null
filter=not name eq nullReturn groups where property contains a value.
contains(<property>, <value>)
filter=contains(name,'Group')Return groups where property is populated and property contains value.
not <property> eq null and contains(<property>, <value>)
filter=not name eq null and contains(name,'Group')Return groups where property is one of multiple values.
<property>/<nestedProperty> in (<value>,<value>)
filter=autoAddServerTags/Department in ('Development - Texas','Development - Colorado') | ||||||||
sort | string The order in which to return the resources in the collection. The value of the sort query parameter is a comma separated list of sort expressions. Each sort expression is a property name optionally followed by a direction indicator asc (ascending) or desc (descending). The first sort expression in the list defines the primary sort order, the second defines the secondary sort order, and so on. If a direciton indicator is omitted the default direction is ascending. Order resources ascending by name sort=name ascOrder resources ascending by name and then by descending by createdAt sort=name,createdAt desc |
Successful Response
Bad request
Unauthorized
Forbidden
Not acceptable
Internal server error
{- "offset": 0,
- "count": 1,
- "total": 12,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "compute-ops/group",
- "resourceUri": "/compute-ops/v1beta2/groups/0e7f516c-0829-4135-83d6-09ce844ddd9d",
- "name": "Production Group",
- "generation": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "description": "All prod servers",
- "autoFwUpdateOnAdd": true,
- "groupComplianceStatus": "COMPLIANT",
- "serverSettingsUris": [
- "/compute-ops/v1beta1/server-settings/00000000-0000-0000-0000-800000000001"
], - "platformFamily": "ANY",
- "devicesUri": "/compute-ops/v1beta2/groups/6081a383-b9e5-45e3-8371-1e0ba7b72068/devices",
- "devices": [ ],
- "serverPolicies": {
- "onServerAdd": {
- "firmwareDowngrade": false,
- "firmwareUpdate": false,
- "biosApplySettings": false,
- "biosFactoryReset": false,
- "iloApplySettings": false,
- "storageConfiguration": false,
- "storageVolumeDeletion": false,
- "storageVolumeName": "string",
- "externalStorageConfiguration": false,
- "osImageSettings": false,
- "osCompletionTimeoutMin": 240
}, - "onSettingsApply": {
- "firmwareDowngrade": false
}
}, - "autoAddServerTags": {
- "Department": "Development - Texas"
}, - "groupMeta": {
- "noSettingsReason": "GROUP_HAS_NO_SETTINGS"
}, - "groupCompliance": {
- "summary": "COMPLIANT",
- "firmware": {
- "status": "COMPLIANT",
- "statusReason": ""
}, - "iloSettings": {
- "status": "COMPLIANT",
- "statusReason": ""
}
}
}
]
}