POST /patterns

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

Authentication

Authentication with user name 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.

The format of the request changes depending on the type of configuration pattern (for example, server or system information) that is being imported. For information about the format for each category pattern, see the following topics:

Response codes

Code Description
200 OK. Pattern was imported successfully, or the server pattern was imported successfully but a duplicate pattern was found.
400 Bad request
409 Conflict. The imported pattern or another pattern with same settings already exists.
500 Internal server error

Response body

Attributes Type Description
id String Unique id of server pattern that was imported
message String Message with description of success or failure

Response example

{
    "id": "46",
    "message":"New pattern imported successfully"
}