Skip to main content

POST /patterns

Use this method to import previously exported patterns into a Lenovo XClarity Administrator instance.

Authentication

Authentication with username and password is required.

Request URL

POST https://{management_server_IP}/patterns

Query parameters

None

Request body

The request body must be a correctly formatted JSON of the configuration pattern that you want to import. Use the response body from an exported configuration pattern of the same type of pattern that you want to import using GET /patterns/{id}/includeSettings.

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.

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

AttributesTypeDescription
idStringUnique id of server pattern that was imported
messageStringMessage with description of success or failure
The following example is returned if the request is successful.
{
"id": "46",
"message":"New pattern imported successfully"
}