Installing and Updating License
This section explains how to install and update a license in Veeam Backup for Microsoft Office 365.
Request
POST https://<hostname>:4443/v5/License/action |
Request Headers
The request header must contain an authorization token of the current session.
Request Body
Install Action
To install a license, the request body must contain the install action property:
Property | Type | Description |
---|---|---|
LicenseFile | object | Specifies the content of the license file provided as a Base64 string. For more information about how to obtain a Base64 string, see Converting License to Base64 String. |
For example:
{ "install": { "LicenseFile": "<base64_string>" } } |
Converting License to Base64 String
To install a license, you must provide the content of the license file as a Base64 string. To obtain a Base64 string, perform the following steps:
- Get the content of the license file.
- Convert the license to a Base64 string.
To do this, you can use the following PowerShell cmdlets:
$license = get-content '<path_to_license>' -Encoding Byte [System.Convert]::ToBase64String($license) | Out-File '<path_to_file>' |
where:
- <path_to_license> — path to the license file that you want to convert to a Base64 string.
- <path_to_file> — path to a file that that will contain the resulting Base64 string. You will be able to copy the Base64 string from the file and provide the string in the body of the POST https://<hostname>:4443/v5/License/action request.
For example:
$license = get-content 'C:\veeam.lic' -Encoding Byte [System.Convert]::ToBase64String($license) | Out-File 'C:\base64.txt' |
Update Action
To update a license, the request body must contain the update action:
{ "update": null } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 201 (Created).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
In the response body, the server returns a representation of the /License resource.
Example 1
The example below shows how to install a license in Veeam Backup for Microsoft Office 365.
Request: POST https://abc.tech.local:4443/v5/License/action
Request Header: Authorization: Bearer <Access-Token>
Request body: { "install": { "LicenseFile": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPExpY2Vuc2VzPjxMaWNlbnNlPjwhW0NEQVRBW0FkZGl0aW9uYWwgU2lnbmF0dXJlPTdGRjRFOUY4MDY2QzgzNzIxNDhFQUVCRDg5NTQzQkNGRUY1MzU5OUE2NjBENTVCREMyNzhF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cdDEwMA0KTGljZW5zZSB0eXBlPVN1YnNjcmlwdGlvbg0KUHJvZHVjdD1WZWVhbSBCYWNrdXAgZm9yIE1pY3Jvc29mdCBPZmZpY2UgMzY1DQpTdXBwb3J0IGV4cGlyYXRpb24gZGF0ZT0yMC8wOS8yMDIxDQpTdXBwb3J0SUQ9MDA3ODI2MTkNClVzZXJzPTEwMA0KVmVyc2lvbj1YDQpTaWduYXR1cmU9NkNENkQ3MzRFMjUzOTM1MDA2NUNFRjg0MTcxQ0M1OUFERjE4NjczMTFGODhFMzA4MjVERDU3NzJERTIyNzZDNEJEQzA1RTkxOTIxOTdGNUI2M0JFMDFFRTZBQjAxNzEwQTEyMURBREYzODQxM0U5OUQ2MUM5QUE1NTMyMkJERDNFMUQyMTBGM0NFMDM2NkM3MUQ0RDExQUQ2MjEyMzREOEJCRUFEQTAxOTRFMDUxM0NFMUY3RTg3RjIwRDY3REE5MThEMDAwNjYxRDZGOENFQzhDQkFFNDFFRDc3QjY2MzQ2MDg3ODcyMDM2N0M0MDJDOEIzRTBFMjgyMTc5RTQyMA0KXV0+PC9MaWNlbnNlPjwvTGljZW5zZXM+DQo=" } }
Response: 201 Created
Response body: { "status": "Valid", "expirationDate": "2021-09-20T00:00:00", "type": "Subscription", "licensedTo": "ABC Company", "contactPerson": "ABC Company Admin", "totalNumber": 100, "usedNumber": 10, "supportID": "00000000", "supportExpirationDate": "2021-09-20T03:00:00+03:00" } |
Example 2
The example below shows how to update a license in Veeam Backup for Microsoft Office 365.
Request: POST https://abc.tech.local:4443/v5/License/action
Request Header: Authorization: Bearer <Access-Token>
Request body: { "update": null }
Response: 201 Created |