API - Get Entitlement
Purpose
To get the entitlement by user, asset and account using Sectona API interface.
Accessing the API
CODE
|
HTTP METHOD
CODE
|
Parameters
Parameters | Data type | Required | Description |
---|---|---|---|
EntitlementType | String | Yes | User |
Assettype | String | OPTIONAL | Not Required if User type |
AssetHost | String | OPTIONAL | Not Required if User type |
DBInstance | String | OPTIONAL | Not Required if User type |
AccountName | String | OPTIONAL | Required if Account type |
AccountType | String | OPTIONAL | Required if Account type (Local, AD Account) |
Username | String | OPTIONAL | Required if User type |
AuthenticationType | String | OPTIONAL | Required if User type |
DirectoryStore | String | OPTIONAL | Required if User type |
Instance | String | YES | Instance name |
Sample Request (JSON)
CODE
|
Sample Response (JSON)
CODE
|
Standard Error Response Codes
Error Code | Error Description |
---|---|
011649 | Current user do not have permission to take action |
011651 | The authorization header is either empty or not basic |
011673 | Invalid credentials |
011674 | Invalid credentials |
011675 | Unable to validate request |
011683 | Invalid instance name |
011803 | Unable to insert api log details |
032417 | Unable to get entitlement information |
011656 | Invalid directory store |
011671 | Invalid account name |
011685 | Unable to get asset information |
011690 | Account does not belongs to asset |
011805 | Unable to get user group |
011853 | Requested asset is not valid |