Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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]
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OperatorAccessControl/getActions:getActions
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Filters
List<Get
Actions Filter> - Name string
- A filter to return only resources that match the entire display name given.
- Resource
Type 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 string - The ID of the compartment in which to list resources.
- Filters
[]Get
Actions Filter - Name string
- A filter to return only resources that match the entire display name given.
- Resource
Type 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 String - The ID of the compartment in which to list resources.
- filters
List<Get
Actions Filter> - name String
- A filter to return only resources that match the entire display name given.
- resource
Type 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 string - The ID of the compartment in which to list resources.
- filters
Get
Actions Filter[] - name string
- A filter to return only resources that match the entire display name given.
- resource
Type 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[operatoraccesscontrol.
Get Actions 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.
- compartment
Id 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.
- resource
Type 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:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Operator
Action List<GetCollections Actions Operator Action Collection> - The list of operator_action_collection.
- Filters
List<Get
Actions Filter> - Name string
- Name of the property
- Resource
Type string - resourceType for which the OperatorAction is applicable
- State string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Operator
Action []GetCollections Actions Operator Action Collection - The list of operator_action_collection.
- Filters
[]Get
Actions Filter - Name string
- Name of the property
- Resource
Type string - resourceType for which the OperatorAction is applicable
- State string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- operator
Action List<GetCollections Actions Operator Action Collection> - The list of operator_action_collection.
- filters
List<Get
Actions Filter> - name String
- Name of the property
- resource
Type String - resourceType for which the OperatorAction is applicable
- state String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- operator
Action GetCollections Actions Operator Action Collection[] - The list of operator_action_collection.
- filters
Get
Actions Filter[] - name string
- Name of the property
- resource
Type 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[operatoraccesscontrol.collections Get Actions Operator Action Collection] - The list of operator_action_collection.
- filters
Sequence[operatoraccesscontrol.
Get Actions Filter] - name str
- Name of the property
- resource_
type str - resourceType for which the OperatorAction is applicable
- state str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- operator
Action List<Property Map>Collections - The list of operator_action_collection.
- filters List<Property Map>
- name String
- Name of the property
- resource
Type 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.
- Customer
Display 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<Get
Actions Operator Action Collection Item Property> - Fine grained properties associated with the operator control.
- Resource
Type string - A filter to return only lists of resources that match the entire given service type.
- Compartment
Id 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.
- Customer
Display 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
[]Get
Actions Operator Action Collection Item Property - Fine grained properties associated with the operator control.
- Resource
Type string - A filter to return only lists of resources that match the entire given service type.
- Compartment
Id 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.
- customer
Display 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<Get
Actions Operator Action Collection Item Property> - Fine grained properties associated with the operator control.
- resource
Type String - A filter to return only lists of resources that match the entire given service type.
- compartment
Id 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.
- customer
Display 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
Get
Actions Operator Action Collection Item Property[] - Fine grained properties associated with the operator control.
- resource
Type string - A filter to return only lists of resources that match the entire given service type.
- compartment
Id 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[operatoraccesscontrol.
Get Actions 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.
- customer
Display 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.
- resource
Type String - A filter to return only lists of resources that match the entire given service type.
- compartment
Id 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
oci
Terraform Provider.