Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.LicenseManager.getTopUtilizedProductLicenses
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 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,
});
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/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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:LicenseManager/getTopUtilizedProductLicenses:getTopUtilizedProductLicenses
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id 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 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 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 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 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 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 bool - Specifies if the license unit count is unlimited.
- Product
License stringId - The product license OCID.
- Product
Type string - The product type.
- Status string
- The current product license status.
- Total
License intUnit Count - Total number of license units in the product license provided by the user.
- Total
Units doubleConsumed - Number of license units consumed.
- Unit
Type string - The product license unit.
- Is
Unlimited bool - Specifies if the license unit count is unlimited.
- Product
License stringId - The product license OCID.
- Product
Type string - The product type.
- Status string
- The current product license status.
- Total
License intUnit Count - Total number of license units in the product license provided by the user.
- Total
Units float64Consumed - Number of license units consumed.
- Unit
Type string - The product license unit.
- is
Unlimited Boolean - Specifies if the license unit count is unlimited.
- product
License StringId - The product license OCID.
- product
Type String - The product type.
- status String
- The current product license status.
- total
License IntegerUnit Count - Total number of license units in the product license provided by the user.
- total
Units DoubleConsumed - Number of license units consumed.
- unit
Type String - The product license unit.
- is
Unlimited boolean - Specifies if the license unit count is unlimited.
- product
License stringId - The product license OCID.
- product
Type string - The product type.
- status string
- The current product license status.
- total
License numberUnit Count - Total number of license units in the product license provided by the user.
- total
Units numberConsumed - Number of license units consumed.
- unit
Type string - The product license unit.
- is_
unlimited bool - Specifies if the license unit count is unlimited.
- product_
license_ strid - The product license OCID.
- product_
type str - The product type.
- status str
- The current product license status.
- total_
license_ intunit_ count - Total number of license units in the product license provided by the user.
- total_
units_ floatconsumed - Number of license units consumed.
- unit_
type str - The product license unit.
- is
Unlimited Boolean - Specifies if the license unit count is unlimited.
- product
License StringId - The product license OCID.
- product
Type String - The product type.
- status String
- The current product license status.
- total
License NumberUnit Count - Total number of license units in the product license provided by the user.
- total
Units NumberConsumed - Number of license units consumed.
- unit
Type 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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi