1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OperatorAccessControl
  5. getActions
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.OperatorAccessControl.getActions

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testOperatorActions:
    fn::invoke:
      function: oci:OperatorAccessControl:getActions
      arguments:
        compartmentId: ${compartmentId}
        name: ${operatorActionName}
        resourceType: ${operatorActionResourceType}
        state: ${operatorActionState}
Copy

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>
Copy
def get_actions(compartment_id: Optional[str] = None,
                filters: Optional[Sequence[_operatoraccesscontrol.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[_operatoraccesscontrol.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]
Copy
func GetActions(ctx *Context, args *GetActionsArgs, opts ...InvokeOption) (*GetActionsResult, error)
func GetActionsOutput(ctx *Context, args *GetActionsOutputArgs, opts ...InvokeOption) GetActionsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetActionsResult> getActions(GetActionsArgs args, InvokeOptions options)
public static Output<GetActionsResult> getActions(GetActionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OperatorAccessControl/getActions:getActions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The ID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. List<GetActionsFilter>
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 This property is required. string
The ID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. []GetActionsFilter
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 This property is required. String
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. List<GetActionsFilter>
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 This property is required. string
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. GetActionsFilter[]
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 This property is required. str
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. Sequence[operatoraccesscontrol.GetActionsFilter]
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 This property is required. String
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. 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.
OperatorActionCollections List<GetActionsOperatorActionCollection>
The list of operator_action_collection.
Filters List<GetActionsFilter>
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.
OperatorActionCollections []GetActionsOperatorActionCollection
The list of operator_action_collection.
Filters []GetActionsFilter
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.
operatorActionCollections List<GetActionsOperatorActionCollection>
The list of operator_action_collection.
filters List<GetActionsFilter>
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.
operatorActionCollections GetActionsOperatorActionCollection[]
The list of operator_action_collection.
filters GetActionsFilter[]
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_collections Sequence[operatoraccesscontrol.GetActionsOperatorActionCollection]
The list of operator_action_collection.
filters Sequence[operatoraccesscontrol.GetActionsFilter]
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.
operatorActionCollections List<Property Map>
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

Name This property is required. string
A filter to return only resources that match the entire display name given.
Values This property is required. List<string>
Regex bool
Name This property is required. string
A filter to return only resources that match the entire display name given.
Values This property is required. []string
Regex bool
name This property is required. String
A filter to return only resources that match the entire display name given.
values This property is required. List<String>
regex Boolean
name This property is required. string
A filter to return only resources that match the entire display name given.
values This property is required. string[]
regex boolean
name This property is required. str
A filter to return only resources that match the entire display name given.
values This property is required. Sequence[str]
regex bool
name This property is required. String
A filter to return only resources that match the entire display name given.
values This property is required. List<String>
regex Boolean

GetActionsOperatorActionCollection

items This property is required. List<Property Map>

GetActionsOperatorActionCollectionItem

Component This property is required. string
Name of the infrastructure layer associated with the operator action.
CustomerDisplayName This property is required. string
Display Name of the operator action.
Description This property is required. 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 This property is required. string
Unique Oracle assigned identifier for the operator action.
Name This property is required. string
A filter to return only resources that match the entire display name given.
Properties This property is required. List<GetActionsOperatorActionCollectionItemProperty>
Fine grained properties associated with the operator control.
ResourceType This property is required. 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 This property is required. string
Name of the infrastructure layer associated with the operator action.
CustomerDisplayName This property is required. string
Display Name of the operator action.
Description This property is required. 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 This property is required. string
Unique Oracle assigned identifier for the operator action.
Name This property is required. string
A filter to return only resources that match the entire display name given.
Properties This property is required. []GetActionsOperatorActionCollectionItemProperty
Fine grained properties associated with the operator control.
ResourceType This property is required. 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 This property is required. String
Name of the infrastructure layer associated with the operator action.
customerDisplayName This property is required. String
Display Name of the operator action.
description This property is required. 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 This property is required. String
Unique Oracle assigned identifier for the operator action.
name This property is required. String
A filter to return only resources that match the entire display name given.
properties This property is required. List<GetActionsOperatorActionCollectionItemProperty>
Fine grained properties associated with the operator control.
resourceType This property is required. 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 This property is required. string
Name of the infrastructure layer associated with the operator action.
customerDisplayName This property is required. string
Display Name of the operator action.
description This property is required. 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 This property is required. string
Unique Oracle assigned identifier for the operator action.
name This property is required. string
A filter to return only resources that match the entire display name given.
properties This property is required. GetActionsOperatorActionCollectionItemProperty[]
Fine grained properties associated with the operator control.
resourceType This property is required. 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 This property is required. str
Name of the infrastructure layer associated with the operator action.
customer_display_name This property is required. str
Display Name of the operator action.
description This property is required. 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 This property is required. str
Unique Oracle assigned identifier for the operator action.
name This property is required. str
A filter to return only resources that match the entire display name given.
properties This property is required. Sequence[operatoraccesscontrol.GetActionsOperatorActionCollectionItemProperty]
Fine grained properties associated with the operator control.
resource_type This property is required. 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 This property is required. String
Name of the infrastructure layer associated with the operator action.
customerDisplayName This property is required. String
Display Name of the operator action.
description This property is required. 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 This property is required. String
Unique Oracle assigned identifier for the operator action.
name This property is required. String
A filter to return only resources that match the entire display name given.
properties This property is required. List<Property Map>
Fine grained properties associated with the operator control.
resourceType This property is required. 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

Name This property is required. string
A filter to return only resources that match the entire display name given.
Value This property is required. string
value of the property
Name This property is required. string
A filter to return only resources that match the entire display name given.
Value This property is required. string
value of the property
name This property is required. String
A filter to return only resources that match the entire display name given.
value This property is required. String
value of the property
name This property is required. string
A filter to return only resources that match the entire display name given.
value This property is required. string
value of the property
name This property is required. str
A filter to return only resources that match the entire display name given.
value This property is required. str
value of the property
name This property is required. String
A filter to return only resources that match the entire display name given.
value This property is required. 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi