1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OperatorAccessControl
  5. getControlAssignment
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.OperatorAccessControl.getControlAssignment

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OperatorAccessControl/getControlAssignment:getControlAssignment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OperatorControlAssignmentId string
    unique OperatorControl identifier
    OperatorControlAssignmentId string
    unique OperatorControl identifier
    operatorControlAssignmentId String
    unique OperatorControl identifier
    operatorControlAssignmentId string
    unique OperatorControl identifier
    operator_control_assignment_id str
    unique OperatorControl identifier
    operatorControlAssignmentId String
    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.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace.
    DetachmentDescription string
    description containing reason for releasing of OperatorControl.
    ErrorCode int
    The code identifying the error occurred during Assignment operation.
    ErrorMessage string
    The message describing the error occurred during Assignment operation.
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    Id string
    The OCID of the operator control assignment.
    IsAutoApproveDuringMaintenance bool
    The boolean if true would autoApprove during maintenance.
    IsDefaultAssignment bool
    Whether the assignment is a default assignment.
    IsEnforcedAlways bool
    If set, then the target resource is always governed by the operator control.
    IsHypervisorLogForwarded bool
    If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
    IsLogForwarded bool
    If set indicates that the audit logs are being forwarded to the relevant remote logging server
    LifecycleDetails string
    More in detail about the lifeCycleState.
    OpControlName string
    Name of the operator control name associated.
    OperatorControlAssignmentId string
    OperatorControlId string
    The OCID of the operator control.
    RemoteSyslogServerAddress string
    The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
    RemoteSyslogServerCaCert string
    The CA certificate of the remote syslog server.
    RemoteSyslogServerPort int
    The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
    ResourceCompartmentId string
    The OCID of the compartment that contains the target resource.
    ResourceId string
    The OCID of the target resource.
    ResourceName string
    Name of the target resource.
    ResourceType string
    resourceType for which the OperatorControlAssignment is applicable
    State string
    The current lifcycle state of the OperatorControl.
    TimeAssignmentFrom string
    The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    TimeAssignmentTo string
    The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    TimeOfAssignment string
    Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    TimeOfDeletion string
    Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
    UnassignerId string
    User id who released the operatorControl.
    ValidateAssignmentTrigger int
    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.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace.
    DetachmentDescription string
    description containing reason for releasing of OperatorControl.
    ErrorCode int
    The code identifying the error occurred during Assignment operation.
    ErrorMessage string
    The message describing the error occurred during Assignment operation.
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    Id string
    The OCID of the operator control assignment.
    IsAutoApproveDuringMaintenance bool
    The boolean if true would autoApprove during maintenance.
    IsDefaultAssignment bool
    Whether the assignment is a default assignment.
    IsEnforcedAlways bool
    If set, then the target resource is always governed by the operator control.
    IsHypervisorLogForwarded bool
    If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
    IsLogForwarded bool
    If set indicates that the audit logs are being forwarded to the relevant remote logging server
    LifecycleDetails string
    More in detail about the lifeCycleState.
    OpControlName string
    Name of the operator control name associated.
    OperatorControlAssignmentId string
    OperatorControlId string
    The OCID of the operator control.
    RemoteSyslogServerAddress string
    The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
    RemoteSyslogServerCaCert string
    The CA certificate of the remote syslog server.
    RemoteSyslogServerPort int
    The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
    ResourceCompartmentId string
    The OCID of the compartment that contains the target resource.
    ResourceId string
    The OCID of the target resource.
    ResourceName string
    Name of the target resource.
    ResourceType string
    resourceType for which the OperatorControlAssignment is applicable
    State string
    The current lifcycle state of the OperatorControl.
    TimeAssignmentFrom string
    The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    TimeAssignmentTo string
    The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    TimeOfAssignment string
    Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    TimeOfDeletion string
    Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
    UnassignerId string
    User id who released the operatorControl.
    ValidateAssignmentTrigger int
    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.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace.
    detachmentDescription String
    description containing reason for releasing of OperatorControl.
    errorCode Integer
    The code identifying the error occurred during Assignment operation.
    errorMessage String
    The message describing the error occurred during Assignment operation.
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    id String
    The OCID of the operator control assignment.
    isAutoApproveDuringMaintenance Boolean
    The boolean if true would autoApprove during maintenance.
    isDefaultAssignment Boolean
    Whether the assignment is a default assignment.
    isEnforcedAlways Boolean
    If set, then the target resource is always governed by the operator control.
    isHypervisorLogForwarded Boolean
    If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
    isLogForwarded Boolean
    If set indicates that the audit logs are being forwarded to the relevant remote logging server
    lifecycleDetails String
    More in detail about the lifeCycleState.
    opControlName String
    Name of the operator control name associated.
    operatorControlAssignmentId String
    operatorControlId String
    The OCID of the operator control.
    remoteSyslogServerAddress String
    The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
    remoteSyslogServerCaCert String
    The CA certificate of the remote syslog server.
    remoteSyslogServerPort Integer
    The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
    resourceCompartmentId String
    The OCID of the compartment that contains the target resource.
    resourceId String
    The OCID of the target resource.
    resourceName String
    Name of the target resource.
    resourceType String
    resourceType for which the OperatorControlAssignment is applicable
    state String
    The current lifcycle state of the OperatorControl.
    timeAssignmentFrom String
    The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    timeAssignmentTo String
    The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    timeOfAssignment String
    Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    timeOfDeletion String
    Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
    unassignerId String
    User id who released the operatorControl.
    validateAssignmentTrigger Integer
    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.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace.
    detachmentDescription string
    description containing reason for releasing of OperatorControl.
    errorCode number
    The code identifying the error occurred during Assignment operation.
    errorMessage string
    The message describing the error occurred during Assignment operation.
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    id string
    The OCID of the operator control assignment.
    isAutoApproveDuringMaintenance boolean
    The boolean if true would autoApprove during maintenance.
    isDefaultAssignment boolean
    Whether the assignment is a default assignment.
    isEnforcedAlways boolean
    If set, then the target resource is always governed by the operator control.
    isHypervisorLogForwarded boolean
    If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
    isLogForwarded boolean
    If set indicates that the audit logs are being forwarded to the relevant remote logging server
    lifecycleDetails string
    More in detail about the lifeCycleState.
    opControlName string
    Name of the operator control name associated.
    operatorControlAssignmentId string
    operatorControlId string
    The OCID of the operator control.
    remoteSyslogServerAddress string
    The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
    remoteSyslogServerCaCert string
    The CA certificate of the remote syslog server.
    remoteSyslogServerPort number
    The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
    resourceCompartmentId string
    The OCID of the compartment that contains the target resource.
    resourceId string
    The OCID of the target resource.
    resourceName string
    Name of the target resource.
    resourceType string
    resourceType for which the OperatorControlAssignment is applicable
    state string
    The current lifcycle state of the OperatorControl.
    timeAssignmentFrom string
    The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    timeAssignmentTo string
    The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    timeOfAssignment string
    Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    timeOfDeletion string
    Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
    unassignerId string
    User id who released the operatorControl.
    validateAssignmentTrigger number
    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.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace.
    detachment_description str
    description containing reason for releasing of OperatorControl.
    error_code int
    The code identifying the error occurred during Assignment operation.
    error_message str
    The message describing the error occurred during Assignment operation.
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    id str
    The OCID of the operator control assignment.
    is_auto_approve_during_maintenance bool
    The boolean if true would autoApprove during maintenance.
    is_default_assignment bool
    Whether the assignment is a default assignment.
    is_enforced_always bool
    If set, then the target resource is always governed by the operator control.
    is_hypervisor_log_forwarded bool
    If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
    is_log_forwarded bool
    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_name str
    Name of the operator control name associated.
    operator_control_assignment_id str
    operator_control_id str
    The OCID of the operator control.
    remote_syslog_server_address str
    The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
    remote_syslog_server_ca_cert str
    The CA certificate of the remote syslog server.
    remote_syslog_server_port int
    The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
    resource_compartment_id str
    The OCID of the compartment that contains the target resource.
    resource_id str
    The OCID of the target resource.
    resource_name str
    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_from str
    The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    time_assignment_to str
    The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    time_of_assignment str
    Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    time_of_deletion str
    Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
    unassigner_id str
    User id who released the operatorControl.
    validate_assignment_trigger int
    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.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace.
    detachmentDescription String
    description containing reason for releasing of OperatorControl.
    errorCode Number
    The code identifying the error occurred during Assignment operation.
    errorMessage String
    The message describing the error occurred during Assignment operation.
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
    id String
    The OCID of the operator control assignment.
    isAutoApproveDuringMaintenance Boolean
    The boolean if true would autoApprove during maintenance.
    isDefaultAssignment Boolean
    Whether the assignment is a default assignment.
    isEnforcedAlways Boolean
    If set, then the target resource is always governed by the operator control.
    isHypervisorLogForwarded Boolean
    If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
    isLogForwarded Boolean
    If set indicates that the audit logs are being forwarded to the relevant remote logging server
    lifecycleDetails String
    More in detail about the lifeCycleState.
    opControlName String
    Name of the operator control name associated.
    operatorControlAssignmentId String
    operatorControlId String
    The OCID of the operator control.
    remoteSyslogServerAddress String
    The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
    remoteSyslogServerCaCert String
    The CA certificate of the remote syslog server.
    remoteSyslogServerPort Number
    The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported.
    resourceCompartmentId String
    The OCID of the compartment that contains the target resource.
    resourceId String
    The OCID of the target resource.
    resourceName String
    Name of the target resource.
    resourceType String
    resourceType for which the OperatorControlAssignment is applicable
    state String
    The current lifcycle state of the OperatorControl.
    timeAssignmentFrom String
    The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    timeAssignmentTo String
    The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    timeOfAssignment String
    Time when the operator control assignment is created in RFC 3339 timestamp format. Example: '2020-05-22T21:10:29.600Z'
    timeOfDeletion String
    Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: '2020-05-22T21:10:29.600Z'
    unassignerId String
    User id who released the operatorControl.
    validateAssignmentTrigger Number

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi