Skip to content

Swap Primary

Swaps payment method roles - the payment method used as a parameter will became primary, any other will become secondary. The name parameter is ignored.

ToolDescription
f5xc-api-billingandusage-swap-primary-createMake payment method secondary.
ParameterDescriptionExample
nameName-
namespaceNamespace-

Ask Claude to help you work with Swap Primary resources:

“Create a swap-primary named ‘example’ in the ‘production’ namespace”

Terminal window
# List resources
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/swap_primarys" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json"
# Get specific resource
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/swap_primarys/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json"
# Create resource
curl -X POST "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/swap_primarys" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d @swap_primary.json
# Delete resource
curl -X DELETE "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/swap_primarys/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}"