ops
List and inspect operations.
Usage
onvera ops ls [--status <status>] [--type <type>] [--resource-id <id>]
onvera ops get <operation_id>Subcommands
ops ls
List operations with optional filtering.
Flags:
--status <status>- Filter by status:queued,running,succeeded,failed,canceled--type <type>- Filter by operation type (e.g.,deployment.create)--resource-id <id>- Filter by resource ID
ops get
Get detailed information about an operation.
Arguments:
<operation_id>- Operation ID
Examples
List all operations:
onvera ops lsList running operations:
onvera ops ls --status runningList deployment creation operations:
onvera ops ls --type deployment.createList operations for a specific deployment:
onvera ops ls --resource-id dep_550e8400-e29b-41d4-a716-446655440000Get operation details:
onvera ops get op_660e8400-e29b-41d4-a716-446655440001JSON output:
onvera ops ls --json
onvera ops get op_660e8400-e29b-41d4-a716-446655440001 --jsonOutput
List output:
ID TYPE STATUS PHASE RESOURCE REQUESTED
op_660e8400-e29b-41d4-a716-446655440001 deployment.create succeeded ready deployment/dep_550e8400-e29b-41d4-a716-446655440000 2024-01-20T12:00:00Z
op_770e8400-e29b-41d4-a716-446655440002 deployment.destroy running tearing_down_infra deployment/dep_660e8400-e29b-41d4-a716-446655440001 2024-01-20T13:00:00ZGet output:
Operation: op_660e8400-e29b-41d4-a716-446655440001
Type: deployment.create
Status: succeeded
Phase: ready
Message: Deployment ready
Resource: deployment/dep_550e8400-e29b-41d4-a716-446655440000
Requested: 2024-01-20T12:00:00Z
Started: 2024-01-20T12:00:15Z
Ended: 2024-01-20T12:06:15ZCommon Failure Modes
Not authenticated
Error:
not authenticated. Run 'onvera auth login' firstSolution: Run onvera auth login to authenticate.
Operation not found
Error:
API error: Operation not foundSolution: Verify the operation ID is correct and that you have access to it.