getApplications

This data source provides the list of Applications in Oracle Cloud Infrastructure Functions service.

Lists applications for a compartment.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testApplications = Oci.Functions.GetApplications.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        DisplayName = @var.Application_display_name,
        Id = @var.Application_id,
        State = @var.Application_state,
    });

});
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.GetApplications(ctx, &functions.GetApplicationsArgs{
			CompartmentId: _var.Compartment_id,
			DisplayName:   pulumi.StringRef(_var.Application_display_name),
			Id:            pulumi.StringRef(_var.Application_id),
			State:         pulumi.StringRef(_var.Application_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.DataFlow.inputs.GetApplicationsArgs;
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 testApplications = FunctionsFunctions.getApplications(GetApplicationsArgs.builder()
            .compartmentId(var_.compartment_id())
            .displayName(var_.application_display_name())
            .id(var_.application_id())
            .state(var_.application_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_applications = oci.Functions.get_applications(compartment_id=var["compartment_id"],
    display_name=var["application_display_name"],
    id=var["application_id"],
    state=var["application_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testApplications = oci.Functions.getApplications({
    compartmentId: _var.compartment_id,
    displayName: _var.application_display_name,
    id: _var.application_id,
    state: _var.application_state,
});
variables:
  testApplications:
    Fn::Invoke:
      Function: oci:Functions:getApplications
      Arguments:
        compartmentId: ${var.compartment_id}
        displayName: ${var.application_display_name}
        id: ${var.application_id}
        state: ${var.application_state}

Using getApplications

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 getApplications(args: GetApplicationsArgs, opts?: InvokeOptions): Promise<GetApplicationsResult>
function getApplicationsOutput(args: GetApplicationsOutputArgs, opts?: InvokeOptions): Output<GetApplicationsResult>
def get_applications(compartment_id: Optional[str] = None,
                     display_name: Optional[str] = None,
                     filters: Optional[Sequence[_functions.GetApplicationsFilter]] = None,
                     id: Optional[str] = None,
                     state: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetApplicationsResult
def get_applications_output(compartment_id: Optional[pulumi.Input[str]] = None,
                     display_name: Optional[pulumi.Input[str]] = None,
                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_functions.GetApplicationsFilterArgs]]]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     state: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetApplicationsResult]
func GetApplications(ctx *Context, args *GetApplicationsArgs, opts ...InvokeOption) (*GetApplicationsResult, error)
func GetApplicationsOutput(ctx *Context, args *GetApplicationsOutputArgs, opts ...InvokeOption) GetApplicationsResultOutput

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

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

The following arguments are supported:

CompartmentId string

The OCID of the compartment to which this resource belongs.

DisplayName string

A filter to return only applications with display names that match the display name string. Matching is exact.

Filters List<GetApplicationsFilter>
Id string

A filter to return only applications with the specified OCID.

State string

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

CompartmentId string

The OCID of the compartment to which this resource belongs.

DisplayName string

A filter to return only applications with display names that match the display name string. Matching is exact.

Filters []GetApplicationsFilter
Id string

A filter to return only applications with the specified OCID.

State string

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

compartmentId String

The OCID of the compartment to which this resource belongs.

displayName String

A filter to return only applications with display names that match the display name string. Matching is exact.

filters List<GetApplicationsFilter>
id String

A filter to return only applications with the specified OCID.

state String

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

compartmentId string

The OCID of the compartment to which this resource belongs.

displayName string

A filter to return only applications with display names that match the display name string. Matching is exact.

filters GetApplicationsFilter[]
id string

A filter to return only applications with the specified OCID.

state string

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

compartment_id str

The OCID of the compartment to which this resource belongs.

display_name str

A filter to return only applications with display names that match the display name string. Matching is exact.

filters GetApplicationsFilter]
id str

A filter to return only applications with the specified OCID.

state str

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

compartmentId String

The OCID of the compartment to which this resource belongs.

displayName String

A filter to return only applications with display names that match the display name string. Matching is exact.

filters List<Property Map>
id String

A filter to return only applications with the specified OCID.

state String

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

getApplications Result

The following output properties are available:

Applications List<GetApplicationsApplication>

The list of applications.

CompartmentId string

The OCID of the compartment that contains the application.

DisplayName string

The display name of the application. The display name is unique within the compartment containing the application.

Filters List<GetApplicationsFilter>
Id string

The OCID of the application.

State string

The current state of the application.

Applications []GetApplicationsApplication

The list of applications.

CompartmentId string

The OCID of the compartment that contains the application.

DisplayName string

The display name of the application. The display name is unique within the compartment containing the application.

Filters []GetApplicationsFilter
Id string

The OCID of the application.

State string

The current state of the application.

applications List<GetApplicationsApplication>

The list of applications.

compartmentId String

The OCID of the compartment that contains the application.

displayName String

The display name of the application. The display name is unique within the compartment containing the application.

filters List<GetApplicationsFilter>
id String

The OCID of the application.

state String

The current state of the application.

applications GetApplicationsApplication[]

The list of applications.

compartmentId string

The OCID of the compartment that contains the application.

displayName string

The display name of the application. The display name is unique within the compartment containing the application.

filters GetApplicationsFilter[]
id string

The OCID of the application.

state string

The current state of the application.

applications GetApplicationsApplication]

The list of applications.

compartment_id str

The OCID of the compartment that contains the application.

display_name str

The display name of the application. The display name is unique within the compartment containing the application.

filters GetApplicationsFilter]
id str

