- Reference an existing service account managed outside Terraform
- Read the granted privilege, creating user, and creation timestamp
- Build conditional logic based on service account metadata
Example usage
Read-only access
Data sources provide read-only access to service account metadata. To create or modify service accounts, use thekosli_service_account resource. To manage API keys, use the kosli_service_account_api_key resource.
Schema
Required
name(String) The name of the service account to query.
Read-only
created_at(String) RFC3339 UTC timestamp of when the service account was created.creating_user_id(String) Identifier of the user who created the service account.description(String) The description of the service account.display_name(String) The display name of the service account.for_webhook(Boolean) Whether the service account was created for webhook usage.privilege(String) The privilege (role) of the service account within the organization (admin,member,snapshotter, orreader).