List the spaces assigned to a service account
Reviewed on · View on GitHub
View the spaces a service account has access to.
Permissions
info
This action requires the following IAM (Identity and Access Management) permissions:
- iam.serviceAccount.get
- Console
- API
- Terraform
Console

- In the Service Accounts table, click the access key of the service account whose assigned spaces you want to view.
tip
You can search for a specific service account using the Search field.
- On the "Service Account details" page, the "Assigned spaces" section lists the spaces the service account can access, with the roles and permissions associated with each space.
API
curl example
curl 'https://api.{region}.numspot.com/iam/organisations/{organisationId}/serviceAccounts/{serviceAccountId}/spaces'
Response
{
"nextPageToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"totalSize": 150,
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
info
See the API usage page for details.
Terraform
The Terraform documentation is available on the Numspot registry ↗.