Get Entitlements
POST/getEntitlements
This API can be used to get the list of all the entitlements.
This API call can be used to get the list and details of all the entitlements the user has access to.
This API will return only the entitlement attributes which are not null or not empty.
The Authorization
must have Bearer
followed by Token
.
Optional params:
username
,
entitlementtype
,
endpoint
,
requestedObject
-"users","userscount",
max
,
offset
,
entitlementResponseFields
,
userResponseFields
,
userfiltercriteria
,
accountname
,
entownerwithrank
- if "true", returns the list of owners with owner rank for every entitlementValue,
returnentitlementmap
(true/false,default:false) - If true, entitlementmap details will be returned,
exactmatch
- Default is true. If given as false, it will search based on similar matches,
entitlementfiltercriteria
,
OR
entQuery
- query to support only entitlement_values parameters. Sample - "ent.description = 'Desc' or ent.displayname like '%display%'".
Note - Either pass param entitlementfiltercriteria (with or without exactmatch) OR entQuery. Both cannot be passed simultaneously.
Request
- application/json
Body
Responses
- 200
Get Entitlements / Get Entitlements
Response Headers
Access-Control-Allow-Credentials
string
Access-Control-Allow-Origin
string
Cache-Control
string
Date
string
Expires
string
Referrer-Policy
string
Server
string
Set-Cookie
string
Strict-Transport-Security
string
X-Content-Type-Options
string
X-Frame-Options
string
- application/json
- Schema
- Example (from schema)
- Get Entitlements
Schema
Array [
Array [
]
Array [
]
]
Entitlementdetails
object[]
accounts
object[]
entitlementMapDetails
object[]
{
"Entitlementdetails": [
{
"accounts": [
{
"accountname": "jasorodriguez",
"enddate": "",
"startdate": "",
"updatedate": ""
},
{
"accountname": "jasorodriguez",
"enddate": "",
"startdate": "",
"updatedate": ""
},
{
"accountname": "jasorodriguez",
"enddate": "",
"startdate": "",
"updatedate": ""
}
],
"childEntitlementCount": 0,
"customproperty1": "Code: 80,Name: stopped",
"customproperty10": "false",
"customproperty13": "N",
"customproperty15": "2017-07-03 17:10:15",
"customproperty16": "State: disabled",
"customproperty17": "ami-0c2dfb1a",
"customproperty18": "AWSSaviynt-6612acc",
"customproperty19": "default",
"customproperty2": "m3.xlarge",
"customproperty20": "ip-172-31-19-127.ec2.internal",
"customproperty3": "Key: Owner,Value: Sagar Srikantaiah, Key: aws:cloudformation:stack-id,Value: arn:aws:cloudformation:us-east-1:661222050851:stack/IDMAMITest/b8c82f20-f8a8-11e6-845b-500c28903236, Key: aws:cloudformation:logical-id,Value: SaviyntAWSEC2, Key: Name,Value: IDMAMITest, Key: aws:cloudformation:stack-name,Value: IDMAMITest",
"customproperty4": "172.31.19.127",
"customproperty5": "vpc-60389904",
"customproperty6": "subnet-3e9ea667",
"customproperty7": "false",
"customproperty8": "Arn: arn:aws:iam::661222050851:instance-profile/IDMAMITest-SaviyntAWSInstanceProfile-PB8FBG9QPF8J,Id: AIPAI4Z55IKG4PEYTP622",
"customproperty9": "us-east-1",
"description": "",
"displayname": "",
"endpoint": "AWS",
"endpointKey": 1,
"entitlementID": "i-03d58cd60fa90b9a9",
"entitlementMapDetails": [
{
"addDependentTask": "",
"description": "Enable http, https, ssh access to the My ControlNode.",
"excludeEntitlement": "",
"exportPrimary": "sg-4341773f",
"primary": "sg-4341773f",
"primaryEntKey": "189289",
"primaryEntType": "AWSSecurityGroup",
"removeDependentEntTask": "",
"requestFilter": ""
},
{
"addDependentTask": "",
"description": "",
"excludeEntitlement": "",
"exportPrimary": "vol-011ca83c3d8894018",
"primary": "vol-011ca83c3d8894018",
"primaryEntKey": "192408",
"primaryEntType": "EBSVolume",
"removeDependentEntTask": "",
"requestFilter": ""
},
{
"addDependentTask": "",
"description": "",
"excludeEntitlement": "",
"exportPrimary": "arn:aws:iam::661222050851:policy/USFederalDemoStack-SaviyntAWSPolicy-EQ3LNR2RUGS7",
"primary": "arn:aws:iam::661222050851:policy/USFederalDemoStack-SaviyntAWSPolicy-EQ3LNR2RUGS7",
"primaryEntKey": "3932043",
"primaryEntType": "AWSPolicy",
"removeDependentEntTask": "",
"requestFilter": ""
}
],
"entitlementOwner": "",
"entitlementType": "EC2InstanceDisplay",
"entitlementTypeKey": 52,
"entitlementTypeName": "EC2Instance",
"entitlement_glossary": "",
"entitlement_value": "i-03d58cd60fa90b9a9",
"entitlement_valuekey": "191373",
"requestForm": "Request Form None",
"soxcritical": "0",
"status": "1",
"syscritical": "0",
"updatedate": "2017-08-10 16:11:47"
}
],
"entitlementsCount": 1,
"errorCode": "0",
"msg": "Successful",
"totalEntitlementCount": 1
}
{
"Entitlementdetails": [
{
"accounts": [
{
"accountname": "jasorodriguez",
"enddate": "",
"startdate": "",
"updatedate": ""
},
{
"accountname": "jasorodriguez",
"enddate": "",
"startdate": "",
"updatedate": ""
},
{
"accountname": "jasorodriguez",
"enddate": "",
"startdate": "",
"updatedate": ""
}
],
"childEntitlementCount": 0,
"customproperty1": "Code: 80,Name: stopped",
"customproperty10": "false",
"customproperty13": "N",
"customproperty15": "2017-07-03 17:10:15",
"customproperty16": "State: disabled",
"customproperty17": "ami-0c2dfb1a",
"customproperty18": "AWSSaviynt-6612acc",
"customproperty19": "default",
"customproperty2": "m3.xlarge",
"customproperty20": "ip-172-31-19-127.ec2.internal",
"customproperty3": "Key: Owner,Value: Sagar Srikantaiah, Key: aws:cloudformation:stack-id,Value: arn:aws:cloudformation:us-east-1:661222050851:stack/IDMAMITest/b8c82f20-f8a8-11e6-845b-500c28903236, Key: aws:cloudformation:logical-id,Value: SaviyntAWSEC2, Key: Name,Value: IDMAMITest, Key: aws:cloudformation:stack-name,Value: IDMAMITest",
"customproperty4": "172.31.19.127",
"customproperty5": "vpc-60389904",
"customproperty6": "subnet-3e9ea667",
"customproperty7": "false",
"customproperty8": "Arn: arn:aws:iam::661222050851:instance-profile/IDMAMITest-SaviyntAWSInstanceProfile-PB8FBG9QPF8J,Id: AIPAI4Z55IKG4PEYTP622",
"customproperty9": "us-east-1",
"description": "",
"displayname": "",
"endpoint": "AWS",
"endpointKey": 1,
"entitlementID": "i-03d58cd60fa90b9a9",
"entitlementMapDetails": [
{
"addDependentTask": "",
"description": "Enable http, https, ssh access to the My ControlNode.",
"excludeEntitlement": "",
"exportPrimary": "sg-4341773f",
"primary": "sg-4341773f",
"primaryEntKey": "189289",
"primaryEntType": "AWSSecurityGroup",
"removeDependentEntTask": "",
"requestFilter": ""
},
{
"addDependentTask": "",
"description": "",
"excludeEntitlement": "",
"exportPrimary": "vol-011ca83c3d8894018",
"primary": "vol-011ca83c3d8894018",
"primaryEntKey": "192408",
"primaryEntType": "EBSVolume",
"removeDependentEntTask": "",
"requestFilter": ""
},
{
"addDependentTask": "",
"description": "",
"excludeEntitlement": "",
"exportPrimary": "arn:aws:iam::661222050851:policy/ADAWSFFRoles-SaviyntAWSConfigPolicy-TVZXKOYNVMLC",
"primary": "arn:aws:iam::661222050851:policy/ADAWSFFRoles-SaviyntAWSConfigPolicy-TVZXKOYNVMLC",
"primaryEntKey": "193885",
"primaryEntType": "AWSPolicy",
"removeDependentEntTask": "",
"requestFilter": ""
}
],
"entitlementOwner": "",
"entitlementType": "EC2InstanceDisplay",
"entitlementTypeKey": 52,
"entitlementTypeName": "EC2Instance",
"entitlement_glossary": "",
"entitlement_value": "i-03d58cd60fa90b9a9",
"entitlement_valuekey": "191373",
"requestForm": "Request Form None",
"soxcritical": "0",
"status": "1",
"syscritical": "0",
"updatedate": "2017-08-10 16:11:47"
}
],
"entitlementsCount": 1,
"errorCode": "0",
"msg": "Successful",
"totalEntitlementCount": 1
}