1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LicenseManager
  5. getTopUtilizedProductLicenses
Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi

oci.LicenseManager.getTopUtilizedProductLicenses

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 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

    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 = @var.Compartment_id,
            IsCompartmentIdInSubtree = @var.Top_utilized_product_license_is_compartment_id_in_subtree,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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:            _var.Compartment_id,
    			IsCompartmentIdInSubtree: pulumi.BoolRef(_var.Top_utilized_product_license_is_compartment_id_in_subtree),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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(var_.compartment_id())
                .isCompartmentIdInSubtree(var_.top_utilized_product_license_is_compartment_id_in_subtree())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_top_utilized_product_licenses = oci.LicenseManager.get_top_utilized_product_licenses(compartment_id=var["compartment_id"],
        is_compartment_id_in_subtree=var["top_utilized_product_license_is_compartment_id_in_subtree"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testTopUtilizedProductLicenses = oci.LicenseManager.getTopUtilizedProductLicenses({
        compartmentId: _var.compartment_id,
        isCompartmentIdInSubtree: _var.top_utilized_product_license_is_compartment_id_in_subtree,
    });
    
    variables:
      testTopUtilizedProductLicenses:
        fn::invoke:
          Function: oci:LicenseManager:getTopUtilizedProductLicenses
          Arguments:
            compartmentId: ${var.compartment_id}
            isCompartmentIdInSubtree: ${var.top_utilized_product_license_is_compartment_id_in_subtree}
    

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LicenseManager/getTopUtilizedProductLicenses:getTopUtilizedProductLicenses
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId 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 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 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 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 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 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 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 bool

    Specifies if the license unit count is unlimited.

    ProductLicenseId string

    The product license OCID.

    ProductType string

    The product type.

    Status string

    The current product license status.

    TotalLicenseUnitCount int

    Total number of license units in the product license provided by the user.

    TotalUnitsConsumed double

    Number of license units consumed.

    UnitType string

    The product license unit.

    IsUnlimited bool

    Specifies if the license unit count is unlimited.

    ProductLicenseId string

    The product license OCID.

    ProductType string

    The product type.

    Status string

    The current product license status.

    TotalLicenseUnitCount int

    Total number of license units in the product license provided by the user.

    TotalUnitsConsumed float64

    Number of license units consumed.

    UnitType string

    The product license unit.

    isUnlimited Boolean

    Specifies if the license unit count is unlimited.

    productLicenseId String

    The product license OCID.

    productType String

    The product type.

    status String

    The current product license status.

    totalLicenseUnitCount Integer

    Total number of license units in the product license provided by the user.

    totalUnitsConsumed Double

    Number of license units consumed.

    unitType String

    The product license unit.

    isUnlimited boolean

    Specifies if the license unit count is unlimited.

    productLicenseId string

    The product license OCID.

    productType string

    The product type.

    status string

    The current product license status.

    totalLicenseUnitCount number

    Total number of license units in the product license provided by the user.

    totalUnitsConsumed number

    Number of license units consumed.

    unitType string

    The product license unit.

    is_unlimited bool

    Specifies if the license unit count is unlimited.

    product_license_id str

    The product license OCID.

    product_type str

    The product type.

    status str

    The current product license status.

    total_license_unit_count int

    Total number of license units in the product license provided by the user.

    total_units_consumed float

    Number of license units consumed.

    unit_type str

    The product license unit.

    isUnlimited Boolean

    Specifies if the license unit count is unlimited.

    productLicenseId String

    The product license OCID.

    productType String

    The product type.

    status String

    The current product license status.

    totalLicenseUnitCount Number

    Total number of license units in the product license provided by the user.

    totalUnitsConsumed Number

    Number of license units consumed.

    unitType 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.

    oci logo
    Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi