Oracle Cloud Infrastructure
getControls
This data source provides the list of Operator Controls in Oracle Cloud Infrastructure Operator Access Control service.
Lists the operator controls in the compartment.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testOperatorControls = Output.Create(Oci.OperatorAccessControl.GetControls.InvokeAsync(new Oci.OperatorAccessControl.GetControlsArgs
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.Operator_control_display_name,
ResourceType = @var.Operator_control_resource_type,
State = @var.Operator_control_state,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/OperatorAccessControl"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := OperatorAccessControl.GetControls(ctx, &operatoraccesscontrol.GetControlsArgs{
CompartmentId: _var.Compartment_id,
DisplayName: pulumi.StringRef(_var.Operator_control_display_name),
ResourceType: pulumi.StringRef(_var.Operator_control_resource_type),
State: pulumi.StringRef(_var.Operator_control_state),
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_operator_controls = oci.OperatorAccessControl.get_controls(compartment_id=var["compartment_id"],
display_name=var["operator_control_display_name"],
resource_type=var["operator_control_resource_type"],
state=var["operator_control_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOperatorControls = oci.OperatorAccessControl.getControls({
compartmentId: _var.compartment_id,
displayName: _var.operator_control_display_name,
resourceType: _var.operator_control_resource_type,
state: _var.operator_control_state,
});
Coming soon!
Using getControls
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 getControls(args: GetControlsArgs, opts?: InvokeOptions): Promise<GetControlsResult>
function getControlsOutput(args: GetControlsOutputArgs, opts?: InvokeOptions): Output<GetControlsResult>
def get_controls(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_operatoraccesscontrol.GetControlsFilter]] = None,
resource_type: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetControlsResult
def get_controls_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_operatoraccesscontrol.GetControlsFilterArgs]]]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetControlsResult]
func GetControls(ctx *Context, args *GetControlsArgs, opts ...InvokeOption) (*GetControlsResult, error)
func GetControlsOutput(ctx *Context, args *GetControlsOutputArgs, opts ...InvokeOption) GetControlsResultOutput
> Note: This function is named GetControls
in the Go SDK.
public static class GetControls
{
public static Task<GetControlsResult> InvokeAsync(GetControlsArgs args, InvokeOptions? opts = null)
public static Output<GetControlsResult> Invoke(GetControlsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetControlsResult> getControls(GetControlsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:OperatorAccessControl/getControls:getControls
Arguments:
# Arguments dictionary
The following arguments are supported:
- Compartment
Id string The ID of the compartment in which to list resources.
- Display
Name string A filter to return OperatorControl that match the entire display name given.
- Filters
List<Get
Controls Filter> - 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 OperatorControl lifecycleState.
- Compartment
Id string The ID of the compartment in which to list resources.
- Display
Name string A filter to return OperatorControl that match the entire display name given.
- Filters
[]Get
Controls Filter - 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 OperatorControl lifecycleState.
- compartment
Id String The ID of the compartment in which to list resources.
- display
Name String A filter to return OperatorControl that match the entire display name given.
- filters
List<Get
Controls Filter> - 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 OperatorControl lifecycleState.
- compartment
Id string The ID of the compartment in which to list resources.
- display
Name string A filter to return OperatorControl that match the entire display name given.
- filters
Get
Controls Filter[] - 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 OperatorControl lifecycleState.
- compartment_
id str The ID of the compartment in which to list resources.
- display_
name str A filter to return OperatorControl that match the entire display name given.
- filters
Get
Controls Filter] - 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 OperatorControl lifecycleState.
- compartment
Id String The ID of the compartment in which to list resources.
- display
Name String A filter to return OperatorControl that match the entire display name given.
- filters List<Property Map>
- 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 OperatorControl lifecycleState.
getControls Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment that contains the operator control.
- Id string
The provider-assigned unique ID for this managed resource.
- Operator
Control List<GetCollections Controls Operator Control Collection> The list of operator_control_collection.
- Display
Name string - Filters
List<Get
Controls Filter> - Resource
Type string resourceType for which the OperatorControl is applicable
- State string
The current lifecycle state of the operator control.
- Compartment
Id string The OCID of the compartment that contains the operator control.
- Id string
The provider-assigned unique ID for this managed resource.
- Operator
Control []GetCollections Controls Operator Control Collection The list of operator_control_collection.
- Display
Name string - Filters
[]Get
Controls Filter - Resource
Type string resourceType for which the OperatorControl is applicable
- State string
The current lifecycle state of the operator control.
- compartment
Id String The OCID of the compartment that contains the operator control.
- id String
The provider-assigned unique ID for this managed resource.
- operator
Control List<GetCollections Controls Operator Control Collection> The list of operator_control_collection.
- display
Name String - filters
List<Get
Controls Filter> - resource
Type String resourceType for which the OperatorControl is applicable
- state String
The current lifecycle state of the operator control.
- compartment
Id string The OCID of the compartment that contains the operator control.
- id string
The provider-assigned unique ID for this managed resource.
- operator
Control GetCollections Controls Operator Control Collection[] The list of operator_control_collection.
- display
Name string - filters
Get
Controls Filter[] - resource
Type string resourceType for which the OperatorControl is applicable
- state string
The current lifecycle state of the operator control.
- compartment_
id str The OCID of the compartment that contains the operator control.
- id str
The provider-assigned unique ID for this managed resource.
- operator_
control_ Getcollections Controls Operator Control Collection] The list of operator_control_collection.
- display_
name str - filters
Get
Controls Filter] - resource_
type str resourceType for which the OperatorControl is applicable
- state str
The current lifecycle state of the operator control.
- compartment
Id String The OCID of the compartment that contains the operator control.
- id String
The provider-assigned unique ID for this managed resource.
- operator
Control List<Property Map>Collections The list of operator_control_collection.
- display
Name String - filters List<Property Map>
- resource
Type String resourceType for which the OperatorControl is applicable
- state String
The current lifecycle state of the operator control.
Supporting Types
GetControlsFilter
GetControlsOperatorControlCollection
GetControlsOperatorControlCollectionItem
- Approval
Required List<string>Op Action Lists List of operator actions that need explicit approval. Any operator action not in the pre-approved list will require explicit approval. Access requests associated with a resource governed by this operator control will be require explicit approval if the access request contains any operator action in this list.
- Approver
Groups List<string>Lists List of user groups who can approve an access request associated with a target resource under the governance of this operator control.
- Approvers
Lists List<string> List of users who can approve an access request associated with a target resource under the governance of this operator control.
- Compartment
Id string The ID of the compartment in which to list resources.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace.
- Description string
Description of operator control.
- Email
Id List<string>Lists List of emailId.
- Dictionary<string, object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- Id string
The OCID of the operator control.
- Is
Fully boolPre Approved Whether all the operator actions have been pre-approved. If yes, all access requests associated with a resource governed by this operator control will be auto-approved.
- Last
Modified stringInfo Description associated with the latest modification of the operator control.
- Operator
Control stringName Name of the operator control. The name must be unique.
- Pre
Approved List<string>Op Action Lists List of pre-approved operator actions. Access requests associated with a resource governed by this operator control will be automatically approved if the access request only contain operator actions in the pre-approved list.
- 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 OperatorControl lifecycleState.
- System
Message string System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control.
- Time
Of stringCreation Time when the operator control was created expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- Time
Of stringDeletion Time when deleted expressed in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'. Note a deleted operator control still stays in the system, so that you can still audit operator actions associated with access requests raised on target resources governed by the deleted operator control.
- Time
Of stringModification Time when the operator control was last modified expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- Approval
Required []stringOp Action Lists List of operator actions that need explicit approval. Any operator action not in the pre-approved list will require explicit approval. Access requests associated with a resource governed by this operator control will be require explicit approval if the access request contains any operator action in this list.
- Approver
Groups []stringLists List of user groups who can approve an access request associated with a target resource under the governance of this operator control.
- Approvers
Lists []string List of users who can approve an access request associated with a target resource under the governance of this operator control.
- Compartment
Id string The ID of the compartment in which to list resources.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace.
- Description string
Description of operator control.
- Email
Id []stringLists List of emailId.
- map[string]interface{}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- Id string
The OCID of the operator control.
- Is
Fully boolPre Approved Whether all the operator actions have been pre-approved. If yes, all access requests associated with a resource governed by this operator control will be auto-approved.
- Last
Modified stringInfo Description associated with the latest modification of the operator control.
- Operator
Control stringName Name of the operator control. The name must be unique.
- Pre
Approved []stringOp Action Lists List of pre-approved operator actions. Access requests associated with a resource governed by this operator control will be automatically approved if the access request only contain operator actions in the pre-approved list.
- 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 OperatorControl lifecycleState.
- System
Message string System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control.
- Time
Of stringCreation Time when the operator control was created expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- Time
Of stringDeletion Time when deleted expressed in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'. Note a deleted operator control still stays in the system, so that you can still audit operator actions associated with access requests raised on target resources governed by the deleted operator control.
- Time
Of stringModification Time when the operator control was last modified expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- approval
Required List<String>Op Action Lists List of operator actions that need explicit approval. Any operator action not in the pre-approved list will require explicit approval. Access requests associated with a resource governed by this operator control will be require explicit approval if the access request contains any operator action in this list.
- approver
Groups List<String>Lists List of user groups who can approve an access request associated with a target resource under the governance of this operator control.
- approvers
Lists List<String> List of users who can approve an access request associated with a target resource under the governance of this operator control.
- compartment
Id String The ID of the compartment in which to list resources.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace.
- description String
Description of operator control.
- email
Id List<String>Lists List of emailId.
- Map<String,Object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- id String
The OCID of the operator control.
- is
Fully BooleanPre Approved Whether all the operator actions have been pre-approved. If yes, all access requests associated with a resource governed by this operator control will be auto-approved.
- last
Modified StringInfo Description associated with the latest modification of the operator control.
- operator
Control StringName Name of the operator control. The name must be unique.
- pre
Approved List<String>Op Action Lists List of pre-approved operator actions. Access requests associated with a resource governed by this operator control will be automatically approved if the access request only contain operator actions in the pre-approved list.
- 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 OperatorControl lifecycleState.
- system
Message String System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control.
- time
Of StringCreation Time when the operator control was created expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time
Of StringDeletion Time when deleted expressed in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'. Note a deleted operator control still stays in the system, so that you can still audit operator actions associated with access requests raised on target resources governed by the deleted operator control.
- time
Of StringModification Time when the operator control was last modified expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- approval
Required string[]Op Action Lists List of operator actions that need explicit approval. Any operator action not in the pre-approved list will require explicit approval. Access requests associated with a resource governed by this operator control will be require explicit approval if the access request contains any operator action in this list.
- approver
Groups string[]Lists List of user groups who can approve an access request associated with a target resource under the governance of this operator control.
- approvers
Lists string[] List of users who can approve an access request associated with a target resource under the governance of this operator control.
- compartment
Id string The ID of the compartment in which to list resources.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace.
- description string
Description of operator control.
- email
Id string[]Lists List of emailId.
- {[key: string]: any}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- id string
The OCID of the operator control.
- is
Fully booleanPre Approved Whether all the operator actions have been pre-approved. If yes, all access requests associated with a resource governed by this operator control will be auto-approved.
- last
Modified stringInfo Description associated with the latest modification of the operator control.
- operator
Control stringName Name of the operator control. The name must be unique.
- pre
Approved string[]Op Action Lists List of pre-approved operator actions. Access requests associated with a resource governed by this operator control will be automatically approved if the access request only contain operator actions in the pre-approved list.
- 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 OperatorControl lifecycleState.
- system
Message string System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control.
- time
Of stringCreation Time when the operator control was created expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time
Of stringDeletion Time when deleted expressed in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'. Note a deleted operator control still stays in the system, so that you can still audit operator actions associated with access requests raised on target resources governed by the deleted operator control.
- time
Of stringModification Time when the operator control was last modified expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- approval_
required_ Sequence[str]op_ action_ lists List of operator actions that need explicit approval. Any operator action not in the pre-approved list will require explicit approval. Access requests associated with a resource governed by this operator control will be require explicit approval if the access request contains any operator action in this list.
- approver_
groups_ Sequence[str]lists List of user groups who can approve an access request associated with a target resource under the governance of this operator control.
- approvers_
lists Sequence[str] List of users who can approve an access request associated with a target resource under the governance of this operator control.
- compartment_
id str The ID of the compartment in which to list resources.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace.
- description str
Description of operator control.
- email_
id_ Sequence[str]lists List of emailId.
- Mapping[str, Any]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- id str
The OCID of the operator control.
- is_
fully_ boolpre_ approved Whether all the operator actions have been pre-approved. If yes, all access requests associated with a resource governed by this operator control will be auto-approved.
- last_
modified_ strinfo Description associated with the latest modification of the operator control.
- operator_
control_ strname Name of the operator control. The name must be unique.
- pre_
approved_ Sequence[str]op_ action_ lists List of pre-approved operator actions. Access requests associated with a resource governed by this operator control will be automatically approved if the access request only contain operator actions in the pre-approved list.
- 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 OperatorControl lifecycleState.
- system_
message str System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control.
- time_
of_ strcreation Time when the operator control was created expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time_
of_ strdeletion Time when deleted expressed in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'. Note a deleted operator control still stays in the system, so that you can still audit operator actions associated with access requests raised on target resources governed by the deleted operator control.
- time_
of_ strmodification Time when the operator control was last modified expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- approval
Required List<String>Op Action Lists List of operator actions that need explicit approval. Any operator action not in the pre-approved list will require explicit approval. Access requests associated with a resource governed by this operator control will be require explicit approval if the access request contains any operator action in this list.
- approver
Groups List<String>Lists List of user groups who can approve an access request associated with a target resource under the governance of this operator control.
- approvers
Lists List<String> List of users who can approve an access request associated with a target resource under the governance of this operator control.
- compartment
Id String The ID of the compartment in which to list resources.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace.
- description String
Description of operator control.
- email
Id List<String>Lists List of emailId.
- Map<Any>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- id String
The OCID of the operator control.
- is
Fully BooleanPre Approved Whether all the operator actions have been pre-approved. If yes, all access requests associated with a resource governed by this operator control will be auto-approved.
- last
Modified StringInfo Description associated with the latest modification of the operator control.
- operator
Control StringName Name of the operator control. The name must be unique.
- pre
Approved List<String>Op Action Lists List of pre-approved operator actions. Access requests associated with a resource governed by this operator control will be automatically approved if the access request only contain operator actions in the pre-approved list.
- 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 OperatorControl lifecycleState.
- system
Message String System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control.
- time
Of StringCreation Time when the operator control was created expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time
Of StringDeletion Time when deleted expressed in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'. Note a deleted operator control still stays in the system, so that you can still audit operator actions associated with access requests raised on target resources governed by the deleted operator control.
- time
Of StringModification Time when the operator control was last modified expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.