Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Jms.getJavaDownloadsJavaDownloadToken
This data source provides details about a specific Java Download Token resource in Oracle Cloud Infrastructure Jms Java Downloads service.
Gets a JavaDownloadToken by identifier
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testJavaDownloadToken = oci.Jms.getJavaDownloadsJavaDownloadToken({
    javaDownloadTokenId: testJavaDownloadTokenOciJmsJavaDownloadsJavaDownloadToken.id,
});
import pulumi
import pulumi_oci as oci
test_java_download_token = oci.Jms.get_java_downloads_java_download_token(java_download_token_id=test_java_download_token_oci_jms_java_downloads_java_download_token["id"])
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.GetJavaDownloadsJavaDownloadToken(ctx, &jms.GetJavaDownloadsJavaDownloadTokenArgs{
			JavaDownloadTokenId: testJavaDownloadTokenOciJmsJavaDownloadsJavaDownloadToken.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 testJavaDownloadToken = Oci.Jms.GetJavaDownloadsJavaDownloadToken.Invoke(new()
    {
        JavaDownloadTokenId = testJavaDownloadTokenOciJmsJavaDownloadsJavaDownloadToken.Id,
    });
});
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.GetJavaDownloadsJavaDownloadTokenArgs;
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 testJavaDownloadToken = JmsFunctions.getJavaDownloadsJavaDownloadToken(GetJavaDownloadsJavaDownloadTokenArgs.builder()
            .javaDownloadTokenId(testJavaDownloadTokenOciJmsJavaDownloadsJavaDownloadToken.id())
            .build());
    }
}
variables:
  testJavaDownloadToken:
    fn::invoke:
      function: oci:Jms:getJavaDownloadsJavaDownloadToken
      arguments:
        javaDownloadTokenId: ${testJavaDownloadTokenOciJmsJavaDownloadsJavaDownloadToken.id}
