pub struct AutomationTokenResponse {Show 16 fields
pub name: Option<String>,
pub role: Option<String>,
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 customer_id: Option<Box<ReadOnlyCustomerId>>,
pub ip: Option<String>,
pub user_agent: Option<String>,
pub tls_access: Option<bool>,
pub last_used_at: Option<String>,
pub created_at: Option<String>,
}Fields§
§name: Option<String>The name of the token.
role: Option<String>§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>(optional) A UTC timestamp of when the token will expire.
id: Option<Box<ReadOnlyId>>§customer_id: Option<Box<ReadOnlyCustomerId>>§ip: Option<String>The IP address of the client that last used the token.
user_agent: Option<String>The User-Agent header of the client that last used the token.
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.
created_at: Option<String>A UTC timestamp of when the token was created.