oci logo
Oracle Cloud Infrastructure v0.13.0, Mar 28 23

oci.OperatorAccessControl.OperatorControlAssignment

This resource provides the Operator Control Assignment resource in Oracle Cloud Infrastructure Operator Access Control service.

Creates an Operator Control Assignment resource. In effect, this brings the target resource under the governance of the Operator Control for specified time duration.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testOperatorControlAssignment = new Oci.OperatorAccessControl.OperatorControlAssignment("testOperatorControlAssignment", new()
    {
        CompartmentId = @var.Compartment_id,
        IsEnforcedAlways = @var.Operator_control_assignment_is_enforced_always,
        OperatorControlId = oci_operator_access_control_operator_control.Test_operator_control.Id,
        ResourceCompartmentId = oci_identity_compartment.Test_compartment.Id,
        ResourceId = oci_operator_access_control_resource.Test_resource.Id,
        ResourceName = @var.Operator_control_assignment_resource_name,
        ResourceType = @var.Operator_control_assignment_resource_type,
        Comment = @var.Operator_control_assignment_comment,
        DefinedTags = @var.Operator_control_assignment_defined_tags,
        FreeformTags = @var.Operator_control_assignment_freeform_tags,
        IsAutoApproveDuringMaintenance = @var.Operator_control_assignment_is_auto_approve_during_maintenance,
        IsLogForwarded = @var.Operator_control_assignment_is_log_forwarded,
        RemoteSyslogServerAddress = @var.Operator_control_assignment_remote_syslog_server_address,
        RemoteSyslogServerCaCert = @var.Operator_control_assignment_remote_syslog_server_ca_cert,
        RemoteSyslogServerPort = @var.Operator_control_assignment_remote_syslog_server_port,
        TimeAssignmentFrom = @var.Operator_control_assignment_time_assignment_from,
        TimeAssignmentTo = @var.Operator_control_assignment_time_assignment_to,
    });

});
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.NewOperatorControlAssignment(ctx, "testOperatorControlAssignment", &OperatorAccessControl.OperatorControlAssignmentArgs{
			CompartmentId:                  pulumi.Any(_var.Compartment_id),
			IsEnforcedAlways:               pulumi.Any(_var.Operator_control_assignment_is_enforced_always),
			OperatorControlId:              pulumi.Any(oci_operator_access_control_operator_control.Test_operator_control.Id),
			ResourceCompartmentId:          pulumi.Any(oci_identity_compartment.Test_compartment.Id),
			ResourceId:                     pulumi.Any(oci_operator_access_control_resource.Test_resource.Id),
			ResourceName:                   pulumi.Any(_var.Operator_control_assignment_resource_name),
			ResourceType:                   pulumi.Any(_var.Operator_control_assignment_resource_type),
			Comment:                        pulumi.Any(_var.Operator_control_assignment_comment),
			DefinedTags:                    pulumi.Any(_var.Operator_control_assignment_defined_tags),
			FreeformTags:                   pulumi.Any(_var.Operator_control_assignment_freeform_tags),
			IsAutoApproveDuringMaintenance: pulumi.Any(_var.Operator_control_assignment_is_auto_approve_during_maintenance),
			IsLogForwarded:                 pulumi.Any(_var.Operator_control_assignment_is_log_forwarded),
			RemoteSyslogServerAddress:      pulumi.Any(_var.Operator_control_assignment_remote_syslog_server_address),
			RemoteSyslogServerCaCert:       pulumi.Any(_var.Operator_control_assignment_remote_syslog_server_ca_cert),
			RemoteSyslogServerPort:         pulumi.Any(_var.Operator_control_assignment_remote_syslog_server_port),
			TimeAssignmentFrom:             pulumi.Any(_var.Operator_control_assignment_time_assignment_from),
			TimeAssignmentTo:               pulumi.Any(_var.Operator_control_assignment_time_assignment_to),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OperatorAccessControl.OperatorControlAssignment;
import com.pulumi.oci.OperatorAccessControl.OperatorControlAssignmentArgs;
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) {
        var testOperatorControlAssignment = new OperatorControlAssignment("testOperatorControlAssignment", OperatorControlAssignmentArgs.builder()        
            .compartmentId(var_.compartment_id())
            .isEnforcedAlways(var_.operator_control_assignment_is_enforced_always())
            .operatorControlId(oci_operator_access_control_operator_control.test_operator_control().id())
            .resourceCompartmentId(oci_identity_compartment.test_compartment().id())
            .resourceId(oci_operator_access_control_resource.test_resource().id())
            .resourceName(var_.operator_control_assignment_resource_name())
            .resourceType(var_.operator_control_assignment_resource_type())
            .comment(var_.operator_control_assignment_comment())
            .definedTags(var_.operator_control_assignment_defined_tags())
            .freeformTags(var_.operator_control_assignment_freeform_tags())
            .isAutoApproveDuringMaintenance(var_.operator_control_assignment_is_auto_approve_during_maintenance())
            .isLogForwarded(var_.operator_control_assignment_is_log_forwarded())
            .remoteSyslogServerAddress(var_.operator_control_assignment_remote_syslog_server_address())
            .remoteSyslogServerCaCert(var_.operator_control_assignment_remote_syslog_server_ca_cert())
            .remoteSyslogServerPort(var_.operator_control_assignment_remote_syslog_server_port())
            .timeAssignmentFrom(var_.operator_control_assignment_time_assignment_from())
            .timeAssignmentTo(var_.operator_control_assignment_time_assignment_to())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_operator_control_assignment = oci.operator_access_control.OperatorControlAssignment("testOperatorControlAssignment",
    compartment_id=var["compartment_id"],
    is_enforced_always=var["operator_control_assignment_is_enforced_always"],
    operator_control_id=oci_operator_access_control_operator_control["test_operator_control"]["id"],
    resource_compartment_id=oci_identity_compartment["test_compartment"]["id"],
    resource_id=oci_operator_access_control_resource["test_resource"]["id"],
    resource_name_=var["operator_control_assignment_resource_name"],
    resource_type=var["operator_control_assignment_resource_type"],
    comment=var["operator_control_assignment_comment"],
    defined_tags=var["operator_control_assignment_defined_tags"],
    freeform_tags=var["operator_control_assignment_freeform_tags"],
    is_auto_approve_during_maintenance=var["operator_control_assignment_is_auto_approve_during_maintenance"],
    is_log_forwarded=var["operator_control_assignment_is_log_forwarded"],
    remote_syslog_server_address=var["operator_control_assignment_remote_syslog_server_address"],
    remote_syslog_server_ca_cert=var["operator_control_assignment_remote_syslog_server_ca_cert"],
    remote_syslog_server_port=var["operator_control_assignment_remote_syslog_server_port"],
    time_assignment_from=var["operator_control_assignment_time_assignment_from"],
    time_assignment_to=var["operator_control_assignment_time_assignment_to"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testOperatorControlAssignment = new oci.operatoraccesscontrol.OperatorControlAssignment("testOperatorControlAssignment", {
    compartmentId: _var.compartment_id,
    isEnforcedAlways: _var.operator_control_assignment_is_enforced_always,
    operatorControlId: oci_operator_access_control_operator_control.test_operator_control.id,
    resourceCompartmentId: oci_identity_compartment.test_compartment.id,
    resourceId: oci_operator_access_control_resource.test_resource.id,
    resourceName: _var.operator_control_assignment_resource_name,
    resourceType: _var.operator_control_assignment_resource_type,
    comment: _var.operator_control_assignment_comment,
    definedTags: _var.operator_control_assignment_defined_tags,
    freeformTags: _var.operator_control_assignment_freeform_tags,
    isAutoApproveDuringMaintenance: _var.operator_control_assignment_is_auto_approve_during_maintenance,
    isLogForwarded: _var.operator_control_assignment_is_log_forwarded,
    remoteSyslogServerAddress: _var.operator_control_assignment_remote_syslog_server_address,
    remoteSyslogServerCaCert: _var.operator_control_assignment_remote_syslog_server_ca_cert,
    remoteSyslogServerPort: _var.operator_control_assignment_remote_syslog_server_port,
    timeAssignmentFrom: _var.operator_control_assignment_time_assignment_from,
    timeAssignmentTo: _var.operator_control_assignment_time_assignment_to,
});
resources:
  testOperatorControlAssignment:
    type: oci:OperatorAccessControl:OperatorControlAssignment
    properties:
      #Required
      compartmentId: ${var.compartment_id}
      isEnforcedAlways: ${var.operator_control_assignment_is_enforced_always}
      operatorControlId: ${oci_operator_access_control_operator_control.test_operator_control.id}
      resourceCompartmentId: ${oci_identity_compartment.test_compartment.id}
      resourceId: ${oci_operator_access_control_resource.test_resource.id}
      resourceName: ${var.operator_control_assignment_resource_name}
      resourceType: ${var.operator_control_assignment_resource_type}
      #Optional
      comment: ${var.operator_control_assignment_comment}
      definedTags: ${var.operator_control_assignment_defined_tags}
      freeformTags: ${var.operator_control_assignment_freeform_tags}
      isAutoApproveDuringMaintenance: ${var.operator_control_assignment_is_auto_approve_during_maintenance}
      isLogForwarded: ${var.operator_control_assignment_is_log_forwarded}
      remoteSyslogServerAddress: ${var.operator_control_assignment_remote_syslog_server_address}
      remoteSyslogServerCaCert: ${var.operator_control_assignment_remote_syslog_server_ca_cert}
      remoteSyslogServerPort: ${var.operator_control_assignment_remote_syslog_server_port}
      timeAssignmentFrom: ${var.operator_control_assignment_time_assignment_from}
      timeAssignmentTo: ${var.operator_control_assignment_time_assignment_to}

Create OperatorControlAssignment Resource

new OperatorControlAssignment(name: string, args: OperatorControlAssignmentArgs, opts?: CustomResourceOptions);
@overload
def OperatorControlAssignment(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              comment: Optional[str] = None,
                              compartment_id: Optional[str] = None,
                              defined_tags: Optional[Mapping[str, Any]] = None,
                              freeform_tags: Optional[Mapping[str, Any]] = None,
                              is_auto_approve_during_maintenance: Optional[bool] = None,
                              is_enforced_always: Optional[bool] = None,
                              is_log_forwarded: Optional[bool] = None,
                              operator_control_id: Optional[str] = None,
                              remote_syslog_server_address: Optional[str] = None,
                              remote_syslog_server_ca_cert: Optional[str] = None,
                              remote_syslog_server_port: Optional[int] = None,
                              resource_compartment_id: Optional[str] = None,
                              resource_id: Optional[str] = None,
                              resource_name_: Optional[str] = None,
                              resource_type: Optional[str] = None,
                              time_assignment_from: Optional[str] = None,
                              time_assignment_to: Optional[str] = None)
@overload
def OperatorControlAssignment(resource_name: str,
                              args: OperatorControlAssignmentArgs,
                              opts: Optional[ResourceOptions] = None)
func NewOperatorControlAssignment(ctx *Context, name string, args OperatorControlAssignmentArgs, opts ...ResourceOption) (*OperatorControlAssignment, error)
public OperatorControlAssignment(string name, OperatorControlAssignmentArgs args, CustomResourceOptions? opts = null)
public OperatorControlAssignment(String name, OperatorControlAssignmentArgs args)
public OperatorControlAssignment(String name, OperatorControlAssignmentArgs args, CustomResourceOptions options)
type: oci:OperatorAccessControl:OperatorControlAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args OperatorControlAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args OperatorControlAssignmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args OperatorControlAssignmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args OperatorControlAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args OperatorControlAssignmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

OperatorControlAssignment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The OperatorControlAssignment resource accepts the following input properties:

CompartmentId string

(Updatable) The OCID of the compartment that contains the operator control assignment.

IsEnforcedAlways bool

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

OperatorControlId string

The OCID of the operator control that is being assigned to a target resource.

ResourceCompartmentId string

The OCID of the compartment that contains the target resource.

ResourceId string

The OCID of the target resource being brought under the governance of the operator control.

ResourceName string

Name of the target resource.

ResourceType string

Type of the target resource.

Comment string

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

DefinedTags Dictionary<string, object>

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

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

IsAutoApproveDuringMaintenance bool

(Updatable) The boolean if true would autoApprove during maintenance.

IsLogForwarded bool

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

RemoteSyslogServerAddress string

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

RemoteSyslogServerCaCert string

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

RemoteSyslogServerPort int

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

TimeAssignmentFrom string

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

TimeAssignmentTo string

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

CompartmentId string

(Updatable) The OCID of the compartment that contains the operator control assignment.

IsEnforcedAlways bool

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

OperatorControlId string

The OCID of the operator control that is being assigned to a target resource.

ResourceCompartmentId string

The OCID of the compartment that contains the target resource.

ResourceId string

The OCID of the target resource being brought under the governance of the operator control.

ResourceName string

Name of the target resource.

ResourceType string

Type of the target resource.

Comment string

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

DefinedTags map[string]interface{}

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

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

IsAutoApproveDuringMaintenance bool

(Updatable) The boolean if true would autoApprove during maintenance.

IsLogForwarded bool

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

RemoteSyslogServerAddress string

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

RemoteSyslogServerCaCert string

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

RemoteSyslogServerPort int

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

TimeAssignmentFrom string

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

TimeAssignmentTo string

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

compartmentId String

(Updatable) The OCID of the compartment that contains the operator control assignment.

isEnforcedAlways Boolean

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

operatorControlId String

The OCID of the operator control that is being assigned to a target resource.

resourceCompartmentId String

The OCID of the compartment that contains the target resource.

resourceId String

The OCID of the target resource being brought under the governance of the operator control.

resourceName String

Name of the target resource.

resourceType String

Type of the target resource.

comment String

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

definedTags Map<String,Object>

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

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

isAutoApproveDuringMaintenance Boolean

(Updatable) The boolean if true would autoApprove during maintenance.

isLogForwarded Boolean

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

remoteSyslogServerAddress String

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

remoteSyslogServerCaCert String

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

remoteSyslogServerPort Integer

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

timeAssignmentFrom String

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

timeAssignmentTo String

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

compartmentId string

(Updatable) The OCID of the compartment that contains the operator control assignment.

isEnforcedAlways boolean

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

operatorControlId string

The OCID of the operator control that is being assigned to a target resource.

resourceCompartmentId string

The OCID of the compartment that contains the target resource.

resourceId string

The OCID of the target resource being brought under the governance of the operator control.

resourceName string

Name of the target resource.

resourceType string

Type of the target resource.

comment string

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

definedTags {[key: string]: any}

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

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

isAutoApproveDuringMaintenance boolean

(Updatable) The boolean if true would autoApprove during maintenance.

isLogForwarded boolean

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

remoteSyslogServerAddress string

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

remoteSyslogServerCaCert string

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

remoteSyslogServerPort number

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

timeAssignmentFrom string

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

timeAssignmentTo string

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

compartment_id str

(Updatable) The OCID of the compartment that contains the operator control assignment.

is_enforced_always bool

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

operator_control_id str

The OCID of the operator control that is being assigned to a target resource.

resource_compartment_id str

The OCID of the compartment that contains the target resource.

resource_id str

The OCID of the target resource being brought under the governance of the operator control.

resource_name str

Name of the target resource.

resource_type str

Type of the target resource.

comment str

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

defined_tags Mapping[str, Any]

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

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

is_auto_approve_during_maintenance bool

(Updatable) The boolean if true would autoApprove during maintenance.

is_log_forwarded bool

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

remote_syslog_server_address str

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

remote_syslog_server_ca_cert str

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

remote_syslog_server_port int

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

time_assignment_from str

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

time_assignment_to str

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

compartmentId String

(Updatable) The OCID of the compartment that contains the operator control assignment.

isEnforcedAlways Boolean

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

operatorControlId String

The OCID of the operator control that is being assigned to a target resource.

resourceCompartmentId String

The OCID of the compartment that contains the target resource.

resourceId String

The OCID of the target resource being brought under the governance of the operator control.

resourceName String

Name of the target resource.

resourceType String

Type of the target resource.

comment String

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

definedTags Map<Any>

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

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

isAutoApproveDuringMaintenance Boolean

(Updatable) The boolean if true would autoApprove during maintenance.

isLogForwarded Boolean

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

remoteSyslogServerAddress String

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

remoteSyslogServerCaCert String

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

remoteSyslogServerPort Number

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

timeAssignmentFrom String

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

timeAssignmentTo String

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

Outputs

All input properties are implicitly available as output properties. Additionally, the OperatorControlAssignment resource produces the following output properties:

AssignerId string

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

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.

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

More in detail about the lifeCycleState.

State string

The current lifcycle state of the OperatorControl.

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.

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.

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

More in detail about the lifeCycleState.

State string

The current lifcycle state of the OperatorControl.

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.

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.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

More in detail about the lifeCycleState.

state String

The current lifcycle state of the OperatorControl.

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.

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.

id string

The provider-assigned unique ID for this managed resource.

lifecycleDetails string

More in detail about the lifeCycleState.

state string

The current lifcycle state of the OperatorControl.

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.

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.

id str

The provider-assigned unique ID for this managed resource.

lifecycle_details str

More in detail about the lifeCycleState.

state str

The current lifcycle state of the OperatorControl.

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.

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.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

More in detail about the lifeCycleState.

state String

The current lifcycle state of the OperatorControl.

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.

Look up Existing OperatorControlAssignment Resource

Get an existing OperatorControlAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: OperatorControlAssignmentState, opts?: CustomResourceOptions): OperatorControlAssignment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        assigner_id: Optional[str] = None,
        comment: Optional[str] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        detachment_description: Optional[str] = None,
        error_code: Optional[int] = None,
        error_message: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        is_auto_approve_during_maintenance: Optional[bool] = None,
        is_enforced_always: Optional[bool] = None,
        is_log_forwarded: Optional[bool] = None,
        lifecycle_details: Optional[str] = None,
        operator_control_id: Optional[str] = None,
        remote_syslog_server_address: Optional[str] = None,
        remote_syslog_server_ca_cert: Optional[str] = None,
        remote_syslog_server_port: Optional[int] = None,
        resource_compartment_id: Optional[str] = None,
        resource_id: Optional[str] = None,
        resource_name: Optional[str] = None,
        resource_type: Optional[str] = None,
        state: Optional[str] = None,
        time_assignment_from: Optional[str] = None,
        time_assignment_to: Optional[str] = None,
        time_of_assignment: Optional[str] = None,
        time_of_deletion: Optional[str] = None,
        unassigner_id: Optional[str] = None) -> OperatorControlAssignment
func GetOperatorControlAssignment(ctx *Context, name string, id IDInput, state *OperatorControlAssignmentState, opts ...ResourceOption) (*OperatorControlAssignment, error)
public static OperatorControlAssignment Get(string name, Input<string> id, OperatorControlAssignmentState? state, CustomResourceOptions? opts = null)
public static OperatorControlAssignment get(String name, Output<String> id, OperatorControlAssignmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AssignerId string

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

Comment string

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

CompartmentId string

(Updatable) The OCID of the compartment that contains the operator control assignment.

DefinedTags Dictionary<string, object>

(Updatable) 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>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

IsAutoApproveDuringMaintenance bool

(Updatable) The boolean if true would autoApprove during maintenance.

IsEnforcedAlways bool

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

IsLogForwarded bool

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

LifecycleDetails string

More in detail about the lifeCycleState.

OperatorControlId string

The OCID of the operator control that is being assigned to a target resource.

RemoteSyslogServerAddress string

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

RemoteSyslogServerCaCert string

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

RemoteSyslogServerPort int

(Updatable) 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 being brought under the governance of the operator control.

ResourceName string

Name of the target resource.

ResourceType string

Type of the target resource.

State string

The current lifcycle state of the OperatorControl.

TimeAssignmentFrom string

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

TimeAssignmentTo string

(Updatable) The time at which the target resource will leave the governance of the operator control in RFC 3339timestamp 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

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

CompartmentId string

(Updatable) The OCID of the compartment that contains the operator control assignment.

DefinedTags map[string]interface{}

(Updatable) 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{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

IsAutoApproveDuringMaintenance bool

(Updatable) The boolean if true would autoApprove during maintenance.

IsEnforcedAlways bool

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

IsLogForwarded bool

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

LifecycleDetails string

More in detail about the lifeCycleState.

OperatorControlId string

The OCID of the operator control that is being assigned to a target resource.

RemoteSyslogServerAddress string

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

RemoteSyslogServerCaCert string

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

RemoteSyslogServerPort int

(Updatable) 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 being brought under the governance of the operator control.

ResourceName string

Name of the target resource.

ResourceType string

Type of the target resource.

State string

The current lifcycle state of the OperatorControl.

TimeAssignmentFrom string

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

TimeAssignmentTo string

(Updatable) The time at which the target resource will leave the governance of the operator control in RFC 3339timestamp 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

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

compartmentId String

(Updatable) The OCID of the compartment that contains the operator control assignment.

definedTags Map<String,Object>

(Updatable) 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>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

isAutoApproveDuringMaintenance Boolean

(Updatable) The boolean if true would autoApprove during maintenance.

isEnforcedAlways Boolean

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

isLogForwarded Boolean

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

lifecycleDetails String

More in detail about the lifeCycleState.

operatorControlId String

The OCID of the operator control that is being assigned to a target resource.

remoteSyslogServerAddress String

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

remoteSyslogServerCaCert String

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

remoteSyslogServerPort Integer

(Updatable) 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 being brought under the governance of the operator control.

resourceName String

Name of the target resource.

resourceType String

Type of the target resource.

state String

The current lifcycle state of the OperatorControl.

timeAssignmentFrom String

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

timeAssignmentTo String

(Updatable) The time at which the target resource will leave the governance of the operator control in RFC 3339timestamp 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

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

compartmentId string

(Updatable) The OCID of the compartment that contains the operator control assignment.

definedTags {[key: string]: any}

(Updatable) 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}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

isAutoApproveDuringMaintenance boolean

(Updatable) The boolean if true would autoApprove during maintenance.

isEnforcedAlways boolean

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

isLogForwarded boolean

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

lifecycleDetails string

More in detail about the lifeCycleState.

operatorControlId string

The OCID of the operator control that is being assigned to a target resource.

remoteSyslogServerAddress string

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

remoteSyslogServerCaCert string

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

remoteSyslogServerPort number

(Updatable) 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 being brought under the governance of the operator control.

resourceName string

Name of the target resource.

resourceType string

Type of the target resource.

state string

The current lifcycle state of the OperatorControl.

timeAssignmentFrom string

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

timeAssignmentTo string

(Updatable) The time at which the target resource will leave the governance of the operator control in RFC 3339timestamp 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

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

compartment_id str

(Updatable) The OCID of the compartment that contains the operator control assignment.

defined_tags Mapping[str, Any]

(Updatable) 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]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

is_auto_approve_during_maintenance bool

(Updatable) The boolean if true would autoApprove during maintenance.

is_enforced_always bool

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

is_log_forwarded bool

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

lifecycle_details str

More in detail about the lifeCycleState.

operator_control_id str

The OCID of the operator control that is being assigned to a target resource.

remote_syslog_server_address str

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

remote_syslog_server_ca_cert str

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

remote_syslog_server_port int

(Updatable) 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 being brought under the governance of the operator control.

resource_name str

Name of the target resource.

resource_type str

Type of the target resource.

state str

The current lifcycle state of the OperatorControl.

time_assignment_from str

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

time_assignment_to str

(Updatable) The time at which the target resource will leave the governance of the operator control in RFC 3339timestamp 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

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

compartmentId String

(Updatable) The OCID of the compartment that contains the operator control assignment.

definedTags Map<Any>

(Updatable) 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>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.

isAutoApproveDuringMaintenance Boolean

(Updatable) The boolean if true would autoApprove during maintenance.

isEnforcedAlways Boolean

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

isLogForwarded Boolean

(Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server

lifecycleDetails String

More in detail about the lifeCycleState.

operatorControlId String

The OCID of the operator control that is being assigned to a target resource.

remoteSyslogServerAddress String

(Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.

remoteSyslogServerCaCert String

(Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.

remoteSyslogServerPort Number

(Updatable) 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 being brought under the governance of the operator control.

resourceName String

Name of the target resource.

resourceType String

Type of the target resource.

state String

The current lifcycle state of the OperatorControl.

timeAssignmentFrom String

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

timeAssignmentTo String

(Updatable) The time at which the target resource will leave the governance of the operator control in RFC 3339timestamp 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.

Import

OperatorControlAssignments can be imported using the id, e.g.

 $ pulumi import oci:OperatorAccessControl/operatorControlAssignment:OperatorControlAssignment test_operator_control_assignment "id"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.