Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi
oci.LicenseManager.getTopUtilizedProductLicenses
Explore with Pulumi AI
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,
});
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)
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
})
}
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,
});
});
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());
}
}
variables:
testTopUtilizedProductLicenses:
fn::invoke:
function: oci:LicenseManager:getTopUtilizedProductLicenses
arguments:
compartmentId: ${compartmentId}
isCompartmentIdInSubtree: ${topUtilizedProductLicenseIsCompartmentIdInSubtree}
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>
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]
func GetTopUtilizedProductLicenses(ctx *Context, args *GetTopUtilizedProductLicensesArgs, opts ...InvokeOption) (*GetTopUtilizedProductLicensesResult, error)
func GetTopUtilizedProductLicensesOutput(ctx *Context, args *GetTopUtilizedProductLicensesOutputArgs, opts ...InvokeOption) GetTopUtilizedProductLicensesResultOutput
> 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)
}
public static CompletableFuture<GetTopUtilizedProductLicensesResult> getTopUtilizedProductLicenses(GetTopUtilizedProductLicensesArgs args, InvokeOptions options)
public static Output<GetTopUtilizedProductLicensesResult> getTopUtilizedProductLicenses(GetTopUtilizedProductLicensesArgs args, InvokeOptions options)
fn::invoke:
function: oci:LicenseManager/getTopUtilizedProductLicenses:getTopUtilizedProductLicenses
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The compartment OCID used for the license record, product license, and configuration.
- Is
Compartment boolId In Subtree - Indicates if the given compartment is the root compartment.
- Compartment
Id This property is required. string - The compartment OCID used for the license record, product license, and configuration.
- Is
Compartment boolId In Subtree - Indicates if the given compartment is the root compartment.
- compartment
Id This property is required. String - The compartment OCID used for the license record, product license, and configuration.
- is
Compartment BooleanId In Subtree - Indicates if the given compartment is the root compartment.
- compartment
Id This property is required. string - The compartment OCID used for the license record, product license, and configuration.
- is
Compartment booleanId In Subtree - 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_ boolid_ in_ subtree - Indicates if the given compartment is the root compartment.
- compartment
Id This property is required. String - The compartment OCID used for the license record, product license, and configuration.
- is
Compartment BooleanId In Subtree - Indicates if the given compartment is the root compartment.
getTopUtilizedProductLicenses Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Top Utilized Product Licenses Item> - Collection of top utilized product licenses.
- Is
Compartment boolId In Subtree
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Top Utilized Product Licenses Item - Collection of top utilized product licenses.
- Is
Compartment boolId In Subtree
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Top Utilized Product Licenses Item> - Collection of top utilized product licenses.
- is
Compartment BooleanId In Subtree
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Top Utilized Product Licenses Item[] - Collection of top utilized product licenses.
- is
Compartment booleanId In Subtree
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[licensemanager.
Get Top Utilized Product Licenses Item] - Collection of top utilized product licenses.
- is_
compartment_ boolid_ in_ subtree
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Collection of top utilized product licenses.
- is
Compartment BooleanId In Subtree
Supporting Types
GetTopUtilizedProductLicensesItem
- Is
Unlimited This property is required. bool - Specifies if the license unit count is unlimited.
- Product
License Id This property is required. string - The product license OCID.
- Product
Type This property is required. string - The product type.
- Status
This property is required. string - 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. double - Number of license units consumed.
- Unit
Type 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. string - The product license OCID.
- Product
Type This property is required. string - The product type.
- Status
This property is required. string - 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. float64 - Number of license units consumed.
- Unit
Type This property is required. string - The product license unit.
- is
Unlimited This property is required. Boolean - Specifies if the license unit count is unlimited.
- product
License Id This property is required. String - The product license OCID.
- product
Type This property is required. String - The product type.
- status
This property is required. String - The current product license status.
- total
License Unit Count This property is required. Integer - Total number of license units in the product license provided by the user.
- total
Units Consumed This property is required. Double - Number of license units consumed.
- unit
Type This property is required. String - The product license unit.
- is
Unlimited This property is required. boolean - Specifies if the license unit count is unlimited.
- product
License Id This property is required. string - The product license OCID.
- product
Type This property is required. string - The product type.
- status
This property is required. string - The current product license status.
- total
License Unit Count This property is required. number - Total number of license units in the product license provided by the user.
- total
Units Consumed This property is required. number - Number of license units consumed.
- unit
Type 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.
- is
Unlimited This property is required. Boolean - Specifies if the license unit count is unlimited.
- product
License Id This property is required. String - The product license OCID.
- product
Type This property is required. String - The product type.
- status
This property is required. String - The current product license status.
- total
License Unit Count This property is required. Number - Total number of license units in the product license provided by the user.
- total
Units Consumed This property is required. Number - Number of license units consumed.
- unit
Type 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.