1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OperatorAccessControl
  5. getAction
Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi

oci.OperatorAccessControl.getAction

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi

    This data source provides details about a specific Operator Action resource in Oracle Cloud Infrastructure Operator Access Control service.

    Gets the operator action associated with the specified operator action ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOperatorAction = oci.OperatorAccessControl.getAction({
        operatorActionId: testOperatorActionOciOperatorAccessControlOperatorAction.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_operator_action = oci.OperatorAccessControl.get_action(operator_action_id=test_operator_action_oci_operator_access_control_operator_action["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/OperatorAccessControl"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OperatorAccessControl.GetAction(ctx, &operatoraccesscontrol.GetActionArgs{
    			OperatorActionId: testOperatorActionOciOperatorAccessControlOperatorAction.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 testOperatorAction = Oci.OperatorAccessControl.GetAction.Invoke(new()
        {
            OperatorActionId = testOperatorActionOciOperatorAccessControlOperatorAction.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OperatorAccessControl.OperatorAccessControlFunctions;
    import com.pulumi.oci.OperatorAccessControl.inputs.GetActionArgs;
    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 testOperatorAction = OperatorAccessControlFunctions.getAction(GetActionArgs.builder()
                .operatorActionId(testOperatorActionOciOperatorAccessControlOperatorAction.id())
                .build());
    
        }
    }
    
    variables:
      testOperatorAction:
        fn::invoke:
          Function: oci:OperatorAccessControl:getAction
          Arguments:
            operatorActionId: ${testOperatorActionOciOperatorAccessControlOperatorAction.id}
    

    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(operator_action_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetActionResult
    def get_action_output(operator_action_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetActionResult]
    func GetAction(ctx *Context, args *GetActionArgs, opts ...InvokeOption) (*GetActionResult, error)
    func GetActionOutput(ctx *Context, args *GetActionOutputArgs, opts ...InvokeOption) GetActionResultOutput

    > Note: This function is named GetAction 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OperatorAccessControl/getAction:getAction
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OperatorActionId string
    Unique Oracle supplied identifier associated with the operator action.
    OperatorActionId string
    Unique Oracle supplied identifier associated with the operator action.
    operatorActionId String
    Unique Oracle supplied identifier associated with the operator action.
    operatorActionId string
    Unique Oracle supplied identifier associated with the operator action.
    operator_action_id str
    Unique Oracle supplied identifier associated with the operator action.
    operatorActionId String
    Unique Oracle supplied identifier associated with the operator action.

    getAction Result

    The following output properties are available:

    Component string
    Name of the infrastructure layer associated with the operator action.
    CustomerDisplayName string
    Display Name of the operator action.
    Description string
    Description of the operator action in terms of associated risk profile, and characteristics of the operating system commands made available to the operator under this operator action.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the property
    OperatorActionId string
    Properties List<GetActionProperty>
    Fine grained properties associated with the operator control.
    ResourceType string
    resourceType for which the OperatorAction is applicable
    Component string
    Name of the infrastructure layer associated with the operator action.
    CustomerDisplayName string
    Display Name of the operator action.
    Description string
    Description of the operator action in terms of associated risk profile, and characteristics of the operating system commands made available to the operator under this operator action.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the property
    OperatorActionId string
    Properties []GetActionProperty
    Fine grained properties associated with the operator control.
    ResourceType string
    resourceType for which the OperatorAction is applicable
    component String
    Name of the infrastructure layer associated with the operator action.
    customerDisplayName String
    Display Name of the operator action.
    description String
    Description of the operator action in terms of associated risk profile, and characteristics of the operating system commands made available to the operator under this operator action.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the property
    operatorActionId String
    properties List<GetActionProperty>
    Fine grained properties associated with the operator control.
    resourceType String
    resourceType for which the OperatorAction is applicable
    component string
    Name of the infrastructure layer associated with the operator action.
    customerDisplayName string
    Display Name of the operator action.
    description string
    Description of the operator action in terms of associated risk profile, and characteristics of the operating system commands made available to the operator under this operator action.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the property
    operatorActionId string
    properties GetActionProperty[]
    Fine grained properties associated with the operator control.
    resourceType string
    resourceType for which the OperatorAction is applicable
    component str
    Name of the infrastructure layer associated with the operator action.
    customer_display_name str
    Display Name of the operator action.
    description str
    Description of the operator action in terms of associated risk profile, and characteristics of the operating system commands made available to the operator under this operator action.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the property
    operator_action_id str
    properties Sequence[operatoraccesscontrol.GetActionProperty]
    Fine grained properties associated with the operator control.
    resource_type str
    resourceType for which the OperatorAction is applicable
    component String
    Name of the infrastructure layer associated with the operator action.
    customerDisplayName String
    Display Name of the operator action.
    description String
    Description of the operator action in terms of associated risk profile, and characteristics of the operating system commands made available to the operator under this operator action.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the property
    operatorActionId String
    properties List<Property Map>
    Fine grained properties associated with the operator control.
    resourceType String
    resourceType for which the OperatorAction is applicable

    Supporting Types

    GetActionProperty

    Name string
    Name of the property
    Value string
    value of the property
    Name string
    Name of the property
    Value string
    value of the property
    name String
    Name of the property
    value String
    value of the property
    name string
    Name of the property
    value string
    value of the property
    name str
    Name of the property
    value str
    value of the property
    name String
    Name of the property
    value String
    value of the property

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi