Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 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 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.
- Product
License Id This property is required. string - Unique product license identifier.
- 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.
- Product
License Id This property is required. string - Unique product license identifier.
- 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.
- product
License Id This property is required. String - Unique product license identifier.
- 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.
- product
License Id This property is required. string - Unique product license identifier.
- 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.
- product_
license_ id This property is required. str - Unique product license identifier.
- 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.
- product
License Id This property is required. String - Unique product license identifier.
- is
Compartment BooleanId In Subtree - Indicates if the given compartment is the root compartment.
getProductLicenseConsumers Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Product License Consumers Item> - Collection of product license consumers.
- Product
License stringId - Is
Compartment boolId In Subtree
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Product License Consumers Item - Collection of product license consumers.
- Product
License stringId - Is
Compartment boolId In Subtree
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Product License Consumers Item> - Collection of product license consumers.
- product
License StringId - is
Compartment BooleanId In Subtree
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Product License Consumers Item[] - Collection of product license consumers.
- product
License stringId - is
Compartment 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
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Collection of product license consumers.
- product
License StringId - is
Compartment BooleanId In Subtree
Supporting Types
GetProductLicenseConsumersItem
- Are
All Options Available This property is required. bool - Specifies if all options are available.
- Is
Base License Available This property is required. bool - Specifies if the base license is available.
- License
Unit Type This property is required. string - The product license unit.
- License
Units Consumed This property is required. double - Number of license units consumed by the resource.
- Missing
Products This property is required. List<GetProduct License Consumers Item Missing Product> - Collection of missing product licenses.
- Product
Name This property is required. string - The resource product name.
- Resource
Compartment Id This property is required. string - The OCID of the compartment that contains the resource.
- Resource
Compartment Name This property is required. string - The display name of the compartment that contains the resource.
- Resource
Id This property is required. string - The OCID of the resource.
- Resource
Name This property is required. string - The display name of the resource.
- Resource
Unit Count This property is required. double - Number of units of the resource
- Resource
Unit Type This property is required. string - The unit type for the resource.
- Are
All Options Available This property is required. bool - Specifies if all options are available.
- Is
Base License Available This property is required. bool - Specifies if the base license is available.
- License
Unit Type This property is required. string - The product license unit.
- License
Units Consumed This property is required. float64 - Number of license units consumed by the resource.
- Missing
Products This property is required. []GetProduct License Consumers Item Missing Product - Collection of missing product licenses.
- Product
Name This property is required. string - The resource product name.
- Resource
Compartment Id This property is required. string - The OCID of the compartment that contains the resource.
- Resource
Compartment Name This property is required. string - The display name of the compartment that contains the resource.
- Resource
Id This property is required. string - The OCID of the resource.
- Resource
Name This property is required. string - The display name of the resource.
- Resource
Unit Count This property is required. float64 - Number of units of the resource
- Resource
Unit Type This property is required. string - The unit type for the resource.
- are
All Options Available This property is required. Boolean - Specifies if all options are available.
- is
Base License Available This property is required. Boolean - Specifies if the base license is available.
- license
Unit Type This property is required. String - The product license unit.
- license
Units Consumed This property is required. Double - Number of license units consumed by the resource.
- missing
Products This property is required. List<GetProduct License Consumers Item Missing Product> - Collection of missing product licenses.
- product
Name This property is required. String - The resource product name.
- resource
Compartment Id This property is required. String - The OCID of the compartment that contains the resource.
- resource
Compartment Name This property is required. String - The display name of the compartment that contains the resource.
- resource
Id This property is required. String - The OCID of the resource.
- resource
Name This property is required. String - The display name of the resource.
- resource
Unit Count This property is required. Double - Number of units of the resource
- resource
Unit Type This property is required. String - The unit type for the resource.
- are
All Options Available This property is required. boolean - Specifies if all options are available.
- is
Base License Available This property is required. boolean - Specifies if the base license is available.
- license
Unit Type This property is required. string - The product license unit.
- license
Units Consumed This property is required. number - Number of license units consumed by the resource.
- missing
Products This property is required. GetProduct License Consumers Item Missing Product[] - Collection of missing product licenses.
- product
Name This property is required. string - The resource product name.
- resource
Compartment Id This property is required. string - The OCID of the compartment that contains the resource.
- resource
Compartment Name This property is required. string - The display name of the compartment that contains the resource.
- resource
Id This property is required. string - The OCID of the resource.
- resource
Name This property is required. string - The display name of the resource.
- resource
Unit Count This property is required. number - Number of units of the resource
- resource
Unit Type This property is required. string - The unit type for the resource.
- are_
all_ options_ available This property is required. bool - Specifies if all options are available.
- is_
base_ license_ available This property is required. bool - Specifies if the base license is available.
- license_
unit_ type This property is required. str - The product license unit.
- license_
units_ consumed This property is required. float - Number of license units consumed by the resource.
- missing_
products This property is required. Sequence[licensemanager.Get Product License Consumers Item Missing Product] - Collection of missing product licenses.
- product_
name This property is required. str - The resource product name.
- resource_
compartment_ id This property is required. str - The OCID of the compartment that contains the resource.
- resource_
compartment_ name This property is required. str - The display name of the compartment that contains the resource.
- resource_
id This property is required. str - The OCID of the resource.
- resource_
name This property is required. str - The display name of the resource.
- resource_
unit_ count This property is required. float - Number of units of the resource
- resource_
unit_ type This property is required. str - The unit type for the resource.
- are
All Options Available This property is required. Boolean - Specifies if all options are available.
- is
Base License Available This property is required. Boolean - Specifies if the base license is available.
- license
Unit Type This property is required. String - The product license unit.
- license
Units Consumed This property is required. Number - Number of license units consumed by the resource.
- missing
Products This property is required. List<Property Map> - Collection of missing product licenses.
- product
Name This property is required. String - The resource product name.
- resource
Compartment Id This property is required. String - The OCID of the compartment that contains the resource.
- resource
Compartment Name This property is required. String - The display name of the compartment that contains the resource.
- resource
Id This property is required. String - The OCID of the resource.
- resource
Name This property is required. String - The display name of the resource.
- resource
Unit Count This property is required. Number - Number of units of the resource
- resource
Unit Type This property is required. String - 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
oci
Terraform Provider.