Overrides the value of the
Accept-language: header. This is useful for testing from a plain browser or from an environment where URL parameters are easier to use than HTTP headers.
The
language parameter specifies the localization language for error messages, events, alerts, and other localizable responses.
Specifies how to sort response data. You can sort response data in ascending or descending order by the attributes of the queried resource type. And you can use dot notation syntax to sort response data by the attributes of related resource types.
Identifies the page to return in a response by specifying the page number. If this parameter is not specified, the server returns all resource instances that meet the request criteria in page 1.
Specifies the number of resource type instances that form a page. If this parameter is not specified, the server returns all resource instances that meet the request criteria in the page specified by page (or in page 1, if page is also not specified).
NOTE The server imposes an upper limit of 2000 on the number of resource instances returned in a page.
Indicates whether to return the
entryCount response component in the response data. The
entryCount
response component indicates the number of resource instances in the complete list. You can use it to get the total number of entries when paging returned a partial response.
By default, the
entryCount response component is not returned. Set
with_entrycount=true to return the
entryCount response component.
Executes the request in the background. Most active management requests (ones that attempt to change the configuration) support this option. The documentation for each API method in the
Unisphere Management REST API Reference Guide specifies whether the method supports this option.
To use request parameters, append the parameters to the request URI. The first request parameter appended to the URI begins with a ? character. Additional request parameters begin with & instead of ?. You can combine request parameters and can use them in any order. If a request parameter is repeated, all but the last one is ignored.
Example 1
The following request uses a
fields query parameter to return the
name, and
rpm attributes, a
filter query parameter to return
disk instances that have an RPM of 15000, and a
compact query parameter to omit metadata from each instance in the query response. It also sets the
with_entrycount query parameter to true, so that the entry count is included in the response data. For readability purposes, this example omits URI encoding for the space character (%20) and % character (%25).
Request
GET api/types/disk/instances?fields=rpm,name&filter=rpm eq 15000&compact=true&with_entrycount=true
The following request uses the
per_page and
page query parameters to group returned
disk instances into chunks of two instances per page and to return only the instances on page three. It also uses
fields query parameter to return the
name,
pool and
tierType attributes, and the
compact query parameter to omit metadata from each instance in the query response:
Request
GET api/types/disk/instances?per_page=3&page=2&fields=name,pool,tierType&compact=true