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

Modifying a resource instance

To modify 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 patterns
For all resource types that support the modify operation:
/api/instances/<resourceType>/<id>/action/modify
For applicable resource types that support the modify operation:
/api/instances/<resourceType>/name:<assignedName>/action/modify
where:
  • <resourceType> is the resource type of the instance you want to modify.
  • <id> is the unique identifier of the instance you want to modify.
  • <assignedName> is the user-assigned name of the instance you want to modify.
For additional functionality, such as making the request an asynchronous request and localizing return messages, you can append one or more request parameters to the URI. To see if a resource type can be identified by the assigned name, see the individual resource type topics in the Unisphere Management REST API Reference Guide.
Body
{
   "argument1":<value>,
   "argument2":<value>,
   .
   .
   .
}

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

If the request succeeds, it returns a 204 No Content HTTP status code and an empty response body. If the request does not succeed, the server returns a 4nn or 5nn HTTP status code in the response header and a message entity in the response body.

Example 1 - Modifying a user identified by ID

The following request changes the role value to storageadmin for the user resource instance that has an id of user_June:

Headers
Accept: application/json
Content-Type: application/json
X-EMC-REST-CLIENT: true
EMC-CSRF-TOKEN: <token>
Request
POST https://10.108.127.27/api/instances/user/user_June/action/modify
Request body
{
  "role":"storageadmin"
}
Response body
Empty.

Example 2 - Modifying a user identified by user-assigned name

The following request changes the role value to storageadmin for the user resource instance that has a user-assigned name of June:

Headers
Accept: application/json
Content-Type: application/json
X-EMC-REST-CLIENT: true
EMC-CSRF-TOKEN: <token>
Request
POST https://10.108.127.27/api/instances/user/name:June/action/modify
Request body
{
  "role":"storageadmin"
}
Response body
Empty.

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