Lists the workload identities saved to this account.
Required permission
Account > Cloud > WorkloadIdentities > Read
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.workloadIdentities
[array]- {object}An array of workload identities
id
string requiredID of the workload identitymin length3max length39pattern^[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$name
string requiredmin length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$spec
{object} requiredstate
{object}The current state of the workload identity.status
string requiredThe current install status of the workload identity.one ofunapplied, outdated, installing, error, applied, deletingupdatedAt
stringtime of updateerrors
[array]Any errors encountered during installation.- string
updatedAt
stringtime of updatecreatedAt
stringtime of creationpagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/workload-identities
GET /v1/teams/{teamId}/workload-identities
Example response
200 OK
A list of workload identities saved to this account.
JSON
{
"data": {
"workloadIdentities": [
{
"id": "example-workload-identity",
"name": "Example Workload Identity",
"spec": {
"restrictions": {
"projects": {
"enabled": false
},
"tags": {
"enabled": false,
"matchCondition": "or"
}
}
}
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}