Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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)
// 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, string>
- 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, 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.
- 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 string - More in detail about the lifeCycleState.
- Op
Control stringName - Name of the operator control name associated.
- 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.
- Validate
Assignment intTrigger
- 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]string
- 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]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.
- 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 string - More in detail about the lifeCycleState.
- Op
Control stringName - Name of the operator control name associated.
- 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.
- Validate
Assignment intTrigger
- 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,String>
- 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,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.
- is
Auto BooleanApprove During Maintenance - The boolean if true would autoApprove during maintenance.
- is
Default BooleanAssignment - Whether the assignment is a default assignment.
- is
Enforced BooleanAlways - If set, then the target resource is always governed by the operator control.
- is
Hypervisor BooleanLog Forwarded - If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
- 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.
- op
Control StringName - Name of the operator control name associated.
- 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.
- validate
Assignment IntegerTrigger
- 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]: string}
- 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]: 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.
- is
Auto booleanApprove During Maintenance - The boolean if true would autoApprove during maintenance.
- is
Default booleanAssignment - Whether the assignment is a default assignment.
- is
Enforced booleanAlways - If set, then the target resource is always governed by the operator control.
- is
Hypervisor booleanLog Forwarded - If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
- 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.
- op
Control stringName - Name of the operator control name associated.
- 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.
- validate
Assignment 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
- 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>
- 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<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.
- is
Auto BooleanApprove During Maintenance - The boolean if true would autoApprove during maintenance.
- is
Default BooleanAssignment - Whether the assignment is a default assignment.
- is
Enforced BooleanAlways - If set, then the target resource is always governed by the operator control.
- is
Hypervisor BooleanLog Forwarded - If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server
- 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.
- op
Control StringName - Name of the operator control name associated.
- 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.
- validate
Assignment NumberTrigger
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.