Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.LicenseManager.getLicenseRecord
Explore with Pulumi AI
This data source provides details about a specific License Record resource in Oracle Cloud Infrastructure License Manager service.
Retrieves license record details by the license record ID in a given compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLicenseRecord = oci.LicenseManager.getLicenseRecord({
    licenseRecordId: testLicenseRecordOciLicenseManagerLicenseRecord.id,
});
import pulumi
import pulumi_oci as oci
test_license_record = oci.LicenseManager.get_license_record(license_record_id=test_license_record_oci_license_manager_license_record["id"])
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.GetLicenseRecord(ctx, &licensemanager.GetLicenseRecordArgs{
			LicenseRecordId: testLicenseRecordOciLicenseManagerLicenseRecord.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 testLicenseRecord = Oci.LicenseManager.GetLicenseRecord.Invoke(new()
    {
        LicenseRecordId = testLicenseRecordOciLicenseManagerLicenseRecord.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.GetLicenseRecordArgs;
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 testLicenseRecord = LicenseManagerFunctions.getLicenseRecord(GetLicenseRecordArgs.builder()
            .licenseRecordId(testLicenseRecordOciLicenseManagerLicenseRecord.id())
            .build());
    }
}
variables:
  testLicenseRecord:
    fn::invoke:
      function: oci:LicenseManager:getLicenseRecord
      arguments:
        licenseRecordId: ${testLicenseRecordOciLicenseManagerLicenseRecord.id}
Using getLicenseRecord
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 getLicenseRecord(args: GetLicenseRecordArgs, opts?: InvokeOptions): Promise<GetLicenseRecordResult>
function getLicenseRecordOutput(args: GetLicenseRecordOutputArgs, opts?: InvokeOptions): Output<GetLicenseRecordResult>def get_license_record(license_record_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetLicenseRecordResult
def get_license_record_output(license_record_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetLicenseRecordResult]func LookupLicenseRecord(ctx *Context, args *LookupLicenseRecordArgs, opts ...InvokeOption) (*LookupLicenseRecordResult, error)
func LookupLicenseRecordOutput(ctx *Context, args *LookupLicenseRecordOutputArgs, opts ...InvokeOption) LookupLicenseRecordResultOutput> Note: This function is named LookupLicenseRecord in the Go SDK.
public static class GetLicenseRecord 
{
    public static Task<GetLicenseRecordResult> InvokeAsync(GetLicenseRecordArgs args, InvokeOptions? opts = null)
    public static Output<GetLicenseRecordResult> Invoke(GetLicenseRecordInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLicenseRecordResult> getLicenseRecord(GetLicenseRecordArgs args, InvokeOptions options)
public static Output<GetLicenseRecordResult> getLicenseRecord(GetLicenseRecordArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LicenseManager/getLicenseRecord:getLicenseRecord
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LicenseRecord stringId 
- Unique license record identifier.
- LicenseRecord stringId 
- Unique license record identifier.
- licenseRecord StringId 
- Unique license record identifier.
- licenseRecord stringId 
- Unique license record identifier.
- license_record_ strid 
- Unique license record identifier.
- licenseRecord StringId 
- Unique license record identifier.
getLicenseRecord Result
The following output properties are available:
- CompartmentId 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"}
- 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
- 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.
- 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
- LicenseRecord stringId 
- 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.
- ProductLicense stringId 
- The product license OCID with which the license record is associated.
- State string
- The current license record state.
- SupportEnd 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"}
- 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.
- map[string]string
- 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
- 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.
- 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
- LicenseRecord stringId 
- 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.
- ProductLicense stringId 
- The product license OCID with which the license record is associated.
- State string
- The current license record state.
- SupportEnd 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"}
- 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.
- Map<String,String>
- 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
- 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.
- 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
- licenseRecord StringId 
- 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.
- productLicense StringId 
- The product license OCID with which the license record is associated.
- state String
- The current license record state.
- supportEnd 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"}
- 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.
- {[key: string]: string}
- 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
- {[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.
- 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
- licenseRecord stringId 
- 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.
- productLicense stringId 
- The product license OCID with which the license record is associated.
- state string
- The current license record state.
- supportEnd 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"}
- 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.
- 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_record_ strid 
- 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 
- The product license OCID with which the license record is associated.
- 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.
- compartmentId 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"}
- 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
- 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.
- 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
- licenseRecord StringId 
- 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.
- productLicense StringId 
- The product license OCID with which the license record is associated.
- state String
- The current license record state.
- supportEnd 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"}
- 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 ociTerraform Provider.