Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.LicenseManager.getProductLicenseConsumers
Explore with Pulumi AI
This data source provides the list of Product License Consumers in Oracle Cloud Infrastructure License Manager service.
Retrieves the product license consumers for a particular product license ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProductLicenseConsumers = oci.LicenseManager.getProductLicenseConsumers({
    compartmentId: compartmentId,
    productLicenseId: testProductLicense.id,
    isCompartmentIdInSubtree: productLicenseConsumerIsCompartmentIdInSubtree,
});
import pulumi
import pulumi_oci as oci
test_product_license_consumers = oci.LicenseManager.get_product_license_consumers(compartment_id=compartment_id,
    product_license_id=test_product_license["id"],
    is_compartment_id_in_subtree=product_license_consumer_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.GetProductLicenseConsumers(ctx, &licensemanager.GetProductLicenseConsumersArgs{
			CompartmentId:            compartmentId,
			ProductLicenseId:         testProductLicense.Id,
			IsCompartmentIdInSubtree: pulumi.BoolRef(productLicenseConsumerIsCompartmentIdInSubtree),
		}, 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 testProductLicenseConsumers = Oci.LicenseManager.GetProductLicenseConsumers.Invoke(new()
    {
        CompartmentId = compartmentId,
        ProductLicenseId = testProductLicense.Id,
        IsCompartmentIdInSubtree = productLicenseConsumerIsCompartmentIdInSubtree,
    });
});
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.GetProductLicenseConsumersArgs;
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 testProductLicenseConsumers = LicenseManagerFunctions.getProductLicenseConsumers(GetProductLicenseConsumersArgs.builder()
            .compartmentId(compartmentId)
            .productLicenseId(testProductLicense.id())
            .isCompartmentIdInSubtree(productLicenseConsumerIsCompartmentIdInSubtree)
            .build());
    }
}
variables:
  testProductLicenseConsumers:
    fn::invoke:
      function: oci:LicenseManager:getProductLicenseConsumers
      arguments:
        compartmentId: ${compartmentId}
        productLicenseId: ${testProductLicense.id}
        isCompartmentIdInSubtree: ${productLicenseConsumerIsCompartmentIdInSubtree}
