PUT databases/:database_name/license

Creates a job to upgrade the license for each host on the database identified by :database_name. The :database_name is the value of the name field that the GET databases command returns.

Returns a job ID that can be used to determine the status of the job. See GET jobs.

Resource URL

https://<NODE>:5444/databases/:database_name/license

Authentication

Requires a VerticaAPIKey in the request header.

The API key must have restricted level security or higher.

Parameters

user_id
A database username.
passwd
A password for the username.
file
The name of the license file.

Example Request

PUT
https://<NODE>:5444/databases/testDB/license?user_id=dbadmin&file=vlicense.dat&passwd=vertica

Response:

{
    "data": "No files were uploaded. Did you include the 'file' parameter in your post?",
    "http_code": 400,
    "name": "Bad Request",
    "url": "https://192.168.232.180:5444/databases/testDB/license?user_id=dbadmin&amp;file=vlicense.dat&amp;passwd=vertica"
}