1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getJavaDownloadsJavaDownloadToken
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Jms.getJavaDownloadsJavaDownloadToken

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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/v2/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 GetJavaDownloadsJavaDownloadToken(ctx *Context, args *GetJavaDownloadsJavaDownloadTokenArgs, opts ...InvokeOption) (*GetJavaDownloadsJavaDownloadTokenResult, error)
    func GetJavaDownloadsJavaDownloadTokenOutput(ctx *Context, args *GetJavaDownloadsJavaDownloadTokenOutputArgs, opts ...InvokeOption) GetJavaDownloadsJavaDownloadTokenResultOutput

    > Note: This function is named GetJavaDownloadsJavaDownloadToken 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Jms/getJavaDownloadsJavaDownloadToken:getJavaDownloadsJavaDownloadToken
      arguments:
        # arguments dictionary

    The following arguments are supported:

    JavaDownloadTokenId string
    Unique JavaDownloadToken identifier.
    JavaDownloadTokenId string
    Unique JavaDownloadToken identifier.
    javaDownloadTokenId String
    Unique JavaDownloadToken identifier.
    javaDownloadTokenId string
    Unique JavaDownloadToken identifier.
    java_download_token_id str
    Unique JavaDownloadToken identifier.
    javaDownloadTokenId String
    Unique JavaDownloadToken identifier.

    getJavaDownloadsJavaDownloadToken Result

    The following output properties are available:

    CompartmentId string
    The OCID of the tenancy scoped to the JavaDownloadToken.
    CreatedBies List<GetJavaDownloadsJavaDownloadTokenCreatedBy>
    An authorized principal.
    DefinedTags 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.
    FreeformTags 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.
    JavaDownloadTokenId string
    JavaVersion string
    The associated Java version of the JavaDownloadToken.
    LastUpdatedBies List<GetJavaDownloadsJavaDownloadTokenLastUpdatedBy>
    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.
    SystemTags 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.
    TimeLastUsed string
    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 []GetJavaDownloadsJavaDownloadTokenCreatedBy
    An authorized principal.
    DefinedTags 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.
    FreeformTags 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.
    JavaDownloadTokenId string
    JavaVersion string
    The associated Java version of the JavaDownloadToken.
    LastUpdatedBies []GetJavaDownloadsJavaDownloadTokenLastUpdatedBy
    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.
    SystemTags 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.
    TimeLastUsed string
    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<GetJavaDownloadsJavaDownloadTokenCreatedBy>
    An authorized principal.
    definedTags 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.
    freeformTags 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.
    javaDownloadTokenId String
    javaVersion String
    The associated Java version of the JavaDownloadToken.
    lastUpdatedBies List<GetJavaDownloadsJavaDownloadTokenLastUpdatedBy>
    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.
    systemTags 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.
    timeLastUsed String
    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 GetJavaDownloadsJavaDownloadTokenCreatedBy[]
    An authorized principal.
    definedTags {[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.
    freeformTags {[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.
    javaDownloadTokenId string
    javaVersion string
    The associated Java version of the JavaDownloadToken.
    lastUpdatedBies GetJavaDownloadsJavaDownloadTokenLastUpdatedBy[]
    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.
    systemTags {[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.
    timeLastUsed string
    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[jms.GetJavaDownloadsJavaDownloadTokenCreatedBy]
    An authorized principal.
    defined_tags 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.
    freeform_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
    The OCID of the principal.
    is_default bool
    A flag to indicate if the token is default.
    java_download_token_id str
    java_version str
    The associated Java version of the JavaDownloadToken.
    last_updated_bies Sequence[jms.GetJavaDownloadsJavaDownloadTokenLastUpdatedBy]
    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.
    system_tags 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_used str
    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.
    definedTags 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.
    freeformTags 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.
    javaDownloadTokenId String
    javaVersion String
    The associated Java version of the JavaDownloadToken.
    lastUpdatedBies List<Property Map>
    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.
    systemTags 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.
    timeLastUsed String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi