get-workloads
Get workloads from the PCE. Use detail_level to control breadth vs depth: 'compact' (default) for tabular overviews of thousands of workloads, 'full' for complete data on specific workloads, 'labels_only' for maximum breadth with just…
Instructions
Get workloads from the PCE. Use detail_level to control breadth vs depth: 'compact' (default) for tabular overviews of thousands of workloads, 'full' for complete data on specific workloads, 'labels_only' for maximum breadth with just identity and labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Filter by workload name (supports partial matches) | |
| labels | No | JSON-encoded list of label URIs to filter by | |
| online | No | Filter online (true) or offline (false) workloads | |
| managed | No | Filter managed (true) or unmanaged (false) workloads | |
| hostname | No | Filter by hostname (supports partial matches) | |
| ip_address | No | Filter by IP address (supports partial matches) | |
| description | No | Filter by description (supports partial matches) | |
| max_results | No | Maximum number of workloads to return (default 10000) | |
| detail_level | No | Level of detail. 'compact' (default): tabular summary with key fields, labels, and VEN health (ven_status, last_heartbeat_on, agent_version, policy_sync_state, health_errors) -- enough for 'stale VEN' questions without 'full'. 'full': complete workload data including services, VEN agent, interfaces. 'labels_only': minimal table of href, name, hostname, and labels. | compact |
| enforcement_mode | No | Filter by enforcement mode |