Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OperatorAccessControl.getAction
Explore with Pulumi AI
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)
public static Output<GetActionResult> getAction(GetActionArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OperatorAccessControl/getAction:getAction
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OperatorAction stringId 
- Unique Oracle supplied identifier associated with the operator action.
- OperatorAction stringId 
- Unique Oracle supplied identifier associated with the operator action.
- operatorAction StringId 
- Unique Oracle supplied identifier associated with the operator action.
- operatorAction stringId 
- Unique Oracle supplied identifier associated with the operator action.
- operator_action_ strid 
- Unique Oracle supplied identifier associated with the operator action.
- operatorAction StringId 
- 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.
- CustomerDisplay stringName 
- 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
- OperatorAction stringId 
- Properties
List<GetAction Property> 
- 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.
- CustomerDisplay stringName 
- 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
- OperatorAction stringId 
- Properties
[]GetAction Property 
- 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.
- customerDisplay StringName 
- 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
- operatorAction StringId 
- properties
List<GetAction Property> 
- 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.
- customerDisplay stringName 
- 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
- operatorAction stringId 
- properties
GetAction Property[] 
- 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_ strname 
- 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_ strid 
- properties
Sequence[GetAction Property] 
- 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.
- customerDisplay StringName 
- 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
- operatorAction StringId 
- properties List<Property Map>
- Fine grained properties associated with the operator control.
- resourceType String
- resourceType for which the OperatorAction is applicable
Supporting Types
GetActionProperty  
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.