pub struct AutomationTokenCreateResponse {Show 17 fields
pub name: Option<String>,
pub role: Option<Role>,
pub roles: Option<Vec<AutomationTokenRole>>,
pub services: Option<Vec<String>>,
pub limit_services: Option<bool>,
pub limit_workspaces: Option<bool>,
pub workspaces: Option<Vec<String>>,
pub scope: Option<Scope>,
pub expires_at: Option<String>,
pub id: Option<Box<ReadOnlyId>>,
pub user_id: Option<Box<ReadOnlyUserId>>,
pub customer_id: Option<Box<ReadOnlyCustomerId>>,
pub created_at: Option<String>,
pub access_token: Option<String>,
pub tls_access: Option<bool>,
pub last_used_at: Option<String>,
pub user_agent: Option<String>,
}Fields§
§name: Option<String>The name of the token.
role: Option<Role>The primary role on the token. For tokens with multiple roles, this returns the highest-priority role for backwards compatibility.
roles: Option<Vec<AutomationTokenRole>>All roles assigned to the token. Each role includes an id and name.
services: Option<Vec<String>>The service IDs of the services the token has access to. Empty when limit_services is false (full access) or when the token has no service access.
limit_services: Option<bool>When true, the token is restricted to only the services in the services array. When false, the token has access to all services.
limit_workspaces: Option<bool>When true, the token is restricted to only the workspaces in the workspaces array. When false, the token has access to all workspaces. Only applies to roles that support workspace access.
workspaces: Option<Vec<String>>The workspace IDs of the workspaces the token has access to. Returns an empty array for tokens without workspace access.
scope: Option<Scope>A space-delimited list of authorization scope.
expires_at: Option<String>A UTC timestamp of when the token expires.
id: Option<Box<ReadOnlyId>>§user_id: Option<Box<ReadOnlyUserId>>§customer_id: Option<Box<ReadOnlyCustomerId>>§created_at: Option<String>A UTC timestamp of when the token was created.
access_token: Option<String>§tls_access: Option<bool>Indicates whether TLS access is enabled for the token.
last_used_at: Option<String>A UTC timestamp of when the token was last used.
user_agent: Option<String>The User-Agent header of the client that last used the token.