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.
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:
- System-information pattern attributes
- Management-information pattern attributes
- Device and I/O ports pattern attributes
- Port pattern attributes
- Fibre Channel boot-target pattern attributes
- Extended management-controller pattern attributes
- Extended-UEFI pattern attributes
- Extended-port pattern attributes
- Extended-port pattern attributes
- Extended ThinkSystem SR635/SR655 BIOS pattern attributes
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. |
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. For XClarity Administrator advanced functions, ensure that you have active licenses for each managed server that supports the advanced functions. |
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
Attributes | Type | Description | ||
---|---|---|---|---|
id | String | Unique id of server pattern that was imported | ||
message | String | Message with description of success or failure |
The following example is returned if the request is successful.
{
"id": "46",
"message":"New pattern imported successfully"
}
Give documentation feedback