1. Packages
  2. Packages
  3. Juju Provider
  4. API Docs
  5. getAction
Viewing docs for juju 2.2.1
published on Monday, Jul 27, 2026 by juju
Viewing docs for juju 2.2.1
published on Monday, Jul 27, 2026 by juju

    Example Usage

    Using getAction

    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 getAction(args: GetActionArgs, opts?: InvokeOptions): Promise<GetActionResult>
    function getActionOutput(args: GetActionOutputArgs, opts?: InvokeOptions): Output<GetActionResult>
    def get_action(action_id: Optional[str] = None,
                   model_uuid: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetActionResult
    def get_action_output(action_id: pulumi.Input[Optional[str]] = None,
                   model_uuid: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetActionResult]
    func LookupAction(ctx *Context, args *LookupActionArgs, opts ...InvokeOption) (*LookupActionResult, error)
    func LookupActionOutput(ctx *Context, args *LookupActionOutputArgs, opts ...InvokeOption) LookupActionResultOutput

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

    public static class GetAction 
    {
        public static Task<GetActionResult> InvokeAsync(GetActionArgs args, InvokeOptions? opts = null)
        public static Output<GetActionResult> Invoke(GetActionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetActionResult> getAction(GetActionArgs args, InvokeOptions options)
    public static Output<GetActionResult> getAction(GetActionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: juju:index/getAction:getAction
      arguments:
        # arguments dictionary
    data "juju_get_action" "name" {
        # arguments
    }

    The following arguments are supported:

    ActionId string
    The ID of the action whose result is fetched.
    ModelUuid string
    The UUID of the model where the action was run.
    ActionId string
    The ID of the action whose result is fetched.
    ModelUuid string
    The UUID of the model where the action was run.
    action_id string
    The ID of the action whose result is fetched.
    model_uuid string
    The UUID of the model where the action was run.
    actionId String
    The ID of the action whose result is fetched.
    modelUuid String
    The UUID of the model where the action was run.
    actionId string
    The ID of the action whose result is fetched.
    modelUuid string
    The UUID of the model where the action was run.
    action_id str
    The ID of the action whose result is fetched.
    model_uuid str
    The UUID of the model where the action was run.
    actionId String
    The ID of the action whose result is fetched.
    modelUuid String
    The UUID of the model where the action was run.

    getAction Result

    The following output properties are available:

    ActionId string
    The ID of the action whose result is fetched.
    Id string
    The ID of this resource.
    ModelUuid string
    The UUID of the model where the action was run.
    Output string
    The output of the action as a JSON string. Use jsondecode() to extract values from it.
    ActionId string
    The ID of the action whose result is fetched.
    Id string
    The ID of this resource.
    ModelUuid string
    The UUID of the model where the action was run.
    Output string
    The output of the action as a JSON string. Use jsondecode() to extract values from it.
    action_id string
    The ID of the action whose result is fetched.
    id string
    The ID of this resource.
    model_uuid string
    The UUID of the model where the action was run.
    output string
    The output of the action as a JSON string. Use jsondecode() to extract values from it.
    actionId String
    The ID of the action whose result is fetched.
    id String
    The ID of this resource.
    modelUuid String
    The UUID of the model where the action was run.
    output String
    The output of the action as a JSON string. Use jsondecode() to extract values from it.
    actionId string
    The ID of the action whose result is fetched.
    id string
    The ID of this resource.
    modelUuid string
    The UUID of the model where the action was run.
    output string
    The output of the action as a JSON string. Use jsondecode() to extract values from it.
    action_id str
    The ID of the action whose result is fetched.
    id str
    The ID of this resource.
    model_uuid str
    The UUID of the model where the action was run.
    output str
    The output of the action as a JSON string. Use jsondecode() to extract values from it.
    actionId String
    The ID of the action whose result is fetched.
    id String
    The ID of this resource.
    modelUuid String
    The UUID of the model where the action was run.
    output String
    The output of the action as a JSON string. Use jsondecode() to extract values from it.

    Package Details

    Repository
    juju juju/terraform-provider-juju
    License
    Notes
    This Pulumi package is based on the juju Terraform Provider.
    Viewing docs for juju 2.2.1
    published on Monday, Jul 27, 2026 by juju

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial