fbpx
GEThttps://api.spotinst.io/functions/iam/role/aws/${ROLE_ID}?accountId=${ACCOUNT_ID}

Get information about you IAM role create in Spotinst

URL Parameters

Parameter Type Description
ROLE_ID * String

IAM role ID from Spotinst

ACCOUNT_ID * String

Spotinst account ID from console

Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
                "id": "sfr-63567e9c",
                "description": "s3 ful access",
                "provider": "AWS",
                "credentials": {
                    "roleArn": "arn:aws:iam::842422002533:role/danielAssumeRoleTestDev",
                    "externalId": "daniel"
                },
                "createdAt": "2018-02-19T14:26:07.587+0000"
 }