1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LicenseManager
  5. getLicenseRecords
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.LicenseManager.getLicenseRecords

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This data source provides the list of License Records in Oracle Cloud Infrastructure License Manager service.

    Retrieves all license records for a given product license ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testLicenseRecords = oci.LicenseManager.getLicenseRecords({
        productLicenseId: oci_license_manager_product_license.test_product_license.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_license_records = oci.LicenseManager.get_license_records(product_license_id=oci_license_manager_product_license["test_product_license"]["id"])
    
    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.GetLicenseRecords(ctx, &licensemanager.GetLicenseRecordsArgs{
    			ProductLicenseId: oci_license_manager_product_license.Test_product_license.Id,
    		}, 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 testLicenseRecords = Oci.LicenseManager.GetLicenseRecords.Invoke(new()
        {
            ProductLicenseId = oci_license_manager_product_license.Test_product_license.Id,
        });
    
    });
    
    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.GetLicenseRecordsArgs;
    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 testLicenseRecords = LicenseManagerFunctions.getLicenseRecords(GetLicenseRecordsArgs.builder()
                .productLicenseId(oci_license_manager_product_license.test_product_license().id())
                .build());
    
        }
    }
    
    variables:
      testLicenseRecords:
        fn::invoke:
          Function: oci:LicenseManager:getLicenseRecords
          Arguments:
            productLicenseId: ${oci_license_manager_product_license.test_product_license.id}
    

    Using getLicenseRecords

    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 getLicenseRecords(args: GetLicenseRecordsArgs, opts?: InvokeOptions): Promise<GetLicenseRecordsResult>
    function getLicenseRecordsOutput(args: GetLicenseRecordsOutputArgs, opts?: InvokeOptions): Output<GetLicenseRecordsResult>
    def get_license_records(filters: Optional[Sequence[_licensemanager.GetLicenseRecordsFilter]] = None,
                            product_license_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetLicenseRecordsResult
    def get_license_records_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_licensemanager.GetLicenseRecordsFilterArgs]]]] = None,
                            product_license_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetLicenseRecordsResult]
    func GetLicenseRecords(ctx *Context, args *GetLicenseRecordsArgs, opts ...InvokeOption) (*GetLicenseRecordsResult, error)
    func GetLicenseRecordsOutput(ctx *Context, args *GetLicenseRecordsOutputArgs, opts ...InvokeOption) GetLicenseRecordsResultOutput

    > Note: This function is named GetLicenseRecords in the Go SDK.

    public static class GetLicenseRecords 
    {
        public static Task<GetLicenseRecordsResult> InvokeAsync(GetLicenseRecordsArgs args, InvokeOptions? opts = null)
        public static Output<GetLicenseRecordsResult> Invoke(GetLicenseRecordsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLicenseRecordsResult> getLicenseRecords(GetLicenseRecordsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LicenseManager/getLicenseRecords:getLicenseRecords
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProductLicenseId string
    Unique product license identifier.
    Filters List<GetLicenseRecordsFilter>
    ProductLicenseId string
    Unique product license identifier.
    Filters []GetLicenseRecordsFilter
    productLicenseId String
    Unique product license identifier.
    filters List<GetLicenseRecordsFilter>
    productLicenseId string
    Unique product license identifier.
    filters GetLicenseRecordsFilter[]
    product_license_id str
    Unique product license identifier.
    filters GetLicenseRecordsFilter]
    productLicenseId String
    Unique product license identifier.
    filters List<Property Map>

    getLicenseRecords Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseRecordCollections List<GetLicenseRecordsLicenseRecordCollection>
    The list of license_record_collection.
    ProductLicenseId string
    The product license OCID with which the license record is associated.
    Filters List<GetLicenseRecordsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseRecordCollections []GetLicenseRecordsLicenseRecordCollection
    The list of license_record_collection.
    ProductLicenseId string
    The product license OCID with which the license record is associated.
    Filters []GetLicenseRecordsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    licenseRecordCollections List<GetLicenseRecordsLicenseRecordCollection>
    The list of license_record_collection.
    productLicenseId String
    The product license OCID with which the license record is associated.
    filters List<GetLicenseRecordsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    licenseRecordCollections GetLicenseRecordsLicenseRecordCollection[]
    The list of license_record_collection.
    productLicenseId string
    The product license OCID with which the license record is associated.
    filters GetLicenseRecordsFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    license_record_collections GetLicenseRecordsLicenseRecordCollection]
    The list of license_record_collection.
    product_license_id str
    The product license OCID with which the license record is associated.
    filters GetLicenseRecordsFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    licenseRecordCollections List<Property Map>
    The list of license_record_collection.
    productLicenseId String
    The product license OCID with which the license record is associated.
    filters List<Property Map>

    Supporting Types

    GetLicenseRecordsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetLicenseRecordsLicenseRecordCollection

    GetLicenseRecordsLicenseRecordCollectionItem

    CompartmentId string
    The compartment OCID where the license record is created.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    The license record display name. Avoid entering confidential information.
    ExpirationDate string
    The license record end date in RFC 3339 date format. Example: 2018-09-12
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The license record OCID.
    IsPerpetual bool
    Specifies if the license record term is perpertual.
    IsUnlimited bool
    Specifies if the license count is unlimited.
    LicenseCount int
    The number of license units added by the user for the given license record. Default 1
    LicenseUnit string
    The product license unit.
    ProductId string
    The license record product ID.
    ProductLicense string
    The product license name with which the license record is associated.
    ProductLicenseId string
    Unique product license identifier.
    State string
    The current license record state.
    SupportEndDate string
    The license record support end date in RFC 3339 date format. Example: 2018-09-12
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the license record was created. An RFC 3339-formatted datetime string.
    TimeUpdated string
    The time the license record was updated. An RFC 3339-formatted datetime string.
    CompartmentId string
    The compartment OCID where the license record is created.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    The license record display name. Avoid entering confidential information.
    ExpirationDate string
    The license record end date in RFC 3339 date format. Example: 2018-09-12
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The license record OCID.
    IsPerpetual bool
    Specifies if the license record term is perpertual.
    IsUnlimited bool
    Specifies if the license count is unlimited.
    LicenseCount int
    The number of license units added by the user for the given license record. Default 1
    LicenseUnit string
    The product license unit.
    ProductId string
    The license record product ID.
    ProductLicense string
    The product license name with which the license record is associated.
    ProductLicenseId string
    Unique product license identifier.
    State string
    The current license record state.
    SupportEndDate string
    The license record support end date in RFC 3339 date format. Example: 2018-09-12
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the license record was created. An RFC 3339-formatted datetime string.
    TimeUpdated string
    The time the license record was updated. An RFC 3339-formatted datetime string.
    compartmentId String
    The compartment OCID where the license record is created.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    The license record display name. Avoid entering confidential information.
    expirationDate String
    The license record end date in RFC 3339 date format. Example: 2018-09-12
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The license record OCID.
    isPerpetual Boolean
    Specifies if the license record term is perpertual.
    isUnlimited Boolean
    Specifies if the license count is unlimited.
    licenseCount Integer
    The number of license units added by the user for the given license record. Default 1
    licenseUnit String
    The product license unit.
    productId String
    The license record product ID.
    productLicense String
    The product license name with which the license record is associated.
    productLicenseId String
    Unique product license identifier.
    state String
    The current license record state.
    supportEndDate String
    The license record support end date in RFC 3339 date format. Example: 2018-09-12
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the license record was created. An RFC 3339-formatted datetime string.
    timeUpdated String
    The time the license record was updated. An RFC 3339-formatted datetime string.
    compartmentId string
    The compartment OCID where the license record is created.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    The license record display name. Avoid entering confidential information.
    expirationDate string
    The license record end date in RFC 3339 date format. Example: 2018-09-12
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    The license record OCID.
    isPerpetual boolean
    Specifies if the license record term is perpertual.
    isUnlimited boolean
    Specifies if the license count is unlimited.
    licenseCount number
    The number of license units added by the user for the given license record. Default 1
    licenseUnit string
    The product license unit.
    productId string
    The license record product ID.
    productLicense string
    The product license name with which the license record is associated.
    productLicenseId string
    Unique product license identifier.
    state string
    The current license record state.
    supportEndDate string
    The license record support end date in RFC 3339 date format. Example: 2018-09-12
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the license record was created. An RFC 3339-formatted datetime string.
    timeUpdated string
    The time the license record was updated. An RFC 3339-formatted datetime string.
    compartment_id str
    The compartment OCID where the license record is created.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    The license record display name. Avoid entering confidential information.
    expiration_date str
    The license record end date in RFC 3339 date format. Example: 2018-09-12
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    The license record OCID.
    is_perpetual bool
    Specifies if the license record term is perpertual.
    is_unlimited bool
    Specifies if the license count is unlimited.
    license_count int
    The number of license units added by the user for the given license record. Default 1
    license_unit str
    The product license unit.
    product_id str
    The license record product ID.
    product_license str
    The product license name with which the license record is associated.
    product_license_id str
    Unique product license identifier.
    state str
    The current license record state.
    support_end_date str
    The license record support end date in RFC 3339 date format. Example: 2018-09-12
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the license record was created. An RFC 3339-formatted datetime string.
    time_updated str
    The time the license record was updated. An RFC 3339-formatted datetime string.
    compartmentId String
    The compartment OCID where the license record is created.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    The license record display name. Avoid entering confidential information.
    expirationDate String
    The license record end date in RFC 3339 date format. Example: 2018-09-12
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The license record OCID.
    isPerpetual Boolean
    Specifies if the license record term is perpertual.
    isUnlimited Boolean
    Specifies if the license count is unlimited.
    licenseCount Number
    The number of license units added by the user for the given license record. Default 1
    licenseUnit String
    The product license unit.
    productId String
    The license record product ID.
    productLicense String
    The product license name with which the license record is associated.
    productLicenseId String
    Unique product license identifier.
    state String
    The current license record state.
    supportEndDate String
    The license record support end date in RFC 3339 date format. Example: 2018-09-12
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the license record was created. An RFC 3339-formatted datetime string.
    timeUpdated String
    The time the license record was updated. An RFC 3339-formatted datetime string.

    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.29.0 published on Thursday, Mar 28, 2024 by Pulumi