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
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 = @var.Compartment_id,
ProductLicenseId = oci_license_manager_product_license.Test_product_license.Id,
IsCompartmentIdInSubtree = @var.Product_license_consumer_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.GetProductLicenseConsumers(ctx, &licensemanager.GetProductLicenseConsumersArgs{
CompartmentId: _var.Compartment_id,
ProductLicenseId: oci_license_manager_product_license.Test_product_license.Id,
IsCompartmentIdInSubtree: pulumi.BoolRef(_var.Product_license_consumer_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.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(var_.compartment_id())
.productLicenseId(oci_license_manager_product_license.test_product_license().id())
.isCompartmentIdInSubtree(var_.product_license_consumer_is_compartment_id_in_subtree())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_product_license_consumers = oci.LicenseManager.get_product_license_consumers(compartment_id=var["compartment_id"],
product_license_id=oci_license_manager_product_license["test_product_license"]["id"],
is_compartment_id_in_subtree=var["product_license_consumer_is_compartment_id_in_subtree"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProductLicenseConsumers = oci.LicenseManager.getProductLicenseConsumers({
compartmentId: _var.compartment_id,
productLicenseId: oci_license_manager_product_license.test_product_license.id,
isCompartmentIdInSubtree: _var.product_license_consumer_is_compartment_id_in_subtree,
});
variables:
testProductLicenseConsumers:
fn::invoke:
Function: oci:LicenseManager:getProductLicenseConsumers
Arguments:
compartmentId: ${var.compartment_id}
productLicenseId: ${oci_license_manager_product_license.test_product_license.id}
isCompartmentIdInSubtree: ${var.product_license_consumer_is_compartment_id_in_subtree}
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:LicenseManager/getProductLicenseConsumers:getProductLicenseConsumers
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The compartment OCID used for the license record, product license, and configuration.
- Product
License stringId Unique product license identifier.
- 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.
- Product
License stringId Unique product license identifier.
- 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.
- product
License StringId Unique product license identifier.
- 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.
- product
License stringId Unique product license identifier.
- 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.
- product_
license_ strid Unique product license identifier.
- 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.
- product
License StringId 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
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 boolOptions Available Specifies if all options are available.
- Is
Base boolLicense Available Specifies if the base license is available.
- License
Unit stringType The product license unit.
- License
Units doubleConsumed Number of license units consumed by the resource.
- Missing
Products List<GetProduct License Consumers Item Missing Product> Collection of missing product licenses.
- Product
Name string The resource product name.
- Resource
Compartment stringId The OCID of the compartment that contains the resource.
- Resource
Compartment stringName The display name of the compartment that contains the resource.
- Resource
Id string The OCID of the resource.
- Resource
Name string The display name of the resource.
- Resource
Unit doubleCount Number of units of the resource
- Resource
Unit 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 stringType The product license unit.
- License
Units float64Consumed Number of license units consumed by the resource.
- Missing
Products []GetProduct License Consumers Item Missing Product Collection of missing product licenses.
- Product
Name string The resource product name.
- Resource
Compartment stringId The OCID of the compartment that contains the resource.
- Resource
Compartment stringName The display name of the compartment that contains the resource.
- Resource
Id string The OCID of the resource.
- Resource
Name string The display name of the resource.
- Resource
Unit float64Count Number of units of the resource
- Resource
Unit stringType The unit type for the resource.
- are
All BooleanOptions Available Specifies if all options are available.
- is
Base BooleanLicense Available Specifies if the base license is available.
- license
Unit StringType The product license unit.
- license
Units DoubleConsumed Number of license units consumed by the resource.
- missing
Products List<GetProduct License Consumers Item Missing Product> Collection of missing product licenses.
- product
Name String The resource product name.
- resource
Compartment StringId The OCID of the compartment that contains the resource.
- resource
Compartment StringName The display name of the compartment that contains the resource.
- resource
Id String The OCID of the resource.
- resource
Name String The display name of the resource.
- resource
Unit DoubleCount Number of units of the resource
- resource
Unit StringType The unit type for the resource.
- are
All booleanOptions Available Specifies if all options are available.
- is
Base booleanLicense Available Specifies if the base license is available.
- license
Unit stringType The product license unit.
- license
Units numberConsumed Number of license units consumed by the resource.
- missing
Products GetProduct License Consumers Item Missing Product[] Collection of missing product licenses.
- product
Name string The resource product name.
- resource
Compartment stringId The OCID of the compartment that contains the resource.
- resource
Compartment stringName The display name of the compartment that contains the resource.
- resource
Id string The OCID of the resource.
- resource
Name string The display name of the resource.
- resource
Unit numberCount Number of units of the resource
- resource
Unit 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 GetProduct 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.
- are
All BooleanOptions Available Specifies if all options are available.
- is
Base BooleanLicense Available Specifies if the base license is available.
- license
Unit StringType The product license unit.
- license
Units NumberConsumed Number of license units consumed by the resource.
- missing
Products List<Property Map> Collection of missing product licenses.
- product
Name String The resource product name.
- resource
Compartment StringId The OCID of the compartment that contains the resource.
- resource
Compartment StringName The display name of the compartment that contains the resource.
- resource
Id String The OCID of the resource.
- resource
Name String The display name of the resource.
- resource
Unit NumberCount Number of units of the resource
- resource
Unit 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
oci
Terraform Provider.