Oracle Cloud Infrastructure Documentation

Viewing All Resources in a Compartment

This topic describes how you can use the compartment explorer to get a cross-region view of all resources in a compartment.

Compartment Explorer Overview

The compartment explorer lets you view all your resources in a specific compartment, across all regions. You can easily navigate up and down the compartment hierarchy to get the complete view of the resources in a specific compartment tree. From the compartment explorer, you can navigate directly to resources and take some actions. This feature provides a convenient option to access the resources throughout your tenancy.

The following image highlights these features:

Features of the compartment explorer

When using the compartment explorer, be aware of the following:

  • If you recently created a resource, it might not show up in the compartment explorer immediately. Similarly, if you recently updated a resource, your changes might not immediately appear.
  • You must be in the same region as the resource to navigate to its details page, move it, or delete it. The compartment explorer displays the resource's region. Use the region selector at the top of the Console to change to the same region as the resource to enable these actions.

Resources Supported by the Compartment Explorer

The compartment explorer is powered by the Search service and supports the same resource types. Most resources are supported.

Supported resources

Required IAM Policy to View Resources in the Compartment Explorer

The resources that you see in the compartment explorer depend on the permissions you have in place for the resource type. You do not necessarily see results for everything in the compartment. For example, if your user account is not associated with a policy that grants you the ability to, at a minimum, inspect the instance resource type, then you can't view instances in the compartment explorer. For more information about policies, see How Policies Work. For information about the permissions required for the list API operation for a specific resource type, see the Policy Reference for the appropriate service.

Navigating to the Compartment Explorer and Viewing Resources

Open the navigation menu. Under Governance and Administration, go to Governance and click Compartment Explorer.

The compartment explorer opens with a view of the root compartment. Select the compartment you want to explore from the compartment picker on the left side of the Console. After you select a compartment, the resources in that compartment that you have permission to view are displayed. The Name and Description of the compartment you are viewing are displayed at the top of the page.

To also list all resources in the subcompartments of the selected compartment, select Show resources in subcompartments. When viewing resources in all subcompartments, it is helpful to use the Compartment column in the results list to see the compartment hierarchy where the resource resides.

Filtering Displayed Resources

To view only specific resource types, select the resource types you are interested in from the Filter by resource type menu. You can select multiple resources to include in the filtered list. You can also filter the list by tags.

Opening the Resource Details Page

Detail page navigation is not supported for all resource types. If detail page navigation is not supported, the resource name does not display as a link and the option is grayed out on the Actions menu.

To open the details page for a resource:

  1. Locate the resource in the list.
  2. Verify that you are in the same region as the resource. The resource's region is listed in the compartment explorer results. If it is not the same as the region you are currently in (shown at the top of the Console), then select the appropriate region from the Regions menu.
  3. To open the details page, you can either:

    • Click the name.
    • Click the the Actions icon (three dots) and select View Details.

Moving a Resource to a Different Compartment

Not all resources can be moved to a different compartment. If the resource cannot be moved, the option is grayed out on the Actions menu.

To move a resource to a different compartment:

  1. Locate the resource in the list.
  2. Verify that you are in the same region as the resource. The resource's region is listed in the compartment explorer results. If it is not the same as the region you are currently in (shown at the top of the Console), then select the appropriate region from the Regions menu.
  3. Click the the Actions icon (three dots) and select Move Resource.
  4. In the dialog, choose the destination compartment from the list.
  5. Click Move Resource.

Important

Ensure that you understand the impact for a resource before you move it. See the resource's service documentation for details.

Deleting a Resource

Not all resources can be deleted from the compartment explorer. If delete is not supported, the option is grayed out on the Actions menu.

Note that if a resource is in use by another resource, you can't delete it. For example, to delete a VCN, it must first be empty and have no related resources or attached gateways.

To delete a resource from the compartment explorer:

  1. Locate the resource in the list.
  2. Verify that you are in the same region as the resource. The resource's region is listed in the compartment explorer results. If it is not the same as the region you are currently in (shown at the top of the Console), then select the appropriate region from the Regions menu.
  3. Click the the Actions icon (three dots) and select Delete.
  4. In the confirmation dialog, click Delete.
  5. You are taken to the details page for the deleted resource.