Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.LicenseManager.getLicenseRecords
Start a Neo task
Explain and create an oci.LicenseManager.getLicenseRecords resource
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: testProductLicense.id,
});
import pulumi
import pulumi_oci as oci
test_license_records = oci.LicenseManager.get_license_records(product_license_id=test_product_license["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/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: testProductLicense.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 = testProductLicense.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(testProductLicense.id())
.build());
}
}
variables:
testLicenseRecords:
fn::invoke:
function: oci:LicenseManager:getLicenseRecords
arguments:
productLicenseId: ${testProductLicense.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[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[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)
public static Output<GetLicenseRecordsResult> getLicenseRecords(GetLicenseRecordsArgs args, InvokeOptions options)
fn::invoke:
function: oci:LicenseManager/getLicenseRecords:getLicenseRecords
arguments:
# arguments dictionaryThe following arguments are supported:
- Product
License stringId - Unique product license identifier.
- Filters
List<Get
License Records Filter>
- Product
License stringId - Unique product license identifier.
- Filters
[]Get
License Records Filter
- product
License StringId - Unique product license identifier.
- filters
List<Get
License Records Filter>
- product
License stringId - Unique product license identifier.
- filters
Get
License Records Filter[]
- product_
license_ strid - Unique product license identifier.
- filters
Sequence[Get
License Records Filter]
- product
License StringId - 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.
- License
Record List<GetCollections License Records License Record Collection> - The list of license_record_collection.
- Product
License stringId - The product license OCID with which the license record is associated.
- Filters
List<Get
License Records Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- License
Record []GetCollections License Records License Record Collection - The list of license_record_collection.
- Product
License stringId - The product license OCID with which the license record is associated.
- Filters
[]Get
License Records Filter
- id String
- The provider-assigned unique ID for this managed resource.
- license
Record List<GetCollections License Records License Record Collection> - The list of license_record_collection.
- product
License StringId - The product license OCID with which the license record is associated.
- filters
List<Get
License Records Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- license
Record GetCollections License Records License Record Collection[] - The list of license_record_collection.
- product
License stringId - The product license OCID with which the license record is associated.
- filters
Get
License Records Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- license_
record_ Sequence[Getcollections License Records License Record Collection] - The list of license_record_collection.
- product_
license_ strid - The product license OCID with which the license record is associated.
- filters
Sequence[Get
License Records Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- license
Record List<Property Map>Collections - The list of license_record_collection.
- product
License StringId - The product license OCID with which the license record is associated.
- filters List<Property Map>
Supporting Types
GetLicenseRecordsFilter
GetLicenseRecordsLicenseRecordCollection
GetLicenseRecordsLicenseRecordCollectionItem
- Compartment
Id string - The compartment OCID where the license record is created.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - The license record display name. Avoid entering confidential information.
- Expiration
Date string - The license record end date in RFC 3339 date format. Example:
2018-09-12 - Dictionary<string, string>
- 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.
- 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 string - The product license unit.
- Product
Id string - The license record product ID.
- Product
License string - The product license name with which the license record is associated.
- Product
License stringId - Unique product license identifier.
- State string
- The current license record state.
- Support
End stringDate - The license record support end date in RFC 3339 date format. Example:
2018-09-12 - Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time the license record was created. An RFC 3339-formatted datetime string.
- Time
Updated string - The time the license record was updated. An RFC 3339-formatted datetime string.
- Compartment
Id string - The compartment OCID where the license record is created.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - The license record display name. Avoid entering confidential information.
- Expiration
Date string - The license record end date in RFC 3339 date format. Example:
2018-09-12 - map[string]string
- 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.
- 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 string - The product license unit.
- Product
Id string - The license record product ID.
- Product
License string - The product license name with which the license record is associated.
- Product
License stringId - Unique product license identifier.
- State string
- The current license record state.
- Support
End stringDate - The license record support end date in RFC 3339 date format. Example:
2018-09-12 - map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time the license record was created. An RFC 3339-formatted datetime string.
- Time
Updated string - The time the license record was updated. An RFC 3339-formatted datetime string.
- compartment
Id String - The compartment OCID where the license record is created.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - The license record display name. Avoid entering confidential information.
- expiration
Date String - The license record end date in RFC 3339 date format. Example:
2018-09-12 - Map<String,String>
- 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.
- is
Perpetual Boolean - Specifies if the license record term is perpertual.
- is
Unlimited Boolean - Specifies if the license count is unlimited.
- license
Count Integer - The number of license units added by the user for the given license record. Default 1
- license
Unit String - The product license unit.
- product
Id String - The license record product ID.
- product
License String - The product license name with which the license record is associated.
- product
License StringId - Unique product license identifier.
- state String
- The current license record state.
- support
End StringDate - The license record support end date in RFC 3339 date format. Example:
2018-09-12 - Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time the license record was created. An RFC 3339-formatted datetime string.
- time
Updated String - The time the license record was updated. An RFC 3339-formatted datetime string.
- compartment
Id string - The compartment OCID where the license record is created.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name string - The license record display name. Avoid entering confidential information.
- expiration
Date string - The license record end date in RFC 3339 date format. Example:
2018-09-12 - {[key: string]: string}
- 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.
- is
Perpetual boolean - Specifies if the license record term is perpertual.
- is
Unlimited boolean - Specifies if the license count is unlimited.
- license
Count number - The number of license units added by the user for the given license record. Default 1
- license
Unit string - The product license unit.
- product
Id string - The license record product ID.
- product
License string - The product license name with which the license record is associated.
- product
License stringId - Unique product license identifier.
- state string
- The current license record state.
- support
End stringDate - The license record support end date in RFC 3339 date format. Example:
2018-09-12 - {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The time the license record was created. An RFC 3339-formatted datetime string.
- time
Updated 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.
- Mapping[str, str]
- 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 - Mapping[str, str]
- 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_ strid - Unique product license identifier.
- state str
- The current license record state.
- support_
end_ strdate - The license record support end date in RFC 3339 date format. Example:
2018-09-12 - Mapping[str, str]
- 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.
- compartment
Id String - The compartment OCID where the license record is created.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - The license record display name. Avoid entering confidential information.
- expiration
Date String - The license record end date in RFC 3339 date format. Example:
2018-09-12 - Map<String>
- 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.
- is
Perpetual Boolean - Specifies if the license record term is perpertual.
- is
Unlimited Boolean - Specifies if the license count is unlimited.
- license
Count Number - The number of license units added by the user for the given license record. Default 1
- license
Unit String - The product license unit.
- product
Id String - The license record product ID.
- product
License String - The product license name with which the license record is associated.
- product
License StringId - Unique product license identifier.
- state String
- The current license record state.
- support
End StringDate - The license record support end date in RFC 3339 date format. Example:
2018-09-12 - Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time the license record was created. An RFC 3339-formatted datetime string.
- time
Updated 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
ociTerraform Provider.
