Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Functions/getApplication:getApplication
arguments:
# arguments dictionary
The following arguments are supported:
- Application
Id string - The OCID of this application.
- Application
Id string - The OCID of this application.
- application
Id String - The OCID of this application.
- application
Id string - The OCID of this application.
- application_
id str - The OCID of this application.
- application
Id String - The OCID of this application.
getApplication Result
The following output properties are available:
- Application
Id string - Compartment
Id 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"}
- Display
Name 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.
- Image
Policy List<GetConfigs Application Image Policy Config> - Define the image signature verification policy for an application.
- Network
Security List<string>Group Ids - The OCIDs of the Network Security Groups to add the application to.
- Shape string
- Valid values are
GENERIC_X86
,GENERIC_ARM
andGENERIC_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.
- Subnet
Ids List<string> - The OCIDs of the subnets in which to run functions in the application.
- Syslog
Url 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
- Time
Created string - The time the application was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Time
Updated string - The time the application was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Trace
Configs List<GetApplication Trace Config> - Define the tracing configuration for an application.
- Application
Id string - Compartment
Id 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"}
- Display
Name 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.
- Image
Policy []GetConfigs Application Image Policy Config - Define the image signature verification policy for an application.
- Network
Security []stringGroup Ids - The OCIDs of the Network Security Groups to add the application to.
- Shape string
- Valid values are
GENERIC_X86
,GENERIC_ARM
andGENERIC_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.
- Subnet
Ids []string - The OCIDs of the subnets in which to run functions in the application.
- Syslog
Url 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
- Time
Created string - The time the application was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Time
Updated string - The time the application was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Trace
Configs []GetApplication Trace Config - Define the tracing configuration for an application.
- application
Id String - compartment
Id 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"}
- display
Name 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.
- image
Policy List<GetConfigs Application Image Policy Config> - Define the image signature verification policy for an application.
- network
Security List<String>Group Ids - The OCIDs of the Network Security Groups to add the application to.
- shape String
- Valid values are
GENERIC_X86
,GENERIC_ARM
andGENERIC_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.
- subnet
Ids List<String> - The OCIDs of the subnets in which to run functions in the application.
- syslog
Url 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
- time
Created String - The time the application was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated String - The time the application was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- trace
Configs List<GetApplication Trace Config> - Define the tracing configuration for an application.
- application
Id string - compartment
Id 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"}
- display
Name 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.
- image
Policy GetConfigs Application Image Policy Config[] - Define the image signature verification policy for an application.
- network
Security string[]Group Ids - The OCIDs of the Network Security Groups to add the application to.
- shape string
- Valid values are
GENERIC_X86
,GENERIC_ARM
andGENERIC_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.
- subnet
Ids string[] - The OCIDs of the subnets in which to run functions in the application.
- syslog
Url 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
- time
Created string - The time the application was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated string - The time the application was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- trace
Configs 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_ARM
andGENERIC_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.
- application
Id String - compartment
Id 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"}
- display
Name 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.
- image
Policy List<Property Map>Configs - Define the image signature verification policy for an application.
- network
Security List<String>Group Ids - The OCIDs of the Network Security Groups to add the application to.
- shape String
- Valid values are
GENERIC_X86
,GENERIC_ARM
andGENERIC_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.
- subnet
Ids List<String> - The OCIDs of the subnets in which to run functions in the application.
- syslog
Url 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
- time
Created String - The time the application was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated String - The time the application was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- trace
Configs List<Property Map> - Define the tracing configuration for an application.
Supporting Types
GetApplicationImagePolicyConfig
- Is
Policy boolEnabled - Define if image signature verification policy is enabled for the application.
- Key
Details List<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 []GetApplication Image Policy Config Key Detail - A list of KMS key details.
- is
Policy BooleanEnabled - Define if image signature verification policy is enabled for the application.
- key
Details List<GetApplication Image Policy Config Key Detail> - A list of KMS key details.
- is
Policy booleanEnabled - Define if image signature verification policy is enabled for the application.
- key
Details 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.
- is
Policy BooleanEnabled - Define if image signature verification policy is enabled for the application.
- key
Details 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
oci
Terraform Provider.