Retrieve data for all OneView server templates
limit | integer [ 0 .. 50 ] Default: 25 The maximum number of records to return. Example: limit=10 | ||||||||
offset | integer >= 0 Default: 0 Zero-based resource offset to start the response from Example: offset=10 | ||||||||
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 | ||||||||
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.
Server templates can be filtered by:
Return resources where applianceId == d42c2b9b-b366-4e40-96a2-95e1138cf968 filter=eq(applianceId, 'd42c2b9b-b366-4e40-96a2-95e1138cf968')Return resources where uri contains a56e80bc-6ee4-4414-82e7-36dc7f79a62e filter=contains(uri,'a56e80bc-6ee4-4414-82e7-36dc7f79a62e') |
OK
Bad request
Unauthorized
Forbidden
Not acceptable
Internal server error
{- "offset": 0,
- "count": 1,
- "total": 12,
- "items": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "description": "Server profile template",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "applianceId": "4a333222-8502-40ae-83cc-1e5b22f9d675",
- "applianceName": "devcat-dhcp-cent77-53",
- "name": "Server_profile_template",
- "uri": "/rest/server-profile-templates/a56e80bc-6ee4-4414-82e7-36dc7f79a62e",
- "attributes": { },
- "status": "OK",
- "state": "string",
- "subscription": "string",
- "type": "compute-ops-mgmt/oneview-server-template",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}