Manage Resources with the CLI
List, create, inspect, enable, disable, delete, and assign configured capabilities from reviewed JSON definitions.
Before you begin
Select the namespace and identify the exact Resource kind, id, immutable implementation, configuration, Credential relationship, and Policies. Use a schema-validated JSON file for creation. Platform catalog Resources are visible to tenants but cannot be mutated or deleted by tenant commands.
Steps
- List all Resources or filter by kind:
constal resources list --kind service- Create a tenant-managed Resource with
constal resources create --body @resource.json. - Inspect its authoritative definition and control head with
resources get <kind> <id>andresources control <kind> <id>. - Use
resources disableorresources enablewith a retained--event-idand optional--reason. Disabling affects new admission; existing Runs retain their accepted snapshot according to runtime rules. - Delete only a tenant-managed Resource after checking consumers and active bindings.
- Use the
bindingscommand group for tenant defaults and customer- or principal-scoped assignments. Creation and promotion take reviewed JSON and stable event ids.
Verify
Read the Resource again and confirm the current hash, status, contract, configuration, Policies, and Credential reference. Start a controlled Run, inspect its Resource bindings, and verify the exact accepted CRN rather than relying only on the current revision.
Next steps
Read Use Resources with the SDK, Configure a Resource, Scoped bindings, and the Resources command reference.