Retrieve Resource ID

Retrieve a Resource ID in Guardrails Console

In this guide, you will:

In Guardrails, resources represent real-world cloud entities like AWS S3 buckets, GCP compute instances, or Azure SQL databases. These resources are discovered, tracked, and governed by Guardrails, with their metadata and lifecycle events stored in the Guardrails CMDB.

Whether troubleshooting a policy issue, crafting GraphQL queries, or automating remediation workflows, the ResourceID serves as a vital identifier. It functions as a unique handle to query, inspect, and perform actions on specific resources through the Guardrails Console, GraphQL, or CLI.

Prerequisites

Step 1: Locate Resources Tab

Log in to the Guardrails console using valid credentials and from the top navigation menu, select Resources to access the list of cloud resources managed by Guardrails.

Guardrails Resources Navigation Menu

Step 2: Search for Resource

Use the search bar to locate the specific resource by name, type, or cloud provider.

[!TIP] Filters can be applied to narrow down results by account, region, folder, or resource type.

Locate Using Search Bar

Step 3: Open Resource Details Page

Select the resource from the search results to open its resource details page.

Resource Details Page

Step 4: Locate Resource ID

From the resource details page, open the Developers tab to view the Identifiers section. The Resource ID, a unique numeric identifier within Guardrails, is displayed here along with a copy icon to easily copy it to the clipboard.

Select Resource ID

This ID ensures precise targeting of the resource across all Guardrails tooling. The Resource ID can now be used in:

If you encounter any issues, please Open a Support Ticket and attach the relevant information to assist you more efficiently.