Authentication
xcsh uses API tokens to connect to the Cloud API.
Obtaining an API Token
Section titled “Obtaining an API Token”- Log in to the Console
- Navigate to Administration > Personal Management > Credentials
- Click Create Credentials
- Select type API Token
- Copy the generated token
Environment Variables
Section titled “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:
xcsh tenant_and_identity list namespaceConnection Profiles
Section titled “Connection Profiles”For managing multiple tenants, use connection profiles to save and switch between credentials.
Create a Profile
Section titled “Create a Profile”xcsh login profile create myprofile --url https://your-tenant.console.ves.volterra.io --token your-api-tokenList Profiles
Section titled “List Profiles”xcsh login profile listSwitch Profiles
Section titled “Switch Profiles”xcsh login profile use myprofileShow Profile Details
Section titled “Show Profile Details”xcsh login profile show myprofileDelete a Profile
Section titled “Delete a Profile”xcsh login profile delete myprofileAuthentication Priority
Section titled “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
Section titled “Verifying Authentication”Test your configuration by listing your saved profiles:
xcsh login profile listOr list available resources from a domain:
xcsh virtual list http_loadbalancerIn interactive mode, the status bar shows the current tenant URL and connection status.