Authentication¶
xcsh uses API tokens to connect to the F5 Distributed Cloud API.
Obtaining an API Token¶
- Log in to the F5 XC Console
- Navigate to Administration > Personal Management > Credentials
- Click Create Credentials
- Select type API Token
- Copy the generated token
Environment Variables¶
The simplest authentication method uses environment variables:
export F5XC_API_URL="https://your-tenant.console.ves.volterra.io"
export F5XC_API_TOKEN="your-api-token"
Then run any xcsh command:
Connection Profiles¶
For managing multiple tenants, use connection profiles to save and switch between credentials.
Create a Profile¶
xcsh login profile create myprofile --url https://your-tenant.console.ves.volterra.io --token your-api-token
List Profiles¶
Switch Profiles¶
Show Profile Details¶
Delete a Profile¶
Authentication Priority¶
xcsh uses credentials in this order:
- Environment variables (
F5XC_API_URLandF5XC_API_TOKEN) - Active connection profile (if no env vars set)
If environment variable credentials are invalid, xcsh will automatically fall back to the active profile.
Verifying Authentication¶
Test your configuration by listing your saved profiles:
Or list available resources from a domain:
In interactive mode, the status bar shows the current tenant URL and connection status.