Skip to main content

POST /patterns/{id}

Use this method to deploy a server pattern to a target server.

Authentication

Authentication with username and password is required.

Request URL

POST https://{management_server_IP}/patterns/{id}

where {id} is the unique ID that was assigned when the server pattern was created. To obtain the pattern ID, use the GET /patterns method.

Request body

None

Request body

AttributesRequired / OptionalTypeDescription
endpointIdsRequired for empty Flex chassis bays and placeholder chassis bays

Optional for Flex System servers

Array of stringsA list of one or more UUIDs for the target servers, empty chassis bay, or placeholder chassis bay.

To obtain UUIDs for deployable target servers according to their pattern and profile, use the GET /config/target/{id} method.

restartRequiredStringIdentifies when to activate the configurations. This can be one of the following values.
  • defer. Activate management-controller settings but do not restart the server. UEFI and server settings are activated after the next restart of the server.
  • immediate. Activate all settings and restart the server immediately.
  • pending. Generate a profile for the server with the settings for review, but do not activate settings on the server. To activate the settings, you must manually activate the server profile and restart the server.
uuidRequired for rack and tower servers

Optional for Flex System servers

Array of stringsA list of one or more UUIDs for the target servers.

To obtains the UUIDs for servers, use the GET /nodes method.

The following example deploys a server pattern to two Flex System Placeholder chassis empty bays using deferred activation.

{
"endpointIds": [
"phc-efebecbc232a4e418081862589dde160_bay3",
"phc-efebecbc232a4e418081862589dde160_bay4"
],
"restart": "defer"
}

The following example deploys a server pattern to one System x rack server using immediate activation.

{
"uuid": ["1B54B9AEFCE04D5E820C0B6310D03590"],
"restart": "immediate"
}

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.
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.

For XClarity Administrator advanced functions, ensure that you have active licenses for each managed server that supports the advanced functions.

404Not foundA specified resource cannot be found. 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

AttributesTypeDescription
identifierStringAlways set to id
labelStringAlways set to label
itemsArrayInformation about each server and category pattern
 endpointIdsArrayUUIDs of all targeted servers
 endpointNamesArrayNames of all targeted servers
 jobNameStringName of the deploy job created
 jobRecordIDStringID of the deploy job
 locationIdsArrayLocation IDs for empty bays or placeholder bays that are targeted
 locationIdsFailedArrayLocation IDs for targeted bays for which deployment failed
 locationNamesArrayNames of all targeted empty bays
 messageNullCurrently not used. This value should always be null.
 redeployedNodeUuidsArrayUUIDs of all servers targeted for redeployment
 uuidsFailedArrayUUIDs of targeted servers for which deployment failed
The following example is returned if the request is successful.
{
"identifier": "id"
"label": "id"
"items": [1]
0: {
"endpointIds": [0]
"endpointNames": [0]
"jobNam": "Server Profile activation: Apr 9, 2015"
"jobRecordId": "48cf5296-9b6a-454e-80ad-b88b98f11b38"
"locationIds": [2]
0: "phc-efebecbc232a4e418081862589dde160_bay3"
1: "phc-efebecbc232a4e418081862589dde160_bay4"
...
"locationIdsFailed": [0]
"locationNames": [2]
0: "Bay3"
1: "Bay4"
...
"redeployedNodeUuids": [0]
"message": null
"uuidsFailed": [0]
}
...
}
}