Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OperatorAccessControl.getControlAssignment
Explore with Pulumi AI
This data source provides details about a specific Operator Control Assignment resource in Oracle Cloud Infrastructure Operator Access Control service.
Gets the details of an Operator Control Assignment of the specified ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOperatorControlAssignment = oci.OperatorAccessControl.getControlAssignment({
    operatorControlAssignmentId: testOperatorControlAssignmentOciOperatorAccessControlOperatorControlAssignment.id,
});
import pulumi
import pulumi_oci as oci
test_operator_control_assignment = oci.OperatorAccessControl.get_control_assignment(operator_control_assignment_id=test_operator_control_assignment_oci_operator_access_control_operator_control_assignment["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/operatoraccesscontrol"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := operatoraccesscontrol.GetControlAssignment(ctx, &operatoraccesscontrol.GetControlAssignmentArgs{
			OperatorControlAssignmentId: testOperatorControlAssignmentOciOperatorAccessControlOperatorControlAssignment.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testOperatorControlAssignment = Oci.OperatorAccessControl.GetControlAssignment.Invoke(new()
    {
        OperatorControlAssignmentId = testOperatorControlAssignmentOciOperatorAccessControlOperatorControlAssignment.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OperatorAccessControl.OperatorAccessControlFunctions;
import com.pulumi.oci.OperatorAccessControl.inputs.GetControlAssignmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testOperatorControlAssignment = OperatorAccessControlFunctions.getControlAssignment(GetControlAssignmentArgs.builder()
            .operatorControlAssignmentId(testOperatorControlAssignmentOciOperatorAccessControlOperatorControlAssignment.id())
            .build());
    }
}
variables:
  testOperatorControlAssignment:
    fn::invoke:
      function: oci:OperatorAccessControl:getControlAssignment
      arguments:
        operatorControlAssignmentId: ${testOperatorControlAssignmentOciOperatorAccessControlOperatorControlAssignment.id}
Using getControlAssignment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getControlAssignment(args: GetControlAssignmentArgs, opts?: InvokeOptions): Promise<GetControlAssignmentResult>
function getControlAssignmentOutput(args: GetControlAssignmentOutputArgs, opts?: InvokeOptions): Output<GetControlAssignmentResult>def get_control_assignment(operator_control_assignment_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetControlAssignmentResult
def get_control_assignment_output(operator_control_assignment_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetControlAssignmentResult]func GetControlAssignment(ctx *Context, args *GetControlAssignmentArgs, opts ...InvokeOption) (*GetControlAssignmentResult, error)
func GetControlAssignmentOutput(ctx *Context, args *GetControlAssignmentOutputArgs, opts ...InvokeOption) GetControlAssignmentResultOutput> Note: This function is named GetControlAssignment in the Go SDK.
public static class GetControlAssignment 
{
    public static Task<GetControlAssignmentResult> InvokeAsync(GetControlAssignmentArgs args, InvokeOptions? opts = null)
    public static Output<GetControlAssignmentResult> Invoke(GetControlAssignmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetControlAssignmentResult> getControlAssignment(GetControlAssignmentArgs args, InvokeOptions options)
public static Output<GetControlAssignmentResult> getControlAssignment(GetControlAssignmentArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OperatorAccessControl/getControlAssignment:getControlAssignment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OperatorControl stringAssignment Id 
- unique OperatorControl identifier
- OperatorControl stringAssignment Id 
- unique OperatorControl identifier
- operatorControl StringAssignment Id 
- unique OperatorControl identifier
- operatorControl stringAssignment Id 
- unique OperatorControl identifier
- operator_control_ strassignment_ id 
- unique OperatorControl identifier
- operatorControl StringAssignment Id 
- unique OperatorControl identifier
getControlAssignment Result
The following output properties are available:
- AssignerId string
- The OCID of the user who created this operator control assignment.
- Comment string
- Comment about the assignment of the operator control to this target resource.
- CompartmentId string
- The OCID of the comparment that contains the operator control assignment.
- Dictionary<string, string>
- 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.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- Id string
- The OCID of the operator control assignment.
- IsAuto boolApprove During Maintenance 
- The boolean if true would autoApprove during maintenance.
- IsDefault boolAssignment 
- Whether the assignment is a default assignment.
- IsEnforced boolAlways 
- If set, then the target resource is always governed by the operator control.
- IsHypervisor boolLog Forwarded 
- If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
- IsLog boolForwarded 
- If set indicates that the audit logs are being forwarded to the relevant remote logging server
- LifecycleDetails string
- More in detail about the lifeCycleState.
- OpControl stringName 
- Name of the operator control name associated.
- OperatorControl stringAssignment Id 
- OperatorControl stringId 
- The OCID of the operator control.
- RemoteSyslog stringServer Address 
- The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- RemoteSyslog stringServer Ca Cert 
- The CA certificate of the remote syslog server.
- RemoteSyslog intServer Port 
- The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- ResourceCompartment stringId 
- The OCID of the compartment that contains the target resource.
- ResourceId string
- The OCID of the target resource.
- ResourceName string
- Name of the target resource.
- ResourceType string
- resourceType for which the OperatorControlAssignment is applicable
- State string
- The current lifcycle state of the OperatorControl.
- TimeAssignment stringFrom 
- The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- TimeAssignment stringTo 
- The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- TimeOf stringAssignment 
- Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- TimeOf stringDeletion 
- 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.
- ValidateAssignment intTrigger 
- AssignerId string
- The OCID of the user who created this operator control assignment.
- Comment string
- Comment about the assignment of the operator control to this target resource.
- CompartmentId string
- The OCID of the comparment that contains the operator control assignment.
- map[string]string
- 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.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- Id string
- The OCID of the operator control assignment.
- IsAuto boolApprove During Maintenance 
- The boolean if true would autoApprove during maintenance.
- IsDefault boolAssignment 
- Whether the assignment is a default assignment.
- IsEnforced boolAlways 
- If set, then the target resource is always governed by the operator control.
- IsHypervisor boolLog Forwarded 
- If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
- IsLog boolForwarded 
- If set indicates that the audit logs are being forwarded to the relevant remote logging server
- LifecycleDetails string
- More in detail about the lifeCycleState.
- OpControl stringName 
- Name of the operator control name associated.
- OperatorControl stringAssignment Id 
- OperatorControl stringId 
- The OCID of the operator control.
- RemoteSyslog stringServer Address 
- The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- RemoteSyslog stringServer Ca Cert 
- The CA certificate of the remote syslog server.
- RemoteSyslog intServer Port 
- The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- ResourceCompartment stringId 
- The OCID of the compartment that contains the target resource.
- ResourceId string
- The OCID of the target resource.
- ResourceName string
- Name of the target resource.
- ResourceType string
- resourceType for which the OperatorControlAssignment is applicable
- State string
- The current lifcycle state of the OperatorControl.
- TimeAssignment stringFrom 
- The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- TimeAssignment stringTo 
- The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- TimeOf stringAssignment 
- Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- TimeOf stringDeletion 
- 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.
- ValidateAssignment intTrigger 
- assignerId String
- The OCID of the user who created this operator control assignment.
- comment String
- Comment about the assignment of the operator control to this target resource.
- compartmentId String
- The OCID of the comparment that contains the operator control assignment.
- Map<String,String>
- 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.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- id String
- The OCID of the operator control assignment.
- isAuto BooleanApprove During Maintenance 
- The boolean if true would autoApprove during maintenance.
- isDefault BooleanAssignment 
- Whether the assignment is a default assignment.
- isEnforced BooleanAlways 
- If set, then the target resource is always governed by the operator control.
- isHypervisor BooleanLog Forwarded 
- If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
- isLog BooleanForwarded 
- If set indicates that the audit logs are being forwarded to the relevant remote logging server
- lifecycleDetails String
- More in detail about the lifeCycleState.
- opControl StringName 
- Name of the operator control name associated.
- operatorControl StringAssignment Id 
- operatorControl StringId 
- The OCID of the operator control.
- remoteSyslog StringServer Address 
- The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- remoteSyslog StringServer Ca Cert 
- The CA certificate of the remote syslog server.
- remoteSyslog IntegerServer Port 
- The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- resourceCompartment StringId 
- The OCID of the compartment that contains the target resource.
- resourceId String
- The OCID of the target resource.
- resourceName String
- Name of the target resource.
- resourceType String
- resourceType for which the OperatorControlAssignment is applicable
- state String
- The current lifcycle state of the OperatorControl.
- timeAssignment StringFrom 
- The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- timeAssignment StringTo 
- The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- timeOf StringAssignment 
- Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- timeOf StringDeletion 
- 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.
- validateAssignment IntegerTrigger 
- assignerId string
- The OCID of the user who created this operator control assignment.
- comment string
- Comment about the assignment of the operator control to this target resource.
- compartmentId string
- The OCID of the comparment that contains the operator control assignment.
- {[key: string]: string}
- 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.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- id string
- The OCID of the operator control assignment.
- isAuto booleanApprove During Maintenance 
- The boolean if true would autoApprove during maintenance.
- isDefault booleanAssignment 
- Whether the assignment is a default assignment.
- isEnforced booleanAlways 
- If set, then the target resource is always governed by the operator control.
- isHypervisor booleanLog Forwarded 
- If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
- isLog booleanForwarded 
- If set indicates that the audit logs are being forwarded to the relevant remote logging server
- lifecycleDetails string
- More in detail about the lifeCycleState.
- opControl stringName 
- Name of the operator control name associated.
- operatorControl stringAssignment Id 
- operatorControl stringId 
- The OCID of the operator control.
- remoteSyslog stringServer Address 
- The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- remoteSyslog stringServer Ca Cert 
- The CA certificate of the remote syslog server.
- remoteSyslog numberServer Port 
- The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- resourceCompartment stringId 
- The OCID of the compartment that contains the target resource.
- resourceId string
- The OCID of the target resource.
- resourceName string
- Name of the target resource.
- resourceType string
- resourceType for which the OperatorControlAssignment is applicable
- state string
- The current lifcycle state of the OperatorControl.
- timeAssignment stringFrom 
- The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- timeAssignment stringTo 
- The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- timeOf stringAssignment 
- Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- timeOf stringDeletion 
- 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.
- validateAssignment numberTrigger 
- assigner_id str
- The OCID of the user who created this operator control assignment.
- comment str
- Comment about the assignment of the operator control to this target resource.
- compartment_id str
- The OCID of the comparment that contains the operator control assignment.
- Mapping[str, str]
- 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, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- id str
- The OCID of the operator control assignment.
- is_auto_ boolapprove_ during_ maintenance 
- The boolean if true would autoApprove during maintenance.
- is_default_ boolassignment 
- Whether the assignment is a default assignment.
- is_enforced_ boolalways 
- If set, then the target resource is always governed by the operator control.
- is_hypervisor_ boollog_ forwarded 
- If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
- is_log_ boolforwarded 
- If set indicates that the audit logs are being forwarded to the relevant remote logging server
- lifecycle_details str
- More in detail about the lifeCycleState.
- op_control_ strname 
- Name of the operator control name associated.
- operator_control_ strassignment_ id 
- operator_control_ strid 
- The OCID of the operator control.
- remote_syslog_ strserver_ address 
- The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- remote_syslog_ strserver_ ca_ cert 
- The CA certificate of the remote syslog server.
- remote_syslog_ intserver_ port 
- 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.
- resource_name str
- Name of the target resource.
- resource_type str
- resourceType for which the OperatorControlAssignment is applicable
- state str
- The current lifcycle state of the OperatorControl.
- time_assignment_ strfrom 
- The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time_assignment_ strto 
- The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- time_of_ 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.
- validate_assignment_ inttrigger 
- assignerId String
- The OCID of the user who created this operator control assignment.
- comment String
- Comment about the assignment of the operator control to this target resource.
- compartmentId String
- The OCID of the comparment that contains the operator control assignment.
- Map<String>
- 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.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
- id String
- The OCID of the operator control assignment.
- isAuto BooleanApprove During Maintenance 
- The boolean if true would autoApprove during maintenance.
- isDefault BooleanAssignment 
- Whether the assignment is a default assignment.
- isEnforced BooleanAlways 
- If set, then the target resource is always governed by the operator control.
- isHypervisor BooleanLog Forwarded 
- If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
- isLog BooleanForwarded 
- If set indicates that the audit logs are being forwarded to the relevant remote logging server
- lifecycleDetails String
- More in detail about the lifeCycleState.
- opControl StringName 
- Name of the operator control name associated.
- operatorControl StringAssignment Id 
- operatorControl StringId 
- The OCID of the operator control.
- remoteSyslog StringServer Address 
- The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- remoteSyslog StringServer Ca Cert 
- The CA certificate of the remote syslog server.
- remoteSyslog NumberServer Port 
- The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
- resourceCompartment StringId 
- The OCID of the compartment that contains the target resource.
- resourceId String
- The OCID of the target resource.
- resourceName String
- Name of the target resource.
- resourceType String
- resourceType for which the OperatorControlAssignment is applicable
- state String
- The current lifcycle state of the OperatorControl.
- timeAssignment StringFrom 
- The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- timeAssignment StringTo 
- The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- timeOf StringAssignment 
- Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
- timeOf StringDeletion 
- 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.
- validateAssignment NumberTrigger 
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.