GEThttps://api.spotinst.io/setup/access/policy?accountId={ACCOUNT_ID}

Get access policy settings.

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spotinst account ID

Example: act-1234cds
Request

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

Headers
Copied!
Downloaded!
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "kind": "spotinst:setup:access:policy",
  "items": [
    {
      "name": "my policy",
      "description": "description of my policy",
      "policyContent": {
        "statements": [
          {
            "effect": "ALLOW",
            "actions": [
              "ocean:importCluster"
            ],
            "resources": [
              "*"
            ]
          },
          {
            "effect": "ALLOW",
            "actions": [
              "emr:scale"
            ],
            "resources": [
              "*"
            ]
          }
        ]
      },
      "id": "pol-c3e30574",
      "createdAt": "2020-01-21T12:37:14.000+0000",
      "updatedAt": "2020-01-21T12:37:14.000+0000"
    }
  ],
  "count": 1
}