Data Source: oci_license_manager_top_utilized_resources
This data source provides the list of Top Utilized Resources in Oracle Cloud Infrastructure License Manager service.
Retrieves the top utilized resources for a given compartment.
Example Usage
data "oci_license_manager_top_utilized_resources" "test_top_utilized_resources" {
#Required
compartment_id = var.compartment_id
#Optional
is_compartment_id_in_subtree = var.top_utilized_resource_is_compartment_id_in_subtree
resource_unit_type = var.top_utilized_resource_resource_unit_type
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) The compartment OCID used for the license record, product license, and configuration.is_compartment_id_in_subtree- (Optional) Indicates if the given compartment is the root compartment.resource_unit_type- (Optional) A filter to return only resources whose unit matches the given resource unit.
Attributes Reference
The following attributes are exported:
top_utilized_resource_collection- The list of top_utilized_resource_collection.
TopUtilizedResource Reference
The following attributes are exported:
items- The top utilized resource summary collection.resource_compartment_id- The compartment OCID that contains the resource.resource_compartment_name- The display name of the compartment that contains the resource.resource_id- The OCID of the resource.resource_name- Resource canonical name.total_units- Number of license units consumed by the resource.unit_type- The resource unit.