Login
General
URL
https://{host}/attunityenterprisemanager/api/v1/login
Description
Authenticates an API caller with Enterprise Manager using Active Directory, and acquires a session token to be used with API method calls. The server requests client authentication.
HTTP method
GET
POST
Required user role
See Required Enterprise Manager permissions.
Request parameters
Location | URL Parameter Name | Required | Example |
---|---|---|---|
URL |
host [string] |
Yes |
computer.network.net |
Header (Required with Active Directory authentication only) |
user@domain:password converted to base 64 [string] |
Yes |
c27kc2Rmc27k |
Response header
URL Param Name | Description |
---|---|
EnterpriseManager.APISessionID |
Identifier to be used to get authorization to run API functions on Enterprise Manager |
cURL example
Active Directory request
curl -i -k --header "Authorization: Basic cWFAcWE6cWE=" https://computer.network.net/attunityenterprisemanager/
api/v1/login
Response
HTTP/1.1 200 OK
Content-Length: 0
Content-Type: text/html
Server: Microsoft-HTTPAPI/2.0
EnterpriseManager.APISessionID: J3cKzWIbi_w6Fr1G-tO03Q
Date: Mon, 26 Dec 2016 17:02:01 GMT
Error response
HTTP Code | Enterprise Manager Code | Text | Description |
---|---|---|---|
401 |
UNAUTHORIZED_REQUEST | Unauthorized Request. |
The request was not authorized. |