Get resource details
get_resourceFetch detailed Oracle Cloud Infrastructure resource attributes by resource type and OCID. Returns full details for Vcn, Subnet, and Instance; other types return identifiers, with secrets redacted.
Instructions
Fetch detailed attributes for a resource by type and OCID. Known types (Vcn, Subnet, Instance) return full attributes; others return the identifier. Secrets are redacted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resourceType": "<resourceType>",
"ocid": "<ocid>"
},
"name": "get_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocid | Yes | The resource OCID | |
| resourceType | Yes | OCI resource type, e.g. Vcn, Subnet, Instance | |
| compartmentId | No | Compartment OCID (for scoping) |