get_cloud_resource_details
Retrieve detailed information about a specific cloud resource by specifying provider, resource type, and ID. Designed for RAD Security to enhance cloud environment visibility and security insights.
Instructions
Get detailed information about a specific cloud resource
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | Cloud provider (aws, gcp, azure, linode) | |
| resource_id | Yes | ID of the cloud resource | |
| resource_type | Yes | Type of cloud resource (to be fetched from get_cloud_resource_facet_values or from list_cloud_resources) |
Implementation Reference
- src/operations/cloud-inventory.ts:67-76 (handler)The main handler function that executes the tool logic by making an API request to fetch details for the specified cloud resource.export async function getCloudResourceDetails( client: RadSecurityClient, provider: ProviderType, resource_type: string, resource_id: string ): Promise<any> { return client.makeRequest( `/accounts/${client.getAccountId()}/cloud-inventory/v1/${provider}/${resource_type}/${resource_id}` ); }
- Zod schema defining the input parameters for the tool: provider, resource_type, and resource_id.export const GetCloudResourceDetailsSchema = z.object({ provider: ProviderTypeEnum.describe("Cloud provider (aws, gcp, azure, linode)"), resource_type: z.string().describe("Type of cloud resource (to be fetched from get_cloud_resource_facet_values or from list_cloud_resources)"), resource_id: z.string().describe("ID of the cloud resource"), });
- src/index.ts:167-171 (registration)Tool registration in the ListTools handler, providing name, description, and input schema.{ name: "get_cloud_resource_details", description: "Get detailed information about a specific cloud resource", inputSchema: zodToJsonSchema(cloudInventory.GetCloudResourceDetailsSchema), },
- src/index.ts:483-493 (registration)Dispatch handler in the CallToolRequest switch statement that parses arguments and invokes the tool function.case "get_cloud_resource_details": { const args = cloudInventory.GetCloudResourceDetailsSchema.parse(request.params.arguments); const response = await cloudInventory.getCloudResourceDetails( client, args.provider, args.resource_type, args.resource_id ); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], };