Skip to content

Role

Create a role object and the rbac_policy object which the role associated with.

ToolDescription
f5xc-api-tenantandidentity-role-createCustom Create Role.
f5xc-api-tenantandidentity-role-getCustom GET Role.
f5xc-api-tenantandidentity-role-listCustom List Roles.
f5xc-api-tenantandidentity-role-updateCustom Replace Role.
f5xc-api-tenantandidentity-role-deleteDELETE Role.
ParameterDescriptionExample
namespaceNamespace-
nameName-

Ask Claude to help you work with Role resources:

“Create a role named ‘example’ in the ‘production’ namespace”

“List all roles in the ‘production’ namespace”

“Get details of the role named ‘example’ in namespace ‘production‘“

Terminal window
# List resources
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/roles" \
-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}/roles/<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}/roles" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d @role.json
# Delete resource
curl -X DELETE "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/roles/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}"