Oracle Cloud Infrastructure
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:
- Application
Id string The OCID of the application to which this function belongs.
- Display
Name string A filter to return only functions with display names that match the display name string. Matching is exact.
- Filters
List<Get
Functions Filter> - 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 string The OCID of the application to which this function belongs.
- Display
Name string A filter to return only functions with display names that match the display name string. Matching is exact.
- Filters
[]Get
Functions Filter - 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 String The OCID of the application to which this function belongs.
- display
Name String A filter to return only functions with display names that match the display name string. Matching is exact.
- filters
List<Get
Filter> - 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 string The OCID of the application to which this function belongs.
- display
Name string A filter to return only functions with display names that match the display name string. Matching is exact.
- filters
Get
Functions Filter[] - 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
Get
Functions Filter] - 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
- application
Id String The OCID of the application to which this function belongs.
- display
Name 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:
- Application
Id string The OCID of the application the function belongs to.
- Functions
List<Get
Functions Function> The list of functions.
- Display
Name string The display name of the function. The display name is unique within the application containing the function.
- Filters
List<Get
Functions Filter> - Id string
The OCID of the function.
- State string
The current state of the function.
- Application
Id string The OCID of the application the function belongs to.
- Functions
[]Get
Functions Function The list of functions.
- Display
Name string The display name of the function. The display name is unique within the application containing the function.
- Filters
[]Get
Functions Filter - Id string
The OCID of the function.
- State string
The current state of the function.
- application
Id String The OCID of the application the function belongs to.
- functions
List<Get
Function> The list of functions.
- display
Name String The display name of the function. The display name is unique within the application containing the function.
- filters
List<Get
Filter> - id String
The OCID of the function.
- state String
The current state of the function.
- application
Id string The OCID of the application the function belongs to.
- functions
Get
Functions Function[] The list of functions.
- display
Name string The display name of the function. The display name is unique within the application containing the function.
- filters
Get
Functions Filter[] - 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
Get
Functions Function] 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
Get
Functions Filter] - id str
The OCID of the function.
- state str
The current state of the function.
- application
Id String The OCID of the application the function belongs to.
- functions List<Property Map>
The list of functions.
- display
Name 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
GetFunctionsFunction
- Application
Id string The OCID of the application to which this function belongs.
- Compartment
Id 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"}
- 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"}
- Display
Name string A filter to return only functions with display names that match the display name string. Matching is exact.
- 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
- Image
Digest 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
- Invoke
Endpoint 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.
- Memory
In stringMbs 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
- Time
Created string The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Time
Updated string The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Timeout
In intSeconds Timeout for executions of the function. Value in seconds.
- Trace
Configs List<GetFunctions Function Trace Config> Define the tracing configuration for a function.
- Application
Id string The OCID of the application to which this function belongs.
- Compartment
Id 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"}
- 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"}
- Display
Name string A filter to return only functions with display names that match the display name string. Matching is exact.
- 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
- Image
Digest 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
- Invoke
Endpoint 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.
- Memory
In stringMbs 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
- Time
Created string The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Time
Updated string The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Timeout
In intSeconds Timeout for executions of the function. Value in seconds.
- Trace
Configs []GetFunctions Function Trace Config Define the tracing configuration for a function.
- application
Id String The OCID of the application to which this function belongs.
- compartment
Id 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"}
- 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"}
- display
Name String A filter to return only functions with display names that match the display name string. Matching is exact.
- 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
- image
Digest 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
- invoke
Endpoint 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.
- memory
In StringMbs 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
- time
Created String The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated String The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- timeout
In IntegerSeconds Timeout for executions of the function. Value in seconds.
- trace
Configs List<GetFunction Trace Config> Define the tracing configuration for a function.
- application
Id string The OCID of the application to which this function belongs.
- compartment
Id 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"}
- {[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"}
- display
Name string A filter to return only functions with display names that match the display name string. Matching is exact.
- {[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
- image
Digest 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
- invoke
Endpoint 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.
- memory
In stringMbs 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
- time
Created string The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated string The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- timeout
In numberSeconds Timeout for executions of the function. Value in seconds.
- trace
Configs GetFunctions Function Trace Config[] 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"}
- 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.
- 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_ strmbs 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_ intseconds Timeout for executions of the function. Value in seconds.
- trace_
configs GetFunctions Function Trace Config] Define the tracing configuration for a function.
- application
Id String The OCID of the application to which this function belongs.
- compartment
Id 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"}
- 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"}
- display
Name String A filter to return only functions with display names that match the display name string. Matching is exact.
- 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
- image
Digest 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
- invoke
Endpoint 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.
- memory
In StringMbs 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
- time
Created String The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated String The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- timeout
In NumberSeconds Timeout for executions of the function. Value in seconds.
- trace
Configs List<Property Map> Define the tracing configuration for a function.
GetFunctionsFunctionTraceConfig
- Is
Enabled bool Define if tracing is enabled for the resource.
- Is
Enabled bool Define if tracing is enabled for the resource.
- is
Enabled Boolean Define if tracing is enabled for the resource.
- is
Enabled boolean Define if tracing is enabled for the resource.
- is_
enabled bool Define if tracing is enabled for the resource.
- is
Enabled 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.