Retrieve data for all Servers
Servers without a valid subscription will not return the following:
This API now supports the URI path prefix /compute-ops-mgmt
which used to be /compute-ops
. The old prefix will continue
to be supported to allow for a smooth transition. The Guide
contains more information about this change.
offset | integer >= 0 Default: 0 Zero-based resource offset to start the response from Example: offset=10 | ||||||||
limit | integer [ 0 .. 100 ] 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.
Servers can be filtered by:
† When searching for a server using the The following examples are not an exhaustive list of all possible filtering options. Return servers where a property equals a value.
<property> eq <value>
filter=host/hostname eq 'myServer'Return servers where a nested property equals a value.
<property>/<nestedProperty> eq <value>
filter=state/managed eq 'true'Return servers where a property equals a value, using a url.
<property>%20eq%20%27<value>
filter=id%20eq%20%27497f6eca-6276-4993-bfeb-53cbbbba6f08Return servers where a property does not equal a value
not <property> eq <value>
filter=not name eq 'MXQ89990RR'Return servers with populated property.
not <property> eq null
filter=not name eq nullReturn servers where property contains a value.
contains(<property>, <value>)
filter=contains(createdAt,'2019')Return servers where property is populated and property contains value.
not <property> eq null and contains(<property>, <value>)
filter=not name eq null and contains(createdAt,'2019')Return servers where property is one of multiple values.
<property>/<nestedProperty> in (<value>,<value>)
filter=state/managed in ('true','false') |
OK
Bad request
Unauthorized
Forbidden
Not acceptable
Internal server error
{- "offset": 0,
- "count": 1,
- "total": 12,
- "items": [
- {
- "id": "string",
- "name": "myServer",
- "type": "compute-ops-mgmt/server",
- "resourceUri": "/compute-ops-mgmt/v1beta2/servers/875765-S01+1M512501AB",
- "generation": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "platformFamily": { },
- "serverGeneration": "GEN_10",
- "hardware": {
- "serialNumber": "string",
- "model": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "productId": "string",
- "powerState": "UNKNOWN",
- "indicatorLed": "UNKNOWN",
- "health": {
- "summary": "UNKNOWN",
- "fans": "UNKNOWN",
- "fanRedundancy": "NON_REDUNDANT",
- "liquidCooling": "UNKNOWN",
- "liquidCoolingRedundancy": "NON_REDUNDANT",
- "memory": "UNKNOWN",
- "network": "UNKNOWN",
- "powerSupplies": "UNKNOWN",
- "powerSupplyRedundancy": "NON_REDUNDANT",
- "processor": "UNKNOWN",
- "storage": "UNKNOWN",
- "temperature": "UNKNOWN",
- "bios": "UNKNOWN",
- "smartStorage": "UNKNOWN",
- "healthLED": "UNKNOWN"
}, - "platform": "string",
- "formFactor": "string",
- "bmc": {
- "mac": "string",
- "ip": "string",
- "hostname": "string",
- "license": "string"
}, - "memoryMb": { }
}, - "state": {
- "managed": true,
- "connected": true,
- "connectedModifiedAt": "2019-08-24T14:15:22Z",
- "subscriptionState": "REQUIRED",
- "subscriptionTier": "Enhanced",
- "subscriptionExpiresAt": "2019-08-24T14:15:22Z"
}, - "firmwareInventory": [
- {
- "name": "string",
- "version": "string",
- "deviceContext": "string"
}
], - "softwareInventory": [
- {
- "name": "string",
- "version": "string",
- "deviceContext": "string"
}
], - "firmwareBundleUri": "string",
- "lastFirmwareUpdate": {
- "status": "OK",
- "attemptedAt": "2019-08-24T14:15:22Z",
- "firmwareInventoryUpdates": [
- {
- "name": "string",
- "version": "string",
- "status": "OK"
}
]
}, - "tags": {
- "location": "San Jose"
}, - "processorVendor": "Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz",
- "biosFamily": "string",
- "host": {
- "osName": "string",
- "osVersion": "string",
- "hostname": "string",
- "osDescription": "string",
- "osType": 0
}, - "autoIloFwUpdate": true,
- "oneview": {
- "applianceUri": "string",
- "maintenanceMode": true,
- "name": "string",
- "state": "string"
}, - "lastFullInventoryCollectionAt": "2019-08-24T14:15:22Z",
- "lastFullInventoryCollectionPowerState": "string"
}
]
}