Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getControlAssignments

This data source provides the list of Operator Control Assignments in Oracle Cloud Infrastructure Operator Access Control service.

Lists all Operator Control Assignments.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testOperatorControlAssignments = Output.Create(Oci.OperatorAccessControl.GetControlAssignments.InvokeAsync(new Oci.OperatorAccessControl.GetControlAssignmentsArgs
        {
            CompartmentId = @var.Compartment_id,
            OperatorControlName = oci_operator_access_control_operator_control.Test_operator_control.Name,
            ResourceName = @var.Operator_control_assignment_resource_name,
            ResourceType = @var.Operator_control_assignment_resource_type,
            State = @var.Operator_control_assignment_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.GetControlAssignments(ctx, &operatoraccesscontrol.GetControlAssignmentsArgs{
			CompartmentId:       _var.Compartment_id,
			OperatorControlName: pulumi.StringRef(oci_operator_access_control_operator_control.Test_operator_control.Name),
			ResourceName:        pulumi.StringRef(_var.Operator_control_assignment_resource_name),
			ResourceType:        pulumi.StringRef(_var.Operator_control_assignment_resource_type),
			State:               pulumi.StringRef(_var.Operator_control_assignment_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_operator_control_assignments = oci.OperatorAccessControl.get_control_assignments(compartment_id=var["compartment_id"],
    operator_control_name=oci_operator_access_control_operator_control["test_operator_control"]["name"],
    resource_name=var["operator_control_assignment_resource_name"],
    resource_type=var["operator_control_assignment_resource_type"],
    state=var["operator_control_assignment_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testOperatorControlAssignments = oci.OperatorAccessControl.getControlAssignments({
    compartmentId: _var.compartment_id,
    operatorControlName: oci_operator_access_control_operator_control.test_operator_control.name,
    resourceName: _var.operator_control_assignment_resource_name,
    resourceType: _var.operator_control_assignment_resource_type,
    state: _var.operator_control_assignment_state,
});

Coming soon!

Using getControlAssignments

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 getControlAssignments(args: GetControlAssignmentsArgs, opts?: InvokeOptions): Promise<GetControlAssignmentsResult>
function getControlAssignmentsOutput(args: GetControlAssignmentsOutputArgs, opts?: InvokeOptions): Output<GetControlAssignmentsResult>
def get_control_assignments(compartment_id: Optional[str] = None,
                            filters: Optional[Sequence[_operatoraccesscontrol.GetControlAssignmentsFilter]] = None,
                            operator_control_name: Optional[str] = None,
                            resource_name: Optional[str] = None,
                            resource_type: Optional[str] = None,
                            state: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetControlAssignmentsResult
def get_control_assignments_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_operatoraccesscontrol.GetControlAssignmentsFilterArgs]]]] = None,
                            operator_control_name: Optional[pulumi.Input[str]] = None,
                            resource_name: Optional[pulumi.Input[str]] = None,
                            resource_type: Optional[pulumi.Input[str]] = None,
                            state: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetControlAssignmentsResult]
func GetControlAssignments(ctx *Context, args *GetControlAssignmentsArgs, opts ...InvokeOption) (*GetControlAssignmentsResult, error)
func GetControlAssignmentsOutput(ctx *Context, args *GetControlAssignmentsOutputArgs, opts ...InvokeOption) GetControlAssignmentsResultOutput

> Note: This function is named GetControlAssignments in the Go SDK.

public static class GetControlAssignments 
{
    public static Task<GetControlAssignmentsResult> InvokeAsync(GetControlAssignmentsArgs args, InvokeOptions? opts = null)
    public static Output<GetControlAssignmentsResult> Invoke(GetControlAssignmentsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetControlAssignmentsResult> getControlAssignments(GetControlAssignmentsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:OperatorAccessControl/getControlAssignments:getControlAssignments
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The ID of the compartment in which to list resources.

Filters List<GetControlAssignmentsFilter>
OperatorControlName string

A filter to return OperatorControl that match the given operatorControlName.

ResourceName string

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

CompartmentId string

The ID of the compartment in which to list resources.

Filters []GetControlAssignmentsFilter
OperatorControlName string

A filter to return OperatorControl that match the given operatorControlName.

ResourceName string

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

compartmentId String

The ID of the compartment in which to list resources.

filters List<GetControlAssignmentsFilter>
operatorControlName String

A filter to return OperatorControl that match the given operatorControlName.

resourceName String

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

compartmentId string

The ID of the compartment in which to list resources.

filters GetControlAssignmentsFilter[]
operatorControlName string

A filter to return OperatorControl that match the given operatorControlName.

resourceName string

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

compartment_id str

The ID of the compartment in which to list resources.

filters GetControlAssignmentsFilter]
operator_control_name str

A filter to return OperatorControl that match the given operatorControlName.

resource_name str

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

compartmentId String

The ID of the compartment in which to list resources.

filters List<Property Map>
operatorControlName String

A filter to return OperatorControl that match the given operatorControlName.

resourceName String

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

getControlAssignments Result

The following output properties are available:

CompartmentId string

The OCID of the comparment that contains the operator control assignment.

Id string

The provider-assigned unique ID for this managed resource.

OperatorControlAssignmentCollections List<GetControlAssignmentsOperatorControlAssignmentCollection>

The list of operator_control_assignment_collection.

Filters List<GetControlAssignmentsFilter>
OperatorControlName string
ResourceName string

Name of the target resource.

ResourceType string

resourceType for which the OperatorControlAssignment is applicable

State string

The current lifcycle state of the OperatorControl.

CompartmentId string

The OCID of the comparment that contains the operator control assignment.

Id string

The provider-assigned unique ID for this managed resource.

OperatorControlAssignmentCollections []GetControlAssignmentsOperatorControlAssignmentCollection

The list of operator_control_assignment_collection.

Filters []GetControlAssignmentsFilter
OperatorControlName string
ResourceName string

Name of the target resource.

ResourceType string

resourceType for which the OperatorControlAssignment is applicable

State string

The current lifcycle state of the OperatorControl.

compartmentId String

The OCID of the comparment that contains the operator control assignment.

id String

The provider-assigned unique ID for this managed resource.

operatorControlAssignmentCollections List<GetControlAssignmentsOperatorControlAssignmentCollection>

The list of operator_control_assignment_collection.

filters List<GetControlAssignmentsFilter>
operatorControlName String
resourceName String

Name of the target resource.

resourceType String

resourceType for which the OperatorControlAssignment is applicable

state String

The current lifcycle state of the OperatorControl.

compartmentId string

The OCID of the comparment that contains the operator control assignment.

id string

The provider-assigned unique ID for this managed resource.

operatorControlAssignmentCollections GetControlAssignmentsOperatorControlAssignmentCollection[]

The list of operator_control_assignment_collection.

filters GetControlAssignmentsFilter[]
operatorControlName string
resourceName string

Name of the target resource.

resourceType string

resourceType for which the OperatorControlAssignment is applicable

state string

The current lifcycle state of the OperatorControl.

compartment_id str

The OCID of the comparment that contains the operator control assignment.

id str

The provider-assigned unique ID for this managed resource.

operator_control_assignment_collections GetControlAssignmentsOperatorControlAssignmentCollection]

The list of operator_control_assignment_collection.

filters GetControlAssignmentsFilter]
operator_control_name str
resource_name str

Name of the target resource.

resource_type str

resourceType for which the OperatorControlAssignment is applicable

state str

The current lifcycle state of the OperatorControl.

compartmentId String

The OCID of the comparment that contains the operator control assignment.

id String

The provider-assigned unique ID for this managed resource.

operatorControlAssignmentCollections List<Property Map>

The list of operator_control_assignment_collection.

filters List<Property Map>
operatorControlName String
resourceName String

Name of the target resource.

resourceType String

resourceType for which the OperatorControlAssignment is applicable

state String

The current lifcycle state of the OperatorControl.

Supporting Types

GetControlAssignmentsFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

GetControlAssignmentsOperatorControlAssignmentCollection

GetControlAssignmentsOperatorControlAssignmentCollectionItem

AssignerId string

The OCID of the user who created this operator control assignment.

Comment string

Comment about the assignment of the operator control to this target resource.

CompartmentId string

The ID of the compartment in which to list resources.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace.

DetachmentDescription string

description containing reason for releasing of OperatorControl.

ErrorCode int

The code identifying the error occurred during Assignment operation.

ErrorMessage string

The message describing the error occurred during Assignment operation.

FreeformTags 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 assignment.

IsAutoApproveDuringMaintenance bool

The boolean if true would autoApprove during maintenance.

IsEnforcedAlways bool

If set, then the target resource is always governed by the operator control.

IsLogForwarded bool

If set indicates that the audit logs are being forwarded to the relevant remote logging server

OperatorControlId string

The OCID of the operator control.

RemoteSyslogServerAddress string

The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.

RemoteSyslogServerCaCert string

The CA certificate of the remote syslog server.

RemoteSyslogServerPort int

The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.

ResourceCompartmentId string

The OCID of the compartment that contains the target resource.

ResourceId string

The OCID of the target resource.

ResourceName string

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

TimeAssignmentFrom string

The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

TimeAssignmentTo string

The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

TimeOfAssignment string

Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

TimeOfDeletion string

Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'

UnassignerId string

User id who released the operatorControl.

AssignerId string

The OCID of the user who created this operator control assignment.

Comment string

Comment about the assignment of the operator control to this target resource.

CompartmentId string

The ID of the compartment in which to list resources.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace.

DetachmentDescription string

description containing reason for releasing of OperatorControl.

ErrorCode int

The code identifying the error occurred during Assignment operation.

ErrorMessage string

The message describing the error occurred during Assignment operation.

FreeformTags 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 assignment.

IsAutoApproveDuringMaintenance bool

The boolean if true would autoApprove during maintenance.

IsEnforcedAlways bool

If set, then the target resource is always governed by the operator control.

IsLogForwarded bool

If set indicates that the audit logs are being forwarded to the relevant remote logging server

OperatorControlId string

The OCID of the operator control.

RemoteSyslogServerAddress string

The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.

RemoteSyslogServerCaCert string

The CA certificate of the remote syslog server.

RemoteSyslogServerPort int

The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.

ResourceCompartmentId string

The OCID of the compartment that contains the target resource.

ResourceId string

The OCID of the target resource.

ResourceName string

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

TimeAssignmentFrom string

The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

TimeAssignmentTo string

The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

TimeOfAssignment string

Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

TimeOfDeletion string

Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'

UnassignerId string

User id who released the operatorControl.

assignerId String

The OCID of the user who created this operator control assignment.

comment String

Comment about the assignment of the operator control to this target resource.

compartmentId String

The ID of the compartment in which to list resources.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace.

detachmentDescription String

description containing reason for releasing of OperatorControl.

errorCode Integer

The code identifying the error occurred during Assignment operation.

errorMessage String

The message describing the error occurred during Assignment operation.

freeformTags 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 assignment.

isAutoApproveDuringMaintenance Boolean

The boolean if true would autoApprove during maintenance.

isEnforcedAlways Boolean

If set, then the target resource is always governed by the operator control.

isLogForwarded Boolean

If set indicates that the audit logs are being forwarded to the relevant remote logging server

operatorControlId String

The OCID of the operator control.

remoteSyslogServerAddress String

The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.

remoteSyslogServerCaCert String

The CA certificate of the remote syslog server.

remoteSyslogServerPort Integer

The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.

resourceCompartmentId String

The OCID of the compartment that contains the target resource.

resourceId String

The OCID of the target resource.

resourceName String

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

timeAssignmentFrom String

The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

timeAssignmentTo String

The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

timeOfAssignment String

Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

timeOfDeletion String

Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'

unassignerId String

User id who released the operatorControl.

assignerId string

The OCID of the user who created this operator control assignment.

comment string

Comment about the assignment of the operator control to this target resource.

compartmentId string

The ID of the compartment in which to list resources.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace.

detachmentDescription string

description containing reason for releasing of OperatorControl.

errorCode number

The code identifying the error occurred during Assignment operation.

errorMessage string

The message describing the error occurred during Assignment operation.

freeformTags {[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 assignment.

isAutoApproveDuringMaintenance boolean

The boolean if true would autoApprove during maintenance.

isEnforcedAlways boolean

If set, then the target resource is always governed by the operator control.

isLogForwarded boolean

If set indicates that the audit logs are being forwarded to the relevant remote logging server

operatorControlId string

The OCID of the operator control.

remoteSyslogServerAddress string

The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.

remoteSyslogServerCaCert string

The CA certificate of the remote syslog server.

remoteSyslogServerPort number

The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.

resourceCompartmentId string

The OCID of the compartment that contains the target resource.

resourceId string

The OCID of the target resource.

resourceName string

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

timeAssignmentFrom string

The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

timeAssignmentTo string

The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

timeOfAssignment string

Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

timeOfDeletion string

Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'

unassignerId string

User id who released the operatorControl.

assigner_id str

The OCID of the user who created this operator control assignment.

comment str

Comment about the assignment of the operator control to this target resource.

compartment_id str

The ID of the compartment in which to list resources.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace.

detachment_description str

description containing reason for releasing of OperatorControl.

error_code int

The code identifying the error occurred during Assignment operation.

error_message str

The message describing the error occurred during Assignment operation.

freeform_tags 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 assignment.

is_auto_approve_during_maintenance bool

The boolean if true would autoApprove during maintenance.

is_enforced_always bool

If set, then the target resource is always governed by the operator control.

is_log_forwarded bool

If set indicates that the audit logs are being forwarded to the relevant remote logging server

operator_control_id str

The OCID of the operator control.

remote_syslog_server_address str

The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.

remote_syslog_server_ca_cert str

The CA certificate of the remote syslog server.

remote_syslog_server_port int

The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.

resource_compartment_id str

The OCID of the compartment that contains the target resource.

resource_id str

The OCID of the target resource.

resource_name str

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

time_assignment_from str

The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

time_assignment_to str

The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

time_of_assignment str

Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

time_of_deletion str

Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'

unassigner_id str

User id who released the operatorControl.

assignerId String

The OCID of the user who created this operator control assignment.

comment String

Comment about the assignment of the operator control to this target resource.

compartmentId String

The ID of the compartment in which to list resources.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace.

detachmentDescription String

description containing reason for releasing of OperatorControl.

errorCode Number

The code identifying the error occurred during Assignment operation.

errorMessage String

The message describing the error occurred during Assignment operation.

freeformTags 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 assignment.

isAutoApproveDuringMaintenance Boolean

The boolean if true would autoApprove during maintenance.

isEnforcedAlways Boolean

If set, then the target resource is always governed by the operator control.

isLogForwarded Boolean

If set indicates that the audit logs are being forwarded to the relevant remote logging server

operatorControlId String

The OCID of the operator control.

remoteSyslogServerAddress String

The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.

remoteSyslogServerCaCert String

The CA certificate of the remote syslog server.

remoteSyslogServerPort Number

The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.

resourceCompartmentId String

The OCID of the compartment that contains the target resource.

resourceId String

The OCID of the target resource.

resourceName String

A filter to return only resources that match the given ResourceName.

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 OperatorControlAssignment lifecycleState.

timeAssignmentFrom String

The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

timeAssignmentTo String

The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

timeOfAssignment String

Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'

timeOfDeletion String

Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'

unassignerId String

User id who released the operatorControl.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.