Skip to main content
Announcements
Qlik and Talend Support Cases are now opened in the same place.

How to get EnterpriseManager.APISessionID from command prompt

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
Dineshan
Support
Support

How to get EnterpriseManager.APISessionID from command prompt

Last Update:

Jul 31, 2023 2:03:05 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jul 6, 2022 10:16:42 AM

From this URL (https://www.url-encode-decode.com/base64-encode-decode/) encode your credentials

Format:

To encode enter your Qlik Enterprise Manager credentials in below format.

domain\username:password

Example of encoded code:

domain\username:password
 ZG9tYWluXHVzZXJuYW1lOnBhc3N3b3Jk

To get session ID:

Change the encode value (you generated from above step) and server on the URL below

Open command prompt and enter the command below after you modify it:

curl -i -k --header "Authorization: Basic ZG9tYWluXHVzZXJuYW1lOnBhc3N3b3Jk" https://servername/attunityenterprisemanager/api/v1/login

Labels (1)
Comments
KellyHobson
Former Employee
Former Employee

Tested this recently and here are two example commands to use after getting the APISessionID:

C:\Users\administrator.DOMAIN>curl -i -k --header "Authorization: Basic ZG9tYWluXHVzZXJuYW1lOnBhc3N3b3Jk" https://aem1.domain.local/attunityenterprisemanager/api/v1/login

returns:


HTTP/2 200
content-length: 0
content-type: text/html
server: Microsoft-HTTPAPI/2.0
enterprisemanager.apisessionid: aSIAaBeUpVblE128hlfN4Q
date: Wed, 29 Jun 2022 14:52:39 GMT

===================

RELOAD_TARGET

C:\Users\administrator.DOMAIN>curl -i -k -X POST --header "EnterpriseManager.APISessionID: aSIAaBeUpVblE128hlfN4Q" --header "Content-Length: 0" https://aem1.domain.local/attunityenterprisemanager/api/v1/servers/Replicate1/tasks/GARD/?action=run"&"option=RELOAD_TARGET

where task: GARD

ReloadTable

C:\Users\administrator.DOMAIN>curl -i -k -X POST --header "EnterpriseManager.APISessionID: aSIAaBeUpVblE128hlfN4Q" --header "Content-Length: 0" "https://aem1.domain.local/attunityenterprisemanager/api/v1/servers/Replicate1/tasks/GARD/tables?acti..."

where task: GARD, schema: replicate1, table: tblEmployee

dhina
Contributor III
Contributor III

I could see session time out would be 5 minutes, is there any way we can increase this session timeout?

also, if we create more sessions, in between that 5 minutes will it cause any issues?

Sonja_Bauernfeind
Digital Support
Digital Support

Hello Dhina,

Does this help?

Setting a user timeout 

dhina
Contributor III
Contributor III

Hello @Sonja_Bauernfeind ,

Thanks, it helped!!!

Version history
Last update:
‎2023-07-31 02:03 AM
Updated by: