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

Validate your AWS ARN credentials

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

Spotinst Account ID

Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{ 
    "credentials": {
        "roleArn": "arn:aws:iam::842422002533:role/danielAssumeRoleTestDev",
        "externalId": "daniel"
    }
}

Body Attributes


  • credentials.roleArn * String
    ARN for role you want to test
  • credentials.externalId * String
    external ID for test
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
    "status": {
        "code": 200,
        "message": "OK"
    }
}