Get the details of a service account
All the details of a service account are returned, except the secret.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- iam.serviceAccount.get
- Console
- API
- Terraform

-
Log in to the Numspot console
-
From the left-hand side menu, click IAM → Service accounts
-
You are redirected to the list of Service accounts
In the Service accounts table, click the identifier of the service account whose details you want to obtain.
You can search for a specific service account using the "Search" field.
-
The page containing the details of the service account is displayed.
-
You can view the list of spaces assigned to the service account
-
By clicking the role link, you can view the list of roles assigned to this service account on one of its assigned spaces
-
By clicking the permissions link, you can view the list of permissions assigned to this service account on one of its assigned spaces
Get the details of a service account in an organization
Example with curl
curl 'https://api.{region}.numspot.com/iam/organisations/{organisationId}/serviceAccounts/{serviceAccountId}'
Response
{
"name": "…",
"id": "…",
"tokenDuration": "…",
"expirationDate": "…"
}
See the page on using the API for the implementation.
Get the details of a service account in a space
Example with curl
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/serviceAccounts/{serviceAccountId}'
Response
{
"name": "…",
"id": "…",
"tokenDuration": "…",
"expirationDate": "…"
}
See the page on using the API for the implementation.
Get the roles and permissions of a service account in an organization
Example with curl
curl 'https://api.{region}.numspot.com/iam/organisations/{organisationId}/iampolicy/{subjectType}/{subjectId}'
Response
{
"roles": [
"123e4567-e89b-12d3-a456-426614174000"
],
"permissions": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
See the page on using the API for the implementation.
Get the roles and permissions of a service account in a space
Example with curl
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/iampolicy/{subjectType}/{subjectId}'
Response
{
"roles": [
"123e4567-e89b-12d3-a456-426614174000"
],
"permissions": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
See the page on using the API for the implementation.
The Terraform documentation is available on the Numspot registry ↗.