1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Functions
  5. getApplication
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Functions.getApplication

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Application resource in Oracle Cloud Infrastructure Functions service.

    Retrieves an application.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testApplication = oci.Functions.getApplication({
        applicationId: oci_functions_application.test_application.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_application = oci.Functions.get_application(application_id=oci_functions_application["test_application"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Functions"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Functions.GetApplication(ctx, &functions.GetApplicationArgs{
    			ApplicationId: oci_functions_application.Test_application.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 testApplication = Oci.Functions.GetApplication.Invoke(new()
        {
            ApplicationId = oci_functions_application.Test_application.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Functions.FunctionsFunctions;
    import com.pulumi.oci.Functions.inputs.GetApplicationArgs;
    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 testApplication = FunctionsFunctions.getApplication(GetApplicationArgs.builder()
                .applicationId(oci_functions_application.test_application().id())
                .build());
    
        }
    }
    
    variables:
      testApplication:
        fn::invoke:
          Function: oci:Functions:getApplication
          Arguments:
            applicationId: ${oci_functions_application.test_application.id}
    

    Using getApplication

    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 getApplication(args: GetApplicationArgs, opts?: InvokeOptions): Promise<GetApplicationResult>
    function getApplicationOutput(args: GetApplicationOutputArgs, opts?: InvokeOptions): Output<GetApplicationResult>
    def get_application(application_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetApplicationResult
    def get_application_output(application_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetApplicationResult]
    func GetApplication(ctx *Context, args *GetApplicationArgs, opts ...InvokeOption) (*GetApplicationResult, error)
    func GetApplicationOutput(ctx *Context, args *GetApplicationOutputArgs, opts ...InvokeOption) GetApplicationResultOutput

    > Note: This function is named GetApplication in the Go SDK.

    public static class GetApplication 
    {
        public static Task<GetApplicationResult> InvokeAsync(GetApplicationArgs args, InvokeOptions? opts = null)
        public static Output<GetApplicationResult> Invoke(GetApplicationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Functions/getApplication:getApplication
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ApplicationId string
    The OCID of this application.
    ApplicationId string
    The OCID of this application.
    applicationId String
    The OCID of this application.
    applicationId string
    The OCID of this application.
    application_id str
    The OCID of this application.
    applicationId String
    The OCID of this application.

    getApplication Result

    The following output properties are available:

    ApplicationId string
    CompartmentId string
    The OCID of the compartment that contains the application.
    Config Dictionary<string, object>
    Application configuration for functions in this application (passed as environment variables). Can be overridden by function configuration. Keys must be ASCII strings consisting solely of letters, digits, and the '_' (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters. Example: {"MY_FUNCTION_CONFIG": "ConfVal"}
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    The display name of the application. The display name is unique within the compartment containing the application.
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the application.
    ImagePolicyConfigs List<GetApplicationImagePolicyConfig>
    Define the image signature verification policy for an application.
    NetworkSecurityGroupIds List<string>
    The OCIDs of the Network Security Groups to add the application to.
    Shape string
    Valid values are GENERIC_X86, GENERIC_ARM and GENERIC_X86_ARM. Default is GENERIC_X86. Setting this to GENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this to GENERIC_ARM, will run the functions in the application on ARM processor architecture. When set to GENERIC_X86_ARM, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: GENERIC_X86, GENERIC_ARM, GENERIC_X86_ARM
    State string
    The current state of the application.
    SubnetIds List<string>
    The OCIDs of the subnets in which to run functions in the application.
    SyslogUrl string
    A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: tcp://logserver.myserver:1234
    TimeCreated string
    The time the application was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    TimeUpdated string
    The time the application was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    TraceConfigs List<GetApplicationTraceConfig>
    Define the tracing configuration for an application.
    ApplicationId string
    CompartmentId string
    The OCID of the compartment that contains the application.
    Config map[string]interface{}
    Application configuration for functions in this application (passed as environment variables). Can be overridden by function configuration. Keys must be ASCII strings consisting solely of letters, digits, and the '_' (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters. Example: {"MY_FUNCTION_CONFIG": "ConfVal"}
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    The display name of the application. The display name is unique within the compartment containing the application.
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the application.
    ImagePolicyConfigs []GetApplicationImagePolicyConfig
    Define the image signature verification policy for an application.
    NetworkSecurityGroupIds []string
    The OCIDs of the Network Security Groups to add the application to.
    Shape string
    Valid values are GENERIC_X86, GENERIC_ARM and GENERIC_X86_ARM. Default is GENERIC_X86. Setting this to GENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this to GENERIC_ARM, will run the functions in the application on ARM processor architecture. When set to GENERIC_X86_ARM, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: GENERIC_X86, GENERIC_ARM, GENERIC_X86_ARM
    State string
    The current state of the application.
    SubnetIds []string
    The OCIDs of the subnets in which to run functions in the application.
    SyslogUrl string
    A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: tcp://logserver.myserver:1234
    TimeCreated string
    The time the application was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    TimeUpdated string
    The time the application was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    TraceConfigs []GetApplicationTraceConfig
    Define the tracing configuration for an application.
    applicationId String
    compartmentId String
    The OCID of the compartment that contains the application.
    config Map<String,Object>
    Application configuration for functions in this application (passed as environment variables). Can be overridden by function configuration. Keys must be ASCII strings consisting solely of letters, digits, and the '_' (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters. Example: {"MY_FUNCTION_CONFIG": "ConfVal"}
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    The display name of the application. The display name is unique within the compartment containing the application.
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the application.
    imagePolicyConfigs List<GetApplicationImagePolicyConfig>
    Define the image signature verification policy for an application.
    networkSecurityGroupIds List<String>
    The OCIDs of the Network Security Groups to add the application to.
    shape String
    Valid values are GENERIC_X86, GENERIC_ARM and GENERIC_X86_ARM. Default is GENERIC_X86. Setting this to GENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this to GENERIC_ARM, will run the functions in the application on ARM processor architecture. When set to GENERIC_X86_ARM, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: GENERIC_X86, GENERIC_ARM, GENERIC_X86_ARM
    state String
    The current state of the application.
    subnetIds List<String>
    The OCIDs of the subnets in which to run functions in the application.
    syslogUrl String
    A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: tcp://logserver.myserver:1234
    timeCreated String
    The time the application was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    timeUpdated String
    The time the application was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    traceConfigs List<GetApplicationTraceConfig>
    Define the tracing configuration for an application.
    applicationId string
    compartmentId string
    The OCID of the compartment that contains the application.
    config {[key: string]: any}
    Application configuration for functions in this application (passed as environment variables). Can be overridden by function configuration. Keys must be ASCII strings consisting solely of letters, digits, and the '_' (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters. Example: {"MY_FUNCTION_CONFIG": "ConfVal"}
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    The display name of the application. The display name is unique within the compartment containing the application.
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the application.
    imagePolicyConfigs GetApplicationImagePolicyConfig[]
    Define the image signature verification policy for an application.
    networkSecurityGroupIds string[]
    The OCIDs of the Network Security Groups to add the application to.
    shape string
    Valid values are GENERIC_X86, GENERIC_ARM and GENERIC_X86_ARM. Default is GENERIC_X86. Setting this to GENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this to GENERIC_ARM, will run the functions in the application on ARM processor architecture. When set to GENERIC_X86_ARM, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: GENERIC_X86, GENERIC_ARM, GENERIC_X86_ARM
    state string
    The current state of the application.
    subnetIds string[]
    The OCIDs of the subnets in which to run functions in the application.
    syslogUrl string
    A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: tcp://logserver.myserver:1234
    timeCreated string
    The time the application was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    timeUpdated string
    The time the application was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    traceConfigs GetApplicationTraceConfig[]
    Define the tracing configuration for an application.
    application_id str
    compartment_id str
    The OCID of the compartment that contains the application.
    config Mapping[str, Any]
    Application configuration for functions in this application (passed as environment variables). Can be overridden by function configuration. Keys must be ASCII strings consisting solely of letters, digits, and the '_' (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters. Example: {"MY_FUNCTION_CONFIG": "ConfVal"}
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    The display name of the application. The display name is unique within the compartment containing the application.
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the application.
    image_policy_configs Sequence[functions.GetApplicationImagePolicyConfig]
    Define the image signature verification policy for an application.
    network_security_group_ids Sequence[str]
    The OCIDs of the Network Security Groups to add the application to.
    shape str
    Valid values are GENERIC_X86, GENERIC_ARM and GENERIC_X86_ARM. Default is GENERIC_X86. Setting this to GENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this to GENERIC_ARM, will run the functions in the application on ARM processor architecture. When set to GENERIC_X86_ARM, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: GENERIC_X86, GENERIC_ARM, GENERIC_X86_ARM
    state str
    The current state of the application.
    subnet_ids Sequence[str]
    The OCIDs of the subnets in which to run functions in the application.
    syslog_url str
    A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: tcp://logserver.myserver:1234
    time_created str
    The time the application was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    time_updated str
    The time the application was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    trace_configs Sequence[functions.GetApplicationTraceConfig]
    Define the tracing configuration for an application.
    applicationId String
    compartmentId String
    The OCID of the compartment that contains the application.
    config Map<Any>
    Application configuration for functions in this application (passed as environment variables). Can be overridden by function configuration. Keys must be ASCII strings consisting solely of letters, digits, and the '_' (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters. Example: {"MY_FUNCTION_CONFIG": "ConfVal"}
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    The display name of the application. The display name is unique within the compartment containing the application.
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the application.
    imagePolicyConfigs List<Property Map>
    Define the image signature verification policy for an application.
    networkSecurityGroupIds List<String>
    The OCIDs of the Network Security Groups to add the application to.
    shape String
    Valid values are GENERIC_X86, GENERIC_ARM and GENERIC_X86_ARM. Default is GENERIC_X86. Setting this to GENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this to GENERIC_ARM, will run the functions in the application on ARM processor architecture. When set to GENERIC_X86_ARM, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: GENERIC_X86, GENERIC_ARM, GENERIC_X86_ARM
    state String
    The current state of the application.
    subnetIds List<String>
    The OCIDs of the subnets in which to run functions in the application.
    syslogUrl String
    A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: tcp://logserver.myserver:1234
    timeCreated String
    The time the application was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    timeUpdated String
    The time the application was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
    traceConfigs List<Property Map>
    Define the tracing configuration for an application.

    Supporting Types

    GetApplicationImagePolicyConfig

    IsPolicyEnabled bool
    Define if image signature verification policy is enabled for the application.
    KeyDetails List<GetApplicationImagePolicyConfigKeyDetail>
    A list of KMS key details.
    IsPolicyEnabled bool
    Define if image signature verification policy is enabled for the application.
    KeyDetails []GetApplicationImagePolicyConfigKeyDetail
    A list of KMS key details.
    isPolicyEnabled Boolean
    Define if image signature verification policy is enabled for the application.
    keyDetails List<GetApplicationImagePolicyConfigKeyDetail>
    A list of KMS key details.
    isPolicyEnabled boolean
    Define if image signature verification policy is enabled for the application.
    keyDetails GetApplicationImagePolicyConfigKeyDetail[]
    A list of KMS key details.
    is_policy_enabled bool
    Define if image signature verification policy is enabled for the application.
    key_details Sequence[functions.GetApplicationImagePolicyConfigKeyDetail]
    A list of KMS key details.
    isPolicyEnabled Boolean
    Define if image signature verification policy is enabled for the application.
    keyDetails List<Property Map>
    A list of KMS key details.

    GetApplicationImagePolicyConfigKeyDetail

    KmsKeyId string
    The OCIDs of the KMS key that will be used to verify the image signature.
    KmsKeyId string
    The OCIDs of the KMS key that will be used to verify the image signature.
    kmsKeyId String
    The OCIDs of the KMS key that will be used to verify the image signature.
    kmsKeyId string
    The OCIDs of the KMS key that will be used to verify the image signature.
    kms_key_id str
    The OCIDs of the KMS key that will be used to verify the image signature.
    kmsKeyId String
    The OCIDs of the KMS key that will be used to verify the image signature.

    GetApplicationTraceConfig

    DomainId string
    The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
    IsEnabled bool
    Define if tracing is enabled for the resource.
    DomainId string
    The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
    IsEnabled bool
    Define if tracing is enabled for the resource.
    domainId String
    The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
    isEnabled Boolean
    Define if tracing is enabled for the resource.
    domainId string
    The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
    isEnabled boolean
    Define if tracing is enabled for the resource.
    domain_id str
    The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
    is_enabled bool
    Define if tracing is enabled for the resource.
    domainId String
    The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
    isEnabled Boolean
    Define if tracing is enabled for the resource.

    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi