Service Accounts
List Service Accounts
ListServiceAccountsResponse contains a list of service accounts.
ErrorResponse defines a common error response structure.
GET /api/rbac/service-accounts/list HTTP/1.1
Host: api.groundcover.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Get service account by ID
ID of the service account to retrieve
ServiceAccountsWithPolicyResponse defines the response structure for getting a single service account.
ErrorResponse defines a common error response structure.
ErrorResponse defines a common error response structure.
GET /api/rbac/service-account/{id} HTTP/1.1
Host: api.groundcover.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Create Service Account
The email address associated with the service account.
The desired name for the service account.
A list of policy UUIDs to assign to the service account.
ErrorResponse defines a common error response structure.
ErrorResponse defines a common error response structure.
ErrorResponse defines a common error response structure.
POST /api/rbac/service-account/create HTTP/1.1
Host: api.groundcover.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"email": "text",
"name": "text",
"policyUUIDs": [
"text"
]
}
No content
Delete Service Account
ID of the service account to delete
NoContentResponse indicates success but that no response body is expected or included.
ErrorResponse defines a common error response structure.
ErrorResponse defines a common error response structure.
ErrorResponse defines a common error response structure.
DELETE /api/rbac/service-account/{id} HTTP/1.1
Host: api.groundcover.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Update Service Account
The new email address for the service account (optional).
A list of policy UUIDs to set for the service account (optional, replaces existing). Provide empty list to remove all.
The UUID of the service account to update.
UpdateServiceAccountResponseWrapper defines the response structure for updating a service account.
ErrorResponse defines a common error response structure.
ErrorResponse defines a common error response structure.
ErrorResponse defines a common error response structure.
PUT /api/rbac/service-account/update HTTP/1.1
Host: api.groundcover.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"email": "text",
"overridePolicies": true,
"policyUUIDs": [
"text"
],
"serviceAccountId": "text"
}
No content
Last updated