Using getJavaDownloadsJavaDownloadToken
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 getJavaDownloadsJavaDownloadToken(args: GetJavaDownloadsJavaDownloadTokenArgs, opts?: InvokeOptions): Promise<GetJavaDownloadsJavaDownloadTokenResult>
function getJavaDownloadsJavaDownloadTokenOutput(args: GetJavaDownloadsJavaDownloadTokenOutputArgs, opts?: InvokeOptions): Output<GetJavaDownloadsJavaDownloadTokenResult>def get_java_downloads_java_download_token(java_download_token_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetJavaDownloadsJavaDownloadTokenResult
def get_java_downloads_java_download_token_output(java_download_token_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetJavaDownloadsJavaDownloadTokenResult]func LookupJavaDownloadsJavaDownloadToken(ctx *Context, args *LookupJavaDownloadsJavaDownloadTokenArgs, opts ...InvokeOption) (*LookupJavaDownloadsJavaDownloadTokenResult, error)
func LookupJavaDownloadsJavaDownloadTokenOutput(ctx *Context, args *LookupJavaDownloadsJavaDownloadTokenOutputArgs, opts ...InvokeOption) LookupJavaDownloadsJavaDownloadTokenResultOutput> Note: This function is named LookupJavaDownloadsJavaDownloadToken in the Go SDK.
public static class GetJavaDownloadsJavaDownloadToken 
{
    public static Task<GetJavaDownloadsJavaDownloadTokenResult> InvokeAsync(GetJavaDownloadsJavaDownloadTokenArgs args, InvokeOptions? opts = null)
    public static Output<GetJavaDownloadsJavaDownloadTokenResult> Invoke(GetJavaDownloadsJavaDownloadTokenInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetJavaDownloadsJavaDownloadTokenResult> getJavaDownloadsJavaDownloadToken(GetJavaDownloadsJavaDownloadTokenArgs args, InvokeOptions options)
public static Output<GetJavaDownloadsJavaDownloadTokenResult> getJavaDownloadsJavaDownloadToken(GetJavaDownloadsJavaDownloadTokenArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Jms/getJavaDownloadsJavaDownloadToken:getJavaDownloadsJavaDownloadToken
  arguments:
    # arguments dictionaryThe following arguments are supported:
- JavaDownload stringToken Id 
- Unique JavaDownloadToken identifier.
- JavaDownload stringToken Id 
- Unique JavaDownloadToken identifier.
- javaDownload StringToken Id 
- Unique JavaDownloadToken identifier.
- javaDownload stringToken Id 
- Unique JavaDownloadToken identifier.
- java_download_ strtoken_ id 
- Unique JavaDownloadToken identifier.
- javaDownload StringToken Id 
- Unique JavaDownloadToken identifier.
getJavaDownloadsJavaDownloadToken Result
The following output properties are available:
- CompartmentId string
- The OCID of the tenancy scoped to the JavaDownloadToken.
- CreatedBies List<GetJava Downloads Java Download Token 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).
- Description string
- User provided description of the JavaDownloadToken.
- DisplayName string
- The name of the principal.
- 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
- The OCID of the principal.
- IsDefault bool
- A flag to indicate if the token is default.
- JavaDownload stringToken Id 
- JavaVersion string
- The associated Java version of the JavaDownloadToken.
- LastUpdated List<GetBies Java Downloads Java Download Token Last Updated By> 
- An authorized principal.
- LicenseTypes List<string>
- The license type(s) associated with the JavaDownloadToken.
- LifecycleDetails string
- Possible lifecycle substates.
- State string
- The current state of the JavaDownloadToken.
- 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"}
- TimeCreated string
- The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
- TimeExpires string
- The expiry time of the JavaDownloadToken, displayed as an RFC3339 formatted datetime string.
- TimeLast stringUsed 
- The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
- TimeUpdated string
- The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
- Value string
- Uniquely generated value for the JavaDownloadToken.
- CompartmentId string
- The OCID of the tenancy scoped to the JavaDownloadToken.
- CreatedBies []GetJava Downloads Java Download Token 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).
- Description string
- User provided description of the JavaDownloadToken.
- DisplayName string
- The name of the principal.
- 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
- The OCID of the principal.
- IsDefault bool
- A flag to indicate if the token is default.
- JavaDownload stringToken Id 
- JavaVersion string
- The associated Java version of the JavaDownloadToken.
- LastUpdated []GetBies Java Downloads Java Download Token Last Updated By 
- An authorized principal.
- LicenseTypes []string
- The license type(s) associated with the JavaDownloadToken.
- LifecycleDetails string
- Possible lifecycle substates.
- State string
- The current state of the JavaDownloadToken.
- 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"}
- TimeCreated string
- The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
- TimeExpires string
- The expiry time of the JavaDownloadToken, displayed as an RFC3339 formatted datetime string.
- TimeLast stringUsed 
- The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
- TimeUpdated string
- The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
- Value string
- Uniquely generated value for the JavaDownloadToken.
- compartmentId String
- The OCID of the tenancy scoped to the JavaDownloadToken.
- createdBies List<GetJava Downloads Java Download Token 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).
- description String
- User provided description of the JavaDownloadToken.
- displayName String
- The name of the principal.
- 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
- The OCID of the principal.
- isDefault Boolean
- A flag to indicate if the token is default.
- javaDownload StringToken Id 
- javaVersion String
- The associated Java version of the JavaDownloadToken.
- lastUpdated List<GetBies Java Downloads Java Download Token Last Updated By> 
- An authorized principal.
- licenseTypes List<String>
- The license type(s) associated with the JavaDownloadToken.
- lifecycleDetails String
- Possible lifecycle substates.
- state String
- The current state of the JavaDownloadToken.
- 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"}
- timeCreated String
- The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
- timeExpires String
- The expiry time of the JavaDownloadToken, displayed as an RFC3339 formatted datetime string.
- timeLast StringUsed 
- The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
- timeUpdated String
- The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
- value String
- Uniquely generated value for the JavaDownloadToken.
- compartmentId string
- The OCID of the tenancy scoped to the JavaDownloadToken.
- createdBies GetJava Downloads Java Download Token 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).
- description string
- User provided description of the JavaDownloadToken.
- displayName string
- The name of the principal.
- {[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
- The OCID of the principal.
- isDefault boolean
- A flag to indicate if the token is default.
- javaDownload stringToken Id 
- javaVersion string
- The associated Java version of the JavaDownloadToken.
- lastUpdated GetBies Java Downloads Java Download Token Last Updated By[] 
- An authorized principal.
- licenseTypes string[]
- The license type(s) associated with the JavaDownloadToken.
- lifecycleDetails string
- Possible lifecycle substates.
- state string
- The current state of the JavaDownloadToken.
- {[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"}
- timeCreated string
- The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
- timeExpires string
- The expiry time of the JavaDownloadToken, displayed as an RFC3339 formatted datetime string.
- timeLast stringUsed 
- The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
- timeUpdated string
- The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
- value string
- Uniquely generated value for the JavaDownloadToken.
- compartment_id str
- The OCID of the tenancy scoped to the JavaDownloadToken.
- created_bies Sequence[GetJava Downloads Java Download Token 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).
- description str
- User provided description of the JavaDownloadToken.
- display_name str
- The name of the principal.
- 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
- The OCID of the principal.
- is_default bool
- A flag to indicate if the token is default.
- java_download_ strtoken_ id 
- java_version str
- The associated Java version of the JavaDownloadToken.
- last_updated_ Sequence[Getbies Java Downloads Java Download Token Last Updated By] 
- An authorized principal.
- license_types Sequence[str]
- The license type(s) associated with the JavaDownloadToken.
- lifecycle_details str
- Possible lifecycle substates.
- state str
- The current state of the JavaDownloadToken.
- 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_created str
- The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
- time_expires str
- The expiry time of the JavaDownloadToken, displayed as an RFC3339 formatted datetime string.
- time_last_ strused 
- The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
- time_updated str
- The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
- value str
- Uniquely generated value for the JavaDownloadToken.
- compartmentId String
- The OCID of the tenancy scoped to the JavaDownloadToken.
- 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).
- description String
- User provided description of the JavaDownloadToken.
- displayName String
- The name of the principal.
- 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
- The OCID of the principal.
- isDefault Boolean
- A flag to indicate if the token is default.
- javaDownload StringToken Id 
- javaVersion String
- The associated Java version of the JavaDownloadToken.
- lastUpdated List<Property Map>Bies 
- An authorized principal.
- licenseTypes List<String>
- The license type(s) associated with the JavaDownloadToken.
- lifecycleDetails String
- Possible lifecycle substates.
- state String
- The current state of the JavaDownloadToken.
- 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"}
- timeCreated String
- The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
- timeExpires String
- The expiry time of the JavaDownloadToken, displayed as an RFC3339 formatted datetime string.
- timeLast StringUsed 
- The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
- timeUpdated String
- The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
- value String
- Uniquely generated value for the JavaDownloadToken.
Supporting Types
GetJavaDownloadsJavaDownloadTokenCreatedBy       
- DisplayName string
- The name of the principal.
- Email string
- The email of the principal.
- Id string
- The OCID of the principal.
- DisplayName string
- The name of the principal.
- Email string
- The email of the principal.
- Id string
- The OCID of the principal.
- displayName String
- The name of the principal.
- email String
- The email of the principal.
- id String
- The OCID of the principal.
- displayName string
- The name of the principal.
- email string
- The email of the principal.
- id string
- The OCID of the principal.
- display_name str
- The name of the principal.
- email str
- The email of the principal.
- id str
- The OCID of the principal.
- displayName String
- The name of the principal.
- email String
- The email of the principal.
- id String
- The OCID of the principal.
GetJavaDownloadsJavaDownloadTokenLastUpdatedBy        
- DisplayName string
- The name of the principal.
- Email string
- The email of the principal.
- Id string
- The OCID of the principal.
- DisplayName string
- The name of the principal.
- Email string
- The email of the principal.
- Id string
- The OCID of the principal.
- displayName String
- The name of the principal.
- email String
- The email of the principal.
- id String
- The OCID of the principal.
- displayName string
- The name of the principal.
- email string
- The email of the principal.
- id string
- The OCID of the principal.
- display_name str
- The name of the principal.
- email str
- The email of the principal.
- id str
- The OCID of the principal.
- displayName String
- The name of the principal.
- email String
- The email of the principal.
- id String
- The OCID of the principal.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
