1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LicenseManager
  5. getTopUtilizedProductLicenses
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.LicenseManager.getTopUtilizedProductLicenses

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

This data source provides the list of Top Utilized Product Licenses in Oracle Cloud Infrastructure License Manager service.

Retrieves the top utilized product licenses for a given compartment.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testTopUtilizedProductLicenses = oci.LicenseManager.getTopUtilizedProductLicenses({
    compartmentId: compartmentId,
    isCompartmentIdInSubtree: topUtilizedProductLicenseIsCompartmentIdInSubtree,
});
Copy
import pulumi
import pulumi_oci as oci

test_top_utilized_product_licenses = oci.LicenseManager.get_top_utilized_product_licenses(compartment_id=compartment_id,
    is_compartment_id_in_subtree=top_utilized_product_license_is_compartment_id_in_subtree)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/licensemanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := licensemanager.GetTopUtilizedProductLicenses(ctx, &licensemanager.GetTopUtilizedProductLicensesArgs{
			CompartmentId:            compartmentId,
			IsCompartmentIdInSubtree: pulumi.BoolRef(topUtilizedProductLicenseIsCompartmentIdInSubtree),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testTopUtilizedProductLicenses = Oci.LicenseManager.GetTopUtilizedProductLicenses.Invoke(new()
    {
        CompartmentId = compartmentId,
        IsCompartmentIdInSubtree = topUtilizedProductLicenseIsCompartmentIdInSubtree,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LicenseManager.LicenseManagerFunctions;
import com.pulumi.oci.LicenseManager.inputs.GetTopUtilizedProductLicensesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testTopUtilizedProductLicenses = LicenseManagerFunctions.getTopUtilizedProductLicenses(GetTopUtilizedProductLicensesArgs.builder()
            .compartmentId(compartmentId)
            .isCompartmentIdInSubtree(topUtilizedProductLicenseIsCompartmentIdInSubtree)
            .build());

    }
}
Copy
variables:
  testTopUtilizedProductLicenses:
    fn::invoke:
      function: oci:LicenseManager:getTopUtilizedProductLicenses
      arguments:
        compartmentId: ${compartmentId}
        isCompartmentIdInSubtree: ${topUtilizedProductLicenseIsCompartmentIdInSubtree}
Copy

Using getTopUtilizedProductLicenses

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getTopUtilizedProductLicenses(args: GetTopUtilizedProductLicensesArgs, opts?: InvokeOptions): Promise<GetTopUtilizedProductLicensesResult>
function getTopUtilizedProductLicensesOutput(args: GetTopUtilizedProductLicensesOutputArgs, opts?: InvokeOptions): Output<GetTopUtilizedProductLicensesResult>
Copy
def get_top_utilized_product_licenses(compartment_id: Optional[str] = None,
                                      is_compartment_id_in_subtree: Optional[bool] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetTopUtilizedProductLicensesResult
def get_top_utilized_product_licenses_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                      is_compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetTopUtilizedProductLicensesResult]
Copy
func GetTopUtilizedProductLicenses(ctx *Context, args *GetTopUtilizedProductLicensesArgs, opts ...InvokeOption) (*GetTopUtilizedProductLicensesResult, error)
func GetTopUtilizedProductLicensesOutput(ctx *Context, args *GetTopUtilizedProductLicensesOutputArgs, opts ...InvokeOption) GetTopUtilizedProductLicensesResultOutput
Copy

> Note: This function is named GetTopUtilizedProductLicenses in the Go SDK.

public static class GetTopUtilizedProductLicenses 
{
    public static Task<GetTopUtilizedProductLicensesResult> InvokeAsync(GetTopUtilizedProductLicensesArgs args, InvokeOptions? opts = null)
    public static Output<GetTopUtilizedProductLicensesResult> Invoke(GetTopUtilizedProductLicensesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTopUtilizedProductLicensesResult> getTopUtilizedProductLicenses(GetTopUtilizedProductLicensesArgs args, InvokeOptions options)
public static Output<GetTopUtilizedProductLicensesResult> getTopUtilizedProductLicenses(GetTopUtilizedProductLicensesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:LicenseManager/getTopUtilizedProductLicenses:getTopUtilizedProductLicenses
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The compartment OCID used for the license record, product license, and configuration.
IsCompartmentIdInSubtree bool
Indicates if the given compartment is the root compartment.
CompartmentId This property is required. string
The compartment OCID used for the license record, product license, and configuration.
IsCompartmentIdInSubtree bool
Indicates if the given compartment is the root compartment.
compartmentId This property is required. String
The compartment OCID used for the license record, product license, and configuration.
isCompartmentIdInSubtree Boolean
Indicates if the given compartment is the root compartment.
compartmentId This property is required. string
The compartment OCID used for the license record, product license, and configuration.
isCompartmentIdInSubtree boolean
Indicates if the given compartment is the root compartment.
compartment_id This property is required. str
The compartment OCID used for the license record, product license, and configuration.
is_compartment_id_in_subtree bool
Indicates if the given compartment is the root compartment.
compartmentId This property is required. String
The compartment OCID used for the license record, product license, and configuration.
isCompartmentIdInSubtree Boolean
Indicates if the given compartment is the root compartment.

getTopUtilizedProductLicenses Result

The following output properties are available:

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
Items List<GetTopUtilizedProductLicensesItem>
Collection of top utilized product licenses.
IsCompartmentIdInSubtree bool
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
Items []GetTopUtilizedProductLicensesItem
Collection of top utilized product licenses.
IsCompartmentIdInSubtree bool
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
items List<GetTopUtilizedProductLicensesItem>
Collection of top utilized product licenses.
isCompartmentIdInSubtree Boolean
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
items GetTopUtilizedProductLicensesItem[]
Collection of top utilized product licenses.
isCompartmentIdInSubtree boolean
compartment_id str
id str
The provider-assigned unique ID for this managed resource.
items Sequence[licensemanager.GetTopUtilizedProductLicensesItem]
Collection of top utilized product licenses.
is_compartment_id_in_subtree bool
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
items List<Property Map>
Collection of top utilized product licenses.
isCompartmentIdInSubtree Boolean

Supporting Types

GetTopUtilizedProductLicensesItem

IsUnlimited This property is required. bool
Specifies if the license unit count is unlimited.
ProductLicenseId This property is required. string
The product license OCID.
ProductType This property is required. string
The product type.
Status This property is required. string
The current product license status.
TotalLicenseUnitCount This property is required. int
Total number of license units in the product license provided by the user.
TotalUnitsConsumed This property is required. double
Number of license units consumed.
UnitType This property is required. string
The product license unit.
IsUnlimited This property is required. bool
Specifies if the license unit count is unlimited.
ProductLicenseId This property is required. string
The product license OCID.
ProductType This property is required. string
The product type.
Status This property is required. string
The current product license status.
TotalLicenseUnitCount This property is required. int
Total number of license units in the product license provided by the user.
TotalUnitsConsumed This property is required. float64
Number of license units consumed.
UnitType This property is required. string
The product license unit.
isUnlimited This property is required. Boolean
Specifies if the license unit count is unlimited.
productLicenseId This property is required. String
The product license OCID.
productType This property is required. String
The product type.
status This property is required. String
The current product license status.
totalLicenseUnitCount This property is required. Integer
Total number of license units in the product license provided by the user.
totalUnitsConsumed This property is required. Double
Number of license units consumed.
unitType This property is required. String
The product license unit.
isUnlimited This property is required. boolean
Specifies if the license unit count is unlimited.
productLicenseId This property is required. string
The product license OCID.
productType This property is required. string
The product type.
status This property is required. string
The current product license status.
totalLicenseUnitCount This property is required. number
Total number of license units in the product license provided by the user.
totalUnitsConsumed This property is required. number
Number of license units consumed.
unitType This property is required. string
The product license unit.
is_unlimited This property is required. bool
Specifies if the license unit count is unlimited.
product_license_id This property is required. str
The product license OCID.
product_type This property is required. str
The product type.
status This property is required. str
The current product license status.
total_license_unit_count This property is required. int
Total number of license units in the product license provided by the user.
total_units_consumed This property is required. float
Number of license units consumed.
unit_type This property is required. str
The product license unit.
isUnlimited This property is required. Boolean
Specifies if the license unit count is unlimited.
productLicenseId This property is required. String
The product license OCID.
productType This property is required. String
The product type.
status This property is required. String
The current product license status.
totalLicenseUnitCount This property is required. Number
Total number of license units in the product license provided by the user.
totalUnitsConsumed This property is required. Number
Number of license units consumed.
unitType This property is required. String
The product license unit.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi