Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OperatorAccessControl.getActions
Explore with Pulumi AI
This data source provides the list of Operator Actions in Oracle Cloud Infrastructure Operator Access Control service.
Lists all the OperatorActions available in the system.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOperatorActions = oci.OperatorAccessControl.getActions({
    compartmentId: compartmentId,
    name: operatorActionName,
    resourceType: operatorActionResourceType,
    state: operatorActionState,
});
import pulumi
import pulumi_oci as oci
test_operator_actions = oci.OperatorAccessControl.get_actions(compartment_id=compartment_id,
    name=operator_action_name,
    resource_type=operator_action_resource_type,
    state=operator_action_state)
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.GetActions(ctx, &operatoraccesscontrol.GetActionsArgs{
			CompartmentId: compartmentId,
			Name:          pulumi.StringRef(operatorActionName),
			ResourceType:  pulumi.StringRef(operatorActionResourceType),
			State:         pulumi.StringRef(operatorActionState),
		}, 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 testOperatorActions = Oci.OperatorAccessControl.GetActions.Invoke(new()
    {
        CompartmentId = compartmentId,
        Name = operatorActionName,
        ResourceType = operatorActionResourceType,
        State = operatorActionState,
    });
});
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.GetActionsArgs;
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 testOperatorActions = OperatorAccessControlFunctions.getActions(GetActionsArgs.builder()
            .compartmentId(compartmentId)
            .name(operatorActionName)
            .resourceType(operatorActionResourceType)
            .state(operatorActionState)
            .build());
    }
}
variables:
  testOperatorActions:
    fn::invoke:
      function: oci:OperatorAccessControl:getActions
      arguments:
        compartmentId: ${compartmentId}
        name: ${operatorActionName}
        resourceType: ${operatorActionResourceType}
        state: ${operatorActionState}
Using getActions
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 getActions(args: GetActionsArgs, opts?: InvokeOptions): Promise<GetActionsResult>
function getActionsOutput(args: GetActionsOutputArgs, opts?: InvokeOptions): Output<GetActionsResult>def get_actions(compartment_id: Optional[str] = None,
                filters: Optional[Sequence[GetActionsFilter]] = None,
                name: Optional[str] = None,
                resource_type: Optional[str] = None,
                state: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetActionsResult
def get_actions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetActionsFilterArgs]]]] = None,
                name: Optional[pulumi.Input[str]] = None,
                resource_type: Optional[pulumi.Input[str]] = None,
                state: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetActionsResult]func GetActions(ctx *Context, args *GetActionsArgs, opts ...InvokeOption) (*GetActionsResult, error)
