The following request changes the nickname and capacity saving setting for the specified volume.
Execution permission
Storage Administrator (Provisioning)
Request line
PATCH base-URL/simple/v1/objects/volumes/object-ID
Request message
- Object ID
-
Specify the id value obtained by getting information about volumes.
Attribute
Type
Description
id
int
(Required) Volume ID
- Body
-
Only the specified attributes are changed.
The following is an example of changing the nickname of a volume:
{ "nickname": "REST_API_10GVolume" }
The following is an example of disabling the value set for the capacity saving (deduplication and compression) of a volume:
{ "savingSetting": "DISABLE" }
Response message
- Body
-
- If you changed the volume nickname:
Attribute
Type
Description
affectedResources
string[]
List of URLs for referencing information about the changed volume
operationDetails
object[]
Details about the changed volume
For details, see the description of the operationDetails attribute of the commandStatus object.
- If you changed the settings for the
capacity saving (deduplication and compression):
Attribute
Type
Description
statusResource
string
URL for referencing information about the changed volume
Note:Run the API function for obtaining information about the status of the API function that performs asynchronous processing. For details, see Getting status information about an API function that performs asynchronous processing.
- If you changed the volume nickname:
Status codes
See HTTP status codes.
Coding example
curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session b74777a3f9f04ea8bd8f09847fac48d3" -X PATCH --data-binary @./InputParameters.json https://192.0.2.100/ConfigurationManager/simple/v1/objects/volumes/100