Skip to main content Skip to complementary content

PutServerLicense

General

URL

https://[host]/attunityenterprisemanager/api/v1/servers/[server]/license/def

Description

Registers a license on a specific server via Qlik Enterprise Manager.

HTTP method

PUT

Required user role

See Required Enterprise Manager permissions.

Request parameters

Request parameters
Location Name Required Example

URL

Host [string]

Yes

computer.network.net

URL

ServerName [string]

Yes

The name of the server in Enterprise Manager:

myrepsrv1

Header

EnterpriseManager.APISessionID [string]

Yes

wCo0_KvjEUFROvfHF5KGrw

Request body

The license to register on the server [stream].

This is the license that was provided by your Qlik Sales Representative.

Expected format: Text or JSON.

Currently refers to the Replicate license only.

cURL example

Request

curl -i -k -X PUT --header "EnterpriseManager.APISessionID: wCo0_KvjEUFROvfHF5KGrw" --header "Content-Length: 324" "https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1/license/def" -T "C:\license_exp2018-02-07_ser90000319.txt"

Request body

(content of "C:\license_exp2018-02-07_ser90000319.txt ")

#

# Temporary license for development

#

license_type=evaluation_license

licensed_to=Qlik Internal - Qlik Replicate Development

licensed_by=Miki

serial_no=2333

expiration_date=2018-01-31

source_types=

target_types=

features=manager

version=5.5.0.0

issue_date=2017-11-01

checksum=C2855-R5J8F-JF8RQ-C3K7K

Response

Header:
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Content-Length: 38
Content-Type: application/json; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Date: Mon, 26 Dec 2016 16:31:01 GMT

Error response

All of the general errors as well as the errors listed in the table below.

Error responses
HTTP Code Enterprise Manager Code Text Description

500

AEM_PUT_SRV_LIC_INNER_ERR

Failed to put license for server "{server}".

Error: "{message}"

Returned if Qlik Enterprise Manager encounters an error/exception when trying to register the license on the specified server.

500

AEM_SRV_LIC_INVALID_FORMAT

The license file format is corrupt.

Returned when the contents of the license file are invalid.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!