Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Jms.getJavaDownloadsJavaLicenseAcceptanceRecords
This data source provides the list of Java License Acceptance Records in Oracle Cloud Infrastructure Jms Java Downloads service.
Returns a list of all the Java license acceptance records in a tenancy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testJavaLicenseAcceptanceRecords = oci.Jms.getJavaDownloadsJavaLicenseAcceptanceRecords({
    compartmentId: tenancyOcid,
    id: javaLicenseAcceptanceRecordId,
    licenseType: javaLicenseAcceptanceRecordLicenseType,
    searchByUser: javaLicenseAcceptanceRecordSearchByUser,
    status: javaLicenseAcceptanceRecordStatus,
});
import pulumi
import pulumi_oci as oci
test_java_license_acceptance_records = oci.Jms.get_java_downloads_java_license_acceptance_records(compartment_id=tenancy_ocid,
    id=java_license_acceptance_record_id,
    license_type=java_license_acceptance_record_license_type,
    search_by_user=java_license_acceptance_record_search_by_user,
    status=java_license_acceptance_record_status)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/jms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := jms.GetJavaDownloadsJavaLicenseAcceptanceRecords(ctx, &jms.GetJavaDownloadsJavaLicenseAcceptanceRecordsArgs{
			CompartmentId: tenancyOcid,
			Id:            pulumi.StringRef(javaLicenseAcceptanceRecordId),
			LicenseType:   pulumi.StringRef(javaLicenseAcceptanceRecordLicenseType),
			SearchByUser:  pulumi.StringRef(javaLicenseAcceptanceRecordSearchByUser),
			Status:        pulumi.StringRef(javaLicenseAcceptanceRecordStatus),
		}, 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 testJavaLicenseAcceptanceRecords = Oci.Jms.GetJavaDownloadsJavaLicenseAcceptanceRecords.Invoke(new()
    {
        CompartmentId = tenancyOcid,
        Id = javaLicenseAcceptanceRecordId,
        LicenseType = javaLicenseAcceptanceRecordLicenseType,
        SearchByUser = javaLicenseAcceptanceRecordSearchByUser,
        Status = javaLicenseAcceptanceRecordStatus,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Jms.JmsFunctions;
import com.pulumi.oci.Jms.inputs.GetJavaDownloadsJavaLicenseAcceptanceRecordsArgs;
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 testJavaLicenseAcceptanceRecords = JmsFunctions.getJavaDownloadsJavaLicenseAcceptanceRecords(GetJavaDownloadsJavaLicenseAcceptanceRecordsArgs.builder()
            .compartmentId(tenancyOcid)
            .id(javaLicenseAcceptanceRecordId)
            .licenseType(javaLicenseAcceptanceRecordLicenseType)
            .searchByUser(javaLicenseAcceptanceRecordSearchByUser)
            .status(javaLicenseAcceptanceRecordStatus)
            .build());
    }
}
variables:
  testJavaLicenseAcceptanceRecords:
    fn::invoke:
      function: oci:Jms:getJavaDownloadsJavaLicenseAcceptanceRecords
      arguments:
        compartmentId: ${tenancyOcid}
        id: ${javaLicenseAcceptanceRecordId}
        licenseType: ${javaLicenseAcceptanceRecordLicenseType}
        searchByUser: ${javaLicenseAcceptanceRecordSearchByUser}
        status: ${javaLicenseAcceptanceRecordStatus}
Using getJavaDownloadsJavaLicenseAcceptanceRecords
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 getJavaDownloadsJavaLicenseAcceptanceRecords(args: GetJavaDownloadsJavaLicenseAcceptanceRecordsArgs, opts?: InvokeOptions): Promise<GetJavaDownloadsJavaLicenseAcceptanceRecordsResult>
function getJavaDownloadsJavaLicenseAcceptanceRecordsOutput(args: GetJavaDownloadsJavaLicenseAcceptanceRecordsOutputArgs, opts?: InvokeOptions): Output<GetJavaDownloadsJavaLicenseAcceptanceRecordsResult>def get_java_downloads_java_license_acceptance_records(compartment_id: Optional[str] = None,
                                                       filters: Optional[Sequence[GetJavaDownloadsJavaLicenseAcceptanceRecordsFilter]] = None,
                                                       id: Optional[str] = None,
                                                       license_type: Optional[str] = None,
                                                       search_by_user: Optional[str] = None,
                                                       status: Optional[str] = None,
                                                       opts: Optional[InvokeOptions] = None) -> GetJavaDownloadsJavaLicenseAcceptanceRecordsResult
def get_java_downloads_java_license_acceptance_records_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetJavaDownloadsJavaLicenseAcceptanceRecordsFilterArgs]]]] = None,
                                                       id: Optional[pulumi.Input[str]] = None,
                                                       license_type: Optional[pulumi.Input[str]] = None,
                                                       search_by_user: Optional[pulumi.Input[str]] = None,
                                                       status: Optional[pulumi.Input[str]] = None,
                                                       opts: Optional[InvokeOptions] = None) -> Output[GetJavaDownloadsJavaLicenseAcceptanceRecordsResult]func GetJavaDownloadsJavaLicenseAcceptanceRecords(ctx *Context, args *GetJavaDownloadsJavaLicenseAcceptanceRecordsArgs, opts ...InvokeOption) (*GetJavaDownloadsJavaLicenseAcceptanceRecordsResult, error)
