PUT /canisters/{uuid}
Use this method to modify properties, refresh inventory, or perform a power operation on a specific Flex System storage controller (canister).
Authentication
Authentication with username and password is required.
Request URL
PUT https://{management_server_IP}/canisters/{uuid}
where {uuid} is the UUID of the storage controller to be retrieved. To obtain the storage-controller UUID, use the GET /canisters method.
Query parameters
Attributes | Required / Optional | Description |
---|---|---|
synchronous={value} | Optional | When modifying attributes, indicates when the job ID is returned
Note This query parameter applies only when one or more property parameters are specified in the request body. |
GET https://192.0.2.0/canisters/6ED2CB368C594C66C2BB066D5A306138?synchronous=false
Request body
You can specify attributes from one of the following tables in each request.
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
contact | Optional | String | Storage-controller contact information | ||
domainName | Optional | String | Storage-controller domain name | ||
hostname | Optional | String | Storage-controller hostname | ||
ipInterfaces | Optional | Array | Information about the storage-controller IP addresses Note If specified, you must also specify the | ||
IPv4DHCPmode | Optional | String | The IPv4 DHCP mode. This can be one of the following values.
| ||
IPv4enabled | Optional | Boolean | Identifies whether IPv4 is enabled. This can be one of the following values.
| ||
IPv6DHCPenabled | Optional | Boolean | Identifies whether IPv6 DHCP is enabled. This can be one of the following values.
| ||
IPv6enabled | Optional | Boolean | Identifies whether IPv6 is enabled. This can be one of the following values.
| ||
IPv6statelessEnabled | Optional | Boolean | Identifies whether IPv6 stateless is enabled. This can be one of the following values.
| ||
IPv6staticEnabled | Optional | Boolean | Identifies whether IPv6 static is enabled. This can be one of the following values.
| ||
IPv4assignments | Optional | Array | Information about IPv4 assignments Note If specified, you must also specify the | ||
address | Optional | String | IPv4 address | ||
gateway | Optional | String | IPv4 gateway | ||
id | Required | Integer | IPv4 assignment ID | ||
subnet | Optional | String | IPv4 subnet mask | ||
IPv6assignments | Optional | Array | Information about IPv6 assignments Note If specified, you must also specify the | ||
address | Optional | String | IPv6 address | ||
gateway | Optional | String | IPv6 gateway | ||
id | Required | Integer | IPv6 assignment ID | ||
prefix | Optional | Integer | IPv6 prefix | ||
name | Required | String | IP Interface name | ||
location | Optional | Object | Information about the storage-controller location Important Changes made to the location of the storage controller that is using this API method are not reflected in the rack view. | ||
location | Optional | String | Location of the storage-controller | ||
userDescription | Optional | String | Storage-controller description |
The following example modifies the hostname, location, and contact information for the target storage controller:
{
"contact": "new contact",
"hostname":"",
"location": {"location":"new location"}
}
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
powerState | Optional | String | Performs a power operation on the storage controller. This can be one of the following values.
|
{
"powerState": "powerCycleSoft"
}
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
refreshInventory | Optional | String | Refreshes inventory for the storage controller |
{
"refreshInventory": "true"
}
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
401 | Unauthorized | The user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body. |
403 | Forbidden | The orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request. |
404 | Not found | A specified resource cannot be found. A descriptive error message is returned in the response body. |
409 | Conflict | There is a conflict with the current state of the resource. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
The response body provides information about the success or failure of the request. The parameters in the response body differ depending on the specified request attributes.
The following example is returned when the "refreshInventory": "true" is specified in the request body to refresh the device inventory.
{
"statusCode": 200,
"statusDescription": "The request completed successfully.",
"messages": [{
"explanation": "refreshInventory request for target 6ED2CB368C594C66C2BB066D5A306138 has
completed successfully.",
"id": "FQXDM0200",
"recovery": "",
"recoveryUrl": "",
"text": "The request completed successfully."
}]
}