If you locked any resources of the target storage system by using the REST API, you will not be able to use this API function. In such cases, unlock the resources before running the API function.
Execution permission
Security Administrator (View & Modify)
Request line
POST base-URL/v1/objects/encryption-keys
Request message
- Body
-
{ "count": 10 }
Attribute
Type
Description
count
int
(Required) The number of encryption keys to be created
Specify a value equal to or greater than 1.
If the sum of the value specified for the count attribute and the number of existing keys exceeds the maximum number of keys that can be created, no keys are created, and an error occurs.
Response message
Status codes
The following table describes the meaning of the status code of the request for this operation. For details on other status codes, see the description of HTTP status codes.
Status code |
Message |
Description |
---|---|---|
412 |
Precondition Failed |
The microcode version of the storage system does not support this operation. |
Coding example
curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session d7b673af189048468c5af9bcf3bbbb6f" -X POST --data-binary @./InputParameters.json https://192.0.2.100/ConfigurationManager/v1/objects/encryption-keys