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:
- Compartment
Id string (Updatable) The OCID of the compartment that contains the operator control assignment.
- Is
Enforced boolAlways (Updatable) If set, then the target resource is always governed by the operator control.
- Operator
Control stringId The OCID of the operator control that is being assigned to a target resource.
- Resource
Compartment stringId The OCID of the compartment that contains the target resource.
- Resource
Id string The OCID of the target resource being brought under the governance of the operator control.
- Resource
Name string Name of the target resource.
- Resource
Type string Type of the target resource.
- Comment string
(Updatable) Comment about the assignment of the operator control to this target resource.
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- Dictionary<string, object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- Is
Auto boolApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- Is
Log boolForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- Remote
Syslog stringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- Remote
Syslog stringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- Remote
Syslog intServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- Time
Assignment stringFrom (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 stringTo (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 string (Updatable) The OCID of the compartment that contains the operator control assignment.
- Is
Enforced boolAlways (Updatable) If set, then the target resource is always governed by the operator control.
- Operator
Control stringId The OCID of the operator control that is being assigned to a target resource.
- Resource
Compartment stringId The OCID of the compartment that contains the target resource.
- Resource
Id string The OCID of the target resource being brought under the governance of the operator control.
- Resource
Name string Name of the target resource.
- Resource
Type string Type of the target resource.
- Comment string
(Updatable) Comment about the assignment of the operator control to this target resource.
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- map[string]interface{}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- Is
Auto boolApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- Is
Log boolForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- Remote
Syslog stringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- Remote
Syslog stringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- Remote
Syslog intServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- Time
Assignment stringFrom (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 stringTo (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 String (Updatable) The OCID of the compartment that contains the operator control assignment.
- is
Enforced BooleanAlways (Updatable) If set, then the target resource is always governed by the operator control.
- operator
Control StringId The OCID of the operator control that is being assigned to a target resource.
- resource
Compartment StringId The OCID of the compartment that contains the target resource.
- resource
Id String The OCID of the target resource being brought under the governance of the operator control.
- resource
Name String Name of the target resource.
- resource
Type String Type of the target resource.
- comment String
(Updatable) Comment about the assignment of the operator control to this target resource.
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- Map<String,Object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- is
Auto BooleanApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- is
Log BooleanForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- remote
Syslog StringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- remote
Syslog StringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- remote
Syslog IntegerServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- time
Assignment StringFrom (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 StringTo (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 string (Updatable) The OCID of the compartment that contains the operator control assignment.
- is
Enforced booleanAlways (Updatable) If set, then the target resource is always governed by the operator control.
- operator
Control stringId The OCID of the operator control that is being assigned to a target resource.
- resource
Compartment stringId The OCID of the compartment that contains the target resource.
- resource
Id string The OCID of the target resource being brought under the governance of the operator control.
- resource
Name string Name of the target resource.
- resource
Type string Type of the target resource.
- comment string
(Updatable) Comment about the assignment of the operator control to this target resource.
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- {[key: string]: any}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- is
Auto booleanApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- is
Log booleanForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- remote
Syslog stringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- remote
Syslog stringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- remote
Syslog numberServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- time
Assignment stringFrom (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 stringTo (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_ boolalways (Updatable) If set, then the target resource is always governed by the operator control.
- operator_
control_ strid The OCID of the operator control that is being assigned to a target resource.
- resource_
compartment_ strid 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.
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- 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_ boolapprove_ during_ maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- is_
log_ boolforwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- remote_
syslog_ strserver_ address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- remote_
syslog_ strserver_ ca_ cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- remote_
syslog_ intserver_ port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- time_
assignment_ strfrom (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_ strto (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 String (Updatable) The OCID of the compartment that contains the operator control assignment.
- is
Enforced BooleanAlways (Updatable) If set, then the target resource is always governed by the operator control.
- operator
Control StringId The OCID of the operator control that is being assigned to a target resource.
- resource
Compartment StringId The OCID of the compartment that contains the target resource.
- resource
Id String The OCID of the target resource being brought under the governance of the operator control.
- resource
Name String Name of the target resource.
- resource
Type String Type of the target resource.
- comment String
(Updatable) Comment about the assignment of the operator control to this target resource.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- Map<Any>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- is
Auto BooleanApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- is
Log BooleanForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- remote
Syslog StringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- remote
Syslog StringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- remote
Syslog NumberServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- time
Assignment StringFrom (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 StringTo (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:
- Assigner
Id string The OCID of the user who created this operator control assignment.
- Detachment
Description string description containing reason for releasing of OperatorControl.
- Error
Code int The code identifying the error occurred during Assignment operation.
- Error
Message string The message describing the error occurred during Assignment operation.
- Id string
The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string More in detail about the lifeCycleState.
- State string
The current lifcycle state of the OperatorControl.
- Time
Of stringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- Time
Of stringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- Unassigner
Id string User id who released the operatorControl.
- Assigner
Id string The OCID of the user who created this operator control assignment.
- Detachment
Description string description containing reason for releasing of OperatorControl.
- Error
Code int The code identifying the error occurred during Assignment operation.
- Error
Message string The message describing the error occurred during Assignment operation.
- Id string
The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string More in detail about the lifeCycleState.
- State string
The current lifcycle state of the OperatorControl.
- Time
Of stringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- Time
Of stringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- Unassigner
Id string User id who released the operatorControl.
- assigner
Id String The OCID of the user who created this operator control assignment.
- detachment
Description String description containing reason for releasing of OperatorControl.
- error
Code Integer The code identifying the error occurred during Assignment operation.
- error
Message String The message describing the error occurred during Assignment operation.
- id String
The provider-assigned unique ID for this managed resource.
- lifecycle
Details String More in detail about the lifeCycleState.
- state String
The current lifcycle state of the OperatorControl.
- time
Of StringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time
Of StringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- unassigner
Id String User id who released the operatorControl.
- assigner
Id string The OCID of the user who created this operator control assignment.
- detachment
Description string description containing reason for releasing of OperatorControl.
- error
Code number The code identifying the error occurred during Assignment operation.
- error
Message string The message describing the error occurred during Assignment operation.
- id string
The provider-assigned unique ID for this managed resource.
- lifecycle
Details string More in detail about the lifeCycleState.
- state string
The current lifcycle state of the OperatorControl.
- time
Of stringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time
Of stringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- unassigner
Id 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_ strassignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time_
of_ strdeletion 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.
- assigner
Id String The OCID of the user who created this operator control assignment.
- detachment
Description String description containing reason for releasing of OperatorControl.
- error
Code Number The code identifying the error occurred during Assignment operation.
- error
Message String The message describing the error occurred during Assignment operation.
- id String
The provider-assigned unique ID for this managed resource.
- lifecycle
Details String More in detail about the lifeCycleState.
- state String
The current lifcycle state of the OperatorControl.
- time
Of StringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time
Of StringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- unassigner
Id 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.
- Assigner
Id 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.
- Compartment
Id string (Updatable) The OCID of the compartment that contains the operator control assignment.
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- Detachment
Description string description containing reason for releasing of OperatorControl.
- Error
Code int The code identifying the error occurred during Assignment operation.
- Error
Message string The message describing the error occurred during Assignment operation.
- Dictionary<string, object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- Is
Auto boolApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- Is
Enforced boolAlways (Updatable) If set, then the target resource is always governed by the operator control.
- Is
Log boolForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- Lifecycle
Details string More in detail about the lifeCycleState.
- Operator
Control stringId The OCID of the operator control that is being assigned to a target resource.
- Remote
Syslog stringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- Remote
Syslog stringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- Remote
Syslog intServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- Resource
Compartment stringId The OCID of the compartment that contains the target resource.
- Resource
Id string The OCID of the target resource being brought under the governance of the operator control.
- Resource
Name string Name of the target resource.
- Resource
Type string Type of the target resource.
- State string
The current lifcycle state of the OperatorControl.
- Time
Assignment stringFrom (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 stringTo (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 stringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- Time
Of stringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- Unassigner
Id string User id who released the operatorControl.
- Assigner
Id 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.
- Compartment
Id string (Updatable) The OCID of the compartment that contains the operator control assignment.
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- Detachment
Description string description containing reason for releasing of OperatorControl.
- Error
Code int The code identifying the error occurred during Assignment operation.
- Error
Message string The message describing the error occurred during Assignment operation.
- map[string]interface{}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- Is
Auto boolApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- Is
Enforced boolAlways (Updatable) If set, then the target resource is always governed by the operator control.
- Is
Log boolForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- Lifecycle
Details string More in detail about the lifeCycleState.
- Operator
Control stringId The OCID of the operator control that is being assigned to a target resource.
- Remote
Syslog stringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- Remote
Syslog stringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- Remote
Syslog intServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- Resource
Compartment stringId The OCID of the compartment that contains the target resource.
- Resource
Id string The OCID of the target resource being brought under the governance of the operator control.
- Resource
Name string Name of the target resource.
- Resource
Type string Type of the target resource.
- State string
The current lifcycle state of the OperatorControl.
- Time
Assignment stringFrom (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 stringTo (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 stringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- Time
Of stringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- Unassigner
Id string User id who released the operatorControl.
- assigner
Id 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.
- compartment
Id String (Updatable) The OCID of the compartment that contains the operator control assignment.
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- detachment
Description String description containing reason for releasing of OperatorControl.
- error
Code Integer The code identifying the error occurred during Assignment operation.
- error
Message String The message describing the error occurred during Assignment operation.
- Map<String,Object>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- is
Auto BooleanApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- is
Enforced BooleanAlways (Updatable) If set, then the target resource is always governed by the operator control.
- is
Log BooleanForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- lifecycle
Details String More in detail about the lifeCycleState.
- operator
Control StringId The OCID of the operator control that is being assigned to a target resource.
- remote
Syslog StringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- remote
Syslog StringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- remote
Syslog IntegerServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- resource
Compartment StringId The OCID of the compartment that contains the target resource.
- resource
Id String The OCID of the target resource being brought under the governance of the operator control.
- resource
Name String Name of the target resource.
- resource
Type String Type of the target resource.
- state String
The current lifcycle state of the OperatorControl.
- time
Assignment StringFrom (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 StringTo (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 StringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time
Of StringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- unassigner
Id String User id who released the operatorControl.
- assigner
Id 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.
- compartment
Id string (Updatable) The OCID of the compartment that contains the operator control assignment.
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- detachment
Description string description containing reason for releasing of OperatorControl.
- error
Code number The code identifying the error occurred during Assignment operation.
- error
Message string The message describing the error occurred during Assignment operation.
- {[key: string]: any}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- is
Auto booleanApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- is
Enforced booleanAlways (Updatable) If set, then the target resource is always governed by the operator control.
- is
Log booleanForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- lifecycle
Details string More in detail about the lifeCycleState.
- operator
Control stringId The OCID of the operator control that is being assigned to a target resource.
- remote
Syslog stringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- remote
Syslog stringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- remote
Syslog numberServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- resource
Compartment stringId The OCID of the compartment that contains the target resource.
- resource
Id string The OCID of the target resource being brought under the governance of the operator control.
- resource
Name string Name of the target resource.
- resource
Type string Type of the target resource.
- state string
The current lifcycle state of the OperatorControl.
- time
Assignment stringFrom (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 stringTo (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 stringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time
Of stringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- unassigner
Id 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.
- 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.
- 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_ boolapprove_ during_ maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- is_
enforced_ boolalways (Updatable) If set, then the target resource is always governed by the operator control.
- is_
log_ boolforwarded (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_ strid The OCID of the operator control that is being assigned to a target resource.
- remote_
syslog_ strserver_ address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- remote_
syslog_ strserver_ ca_ cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- remote_
syslog_ intserver_ port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- resource_
compartment_ strid 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_ strfrom (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_ strto (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_ strassignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time_
of_ strdeletion 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.
- assigner
Id 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.
- compartment
Id String (Updatable) The OCID of the compartment that contains the operator control assignment.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace.
- detachment
Description String description containing reason for releasing of OperatorControl.
- error
Code Number The code identifying the error occurred during Assignment operation.
- error
Message String The message describing the error occurred during Assignment operation.
- Map<Any>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- is
Auto BooleanApprove During Maintenance (Updatable) The boolean if true would autoApprove during maintenance.
- is
Enforced BooleanAlways (Updatable) If set, then the target resource is always governed by the operator control.
- is
Log BooleanForwarded (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server
- lifecycle
Details String More in detail about the lifeCycleState.
- operator
Control StringId The OCID of the operator control that is being assigned to a target resource.
- remote
Syslog StringServer Address (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format.
- remote
Syslog StringServer Ca Cert (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate.
- remote
Syslog NumberServer Port (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- resource
Compartment StringId The OCID of the compartment that contains the target resource.
- resource
Id String The OCID of the target resource being brought under the governance of the operator control.
- resource
Name String Name of the target resource.
- resource
Type String Type of the target resource.
- state String
The current lifcycle state of the OperatorControl.
- time
Assignment StringFrom (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 StringTo (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 StringAssignment Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time
Of StringDeletion Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
- unassigner
Id 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.