oci.OperatorAccessControl.getControlAssignment
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
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testOperatorControlAssignment = Oci.OperatorAccessControl.GetControlAssignment.Invoke(new()
{
OperatorControlAssignmentId = oci_operator_access_control_operator_control_assignment.Test_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: oci_operator_access_control_operator_control_assignment.Test_operator_control_assignment.Id,
}, nil)
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.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(oci_operator_access_control_operator_control_assignment.test_operator_control_assignment().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_operator_control_assignment = oci.OperatorAccessControl.get_control_assignment(operator_control_assignment_id=oci_operator_access_control_operator_control_assignment["test_operator_control_assignment"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOperatorControlAssignment = oci.OperatorAccessControl.getControlAssignment({
operatorControlAssignmentId: oci_operator_access_control_operator_control_assignment.test_operator_control_assignment.id,
});
variables:
testOperatorControlAssignment:
fn::invoke:
Function: oci:OperatorAccessControl:getControlAssignment
Arguments:
operatorControlAssignmentId: ${oci_operator_access_control_operator_control_assignment.test_operator_control_assignment.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:
- Operator
Control stringAssignment Id unique OperatorControl identifier
- Operator
Control stringAssignment Id unique OperatorControl identifier
- operator
Control StringAssignment Id unique OperatorControl identifier
- operator
Control stringAssignment Id unique OperatorControl identifier
- operator_
control_ strassignment_ id unique OperatorControl identifier
- operator
Control StringAssignment Id unique OperatorControl identifier
getControlAssignment Result
The following output properties are available:
- Assigner
Id 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.
- Compartment
Id string The OCID of the comparment that contains the operator control assignment.
- Dictionary<string, object>
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>
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.
- Is
Auto boolApprove During Maintenance The boolean if true would autoApprove during maintenance.
- Is
Enforced boolAlways If set, then the target resource is always governed by the operator control.
- Is
Log boolForwarded If set indicates that the audit logs are being forwarded to the relevant remote logging server
- Lifecycle
Details string More in detail about the lifeCycleState.
- Operator
Control stringAssignment Id - Operator
Control stringId The OCID of the operator control.
- Remote
Syslog stringServer Address The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- Remote
Syslog stringServer 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 stringId The OCID of the compartment that contains the target resource.
- Resource
Id string The OCID of the target resource.
- Resource
Name string Name of the target resource.
- Resource
Type string resourceType for which the OperatorControlAssignment is applicable
- State string
The current lifcycle state of the OperatorControl.
- Time
Assignment 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'
- Time
Assignment 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'
- 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
Comment about the assignment of the operator control to this target resource.
- Compartment
Id string The OCID of the comparment that contains the operator control assignment.
- map[string]interface{}
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{}
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.
- Is
Auto boolApprove During Maintenance The boolean if true would autoApprove during maintenance.
- Is
Enforced boolAlways If set, then the target resource is always governed by the operator control.
- Is
Log boolForwarded If set indicates that the audit logs are being forwarded to the relevant remote logging server
- Lifecycle
Details string More in detail about the lifeCycleState.
- Operator
Control stringAssignment Id - Operator
Control stringId The OCID of the operator control.
- Remote
Syslog stringServer Address The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- Remote
Syslog stringServer 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 stringId The OCID of the compartment that contains the target resource.
- Resource
Id string The OCID of the target resource.
- Resource
Name string Name of the target resource.
- Resource
Type string resourceType for which the OperatorControlAssignment is applicable
- State string
The current lifcycle state of the OperatorControl.
- Time
Assignment 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'
- Time
Assignment 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'
- 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
Comment about the assignment of the operator control to this target resource.
- compartment
Id String The OCID of the comparment that contains the operator control assignment.
- Map<String,Object>
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>
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.
- is
Auto BooleanApprove During Maintenance The boolean if true would autoApprove during maintenance.
- is
Enforced BooleanAlways If set, then the target resource is always governed by the operator control.
- is
Log BooleanForwarded If set indicates that the audit logs are being forwarded to the relevant remote logging server
- lifecycle
Details String More in detail about the lifeCycleState.
- operator
Control StringAssignment Id - operator
Control StringId The OCID of the operator control.
- remote
Syslog StringServer Address The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- remote
Syslog StringServer Ca Cert The CA certificate of the remote syslog server.
- remote
Syslog IntegerServer Port 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.
- resource
Name String Name of the target resource.
- resource
Type String resourceType for which the OperatorControlAssignment is applicable
- state String
The current lifcycle state of the OperatorControl.
- time
Assignment 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'
- time
Assignment 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'
- 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
Comment about the assignment of the operator control to this target resource.
- compartment
Id string The OCID of the comparment that contains the operator control assignment.
- {[key: string]: any}
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}
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.
- is
Auto booleanApprove During Maintenance The boolean if true would autoApprove during maintenance.
- is
Enforced booleanAlways If set, then the target resource is always governed by the operator control.
- is
Log booleanForwarded If set indicates that the audit logs are being forwarded to the relevant remote logging server
- lifecycle
Details string More in detail about the lifeCycleState.
- operator
Control stringAssignment Id - operator
Control stringId The OCID of the operator control.
- remote
Syslog stringServer Address The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- remote
Syslog stringServer Ca Cert The CA certificate of the remote syslog server.
- remote
Syslog numberServer Port 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.
- resource
Name string Name of the target resource.
- resource
Type string resourceType for which the OperatorControlAssignment is applicable
- state string
The current lifcycle state of the OperatorControl.
- time
Assignment 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'
- time
Assignment 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'
- 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
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, 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.
- 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_ boolapprove_ during_ maintenance The boolean if true would autoApprove during maintenance.
- is_
enforced_ boolalways If set, then the target resource is always governed by the operator control.
- 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.
- 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.
- assigner
Id 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.
- compartment
Id String The OCID of the comparment that contains the operator control assignment.
- Map<Any>
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>
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.
- is
Auto BooleanApprove During Maintenance The boolean if true would autoApprove during maintenance.
- is
Enforced BooleanAlways If set, then the target resource is always governed by the operator control.
- is
Log BooleanForwarded If set indicates that the audit logs are being forwarded to the relevant remote logging server
- lifecycle
Details String More in detail about the lifeCycleState.
- operator
Control StringAssignment Id - operator
Control StringId The OCID of the operator control.
- remote
Syslog StringServer Address The address of the remote syslog server where the audit logs are being forwarded to. Address in host or IP format.
- remote
Syslog StringServer Ca Cert The CA certificate of the remote syslog server.
- remote
Syslog NumberServer Port 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.
- resource
Name String Name of the target resource.
- resource
Type String resourceType for which the OperatorControlAssignment is applicable
- state String
The current lifcycle state of the OperatorControl.
- time
Assignment 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'
- time
Assignment 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'
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.