1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Functions
  5. getApplication
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Functions.getApplication

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 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: testApplicationOciFunctionsApplication.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_application = oci.Functions.get_application(application_id=test_application_oci_functions_application["id"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testApplication:
    fn::invoke:
      function: oci:Functions:getApplication
      arguments:
        applicationId: ${testApplicationOciFunctionsApplication.id}
Copy

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>
Copy
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]
Copy
func GetApplication(ctx *Context, args *GetApplicationArgs, opts ...InvokeOption) (*GetApplicationResult, error)
func GetApplicationOutput(ctx *Context, args *GetApplicationOutputArgs, opts ...InvokeOption) GetApplicationResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
public static Output<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Functions/getApplication:getApplication
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ApplicationId This property is required. string
The OCID of this application.
ApplicationId This property is required. string
The OCID of this application.
applicationId This property is required. String
The OCID of this application.
applicationId This property is required. string
The OCID of this application.
application_id This property is required. str
The OCID of this application.
applicationId This property is required. 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"}
DefinedTags 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.
FreeformTags 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.
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]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"}
DefinedTags 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.
FreeformTags 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.
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,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"}
definedTags 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.
freeformTags 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.
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]: 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"}
definedTags {[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.
freeformTags {[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.
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, 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"}
defined_tags 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.
freeform_tags 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_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<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"}
definedTags 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.
freeformTags 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.
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 This property is required. bool
Define if image signature verification policy is enabled for the application.
KeyDetails This property is required. List<GetApplicationImagePolicyConfigKeyDetail>
A list of KMS key details.
IsPolicyEnabled This property is required. bool
Define if image signature verification policy is enabled for the application.
KeyDetails This property is required. []GetApplicationImagePolicyConfigKeyDetail
A list of KMS key details.
isPolicyEnabled This property is required. Boolean
Define if image signature verification policy is enabled for the application.
keyDetails This property is required. List<GetApplicationImagePolicyConfigKeyDetail>
A list of KMS key details.
isPolicyEnabled This property is required. boolean
Define if image signature verification policy is enabled for the application.
keyDetails This property is required. GetApplicationImagePolicyConfigKeyDetail[]
A list of KMS key details.
is_policy_enabled This property is required. bool
Define if image signature verification policy is enabled for the application.
key_details This property is required. Sequence[functions.GetApplicationImagePolicyConfigKeyDetail]
A list of KMS key details.
isPolicyEnabled This property is required. Boolean
Define if image signature verification policy is enabled for the application.
keyDetails This property is required. List<Property Map>
A list of KMS key details.

GetApplicationImagePolicyConfigKeyDetail

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

GetApplicationTraceConfig

DomainId This property is required. string
The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
IsEnabled This property is required. bool
Define if tracing is enabled for the resource.
DomainId This property is required. string
The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
IsEnabled This property is required. bool
Define if tracing is enabled for the resource.
domainId This property is required. String
The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
isEnabled This property is required. Boolean
Define if tracing is enabled for the resource.
domainId This property is required. string
The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
isEnabled This property is required. boolean
Define if tracing is enabled for the resource.
domain_id This property is required. str
The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
is_enabled This property is required. bool
Define if tracing is enabled for the resource.
domainId This property is required. String
The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
isEnabled This property is required. 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.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi