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

oci.OperatorAccessControl.getAction

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 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,
});
Copy
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"])
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.GetAction(ctx, &operatoraccesscontrol.GetActionArgs{
			OperatorActionId: testOperatorActionOciOperatorAccessControlOperatorAction.Id,
		}, 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 testOperatorAction = Oci.OperatorAccessControl.GetAction.Invoke(new()
    {
        OperatorActionId = testOperatorActionOciOperatorAccessControlOperatorAction.Id,
    });

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

    }
}
Copy
variables:
  testOperatorAction:
    fn::invoke:
      function: oci:OperatorAccessControl:getAction
      arguments:
        operatorActionId: ${testOperatorActionOciOperatorAccessControlOperatorAction.id}
Copy

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>
Copy
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]
Copy
func GetAction(ctx *Context, args *GetActionArgs, opts ...InvokeOption) (*GetActionResult, error)
func GetActionOutput(ctx *Context, args *GetActionOutputArgs, opts ...InvokeOption) GetActionResultOutput
Copy

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

The following arguments are supported:

OperatorActionId This property is required. string
Unique Oracle supplied identifier associated with the operator action.
OperatorActionId This property is required. string
Unique Oracle supplied identifier associated with the operator action.
operatorActionId This property is required. String
Unique Oracle supplied identifier associated with the operator action.
operatorActionId This property is required. string
Unique Oracle supplied identifier associated with the operator action.
operator_action_id This property is required. str
Unique Oracle supplied identifier associated with the operator action.
operatorActionId This property is required. 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 This property is required. string
Name of the property
Value This property is required. string
value of the property
Name This property is required. string
Name of the property
Value This property is required. string
value of the property
name This property is required. String
Name of the property
value This property is required. String
value of the property
name This property is required. string
Name of the property
value This property is required. string
value of the property
name This property is required. str
Name of the property
value This property is required. str
value of the property
name This property is required. String
Name of the property
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