Service Accounts
Create Service Account
client.Beta.Organization.ServiceAccounts.New(ctx, params) (*BetaServiceAccount, error)POST/v1/organizations/service_accounts
List Service Accounts
client.Beta.Organization.ServiceAccounts.List(ctx, params) (*PageCursor[BetaServiceAccount], error)GET/v1/organizations/service_accounts
Get Service Account
client.Beta.Organization.ServiceAccounts.Get(ctx, serviceAccountID, query) (*BetaServiceAccount, error)GET/v1/organizations/service_accounts/{service_account_id}
Update Service Account
client.Beta.Organization.ServiceAccounts.Update(ctx, serviceAccountID, params) (*BetaServiceAccount, error)POST/v1/organizations/service_accounts/{service_account_id}
Archive Service Account
client.Beta.Organization.ServiceAccounts.Archive(ctx, serviceAccountID, body) (*BetaServiceAccount, error)POST/v1/organizations/service_accounts/{service_account_id}/archive
Models
Service AccountsWorkspaces
Add Workspace To Service Account
client.Beta.Organization.ServiceAccounts.Workspaces.Add(ctx, serviceAccountID, params) (*BetaServiceAccountWorkspaceMember, error)POST/v1/organizations/service_accounts/{service_account_id}/workspaces
List Workspaces For Service Account
client.Beta.Organization.ServiceAccounts.Workspaces.List(ctx, serviceAccountID, params) (*PageCursor[BetaServiceAccountWorkspaceMember], error)GET/v1/organizations/service_accounts/{service_account_id}/workspaces
Remove Workspace From Service Account
client.Beta.Organization.ServiceAccounts.Workspaces.Remove(ctx, workspaceID, params) (*BetaOrganizationServiceAccountWorkspaceRemoveResponse, error)DELETE/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}