Using getProductLicenseConsumers
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 getProductLicenseConsumers(args: GetProductLicenseConsumersArgs, opts?: InvokeOptions): Promise<GetProductLicenseConsumersResult>
function getProductLicenseConsumersOutput(args: GetProductLicenseConsumersOutputArgs, opts?: InvokeOptions): Output<GetProductLicenseConsumersResult>def get_product_license_consumers(compartment_id: Optional[str] = None,
                                  is_compartment_id_in_subtree: Optional[bool] = None,
                                  product_license_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetProductLicenseConsumersResult
def get_product_license_consumers_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                  is_compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                                  product_license_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetProductLicenseConsumersResult]func GetProductLicenseConsumers(ctx *Context, args *GetProductLicenseConsumersArgs, opts ...InvokeOption) (*GetProductLicenseConsumersResult, error)
func GetProductLicenseConsumersOutput(ctx *Context, args *GetProductLicenseConsumersOutputArgs, opts ...InvokeOption) GetProductLicenseConsumersResultOutput> Note: This function is named GetProductLicenseConsumers in the Go SDK.
public static class GetProductLicenseConsumers 
{
    public static Task<GetProductLicenseConsumersResult> InvokeAsync(GetProductLicenseConsumersArgs args, InvokeOptions? opts = null)
    public static Output<GetProductLicenseConsumersResult> Invoke(GetProductLicenseConsumersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProductLicenseConsumersResult> getProductLicenseConsumers(GetProductLicenseConsumersArgs args, InvokeOptions options)
public static Output<GetProductLicenseConsumersResult> getProductLicenseConsumers(GetProductLicenseConsumersArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LicenseManager/getProductLicenseConsumers:getProductLicenseConsumers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment OCID used for the license record, product license, and configuration.
- ProductLicense stringId 
- Unique product license identifier.
- IsCompartment boolId In Subtree 
- Indicates if the given compartment is the root compartment.
- CompartmentId string
- The compartment OCID used for the license record, product license, and configuration.
- ProductLicense stringId 
- Unique product license identifier.
- IsCompartment boolId In Subtree 
- Indicates if the given compartment is the root compartment.
- compartmentId String
- The compartment OCID used for the license record, product license, and configuration.
- productLicense StringId 
- Unique product license identifier.
- isCompartment BooleanId In Subtree 
- Indicates if the given compartment is the root compartment.
- compartmentId string
- The compartment OCID used for the license record, product license, and configuration.
- productLicense stringId 
- Unique product license identifier.
- isCompartment 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.
- product_license_ strid 
- Unique product license identifier.
- is_compartment_ boolid_ in_ subtree 
- Indicates if the given compartment is the root compartment.
- compartmentId String
- The compartment OCID used for the license record, product license, and configuration.
- productLicense StringId 
- Unique product license identifier.
- isCompartment BooleanId In Subtree 
- Indicates if the given compartment is the root compartment.
getProductLicenseConsumers Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetProduct License Consumers Item> 
- Collection of product license consumers.
- ProductLicense stringId 
- IsCompartment boolId In Subtree 
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetProduct License Consumers Item 
- Collection of product license consumers.
- ProductLicense stringId 
- IsCompartment boolId In Subtree 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetProduct License Consumers Item> 
- Collection of product license consumers.
- productLicense StringId 
- isCompartment BooleanId In Subtree 
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetProduct License Consumers Item[] 
- Collection of product license consumers.
- productLicense stringId 
- isCompartment booleanId In Subtree 
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[licensemanager.Get Product License Consumers Item] 
- Collection of product license consumers.
- product_license_ strid 
- is_compartment_ boolid_ in_ subtree 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Collection of product license consumers.
- productLicense StringId 
- isCompartment BooleanId In Subtree 
Supporting Types
GetProductLicenseConsumersItem    
- AreAll boolOptions Available 
- Specifies if all options are available.
- IsBase boolLicense Available 
- Specifies if the base license is available.
- LicenseUnit stringType 
- The product license unit.
- LicenseUnits doubleConsumed 
- Number of license units consumed by the resource.
- MissingProducts List<GetProduct License Consumers Item Missing Product> 
- Collection of missing product licenses.
- ProductName string
- The resource product name.
- ResourceCompartment stringId 
- The OCID of the compartment that contains the resource.
- ResourceCompartment stringName 
- The display name of the compartment that contains the resource.
- ResourceId string
- The OCID of the resource.
- ResourceName string
- The display name of the resource.
- ResourceUnit doubleCount 
- Number of units of the resource
- ResourceUnit stringType 
- The unit type for the resource.
- AreAll boolOptions Available 
- Specifies if all options are available.
- IsBase boolLicense Available 
- Specifies if the base license is available.
- LicenseUnit stringType 
- The product license unit.
- LicenseUnits float64Consumed 
- Number of license units consumed by the resource.
- MissingProducts []GetProduct License Consumers Item Missing Product 
- Collection of missing product licenses.
- ProductName string
- The resource product name.
- ResourceCompartment stringId 
- The OCID of the compartment that contains the resource.
- ResourceCompartment stringName 
- The display name of the compartment that contains the resource.
- ResourceId string
- The OCID of the resource.
- ResourceName string
- The display name of the resource.
- ResourceUnit float64Count 
- Number of units of the resource
- ResourceUnit stringType 
- The unit type for the resource.
- areAll BooleanOptions Available 
- Specifies if all options are available.
- isBase BooleanLicense Available 
- Specifies if the base license is available.
- licenseUnit StringType 
- The product license unit.
- licenseUnits DoubleConsumed 
- Number of license units consumed by the resource.
- missingProducts List<GetProduct License Consumers Item Missing Product> 
- Collection of missing product licenses.
- productName String
- The resource product name.
- resourceCompartment StringId 
- The OCID of the compartment that contains the resource.
- resourceCompartment StringName 
- The display name of the compartment that contains the resource.
- resourceId String
- The OCID of the resource.
- resourceName String
- The display name of the resource.
- resourceUnit DoubleCount 
- Number of units of the resource
- resourceUnit StringType 
- The unit type for the resource.
- areAll booleanOptions Available 
- Specifies if all options are available.
- isBase booleanLicense Available 
- Specifies if the base license is available.
- licenseUnit stringType 
- The product license unit.
- licenseUnits numberConsumed 
- Number of license units consumed by the resource.
- missingProducts GetProduct License Consumers Item Missing Product[] 
- Collection of missing product licenses.
- productName string
- The resource product name.
- resourceCompartment stringId 
- The OCID of the compartment that contains the resource.
- resourceCompartment stringName 
- The display name of the compartment that contains the resource.
- resourceId string
- The OCID of the resource.
- resourceName string
- The display name of the resource.
- resourceUnit numberCount 
- Number of units of the resource
- resourceUnit stringType 
- The unit type for the resource.
- are_all_ booloptions_ available 
- Specifies if all options are available.
- is_base_ boollicense_ available 
- Specifies if the base license is available.
- license_unit_ strtype 
- The product license unit.
- license_units_ floatconsumed 
- Number of license units consumed by the resource.
- missing_products Sequence[licensemanager.Get Product License Consumers Item Missing Product] 
- Collection of missing product licenses.
- product_name str
- The resource product name.
- resource_compartment_ strid 
- The OCID of the compartment that contains the resource.
- resource_compartment_ strname 
- The display name of the compartment that contains the resource.
- resource_id str
- The OCID of the resource.
- resource_name str
- The display name of the resource.
- resource_unit_ floatcount 
- Number of units of the resource
- resource_unit_ strtype 
- The unit type for the resource.
- areAll BooleanOptions Available 
- Specifies if all options are available.
- isBase BooleanLicense Available 
- Specifies if the base license is available.
- licenseUnit StringType 
- The product license unit.
- licenseUnits NumberConsumed 
- Number of license units consumed by the resource.
- missingProducts List<Property Map>
- Collection of missing product licenses.
- productName String
- The resource product name.
- resourceCompartment StringId 
- The OCID of the compartment that contains the resource.
- resourceCompartment StringName 
- The display name of the compartment that contains the resource.
- resourceId String
- The OCID of the resource.
- resourceName String
- The display name of the resource.
- resourceUnit NumberCount 
- Number of units of the resource
- resourceUnit StringType 
- The unit type for the resource.
GetProductLicenseConsumersItemMissingProduct      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.