ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getFunctionAction
Explore with Pulumi AI
Retrieve information about an action. Import the details of an existing IBM Cloud Functions action as a read-only data source.
Example Usage
The following example retrieves information about the myaction action.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const nodehello = ibm.getFunctionAction({
    name: "action-name",
    namespace: "function-namespace-name",
});
import pulumi
import pulumi_ibm as ibm
nodehello = ibm.get_function_action(name="action-name",
    namespace="function-namespace-name")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.LookupFunctionAction(ctx, &ibm.LookupFunctionActionArgs{
			Name:      "action-name",
			Namespace: "function-namespace-name",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() => 
{
    var nodehello = Ibm.GetFunctionAction.Invoke(new()
    {
        Name = "action-name",
        Namespace = "function-namespace-name",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetFunctionActionArgs;
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 nodehello = IbmFunctions.getFunctionAction(GetFunctionActionArgs.builder()
            .name("action-name")
            .namespace("function-namespace-name")
            .build());
    }
}
variables:
  nodehello:
    fn::invoke:
      function: ibm:getFunctionAction
      arguments:
        name: action-name
        namespace: function-namespace-name
Using getFunctionAction
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 getFunctionAction(args: GetFunctionActionArgs, opts?: InvokeOptions): Promise<GetFunctionActionResult>
function getFunctionActionOutput(args: GetFunctionActionOutputArgs, opts?: InvokeOptions): Output<GetFunctionActionResult>def get_function_action(id: Optional[str] = None,
                        name: Optional[str] = None,
                        namespace: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetFunctionActionResult
def get_function_action_output(id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        namespace: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetFunctionActionResult]func LookupFunctionAction(ctx *Context, args *LookupFunctionActionArgs, opts ...InvokeOption) (*LookupFunctionActionResult, error)
func LookupFunctionActionOutput(ctx *Context, args *LookupFunctionActionOutputArgs, opts ...InvokeOption) LookupFunctionActionResultOutput> Note: This function is named LookupFunctionAction in the Go SDK.
public static class GetFunctionAction 
{
    public static Task<GetFunctionActionResult> InvokeAsync(GetFunctionActionArgs args, InvokeOptions? opts = null)
    public static Output<GetFunctionActionResult> Invoke(GetFunctionActionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFunctionActionResult> getFunctionAction(GetFunctionActionArgs args, InvokeOptions options)
public static Output<GetFunctionActionResult> getFunctionAction(GetFunctionActionArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getFunctionAction:getFunctionAction
  arguments:
    # arguments dictionaryThe following arguments are supported:
getFunctionAction Result
The following output properties are available:
- Action
Id string - (String) Action ID.
 - Annotations string
 - (List) Annotations to describe the action, including those set by you or by IBM Cloud Functions.
 - Execs
List<Get
Function Action Exec>  - (List of Objects) A nested block to describe executable binaries.
 - Id string
 - (String) The ID of the action.
 - Limits
List<Get
Function Action Limit>  - (List) A nested block to describe assigned
 - Name string
 - Namespace string
 - (String) The name of the function namespace.
 - Parameters string
 - (List) Parameters passed to the action when the action is invoked, including those set by you or by IBM Cloud Functions.
 - Publish bool
 - (Bool) Action visibility.
 - Target
Endpoint stringUrl  - (String) Target endpoint URL of the action.
 - Version string
 - (String) The version of the action.
 
- Action
Id string - (String) Action ID.
 - Annotations string
 - (List) Annotations to describe the action, including those set by you or by IBM Cloud Functions.
 - Execs
[]Get
Function Action Exec  - (List of Objects) A nested block to describe executable binaries.
 - Id string
 - (String) The ID of the action.
 - Limits
[]Get
Function Action Limit  - (List) A nested block to describe assigned
 - Name string
 - Namespace string
 - (String) The name of the function namespace.
 - Parameters string
 - (List) Parameters passed to the action when the action is invoked, including those set by you or by IBM Cloud Functions.
 - Publish bool
 - (Bool) Action visibility.
 - Target
Endpoint stringUrl  - (String) Target endpoint URL of the action.
 - Version string
 - (String) The version of the action.
 
- action
Id String - (String) Action ID.
 - annotations String
 - (List) Annotations to describe the action, including those set by you or by IBM Cloud Functions.
 - execs
List<Get
Function Action Exec>  - (List of Objects) A nested block to describe executable binaries.
 - id String
 - (String) The ID of the action.
 - limits
List<Get
Function Action Limit>  - (List) A nested block to describe assigned
 - name String
 - namespace String
 - (String) The name of the function namespace.
 - parameters String
 - (List) Parameters passed to the action when the action is invoked, including those set by you or by IBM Cloud Functions.
 - publish Boolean
 - (Bool) Action visibility.
 - target
Endpoint StringUrl  - (String) Target endpoint URL of the action.
 - version String
 - (String) The version of the action.
 
- action
Id string - (String) Action ID.
 - annotations string
 - (List) Annotations to describe the action, including those set by you or by IBM Cloud Functions.
 - execs
Get
Function Action Exec[]  - (List of Objects) A nested block to describe executable binaries.
 - id string
 - (String) The ID of the action.
 - limits
Get
Function Action Limit[]  - (List) A nested block to describe assigned
 - name string
 - namespace string
 - (String) The name of the function namespace.
 - parameters string
 - (List) Parameters passed to the action when the action is invoked, including those set by you or by IBM Cloud Functions.
 - publish boolean
 - (Bool) Action visibility.
 - target
Endpoint stringUrl  - (String) Target endpoint URL of the action.
 - version string
 - (String) The version of the action.
 
- action_
id str - (String) Action ID.
 - annotations str
 - (List) Annotations to describe the action, including those set by you or by IBM Cloud Functions.
 - execs
Sequence[Get
Function Action Exec]  - (List of Objects) A nested block to describe executable binaries.
 - id str
 - (String) The ID of the action.
 - limits
Sequence[Get
Function Action Limit]  - (List) A nested block to describe assigned
 - name str
 - namespace str
 - (String) The name of the function namespace.
 - parameters str
 - (List) Parameters passed to the action when the action is invoked, including those set by you or by IBM Cloud Functions.
 - publish bool
 - (Bool) Action visibility.
 - target_
endpoint_ strurl  - (String) Target endpoint URL of the action.
 - version str
 - (String) The version of the action.
 
- action
Id String - (String) Action ID.
 - annotations String
 - (List) Annotations to describe the action, including those set by you or by IBM Cloud Functions.
 - execs List<Property Map>
 - (List of Objects) A nested block to describe executable binaries.
 - id String
 - (String) The ID of the action.
 - limits List<Property Map>
 - (List) A nested block to describe assigned
 - name String
 - namespace String
 - (String) The name of the function namespace.
 - parameters String
 - (List) Parameters passed to the action when the action is invoked, including those set by you or by IBM Cloud Functions.
 - publish Boolean
 - (Bool) Action visibility.
 - target
Endpoint StringUrl  - (String) Target endpoint URL of the action.
 - version String
 - (String) The version of the action.
 
Supporting Types
GetFunctionActionExec   
- Code string
 - (String) When not using the 
blackboxexecutable, the code to execute. - Components List<string>
 - (String) The list of fully qualified actions.
 - Image string
 - (String) When using the 
blackboxexecutable, the name of the container image name. - Init string
 - (String) When using 
nodejs, the optional reference to the compressed file. - Kind string
 - (String) The type of action. Accepted values: 
nodejs,blackbox,swift,sequence. - Main string
 - (String) The name of the action entry point (function or fully-qualified method name, when applicable).
 
- Code string
 - (String) When not using the 
blackboxexecutable, the code to execute. - Components []string
 - (String) The list of fully qualified actions.
 - Image string
 - (String) When using the 
blackboxexecutable, the name of the container image name. - Init string
 - (String) When using 
nodejs, the optional reference to the compressed file. - Kind string
 - (String) The type of action. Accepted values: 
nodejs,blackbox,swift,sequence. - Main string
 - (String) The name of the action entry point (function or fully-qualified method name, when applicable).
 
- code String
 - (String) When not using the 
blackboxexecutable, the code to execute. - components List<String>
 - (String) The list of fully qualified actions.
 - image String
 - (String) When using the 
blackboxexecutable, the name of the container image name. - init String
 - (String) When using 
nodejs, the optional reference to the compressed file. - kind String
 - (String) The type of action. Accepted values: 
nodejs,blackbox,swift,sequence. - main String
 - (String) The name of the action entry point (function or fully-qualified method name, when applicable).
 
- code string
 - (String) When not using the 
blackboxexecutable, the code to execute. - components string[]
 - (String) The list of fully qualified actions.
 - image string
 - (String) When using the 
blackboxexecutable, the name of the container image name. - init string
 - (String) When using 
nodejs, the optional reference to the compressed file. - kind string
 - (String) The type of action. Accepted values: 
nodejs,blackbox,swift,sequence. - main string
 - (String) The name of the action entry point (function or fully-qualified method name, when applicable).
 
- code str
 - (String) When not using the 
blackboxexecutable, the code to execute. - components Sequence[str]
 - (String) The list of fully qualified actions.
 - image str
 - (String) When using the 
blackboxexecutable, the name of the container image name. - init str
 - (String) When using 
nodejs, the optional reference to the compressed file. - kind str
 - (String) The type of action. Accepted values: 
nodejs,blackbox,swift,sequence. - main str
 - (String) The name of the action entry point (function or fully-qualified method name, when applicable).
 
- code String
 - (String) When not using the 
blackboxexecutable, the code to execute. - components List<String>
 - (String) The list of fully qualified actions.
 - image String
 - (String) When using the 
blackboxexecutable, the name of the container image name. - init String
 - (String) When using 
nodejs, the optional reference to the compressed file. - kind String
 - (String) The type of action. Accepted values: 
nodejs,blackbox,swift,sequence. - main String
 - (String) The name of the action entry point (function or fully-qualified method name, when applicable).
 
GetFunctionActionLimit   
- Log
Size double - (Integer) The maximum log size for the action, specified in megabytes. Default value is 
10. - Memory double
 - (Integer) The maximum memory for the action, specified in megabytes. Default value is 
256. - Timeout double
 - (Integer) The timeout limit to terminate the action, specified in milliseconds. Default value is 
60000. 
- Log
Size float64 - (Integer) The maximum log size for the action, specified in megabytes. Default value is 
10. - Memory float64
 - (Integer) The maximum memory for the action, specified in megabytes. Default value is 
256. - Timeout float64
 - (Integer) The timeout limit to terminate the action, specified in milliseconds. Default value is 
60000. 
- log
Size Double - (Integer) The maximum log size for the action, specified in megabytes. Default value is 
10. - memory Double
 - (Integer) The maximum memory for the action, specified in megabytes. Default value is 
256. - timeout Double
 - (Integer) The timeout limit to terminate the action, specified in milliseconds. Default value is 
60000. 
- log
Size number - (Integer) The maximum log size for the action, specified in megabytes. Default value is 
10. - memory number
 - (Integer) The maximum memory for the action, specified in megabytes. Default value is 
256. - timeout number
 - (Integer) The timeout limit to terminate the action, specified in milliseconds. Default value is 
60000. 
- log_
size float - (Integer) The maximum log size for the action, specified in megabytes. Default value is 
10. - memory float
 - (Integer) The maximum memory for the action, specified in megabytes. Default value is 
256. - timeout float
 - (Integer) The timeout limit to terminate the action, specified in milliseconds. Default value is 
60000. 
- log
Size Number - (Integer) The maximum log size for the action, specified in megabytes. Default value is 
10. - memory Number
 - (Integer) The maximum memory for the action, specified in megabytes. Default value is 
256. - timeout Number
 - (Integer) The timeout limit to terminate the action, specified in milliseconds. Default value is 
60000. 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.