Skip to main content

PUT /cmms/{uuid}

Use this method to modify properties , perform a power operation, or refresh inventory for a specific CMM.

The request body differs depending on the action that you want to perform. You can use this PUT method to perform the following management actions.
If you specify this attribute, this method starts a job that runs in the background to perform the operation. The response header includes a URI in the form /tasks/{task_id} (for example, /tasks/12) that represents the job that is created to perform this request. You can use GET /tasks/{job_list} to monitor the status and progress of the job. If a job was not successfully started, refer to the response code and response body for details.
Attention
A successful response indicates that the request was successfully created and accepted by the management server. It does not indicate that the operation that is associated with the job was successful.

Authentication

Authentication with username and password is required.

Request URL

PUT https://{management_server_IP}/cmms/{uuid}

where {uuid} is the UUID of the CMM. To obtain the CMM UUID, use the GET /cmms method.

Query parameters

AttributesRequired / OptionalDescription
synchronous={value}OptionalWhen modifying attributes, indicates when the job ID is returned
  • true. (default) Returns the job ID and job status after the job is complete.
  • false. Returns the job ID immediately. You can use GET /tasks/{job_list} to monitor the status and progress of the job.
Note
This query parameter applies only when one or more property parameters are specified in the request body.

Request body

You can specify attributes from one of the following tables in each request.

Table 1. Modify CMM properties.
AttributesRequired / OptionalTypeDescription
domainNameOptionalStringDomain name
hostConfigOptionalArray 
 DDNSenabledOptionalBooleanIdentifies whether Dynamic DNS is enabled. This can be one of the following values.
  • true. Dynamic DNS is enabled
  • false. Dynamic DNS is disabled
 DNSenabledOptionalBooleanIdentifies whether DNS is enabled. This can be one of the following values.
  • true. DNS is enabled
  • false. DNS is disabled
 globalIPv6enabledOptionalStringGlobal IPv6 enablement
 IPversionPriorityOptionalStringIP version priority. This can be one of the following values.
  • IPv6ThenIPv4
  • IPv4ThenIPv6
 priIPv4userDNSserverOptionalStringPrimary user assigned IPv4 DNS server
 priIPv6userDNSserverOptionalStringPrimary user assigned IPv6 DNS server
 secIPv4userDNSserverOptionalStringSecondary user assigned IPv4 DNS server
 secIPv6userDNSserverOptionalStringSecondary user assigned IPv6 DNS server
 terIPv4userDNSserverOptionalStringTernary user assigned IPv4 DNS server
 terIPv6userDNSserverOptionalStringTernary user assigned IPv6 DNS server
hostnameOptionalStringHostname
ipInterfacesOptionalArrayInformation about the CMM IP addresses
 IPv4assignmentsOptionalArrayInformation about IPv4 assignments
  addressOptionalStringIPv4 address
  gatewayOptionalStringIPv4 gateway
  idRequiredIntegerIPv4 assignment ID
  subnetOptionalStringIPv4 subnet mask
 IPv4DHCPmodeOptionalStringIP address assignment method. This can be one of the following values.
  • STATIC_ONLY
  • DHCP_ONLY
  • DHCP_THEN_STATIC
  • UNKNOWN
 IPv4enabledOptionalBooleanIdentifies whether IPv4 is enabled. This can be one of the following values.
  • true. IPv4 is enabled
  • false. IPv4 is disabled
 IPv6assignmentsOptionalArrayInformation about IPv6 assignments
  addressOptionalStringIPv6 address
  gatewayOptionalStringIPv6 gateway
  idRequiredIntegerIPv6 assignment ID
  prefixOptionalIntegerIPv6 prefix
 IPv6DHCPenabledOptionalBooleanIdentifies whether IPv6 DHCP is enabled. This can be one of the following values.
  • true. IPv6 DHCP is enabled
  • false. IPv6 DHCP is disabled
 IPv6enabledOptionalBooleanIdentifies whether IPv6 is enabled. This can be one of the following values.
  • true. IPv6 is enabled
  • false. IPv6 is disabled
 IPv6statelessEnabledOptionalBooleanIdentifies whether IPv6 stateless is enabled. This can be one of the following values.
  • true. IPv6 stateless is enabled
  • false. IPv6 stateless is disabled
 IPv6staticEnabledOptionalBooleanIdentifies whether IPv6 static is enabled. This can be one of the following values.
  • true. IPv6 static is enabled
  • false. IPv6 static is disabled
 nameRequiredStringIP Interface name
The following examples show how to use the PUT method to change CMM configuration settings:
{
"contact": "new contact",
"hostname":"",
"location": {
"location":"new location"
}
}
Table 2. Modifying the power state
AttributesRequired / OptionalTypeDescription
powerStateOptionalStringPerforms a power operation on the CMM. This can be one of the following values.
  • reset. Restart the CMM.
  • virtualReseat. Simulates removing power from the bay
The following example restarts the CMM.
{
"powerState":"reset"
}
Table 3. Refresh the inventory
AttributesRequired / OptionalTypeDescription
refreshInventoryOptionalStringRefreshes inventory for the CMM
The following example refreshes inventory for the target CMM.
{
"refreshInventory": "true"
}

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA 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.
401UnauthorizedThe user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body.
403ForbiddenThe 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.
409ConflictThere is a conflict with the current state of the resource. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

None