The OCID of the application.

state str

The current state of the application.

applications List<Property Map>

The list of applications.

compartmentId String

The OCID of the compartment that contains the application.

displayName String

The display name of the application. The display name is unique within the compartment containing the application.

filters List<Property Map>
id String

The OCID of the application.

state String

The current state of the application.

Supporting Types

GetApplicationsApplication

CompartmentId string

The OCID of the compartment to which this resource belongs.

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

A filter to return only applications with display names that match the display name string. Matching is exact.

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

A filter to return only applications with the specified OCID.

ImagePolicyConfigs List<GetApplicationsApplicationImagePolicyConfig>

Define the image signature verification policy for an application.

NetworkSecurityGroupIds List<string>

The OCIDs of the Network Security Groups to add the application to.

State string

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

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<GetApplicationsApplicationTraceConfig>

Define the tracing configuration for an application.

CompartmentId string

The OCID of the compartment to which this resource belongs.

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

A filter to return only applications with display names that match the display name string. Matching is exact.

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

A filter to return only applications with the specified OCID.

ImagePolicyConfigs []GetApplicationsApplicationImagePolicyConfig

Define the image signature verification policy for an application.

NetworkSecurityGroupIds []string

The OCIDs of the Network Security Groups to add the application to.

State string

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

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 []GetApplicationsApplicationTraceConfig

Define the tracing configuration for an application.

compartmentId String

The OCID of the compartment to which this resource belongs.

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

A filter to return only applications with display names that match the display name string. Matching is exact.

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

A filter to return only applications with the specified OCID.

imagePolicyConfigs List<GetApplicationsApplicationImagePolicyConfig>

Define the image signature verification policy for an application.

networkSecurityGroupIds List<String>

The OCIDs of the Network Security Groups to add the application to.

state String

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

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<GetApplicationsApplicationTraceConfig>

Define the tracing configuration for an application.

compartmentId string

The OCID of the compartment to which this resource belongs.

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

A filter to return only applications with display names that match the display name string. Matching is exact.

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

A filter to return only applications with the specified OCID.

imagePolicyConfigs GetApplicationsApplicationImagePolicyConfig[]

Define the image signature verification policy for an application.

networkSecurityGroupIds string[]

The OCIDs of the Network Security Groups to add the application to.

state string

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

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 GetApplicationsApplicationTraceConfig[]

Define the tracing configuration for an application.

compartment_id str

The OCID of the compartment to which this resource belongs.

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

A filter to return only applications with display names that match the display name string. Matching is exact.

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

A filter to return only applications with the specified OCID.

image_policy_configs GetApplicationsApplicationImagePolicyConfig]

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.

state str

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

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 GetApplicationsApplicationTraceConfig]

Define the tracing configuration for an application.

compartmentId String

The OCID of the compartment to which this resource belongs.

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

A filter to return only applications with display names that match the display name string. Matching is exact.

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

A filter to return only applications with the specified OCID.

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.

state String

A filter to return only applications that match the lifecycle state in this parameter. Example: Creating

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.

GetApplicationsApplicationImagePolicyConfig

IsPolicyEnabled bool

Define if image signature verification policy is enabled for the application.

KeyDetails List<GetApplicationsApplicationImagePolicyConfigKeyDetail>

A list of KMS key details.

IsPolicyEnabled bool

Define if image signature verification policy is enabled for the application.

KeyDetails []GetApplicationsApplicationImagePolicyConfigKeyDetail

A list of KMS key details.

isPolicyEnabled Boolean

Define if image signature verification policy is enabled for the application.

keyDetails List<GetApplicationsApplicationImagePolicyConfigKeyDetail>

A list of KMS key details.

isPolicyEnabled boolean

Define if image signature verification policy is enabled for the application.

keyDetails GetApplicationsApplicationImagePolicyConfigKeyDetail[]

A list of KMS key details.

is_policy_enabled bool

Define if image signature verification policy is enabled for the application.

key_details GetApplicationsApplicationImagePolicyConfigKeyDetail]

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.

GetApplicationsApplicationImagePolicyConfigKeyDetail

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.

GetApplicationsApplicationTraceConfig

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.

GetApplicationsFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.