POST – Install a License
Use the POST method to install a license.
Request URL
POST https://<BMC_IPADDR>/redfish/v1/LicenseService/Licenses
Request body
Field  | Type  | Description  | |
|---|---|---|---|
LicenseString  | String | Required. A base64 string format of license file content. | |
Note
User can use any base64 decode/encode tool to convert a .key file to a base64 string. The output base64 string should then be copied to the POST body.
Response body
| Field | Type | Description | 
|---|---|---|
Description  | String | A collection of Licenses resource instances. | 
Name  | String | “LicenseCollection”. | 
Members  | Array | Items: A reference link to a license | 
Status code
| HTTP Status Code | Error Message ID | 
|---|---|
| 400 | BadRequest | 
| 500 | InternalError | 
Example
The following example is POST body:
{
    "LicenseString":"Aj8wTGVub3ZvIFNZU1RFTSBYIEZ....VD9u7oqr57iu5Luo6Ye1Ylrmg4TmmLgqPzM/Pw=="
}
The following example JSON response is returned.
{
    "@odata.context": "/redfish/v1/$metadata#LicenseCollection.LicenseCollection",
    "@odata.etag": "\"2a59d9ed8de02723db9\"",
    "Description": "A collection of Licenses resource instances.",
    "Members@odata.count": 1,
    "@odata.type": "#LicenseCollection.LicenseCollection",
    "@odata.id": "/redfish/v1/LicenseService/Licenses",
    "Name": "LicenseCollection",
    "Members": [
        {
            "@odata.id": "/redfish/v1/LicenseService/Licenses/XCC_Advanced" "
        }
    ]
}
Give documentation feedback