Search OCI resources
oci_searchLocate Oracle Cloud resources across an entire tenancy in one call, even when the compartment is unknown. Search by structured query or free text to find resources by type, state, name, or tag.
Instructions
Find resources of any type across the whole tenancy in one call.
The fastest way to locate something when you do not know its compartment. Prefer this over sweeping oci_list across many types.
Examples: query="query all resources where lifecycleState = 'RUNNING'" query="query instance, volume resources where displayName =~ 'test'" free_text="kubeflow"
Note: Resource Search does not index every service. OKE clusters never appear; use oci_list('cluster') for those.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return. | |
| query | No | Structured query, e.g. "query instance resources where lifecycleState = 'RUNNING'". Use 'all' in place of a type to search every resource type. | |
| free_text | No | Plain-text search over names and tags. Mutually exclusive with query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||