Skip to content

Authentication

xcsh uses API tokens to connect to the Cloud API.

  1. Log in to the Console
  2. Navigate to Administration > Personal Management > Credentials
  3. Click Create Credentials
  4. Select type API Token
  5. Copy the generated token

The simplest authentication method uses environment variables:

Terminal window
export F5XC_API_URL="https://your-tenant.console.ves.volterra.io"
export F5XC_API_TOKEN="your-api-token"

Then run any xcsh command:

Terminal window
xcsh tenant_and_identity list namespace

For managing multiple tenants, use connection profiles to save and switch between credentials.

Terminal window
xcsh login profile create myprofile --url https://your-tenant.console.ves.volterra.io --token your-api-token
Terminal window
xcsh login profile list
Terminal window
xcsh login profile use myprofile
Terminal window
xcsh login profile show myprofile
Terminal window
xcsh login profile delete myprofile

xcsh uses credentials in this order:

  1. Environment variables (F5XC_API_URL and F5XC_API_TOKEN)
  2. Active connection profile (if no env vars set)

If environment variable credentials are invalid, xcsh will automatically fall back to the active profile.

Test your configuration by listing your saved profiles:

Terminal window
xcsh login profile list

Or list available resources from a domain:

Terminal window
xcsh virtual list http_loadbalancer

In interactive mode, the status bar shows the current tenant URL and connection status.