1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OperatorAccessControl
  5. getAccessRequestHistory
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.OperatorAccessControl.getAccessRequestHistory

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    Returns a history of all status associated with the accessRequestId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAccessRequestHistory = oci.OperatorAccessControl.getAccessRequestHistory({
        accessRequestId: testAccessRequest.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_access_request_history = oci.OperatorAccessControl.get_access_request_history(access_request_id=test_access_request["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.GetAccessRequestHistory(ctx, &operatoraccesscontrol.GetAccessRequestHistoryArgs{
    			AccessRequestId: testAccessRequest.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 testAccessRequestHistory = Oci.OperatorAccessControl.GetAccessRequestHistory.Invoke(new()
        {
            AccessRequestId = testAccessRequest.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.GetAccessRequestHistoryArgs;
    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 testAccessRequestHistory = OperatorAccessControlFunctions.getAccessRequestHistory(GetAccessRequestHistoryArgs.builder()
                .accessRequestId(testAccessRequest.id())
                .build());
    
        }
    }
    
    variables:
      testAccessRequestHistory:
        fn::invoke:
          Function: oci:OperatorAccessControl:getAccessRequestHistory
          Arguments:
            accessRequestId: ${testAccessRequest.id}
    

    Using getAccessRequestHistory

    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 getAccessRequestHistory(args: GetAccessRequestHistoryArgs, opts?: InvokeOptions): Promise<GetAccessRequestHistoryResult>
    function getAccessRequestHistoryOutput(args: GetAccessRequestHistoryOutputArgs, opts?: InvokeOptions): Output<GetAccessRequestHistoryResult>
    def get_access_request_history(access_request_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAccessRequestHistoryResult
    def get_access_request_history_output(access_request_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAccessRequestHistoryResult]
    func GetAccessRequestHistory(ctx *Context, args *GetAccessRequestHistoryArgs, opts ...InvokeOption) (*GetAccessRequestHistoryResult, error)
    func GetAccessRequestHistoryOutput(ctx *Context, args *GetAccessRequestHistoryOutputArgs, opts ...InvokeOption) GetAccessRequestHistoryResultOutput

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

    public static class GetAccessRequestHistory 
    {
        public static Task<GetAccessRequestHistoryResult> InvokeAsync(GetAccessRequestHistoryArgs args, InvokeOptions? opts = null)
        public static Output<GetAccessRequestHistoryResult> Invoke(GetAccessRequestHistoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccessRequestHistoryResult> getAccessRequestHistory(GetAccessRequestHistoryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OperatorAccessControl/getAccessRequestHistory:getAccessRequestHistory
      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

    getAccessRequestHistory Result

    The following output properties are available:

    AccessRequestId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetAccessRequestHistoryItem>
    contains AccessRequestHistorySummary
    AccessRequestId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetAccessRequestHistoryItem
    contains AccessRequestHistorySummary
    accessRequestId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetAccessRequestHistoryItem>
    contains AccessRequestHistorySummary
    accessRequestId string
    id string
    The provider-assigned unique ID for this managed resource.
    items GetAccessRequestHistoryItem[]
    contains AccessRequestHistorySummary
    access_request_id str
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[operatoraccesscontrol.GetAccessRequestHistoryItem]
    contains AccessRequestHistorySummary
    accessRequestId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    contains AccessRequestHistorySummary

    Supporting Types

    GetAccessRequestHistoryItem

    ActionsLists List<string>
    List of operator actions for which approvals were requested by the operator.
    Description string
    Reason or description about the cause of change.
    Duration int
    Duration for approval of request or extension depending on the type of action.
    IsAutoApproved bool
    Whether the access request was automatically approved.
    State string
    The current state of the AccessRequest.
    TimeOfAction string
    Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
    UserId string
    Approver who modified the access request.
    ActionsLists []string
    List of operator actions for which approvals were requested by the operator.
    Description string
    Reason or description about the cause of change.
    Duration int
    Duration for approval of request or extension depending on the type of action.
    IsAutoApproved bool
    Whether the access request was automatically approved.
    State string
    The current state of the AccessRequest.
    TimeOfAction string
    Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
    UserId string
    Approver who modified the access request.
    actionsLists List<String>
    List of operator actions for which approvals were requested by the operator.
    description String
    Reason or description about the cause of change.
    duration Integer
    Duration for approval of request or extension depending on the type of action.
    isAutoApproved Boolean
    Whether the access request was automatically approved.
    state String
    The current state of the AccessRequest.
    timeOfAction String
    Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
    userId String
    Approver who modified the access request.
    actionsLists string[]
    List of operator actions for which approvals were requested by the operator.
    description string
    Reason or description about the cause of change.
    duration number
    Duration for approval of request or extension depending on the type of action.
    isAutoApproved boolean
    Whether the access request was automatically approved.
    state string
    The current state of the AccessRequest.
    timeOfAction string
    Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
    userId string
    Approver who modified the access request.
    actions_lists Sequence[str]
    List of operator actions for which approvals were requested by the operator.
    description str
    Reason or description about the cause of change.
    duration int
    Duration for approval of request or extension depending on the type of action.
    is_auto_approved bool
    Whether the access request was automatically approved.
    state str
    The current state of the AccessRequest.
    time_of_action str
    Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
    user_id str
    Approver who modified the access request.
    actionsLists List<String>
    List of operator actions for which approvals were requested by the operator.
    description String
    Reason or description about the cause of change.
    duration Number
    Duration for approval of request or extension depending on the type of action.
    isAutoApproved Boolean
    Whether the access request was automatically approved.
    state String
    The current state of the AccessRequest.
    timeOfAction String
    Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
    userId String
    Approver who modified the access request.

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi