Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell Unity™ Family Unisphere® Management REST API Programmer's Guide

PDF

Creating a resource instance

To create a resource instance, use the following request components:

Headers
Accept: application/json
Content-Type: application/json
X-EMC-REST-CLIENT: true
EMC-CSRF-TOKEN: <token>
Operation
POST
URI pattern
/api/types/<resourceType>/instances/
where <resourceType> is the resource type of the instance you want to create.
Body
{
   "argument1":<value>,
   "argument2":<value>,
   "argument3":<value>
   .
   .
   .
}

where the comma-separated list contains all required arguments and any optional arguments. Use double quotes around a string, dateTime, or IPAddress value.

NOTE The unique identifier of the new instance is generated automatically by the server.

If the request succeeds, it returns a 201 Created HTTP status code and a minimal instance resource in the response body. This resource contains the id argument, a self-link for the new resource instance, and the arguments used to populate the new instance. If the request does not succeed, the server returns a 4nn or 5nn HTTP status code and a message entity in the response body.

Example

The following request creates a new instance of the user resource type.

Headers
Accept: application/json
Content-Type: application/json
X-EMC-REST-CLIENT: true
EMC-CSRF-TOKEN: <token>
Request
POST https://10.245.23.125/api/types/user/instances
Request body
{
  "name":"user_Operator5",
  "role":"operator",
  "password":"MyPassword1!"
}
Response body
.
.
.{
     "@base": "https://10.245.23.125/api/instances/user",
     "updated": "2015-11-24T21:57:35.233Z",
     "links": [
       {
         "rel": "self",
         "href": "/user_Operator5"
       }
     ],
     "content": {
       "id": "user_Operator5"
     }
}

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: <>()\