Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OperatorAccessControl.getAccessRequestHistory
Explore with Pulumi AI
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)
public static Output<GetAccessRequestHistoryResult> getAccessRequestHistory(GetAccessRequestHistoryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OperatorAccessControl/getAccessRequestHistory:getAccessRequestHistory
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccessRequest stringId 
- unique AccessRequest identifier
- AccessRequest stringId 
- unique AccessRequest identifier
- accessRequest StringId 
- unique AccessRequest identifier
- accessRequest stringId 
- unique AccessRequest identifier
- access_request_ strid 
- unique AccessRequest identifier
- accessRequest StringId 
- unique AccessRequest identifier
getAccessRequestHistory Result
The following output properties are available:
- AccessRequest stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetAccess Request History Item> 
- contains AccessRequestHistorySummary
- AccessRequest stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetAccess Request History Item 
- contains AccessRequestHistorySummary
- accessRequest StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetAccess Request History Item> 
- contains AccessRequestHistorySummary
- accessRequest stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetAccess Request History Item[] 
- contains AccessRequestHistorySummary
- access_request_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetAccess Request History Item] 
- contains AccessRequestHistorySummary
- accessRequest StringId 
- 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.
- IsAuto boolApproved 
- Whether the access request was automatically approved.
- State string
- The current state of the AccessRequest.
- TimeOf stringAction 
- 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.
- IsAuto boolApproved 
- Whether the access request was automatically approved.
- State string
- The current state of the AccessRequest.
- TimeOf stringAction 
- 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.
- isAuto BooleanApproved 
- Whether the access request was automatically approved.
- state String
- The current state of the AccessRequest.
- timeOf StringAction 
- 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.
- isAuto booleanApproved 
- Whether the access request was automatically approved.
- state string
- The current state of the AccessRequest.
- timeOf stringAction 
- 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_ boolapproved 
- Whether the access request was automatically approved.
- state str
- The current state of the AccessRequest.
- time_of_ straction 
- 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.
- isAuto BooleanApproved 
- Whether the access request was automatically approved.
- state String
- The current state of the AccessRequest.
- timeOf StringAction 
- 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 ociTerraform Provider.