func GetJavaDownloadsJavaLicenseAcceptanceRecordsOutput(ctx *Context, args *GetJavaDownloadsJavaLicenseAcceptanceRecordsOutputArgs, opts ...InvokeOption) GetJavaDownloadsJavaLicenseAcceptanceRecordsResultOutput> Note: This function is named GetJavaDownloadsJavaLicenseAcceptanceRecords in the Go SDK.
public static class GetJavaDownloadsJavaLicenseAcceptanceRecords 
{
    public static Task<GetJavaDownloadsJavaLicenseAcceptanceRecordsResult> InvokeAsync(GetJavaDownloadsJavaLicenseAcceptanceRecordsArgs args, InvokeOptions? opts = null)
    public static Output<GetJavaDownloadsJavaLicenseAcceptanceRecordsResult> Invoke(GetJavaDownloadsJavaLicenseAcceptanceRecordsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetJavaDownloadsJavaLicenseAcceptanceRecordsResult> getJavaDownloadsJavaLicenseAcceptanceRecords(GetJavaDownloadsJavaLicenseAcceptanceRecordsArgs args, InvokeOptions options)
public static Output<GetJavaDownloadsJavaLicenseAcceptanceRecordsResult> getJavaDownloadsJavaLicenseAcceptanceRecords(GetJavaDownloadsJavaLicenseAcceptanceRecordsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Jms/getJavaDownloadsJavaLicenseAcceptanceRecords:getJavaDownloadsJavaLicenseAcceptanceRecords
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the tenancy.
- Filters
List<GetJava Downloads Java License Acceptance Records Filter> 
- Id string
- Unique Java license acceptance record identifier.
- LicenseType string
- Unique Java license type.
- SearchBy stringUser 
- A filter to return only resources that match the user principal detail. The search string can be any of the property values from the Principal object. This object is used as a response datatype for the createdByandlastUpdatedByfields in applicable resource.
- Status string
- The status of license acceptance.
- CompartmentId string
- The OCID of the tenancy.
- Filters
[]GetJava Downloads Java License Acceptance Records Filter 
- Id string
- Unique Java license acceptance record identifier.
- LicenseType string
- Unique Java license type.
- SearchBy stringUser 
- A filter to return only resources that match the user principal detail. The search string can be any of the property values from the Principal object. This object is used as a response datatype for the createdByandlastUpdatedByfields in applicable resource.
- Status string
- The status of license acceptance.
- compartmentId String
- The OCID of the tenancy.
- filters
List<GetJava Downloads Java License Acceptance Records Filter> 
- id String
- Unique Java license acceptance record identifier.
- licenseType String
- Unique Java license type.
- searchBy StringUser 
- A filter to return only resources that match the user principal detail. The search string can be any of the property values from the Principal object. This object is used as a response datatype for the createdByandlastUpdatedByfields in applicable resource.
- status String
- The status of license acceptance.
- compartmentId string
- The OCID of the tenancy.
- filters
GetJava Downloads Java License Acceptance Records Filter[] 
- id string
- Unique Java license acceptance record identifier.
- licenseType string
- Unique Java license type.
- searchBy stringUser 
- A filter to return only resources that match the user principal detail. The search string can be any of the property values from the Principal object. This object is used as a response datatype for the createdByandlastUpdatedByfields in applicable resource.
- status string
- The status of license acceptance.
- compartment_id str
- The OCID of the tenancy.
- filters
Sequence[GetJava Downloads Java License Acceptance Records Filter] 
- id str
- Unique Java license acceptance record identifier.
- license_type str
- Unique Java license type.
- search_by_ struser 
- A filter to return only resources that match the user principal detail. The search string can be any of the property values from the Principal object. This object is used as a response datatype for the createdByandlastUpdatedByfields in applicable resource.
- status str
- The status of license acceptance.
- compartmentId String
- The OCID of the tenancy.
- filters List<Property Map>
- id String
- Unique Java license acceptance record identifier.
- licenseType String
- Unique Java license type.
- searchBy StringUser 
- A filter to return only resources that match the user principal detail. The search string can be any of the property values from the Principal object. This object is used as a response datatype for the createdByandlastUpdatedByfields in applicable resource.
- status String
- The status of license acceptance.
getJavaDownloadsJavaLicenseAcceptanceRecords Result
The following output properties are available:
- CompartmentId string
- The tenancy OCID of the user accepting the license.
- JavaLicense List<GetAcceptance Record Collections Java Downloads Java License Acceptance Records Java License Acceptance Record Collection> 
- The list of java_license_acceptance_record_collection.
- Filters
List<GetJava Downloads Java License Acceptance Records Filter> 
- Id string
- The OCID of the principal.
- LicenseType string
- License type associated with the acceptance.
- SearchBy stringUser 
- Status string
- CompartmentId string
- The tenancy OCID of the user accepting the license.
- JavaLicense []GetAcceptance Record Collections Java Downloads Java License Acceptance Records Java License Acceptance Record Collection 
- The list of java_license_acceptance_record_collection.
- Filters
[]GetJava Downloads Java License Acceptance Records Filter 
- Id string
- The OCID of the principal.
- LicenseType string
- License type associated with the acceptance.
- SearchBy stringUser 
- Status string
- compartmentId String
- The tenancy OCID of the user accepting the license.
- javaLicense List<GetAcceptance Record Collections Java Downloads Java License Acceptance Records Java License Acceptance Record Collection> 
- The list of java_license_acceptance_record_collection.
- filters
List<GetJava Downloads Java License Acceptance Records Filter> 
- id String
- The OCID of the principal.
- licenseType String
- License type associated with the acceptance.
- searchBy StringUser 
- status String
- compartmentId string
- The tenancy OCID of the user accepting the license.
- javaLicense GetAcceptance Record Collections Java Downloads Java License Acceptance Records Java License Acceptance Record Collection[] 
- The list of java_license_acceptance_record_collection.
- filters
GetJava Downloads Java License Acceptance Records Filter[] 
- id string
- The OCID of the principal.
- licenseType string
- License type associated with the acceptance.
- searchBy stringUser 
- status string
- compartment_id str
- The tenancy OCID of the user accepting the license.
- java_license_ Sequence[Getacceptance_ record_ collections Java Downloads Java License Acceptance Records Java License Acceptance Record Collection] 
- The list of java_license_acceptance_record_collection.
- filters
Sequence[GetJava Downloads Java License Acceptance Records Filter] 
- id str
- The OCID of the principal.
- license_type str
- License type associated with the acceptance.
- search_by_ struser 
- status str
- compartmentId String
- The tenancy OCID of the user accepting the license.
- javaLicense List<Property Map>Acceptance Record Collections 
- The list of java_license_acceptance_record_collection.
- filters List<Property Map>
- id String
- The OCID of the principal.
- licenseType String
- License type associated with the acceptance.
- searchBy StringUser 
- status String
Supporting Types
GetJavaDownloadsJavaLicenseAcceptanceRecordsFilter       
GetJavaDownloadsJavaLicenseAcceptanceRecordsJavaLicenseAcceptanceRecordCollection           
GetJavaDownloadsJavaLicenseAcceptanceRecordsJavaLicenseAcceptanceRecordCollectionItem            
- CompartmentId string
- The OCID of the tenancy.
- CreatedBies List<GetJava Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Created By> 
- An authorized principal.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
- 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"}. (See Managing Tags and Tag Namespaces.)
- Id string
- Unique Java license acceptance record identifier.
- LastUpdated List<GetBies Java Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Last Updated By> 
- An authorized principal.
- LicenseAcceptance stringStatus 
- Status of license acceptance.
- LicenseType string
- Unique Java license type.
- State string
- The current state of the JavaLicenseAcceptanceRecord.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeAccepted string
- The date and time of license acceptance (formatted according to RFC3339).
- TimeLast stringUpdated 
- The date and time of last update (formatted according to RFC3339).
- CompartmentId string
- The OCID of the tenancy.
- CreatedBies []GetJava Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Created By 
- An authorized principal.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
- 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"}. (See Managing Tags and Tag Namespaces.)
- Id string
- Unique Java license acceptance record identifier.
- LastUpdated []GetBies Java Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Last Updated By 
- An authorized principal.
- LicenseAcceptance stringStatus 
- Status of license acceptance.
- LicenseType string
- Unique Java license type.
- State string
- The current state of the JavaLicenseAcceptanceRecord.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeAccepted string
- The date and time of license acceptance (formatted according to RFC3339).
- TimeLast stringUpdated 
- The date and time of last update (formatted according to RFC3339).
- compartmentId String
- The OCID of the tenancy.
- createdBies List<GetJava Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Created By> 
- An authorized principal.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
- 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"}. (See Managing Tags and Tag Namespaces.)
- id String
- Unique Java license acceptance record identifier.
- lastUpdated List<GetBies Java Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Last Updated By> 
- An authorized principal.
- licenseAcceptance StringStatus 
- Status of license acceptance.
- licenseType String
- Unique Java license type.
- state String
- The current state of the JavaLicenseAcceptanceRecord.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeAccepted String
- The date and time of license acceptance (formatted according to RFC3339).
- timeLast StringUpdated 
- The date and time of last update (formatted according to RFC3339).
- compartmentId string
- The OCID of the tenancy.
- createdBies GetJava Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Created By[] 
- An authorized principal.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
- {[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"}. (See Managing Tags and Tag Namespaces.)
- id string
- Unique Java license acceptance record identifier.
- lastUpdated GetBies Java Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Last Updated By[] 
- An authorized principal.
- licenseAcceptance stringStatus 
- Status of license acceptance.
- licenseType string
- Unique Java license type.
- state string
- The current state of the JavaLicenseAcceptanceRecord.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeAccepted string
- The date and time of license acceptance (formatted according to RFC3339).
- timeLast stringUpdated 
- The date and time of last update (formatted according to RFC3339).
- compartment_id str
- The OCID of the tenancy.
- created_bies Sequence[GetJava Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Created By] 
- An authorized principal.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
- 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"}. (See Managing Tags and Tag Namespaces.)
- id str
- Unique Java license acceptance record identifier.
- last_updated_ Sequence[Getbies Java Downloads Java License Acceptance Records Java License Acceptance Record Collection Item Last Updated By] 
- An authorized principal.
- license_acceptance_ strstatus 
- Status of license acceptance.
- license_type str
- Unique Java license type.
- state str
- The current state of the JavaLicenseAcceptanceRecord.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_accepted str
- The date and time of license acceptance (formatted according to RFC3339).
- time_last_ strupdated 
- The date and time of last update (formatted according to RFC3339).
- compartmentId String
- The OCID of the tenancy.
- createdBies List<Property Map>
- An authorized principal.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
- 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"}. (See Managing Tags and Tag Namespaces.)
- id String
- Unique Java license acceptance record identifier.
- lastUpdated List<Property Map>Bies 
- An authorized principal.
- licenseAcceptance StringStatus 
- Status of license acceptance.
- licenseType String
- Unique Java license type.
- state String
- The current state of the JavaLicenseAcceptanceRecord.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeAccepted String
- The date and time of license acceptance (formatted according to RFC3339).
- timeLast StringUpdated 
- The date and time of last update (formatted according to RFC3339).
GetJavaDownloadsJavaLicenseAcceptanceRecordsJavaLicenseAcceptanceRecordCollectionItemCreatedBy              
- DisplayName string
- The name of the principal.
- Email string
- The email of the principal.
- Id string
- Unique Java license acceptance record identifier.
- DisplayName string
- The name of the principal.
- Email string
- The email of the principal.
- Id string
- Unique Java license acceptance record identifier.
- displayName String
- The name of the principal.
- email String
- The email of the principal.
- id String
- Unique Java license acceptance record identifier.
- displayName string
- The name of the principal.
- email string
- The email of the principal.
- id string
- Unique Java license acceptance record identifier.
- display_name str
- The name of the principal.
- email str
- The email of the principal.
- id str
- Unique Java license acceptance record identifier.
- displayName String
- The name of the principal.
- email String
- The email of the principal.
- id String
- Unique Java license acceptance record identifier.
GetJavaDownloadsJavaLicenseAcceptanceRecordsJavaLicenseAcceptanceRecordCollectionItemLastUpdatedBy               
- DisplayName string
- The name of the principal.
- Email string
- The email of the principal.
- Id string
- Unique Java license acceptance record identifier.
- DisplayName string
- The name of the principal.
- Email string
- The email of the principal.
- Id string
- Unique Java license acceptance record identifier.
- displayName String
- The name of the principal.
- email String
- The email of the principal.
- id String
- Unique Java license acceptance record identifier.
- displayName string
- The name of the principal.
- email string
- The email of the principal.
- id string
- Unique Java license acceptance record identifier.
- display_name str
- The name of the principal.
- email str
- The email of the principal.
- id str
- Unique Java license acceptance record identifier.
- displayName String
- The name of the principal.
- email String
- The email of the principal.
- id String
- Unique Java license acceptance record identifier.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
