1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OperatorAccessControl
  5. getAccessRequest
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

oci.OperatorAccessControl.getAccessRequest

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

    This data source provides details about a specific Access Request resource in Oracle Cloud Infrastructure Operator Access Control service.

    Gets details of an access request.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAccessRequest = Oci.OperatorAccessControl.GetAccessRequest.Invoke(new()
        {
            AccessRequestId = oci_operator_access_control_access_request.Test_access_request.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.GetAccessRequest(ctx, &operatoraccesscontrol.GetAccessRequestArgs{
    			AccessRequestId: oci_operator_access_control_access_request.Test_access_request.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.GetAccessRequestArgs;
    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 testAccessRequest = OperatorAccessControlFunctions.getAccessRequest(GetAccessRequestArgs.builder()
                .accessRequestId(oci_operator_access_control_access_request.test_access_request().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_access_request = oci.OperatorAccessControl.get_access_request(access_request_id=oci_operator_access_control_access_request["test_access_request"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAccessRequest = oci.OperatorAccessControl.getAccessRequest({
        accessRequestId: oci_operator_access_control_access_request.test_access_request.id,
    });
    
    variables:
      testAccessRequest:
        fn::invoke:
          Function: oci:OperatorAccessControl:getAccessRequest
          Arguments:
            accessRequestId: ${oci_operator_access_control_access_request.test_access_request.id}
    

    Using getAccessRequest

    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 getAccessRequest(args: GetAccessRequestArgs, opts?: InvokeOptions): Promise<GetAccessRequestResult>
    function getAccessRequestOutput(args: GetAccessRequestOutputArgs, opts?: InvokeOptions): Output<GetAccessRequestResult>
    def get_access_request(access_request_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAccessRequestResult
    def get_access_request_output(access_request_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAccessRequestResult]
    func GetAccessRequest(ctx *Context, args *GetAccessRequestArgs, opts ...InvokeOption) (*GetAccessRequestResult, error)
    func GetAccessRequestOutput(ctx *Context, args *GetAccessRequestOutputArgs, opts ...InvokeOption) GetAccessRequestResultOutput

    > Note: This function is named GetAccessRequest in the Go SDK.

    public static class GetAccessRequest 
    {
        public static Task<GetAccessRequestResult> InvokeAsync(GetAccessRequestArgs args, InvokeOptions? opts = null)
        public static Output<GetAccessRequestResult> Invoke(GetAccessRequestInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccessRequestResult> getAccessRequest(GetAccessRequestArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OperatorAccessControl/getAccessRequest:getAccessRequest
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccessRequestId string

    unique AccessRequest identifier

    AccessRequestId string

    unique AccessRequest identifier

    accessRequestId String

    unique AccessRequest identifier

    accessRequestId string

    unique AccessRequest identifier

    access_request_id str

    unique AccessRequest identifier

    accessRequestId String

    unique AccessRequest identifier

    getAccessRequest Result

    The following output properties are available:

    AccessReasonSummary string

    Summary comment by the operator creating the access request.

    AccessRequestId string
    ActionRequestsLists List<string>

    List of operator actions for which approval is sought by the operator user.

    ApproverComment string

    The last recent Comment entered by the approver of the request.

    AuditTypes List<string>

    Specifies the type of auditing to be enabled. There are two levels of auditing: command-level and keystroke-level. By default, auditing is enabled at the command level i.e., each command issued by the operator is audited. When keystroke-level is chosen, in addition to command level logging, key strokes are also logged.

    ClosureComment string

    The comment entered by the operator while closing the request.

    CompartmentId string

    The OCID of the compartment that contains the access request.

    DefinedTags Dictionary<string, object>

    Defined tags for this resource. Each key is predefined and scoped to a namespace.

    Duration int

    Duration in hours for which access is sought on the target resource.

    ExtendDuration int

    Duration in hours for which extension access is sought on the target resource.

    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 provider-assigned unique ID for this managed resource.

    IsAutoApproved bool

    Whether the access request was automatically approved.

    LifecycleDetails string

    more in detail about the lifeCycleState.

    OpctlAdditionalMessage string

    Additional message specific to the access request that can be specified by the approver at the time of approval.

    OpctlId string

    The OCID of the operator control governing the target resource.

    OpctlName string

    Name of the Operator control governing the target resource.

    OperatorId string

    A unique identifier associated with the operator who raised the request. This identifier can not be used directly to identify the operator. You need to provide this identifier if you would like Oracle to provide additional information about the operator action within Oracle tenancy.

    Reason string

    Summary reason for which the operator is requesting access on the target resource.

    RequestId string

    This is an automatic identifier generated by the system which is easier for human comprehension.

    ResourceId string

    The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource.

    ResourceName string

    The name of the target resource.

    ResourceType string

    resourceType for which the AccessRequest is applicable

    Severity string

    Priority assigned to the access request by the operator

    State string

    The current state of the AccessRequest.

    SubResourceLists List<string>

    The subresources requested for approval.

    SystemMessage string

    System message that will be displayed to the operator at login to the target resource.

    TimeOfCreation string

    Time when the access request was created in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    TimeOfModification string

    Time when the access request was last modified in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    TimeOfUserCreation string

    The time when access request is scheduled to be approved in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'

    UserId string

    The OCID of the user that last modified the access request.

    WorkflowIds List<string>

    The OCID of the workflow associated with the access request. This is needed if you want to contact Oracle Support for a stuck access request or for an access request that encounters an internal error.

    AccessReasonSummary string

    Summary comment by the operator creating the access request.

    AccessRequestId string
    ActionRequestsLists []string

    List of operator actions for which approval is sought by the operator user.

    ApproverComment string

    The last recent Comment entered by the approver of the request.

    AuditTypes []string

    Specifies the type of auditing to be enabled. There are two levels of auditing: command-level and keystroke-level. By default, auditing is enabled at the command level i.e., each command issued by the operator is audited. When keystroke-level is chosen, in addition to command level logging, key strokes are also logged.

    ClosureComment string

    The comment entered by the operator while closing the request.

    CompartmentId string

    The OCID of the compartment that contains the access request.

    DefinedTags map[string]interface{}

    Defined tags for this resource. Each key is predefined and scoped to a namespace.

    Duration int

    Duration in hours for which access is sought on the target resource.

    ExtendDuration int

    Duration in hours for which extension access is sought on the target resource.

    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 provider-assigned unique ID for this managed resource.

    IsAutoApproved bool

    Whether the access request was automatically approved.

    LifecycleDetails string

    more in detail about the lifeCycleState.

    OpctlAdditionalMessage string

    Additional message specific to the access request that can be specified by the approver at the time of approval.

    OpctlId string

    The OCID of the operator control governing the target resource.

    OpctlName string

    Name of the Operator control governing the target resource.

    OperatorId string

    A unique identifier associated with the operator who raised the request. This identifier can not be used directly to identify the operator. You need to provide this identifier if you would like Oracle to provide additional information about the operator action within Oracle tenancy.

    Reason string

    Summary reason for which the operator is requesting access on the target resource.

    RequestId string

    This is an automatic identifier generated by the system which is easier for human comprehension.

    ResourceId string

    The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource.

    ResourceName string

    The name of the target resource.

    ResourceType string

    resourceType for which the AccessRequest is applicable

    Severity string

    Priority assigned to the access request by the operator

    State string

    The current state of the AccessRequest.

    SubResourceLists []string

    The subresources requested for approval.

    SystemMessage string

    System message that will be displayed to the operator at login to the target resource.

    TimeOfCreation string

    Time when the access request was created in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    TimeOfModification string

    Time when the access request was last modified in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    TimeOfUserCreation string

    The time when access request is scheduled to be approved in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'

    UserId string

    The OCID of the user that last modified the access request.

    WorkflowIds []string

    The OCID of the workflow associated with the access request. This is needed if you want to contact Oracle Support for a stuck access request or for an access request that encounters an internal error.

    accessReasonSummary String

    Summary comment by the operator creating the access request.

    accessRequestId String
    actionRequestsLists List<String>

    List of operator actions for which approval is sought by the operator user.

    approverComment String

    The last recent Comment entered by the approver of the request.

    auditTypes List<String>

    Specifies the type of auditing to be enabled. There are two levels of auditing: command-level and keystroke-level. By default, auditing is enabled at the command level i.e., each command issued by the operator is audited. When keystroke-level is chosen, in addition to command level logging, key strokes are also logged.

    closureComment String

    The comment entered by the operator while closing the request.

    compartmentId String

    The OCID of the compartment that contains the access request.

    definedTags Map<String,Object>

    Defined tags for this resource. Each key is predefined and scoped to a namespace.

    duration Integer

    Duration in hours for which access is sought on the target resource.

    extendDuration Integer

    Duration in hours for which extension access is sought on the target resource.

    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 provider-assigned unique ID for this managed resource.

    isAutoApproved Boolean

    Whether the access request was automatically approved.

    lifecycleDetails String

    more in detail about the lifeCycleState.

    opctlAdditionalMessage String

    Additional message specific to the access request that can be specified by the approver at the time of approval.

    opctlId String

    The OCID of the operator control governing the target resource.

    opctlName String

    Name of the Operator control governing the target resource.

    operatorId String

    A unique identifier associated with the operator who raised the request. This identifier can not be used directly to identify the operator. You need to provide this identifier if you would like Oracle to provide additional information about the operator action within Oracle tenancy.

    reason String

    Summary reason for which the operator is requesting access on the target resource.

    requestId String

    This is an automatic identifier generated by the system which is easier for human comprehension.

    resourceId String

    The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource.

    resourceName String

    The name of the target resource.

    resourceType String

    resourceType for which the AccessRequest is applicable

    severity String

    Priority assigned to the access request by the operator

    state String

    The current state of the AccessRequest.

    subResourceLists List<String>

    The subresources requested for approval.

    systemMessage String

    System message that will be displayed to the operator at login to the target resource.

    timeOfCreation String

    Time when the access request was created in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    timeOfModification String

    Time when the access request was last modified in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    timeOfUserCreation String

    The time when access request is scheduled to be approved in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'

    userId String

    The OCID of the user that last modified the access request.

    workflowIds List<String>

    The OCID of the workflow associated with the access request. This is needed if you want to contact Oracle Support for a stuck access request or for an access request that encounters an internal error.

    accessReasonSummary string

    Summary comment by the operator creating the access request.

    accessRequestId string
    actionRequestsLists string[]

    List of operator actions for which approval is sought by the operator user.

    approverComment string

    The last recent Comment entered by the approver of the request.

    auditTypes string[]

    Specifies the type of auditing to be enabled. There are two levels of auditing: command-level and keystroke-level. By default, auditing is enabled at the command level i.e., each command issued by the operator is audited. When keystroke-level is chosen, in addition to command level logging, key strokes are also logged.

    closureComment string

    The comment entered by the operator while closing the request.

    compartmentId string

    The OCID of the compartment that contains the access request.

    definedTags {[key: string]: any}

    Defined tags for this resource. Each key is predefined and scoped to a namespace.

    duration number

    Duration in hours for which access is sought on the target resource.

    extendDuration number

    Duration in hours for which extension access is sought on the target resource.

    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 provider-assigned unique ID for this managed resource.

    isAutoApproved boolean

    Whether the access request was automatically approved.

    lifecycleDetails string

    more in detail about the lifeCycleState.

    opctlAdditionalMessage string

    Additional message specific to the access request that can be specified by the approver at the time of approval.

    opctlId string

    The OCID of the operator control governing the target resource.

    opctlName string

    Name of the Operator control governing the target resource.

    operatorId string

    A unique identifier associated with the operator who raised the request. This identifier can not be used directly to identify the operator. You need to provide this identifier if you would like Oracle to provide additional information about the operator action within Oracle tenancy.

    reason string

    Summary reason for which the operator is requesting access on the target resource.

    requestId string

    This is an automatic identifier generated by the system which is easier for human comprehension.

    resourceId string

    The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource.

    resourceName string

    The name of the target resource.

    resourceType string

    resourceType for which the AccessRequest is applicable

    severity string

    Priority assigned to the access request by the operator

    state string

    The current state of the AccessRequest.

    subResourceLists string[]

    The subresources requested for approval.

    systemMessage string

    System message that will be displayed to the operator at login to the target resource.

    timeOfCreation string

    Time when the access request was created in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    timeOfModification string

    Time when the access request was last modified in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    timeOfUserCreation string

    The time when access request is scheduled to be approved in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'

    userId string

    The OCID of the user that last modified the access request.

    workflowIds string[]

    The OCID of the workflow associated with the access request. This is needed if you want to contact Oracle Support for a stuck access request or for an access request that encounters an internal error.

    access_reason_summary str

    Summary comment by the operator creating the access request.

    access_request_id str
    action_requests_lists Sequence[str]

    List of operator actions for which approval is sought by the operator user.

    approver_comment str

    The last recent Comment entered by the approver of the request.

    audit_types Sequence[str]

    Specifies the type of auditing to be enabled. There are two levels of auditing: command-level and keystroke-level. By default, auditing is enabled at the command level i.e., each command issued by the operator is audited. When keystroke-level is chosen, in addition to command level logging, key strokes are also logged.

    closure_comment str

    The comment entered by the operator while closing the request.

    compartment_id str

    The OCID of the compartment that contains the access request.

    defined_tags Mapping[str, Any]

    Defined tags for this resource. Each key is predefined and scoped to a namespace.

    duration int

    Duration in hours for which access is sought on the target resource.

    extend_duration int

    Duration in hours for which extension access is sought on the target resource.

    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 provider-assigned unique ID for this managed resource.

    is_auto_approved bool

    Whether the access request was automatically approved.

    lifecycle_details str

    more in detail about the lifeCycleState.

    opctl_additional_message str

    Additional message specific to the access request that can be specified by the approver at the time of approval.

    opctl_id str

    The OCID of the operator control governing the target resource.

    opctl_name str

    Name of the Operator control governing the target resource.

    operator_id str

    A unique identifier associated with the operator who raised the request. This identifier can not be used directly to identify the operator. You need to provide this identifier if you would like Oracle to provide additional information about the operator action within Oracle tenancy.

    reason str

    Summary reason for which the operator is requesting access on the target resource.

    request_id str

    This is an automatic identifier generated by the system which is easier for human comprehension.

    resource_id str

    The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource.

    resource_name str

    The name of the target resource.

    resource_type str

    resourceType for which the AccessRequest is applicable

    severity str

    Priority assigned to the access request by the operator

    state str

    The current state of the AccessRequest.

    sub_resource_lists Sequence[str]

    The subresources requested for approval.

    system_message str

    System message that will be displayed to the operator at login to the target resource.

    time_of_creation str

    Time when the access request was created in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    time_of_modification str

    Time when the access request was last modified in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    time_of_user_creation str

    The time when access request is scheduled to be approved in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'

    user_id str

    The OCID of the user that last modified the access request.

    workflow_ids Sequence[str]

    The OCID of the workflow associated with the access request. This is needed if you want to contact Oracle Support for a stuck access request or for an access request that encounters an internal error.

    accessReasonSummary String

    Summary comment by the operator creating the access request.

    accessRequestId String
    actionRequestsLists List<String>

    List of operator actions for which approval is sought by the operator user.

    approverComment String

    The last recent Comment entered by the approver of the request.

    auditTypes List<String>

    Specifies the type of auditing to be enabled. There are two levels of auditing: command-level and keystroke-level. By default, auditing is enabled at the command level i.e., each command issued by the operator is audited. When keystroke-level is chosen, in addition to command level logging, key strokes are also logged.

    closureComment String

    The comment entered by the operator while closing the request.

    compartmentId String

    The OCID of the compartment that contains the access request.

    definedTags Map<Any>

    Defined tags for this resource. Each key is predefined and scoped to a namespace.

    duration Number

    Duration in hours for which access is sought on the target resource.

    extendDuration Number

    Duration in hours for which extension access is sought on the target resource.

    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 provider-assigned unique ID for this managed resource.

    isAutoApproved Boolean

    Whether the access request was automatically approved.

    lifecycleDetails String

    more in detail about the lifeCycleState.

    opctlAdditionalMessage String

    Additional message specific to the access request that can be specified by the approver at the time of approval.

    opctlId String

    The OCID of the operator control governing the target resource.

    opctlName String

    Name of the Operator control governing the target resource.

    operatorId String

    A unique identifier associated with the operator who raised the request. This identifier can not be used directly to identify the operator. You need to provide this identifier if you would like Oracle to provide additional information about the operator action within Oracle tenancy.

    reason String

    Summary reason for which the operator is requesting access on the target resource.

    requestId String

    This is an automatic identifier generated by the system which is easier for human comprehension.

    resourceId String

    The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource.

    resourceName String

    The name of the target resource.

    resourceType String

    resourceType for which the AccessRequest is applicable

    severity String

    Priority assigned to the access request by the operator

    state String

    The current state of the AccessRequest.

    subResourceLists List<String>

    The subresources requested for approval.

    systemMessage String

    System message that will be displayed to the operator at login to the target resource.

    timeOfCreation String

    Time when the access request was created in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    timeOfModification String

    Time when the access request was last modified in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'

    timeOfUserCreation String

    The time when access request is scheduled to be approved in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'

    userId String

    The OCID of the user that last modified the access request.

    workflowIds List<String>

    The OCID of the workflow associated with the access request. This is needed if you want to contact Oracle Support for a stuck access request or for an access request that encounters an internal error.

    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.16.1 published on Wednesday, Nov 22, 2023 by Pulumi