Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

Dell PowerStore REST API Developers Guide

PDF

Retrieving data for a specified resource instance

To retrieve data for a specified resource instance, use the following request components:

Table 1. Retrieving data for a specified resource instanceProvides an example of retrieving data for a specified resource instance.
Headers, operation, and URI pattern Headers, operation, and URI pattern example
Headers
Accept: application/json
Authorization: <auth_cookie>
Operation GET
URI pattern
/api/rest/<resource_type>/<id>
where:
  • <resource_type> is the resource type of the desired instance.
  • <id> is the unique identifier of the desired instance.
For additional functionality, such as returning specific attributes, you can append one or more request parameters to the URI.
Body Empty.

If the request succeeds, the server returns a 200 OK HTTP status code and an instance resource in the response body. If the request does not succeed, the server returns a 4xx or 5xx HTTP status code and a message entity in the response body.

By default, the response to a GET instance request includes only the unique identifier (id attribute) of the specified resource instance. You can use the following request parameters to customize what data is returned:

Table 2. Request parameters to customize the returned dataLists the request parameters and their descriptions.
Request parameter Description
select Requests data for a specified set of attributes.

Example

The following request returns the values for the id, name, and serial_number attributes for the appliance resource instance that has an id of J8WRPD2.

Table 3. Example of retrieving data for a specified resource instanceProvides an example of retrieving data for a specified resource instance.
Header, request, and response body Header, request, and response body example
Header
Accept: application/json
Request
GET https://1.2.3.4/api/rest/appliance/J8WRPD2?select=id,name,service_tag
Response body
{
  "id": "J8WRPD2",
  "name": "H2025-appliance-1",
  "service_tag": "J8WRPD2"
}

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\