Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getFunctions

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

Lists functions for an application.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testFunctions = Output.Create(Oci.Functions.GetFunctions.InvokeAsync(new Oci.Functions.GetFunctionsArgs
        {
            ApplicationId = oci_functions_application.Test_application.Id,
            DisplayName = @var.Function_display_name,
            Id = @var.Function_id,
            State = @var.Function_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.GetFunctions(ctx, &functions.GetFunctionsArgs{
			ApplicationId: oci_functions_application.Test_application.Id,
			DisplayName:   pulumi.StringRef(_var.Function_display_name),
			Id:            pulumi.StringRef(_var.Function_id),
			State:         pulumi.StringRef(_var.Function_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_functions = oci.Functions.get_functions(application_id=oci_functions_application["test_application"]["id"],
    display_name=var["function_display_name"],
    id=var["function_id"],
    state=var["function_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testFunctions = oci.Functions.getFunctions({
    applicationId: oci_functions_application.test_application.id,
    displayName: _var.function_display_name,
    id: _var.function_id,
    state: _var.function_state,
});

Coming soon!

Using getFunctions

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 getFunctions(args: GetFunctionsArgs, opts?: InvokeOptions): Promise<GetFunctionsResult>
function getFunctionsOutput(args: GetFunctionsOutputArgs, opts?: InvokeOptions): Output<GetFunctionsResult>
def get_functions(application_id: Optional[str] = None,
                  display_name: Optional[str] = None,
                  filters: Optional[Sequence[_functions.GetFunctionsFilter]] = None,
                  id: Optional[str] = None,
                  state: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetFunctionsResult
def get_functions_output(application_id: Optional[pulumi.Input[str]] = None,
                  display_name: Optional[pulumi.Input[str]] = None,
                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_functions.GetFunctionsFilterArgs]]]] = None,
                  id: Optional[pulumi.Input[str]] = None,
                  state: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetFunctionsResult]
func GetFunctions(ctx *Context, args *GetFunctionsArgs, opts ...InvokeOption) (*GetFunctionsResult, error)
func GetFunctionsOutput(ctx *Context, args *GetFunctionsOutputArgs, opts ...InvokeOption) GetFunctionsResultOutput

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

public static class GetFunctions 
{
    public static Task<GetFunctionsResult> InvokeAsync(GetFunctionsArgs args, InvokeOptions? opts = null)
    public static Output<GetFunctionsResult> Invoke(GetFunctionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFunctionsResult> getFunctions(GetFunctionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Functions/getFunctions:getFunctions
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ApplicationId string

The OCID of the application to which this function belongs.

DisplayName string

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

Filters List<GetFunctionsFilter>
Id string

A filter to return only functions with the specified OCID.

State string

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

ApplicationId string

The OCID of the application to which this function belongs.

DisplayName string

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

Filters []GetFunctionsFilter
Id string

A filter to return only functions with the specified OCID.

State string

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

applicationId String

The OCID of the application to which this function belongs.

displayName String

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

filters List<GetFilter>
id String

A filter to return only functions with the specified OCID.

state String

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

applicationId string

The OCID of the application to which this function belongs.

displayName string

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

filters GetFunctionsFilter[]
id string

A filter to return only functions with the specified OCID.

state string

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

application_id str

The OCID of the application to which this function belongs.

display_name str

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

filters GetFunctionsFilter]
id str

A filter to return only functions with the specified OCID.

state str

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

applicationId String

The OCID of the application to which this function belongs.

displayName String

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

filters List<Property Map>
id String

A filter to return only functions with the specified OCID.

state String

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

getFunctions Result

The following output properties are available:

ApplicationId string

The OCID of the application the function belongs to.

Functions List<GetFunctionsFunction>

The list of functions.

DisplayName string

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

Filters List<GetFunctionsFilter>
Id string

The OCID of the function.

State string

The current state of the function.

ApplicationId string

The OCID of the application the function belongs to.

Functions []GetFunctionsFunction

The list of functions.

DisplayName string

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

Filters []GetFunctionsFilter
Id string

The OCID of the function.

State string

The current state of the function.

applicationId String

The OCID of the application the function belongs to.

functions List<GetFunction>

The list of functions.

displayName String

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

filters List<GetFilter>
id String

The OCID of the function.

state String

The current state of the function.

applicationId string

The OCID of the application the function belongs to.

functions GetFunctionsFunction[]

The list of functions.

displayName string

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

filters GetFunctionsFilter[]
id string

The OCID of the function.

state string

The current state of the function.

application_id str

The OCID of the application the function belongs to.

functions GetFunctionsFunction]

The list of functions.

display_name str

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

filters GetFunctionsFilter]
id str

The OCID of the function.

state str

The current state of the function.

applicationId String

The OCID of the application the function belongs to.

functions List<Property Map>

The list of functions.

displayName String

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

filters List<Property Map>
id String

The OCID of the function.

state String

The current state of the function.

Supporting Types

GetFunctionsFilter

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

GetFunctionsFunction

ApplicationId string

The OCID of the application to which this function belongs.

CompartmentId string

The OCID of the compartment that contains the function.

Config Dictionary<string, object>

Function configuration. Overrides application 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 functions 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 functions with the specified OCID.

Image string

The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. Example: phx.ocir.io/ten/functions/function:0.0.1

ImageDigest string

The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. Example: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7

InvokeEndpoint string

The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.

MemoryInMbs string

Maximum usable memory for the function (MiB).

State string

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

TimeCreated string

The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

TimeUpdated string

The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

TimeoutInSeconds int

Timeout for executions of the function. Value in seconds.

TraceConfigs List<GetFunctionsFunctionTraceConfig>

Define the tracing configuration for a function.

ApplicationId string

The OCID of the application to which this function belongs.

CompartmentId string

The OCID of the compartment that contains the function.

Config map[string]interface{}

Function configuration. Overrides application 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 functions 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 functions with the specified OCID.

Image string

The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. Example: phx.ocir.io/ten/functions/function:0.0.1

ImageDigest string

The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. Example: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7

InvokeEndpoint string

The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.

MemoryInMbs string

Maximum usable memory for the function (MiB).

State string

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

TimeCreated string

The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

TimeUpdated string

The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

TimeoutInSeconds int

Timeout for executions of the function. Value in seconds.

TraceConfigs []GetFunctionsFunctionTraceConfig

Define the tracing configuration for a function.

applicationId String

The OCID of the application to which this function belongs.

compartmentId String

The OCID of the compartment that contains the function.

config Map<String,Object>

Function configuration. Overrides application 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 functions 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 functions with the specified OCID.

image String

The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. Example: phx.ocir.io/ten/functions/function:0.0.1

imageDigest String

The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. Example: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7

invokeEndpoint String

The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.

memoryInMbs String

Maximum usable memory for the function (MiB).

state String

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

timeCreated String

The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

timeUpdated String

The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

timeoutInSeconds Integer

Timeout for executions of the function. Value in seconds.

traceConfigs List<GetFunctionTraceConfig>

Define the tracing configuration for a function.

applicationId string

The OCID of the application to which this function belongs.

compartmentId string

The OCID of the compartment that contains the function.

config {[key: string]: any}

Function configuration. Overrides application 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 functions 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 functions with the specified OCID.

image string

The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. Example: phx.ocir.io/ten/functions/function:0.0.1

imageDigest string

The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. Example: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7

invokeEndpoint string

The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.

memoryInMbs string

Maximum usable memory for the function (MiB).

state string

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

timeCreated string

The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

timeUpdated string

The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

timeoutInSeconds number

Timeout for executions of the function. Value in seconds.

traceConfigs GetFunctionsFunctionTraceConfig[]

Define the tracing configuration for a function.

application_id str

The OCID of the application to which this function belongs.

compartment_id str

The OCID of the compartment that contains the function.

config Mapping[str, Any]

Function configuration. Overrides application 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 functions 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 functions with the specified OCID.

image str

The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. Example: phx.ocir.io/ten/functions/function:0.0.1

image_digest str

The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. Example: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7

invoke_endpoint str

The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.

memory_in_mbs str

Maximum usable memory for the function (MiB).

state str

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

time_created str

The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

time_updated str

The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

timeout_in_seconds int

Timeout for executions of the function. Value in seconds.

trace_configs GetFunctionsFunctionTraceConfig]

Define the tracing configuration for a function.

applicationId String

The OCID of the application to which this function belongs.

compartmentId String

The OCID of the compartment that contains the function.

config Map<Any>

Function configuration. Overrides application 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 functions 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 functions with the specified OCID.

image String

The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. Example: phx.ocir.io/ten/functions/function:0.0.1

imageDigest String

The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. Example: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7

invokeEndpoint String

The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.

memoryInMbs String

Maximum usable memory for the function (MiB).

state String

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

timeCreated String

The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

timeUpdated String

The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z

timeoutInSeconds Number

Timeout for executions of the function. Value in seconds.

traceConfigs List<Property Map>

Define the tracing configuration for a function.

GetFunctionsFunctionTraceConfig

IsEnabled bool

Define if tracing is enabled for the resource.

IsEnabled bool

Define if tracing is enabled for the resource.

isEnabled Boolean

Define if tracing is enabled for the resource.

isEnabled boolean

Define if tracing is enabled for the resource.

is_enabled bool

Define if tracing is enabled for the resource.

isEnabled Boolean

Define if tracing is enabled for the resource.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.