func GetActionsOutput(ctx *Context, args *GetActionsOutputArgs, opts ...InvokeOption) GetActionsResultOutput> Note: This function is named GetActions in the Go SDK.
public static class GetActions 
{
    public static Task<GetActionsResult> InvokeAsync(GetActionsArgs args, InvokeOptions? opts = null)
    public static Output<GetActionsResult> Invoke(GetActionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetActionsResult> getActions(GetActionsArgs args, InvokeOptions options)
public static Output<GetActionsResult> getActions(GetActionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OperatorAccessControl/getActions:getActions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which to list resources.
- Filters
List<GetActions Filter> 
- Name string
- A filter to return only resources that match the entire display name given.
- ResourceType string
- A filter to return only lists of resources that match the entire given service type.
- State string
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- CompartmentId string
- The ID of the compartment in which to list resources.
- Filters
[]GetActions Filter 
- Name string
- A filter to return only resources that match the entire display name given.
- ResourceType string
- A filter to return only lists of resources that match the entire given service type.
- State string
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- compartmentId String
- The ID of the compartment in which to list resources.
- filters
List<GetActions Filter> 
- name String
- A filter to return only resources that match the entire display name given.
- resourceType String
- A filter to return only lists of resources that match the entire given service type.
- state String
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- compartmentId string
- The ID of the compartment in which to list resources.
- filters
GetActions Filter[] 
- name string
- A filter to return only resources that match the entire display name given.
- resourceType string
- A filter to return only lists of resources that match the entire given service type.
- state string
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- compartment_id str
- The ID of the compartment in which to list resources.
- filters
Sequence[GetActions Filter] 
- name str
- A filter to return only resources that match the entire display name given.
- resource_type str
- A filter to return only lists of resources that match the entire given service type.
- state str
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- compartmentId String
- The ID of the compartment in which to list resources.
- filters List<Property Map>
- name String
- A filter to return only resources that match the entire display name given.
- resourceType String
- A filter to return only lists of resources that match the entire given service type.
- state String
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
getActions Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- OperatorAction List<GetCollections Actions Operator Action Collection> 
- The list of operator_action_collection.
- Filters
List<GetActions Filter> 
- Name string
- Name of the property
- ResourceType string
- resourceType for which the OperatorAction is applicable
- State string
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- OperatorAction []GetCollections Actions Operator Action Collection 
- The list of operator_action_collection.
- Filters
[]GetActions Filter 
- Name string
- Name of the property
- ResourceType string
- resourceType for which the OperatorAction is applicable
- State string
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- operatorAction List<GetCollections Actions Operator Action Collection> 
- The list of operator_action_collection.
- filters
List<GetActions Filter> 
- name String
- Name of the property
- resourceType String
- resourceType for which the OperatorAction is applicable
- state String
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- operatorAction GetCollections Actions Operator Action Collection[] 
- The list of operator_action_collection.
- filters
GetActions Filter[] 
- name string
- Name of the property
- resourceType string
- resourceType for which the OperatorAction is applicable
- state string
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- operator_action_ Sequence[Getcollections Actions Operator Action Collection] 
- The list of operator_action_collection.
- filters
Sequence[GetActions Filter] 
- name str
- Name of the property
- resource_type str
- resourceType for which the OperatorAction is applicable
- state str
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- operatorAction List<Property Map>Collections 
- The list of operator_action_collection.
- filters List<Property Map>
- name String
- Name of the property
- resourceType String
- resourceType for which the OperatorAction is applicable
- state String
Supporting Types
GetActionsFilter  
GetActionsOperatorActionCollection    
GetActionsOperatorActionCollectionItem     
- 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
- Unique Oracle assigned identifier for the operator action.
- Name string
- A filter to return only resources that match the entire display name given.
- Properties
List<GetActions Operator Action Collection Item Property> 
- Fine grained properties associated with the operator control.
- ResourceType string
- A filter to return only lists of resources that match the entire given service type.
- CompartmentId string
- The ID of the compartment in which to list resources.
- State string
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- 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
- Unique Oracle assigned identifier for the operator action.
- Name string
- A filter to return only resources that match the entire display name given.
- Properties
[]GetActions Operator Action Collection Item Property 
- Fine grained properties associated with the operator control.
- ResourceType string
- A filter to return only lists of resources that match the entire given service type.
- CompartmentId string
- The ID of the compartment in which to list resources.
- State string
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- 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
- Unique Oracle assigned identifier for the operator action.
- name String
- A filter to return only resources that match the entire display name given.
- properties
List<GetActions Operator Action Collection Item Property> 
- Fine grained properties associated with the operator control.
- resourceType String
- A filter to return only lists of resources that match the entire given service type.
- compartmentId String
- The ID of the compartment in which to list resources.
- state String
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- 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
- Unique Oracle assigned identifier for the operator action.
- name string
- A filter to return only resources that match the entire display name given.
- properties
GetActions Operator Action Collection Item Property[] 
- Fine grained properties associated with the operator control.
- resourceType string
- A filter to return only lists of resources that match the entire given service type.
- compartmentId string
- The ID of the compartment in which to list resources.
- state string
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- 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
- Unique Oracle assigned identifier for the operator action.
- name str
- A filter to return only resources that match the entire display name given.
- properties
Sequence[GetActions Operator Action Collection Item Property] 
- Fine grained properties associated with the operator control.
- resource_type str
- A filter to return only lists of resources that match the entire given service type.
- compartment_id str
- The ID of the compartment in which to list resources.
- state str
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
- 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
- Unique Oracle assigned identifier for the operator action.
- name String
- A filter to return only resources that match the entire display name given.
- properties List<Property Map>
- Fine grained properties associated with the operator control.
- resourceType String
- A filter to return only lists of resources that match the entire given service type.
- compartmentId String
- The ID of the compartment in which to list resources.
- state String
- A filter to return only resources whose lifecycleState matches the given OperatorAction lifecycleState.
GetActionsOperatorActionCollectionItemProperty      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.