- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to get EnterpriseManager.APISessionID from command prompt
Jul 31, 2023 2:03:05 AM
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
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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?
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello @Sonja_Bauernfeind ,
Thanks, it helped!!!