Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi
oci.Functions.getApplication
Explore with Pulumi AI
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: testApplicationOciFunctionsApplication.id,
});
import pulumi
import pulumi_oci as oci
test_application = oci.Functions.get_application(application_id=test_application_oci_functions_application["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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: testApplicationOciFunctionsApplication.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 = testApplicationOciFunctionsApplication.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(testApplicationOciFunctionsApplication.id())
            .build());
    }
}
variables:
  testApplication:
    fn::invoke:
      function: oci:Functions:getApplication
      arguments:
        applicationId: ${testApplicationOciFunctionsApplication.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)
public static Output<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Functions/getApplication:getApplication
  arguments:
    # arguments dictionaryThe 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, string>
- 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"}
- Dictionary<string, string>
- 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.
- Dictionary<string, string>
- 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.
- ImagePolicy List<GetConfigs Application Image Policy Config> 
- Define the image signature verification policy for an application.
- NetworkSecurity List<string>Group Ids 
- The OCIDs of the Network Security Groups to add the application to.
- Shape string
- Valid values are GENERIC_X86,GENERIC_ARMandGENERIC_X86_ARM. Default isGENERIC_X86. Setting this toGENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this toGENERIC_ARM, will run the functions in the application on ARM processor architecture. When set toGENERIC_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<GetApplication Trace Config> 
- Define the tracing configuration for an application.
- ApplicationId string
- CompartmentId string
- The OCID of the compartment that contains the application.
- Config map[string]string
- 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"}
- map[string]string
- 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.
- map[string]string
- 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.
- ImagePolicy []GetConfigs Application Image Policy Config 
- Define the image signature verification policy for an application.
- NetworkSecurity []stringGroup Ids 
- The OCIDs of the Network Security Groups to add the application to.
- Shape string
- Valid values are GENERIC_X86,GENERIC_ARMandGENERIC_X86_ARM. Default isGENERIC_X86. Setting this toGENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this toGENERIC_ARM, will run the functions in the application on ARM processor architecture. When set toGENERIC_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 []GetApplication Trace Config 
- Define the tracing configuration for an application.
- applicationId String
- compartmentId String
- The OCID of the compartment that contains the application.
- config Map<String,String>
- 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"}
- Map<String,String>
- 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.
- Map<String,String>
- 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.
- imagePolicy List<GetConfigs Application Image Policy Config> 
- Define the image signature verification policy for an application.
- networkSecurity List<String>Group Ids 
- The OCIDs of the Network Security Groups to add the application to.
- shape String
- Valid values are GENERIC_X86,GENERIC_ARMandGENERIC_X86_ARM. Default isGENERIC_X86. Setting this toGENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this toGENERIC_ARM, will run the functions in the application on ARM processor architecture. When set toGENERIC_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<GetApplication Trace Config> 
- Define the tracing configuration for an application.
- applicationId string
- compartmentId string
- The OCID of the compartment that contains the application.
- config {[key: string]: string}
- 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"}
- {[key: string]: string}
- 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.
- {[key: string]: string}
- 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.
- imagePolicy GetConfigs Application Image Policy Config[] 
- Define the image signature verification policy for an application.
- networkSecurity string[]Group Ids 
- The OCIDs of the Network Security Groups to add the application to.
- shape string
- Valid values are GENERIC_X86,GENERIC_ARMandGENERIC_X86_ARM. Default isGENERIC_X86. Setting this toGENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this toGENERIC_ARM, will run the functions in the application on ARM processor architecture. When set toGENERIC_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 GetApplication Trace Config[] 
- 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, str]
- 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"}
- Mapping[str, str]
- 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.
- Mapping[str, str]
- 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_ Sequence[functions.configs Get Application Image Policy Config] 
- Define the image signature verification policy for an application.
- network_security_ Sequence[str]group_ ids 
- The OCIDs of the Network Security Groups to add the application to.
- shape str
- Valid values are GENERIC_X86,GENERIC_ARMandGENERIC_X86_ARM. Default isGENERIC_X86. Setting this toGENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this toGENERIC_ARM, will run the functions in the application on ARM processor architecture. When set toGENERIC_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.Get Application Trace Config] 
- Define the tracing configuration for an application.
- applicationId String
- compartmentId String
- The OCID of the compartment that contains the application.
- config Map<String>
- 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"}
- Map<String>
- 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.
- Map<String>
- 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.
- imagePolicy List<Property Map>Configs 
- Define the image signature verification policy for an application.
- networkSecurity List<String>Group Ids 
- The OCIDs of the Network Security Groups to add the application to.
- shape String
- Valid values are GENERIC_X86,GENERIC_ARMandGENERIC_X86_ARM. Default isGENERIC_X86. Setting this toGENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this toGENERIC_ARM, will run the functions in the application on ARM processor architecture. When set toGENERIC_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    
- IsPolicy boolEnabled 
- Define if image signature verification policy is enabled for the application.
- KeyDetails List<GetApplication Image Policy Config Key Detail> 
- A list of KMS key details.
- IsPolicy boolEnabled 
- Define if image signature verification policy is enabled for the application.
- KeyDetails []GetApplication Image Policy Config Key Detail 
- A list of KMS key details.
- isPolicy BooleanEnabled 
- Define if image signature verification policy is enabled for the application.
- keyDetails List<GetApplication Image Policy Config Key Detail> 
- A list of KMS key details.
- isPolicy booleanEnabled 
- Define if image signature verification policy is enabled for the application.
- keyDetails GetApplication Image Policy Config Key Detail[] 
- A list of KMS key details.
- is_policy_ boolenabled 
- Define if image signature verification policy is enabled for the application.
- key_details Sequence[functions.Get Application Image Policy Config Key Detail] 
- A list of KMS key details.
- isPolicy BooleanEnabled 
- Define if image signature verification policy is enabled for the application.
- keyDetails List<Property Map>
- A list of KMS key details.
GetApplicationImagePolicyConfigKeyDetail      
- kms_key_ strid 
- The OCIDs of the KMS key that will be used to verify the image signature.
GetApplicationTraceConfig   
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.