1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OperatorAccessControl
  5. getAccessRequestHistory
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.OperatorAccessControl.getAccessRequestHistory

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 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,
});
Copy
import pulumi
import pulumi_oci as oci

test_access_request_history = oci.OperatorAccessControl.get_access_request_history(access_request_id=test_access_request["id"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testAccessRequestHistory:
    fn::invoke:
      function: oci:OperatorAccessControl:getAccessRequestHistory
      arguments:
        accessRequestId: ${testAccessRequest.id}
Copy

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>
Copy
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]
Copy
func GetAccessRequestHistory(ctx *Context, args *GetAccessRequestHistoryArgs, opts ...InvokeOption) (*GetAccessRequestHistoryResult, error)
func GetAccessRequestHistoryOutput(ctx *Context, args *GetAccessRequestHistoryOutputArgs, opts ...InvokeOption) GetAccessRequestHistoryResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAccessRequestHistoryResult> getAccessRequestHistory(GetAccessRequestHistoryArgs args, InvokeOptions options)
public static Output<GetAccessRequestHistoryResult> getAccessRequestHistory(GetAccessRequestHistoryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OperatorAccessControl/getAccessRequestHistory:getAccessRequestHistory
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccessRequestId This property is required. string
unique AccessRequest identifier
AccessRequestId This property is required. string
unique AccessRequest identifier
accessRequestId This property is required. String
unique AccessRequest identifier
accessRequestId This property is required. string
unique AccessRequest identifier
access_request_id This property is required. str
unique AccessRequest identifier
accessRequestId This property is required. 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 This property is required. List<string>
List of operator actions for which approvals were requested by the operator.
Description This property is required. string
Reason or description about the cause of change.
Duration This property is required. int
Duration for approval of request or extension depending on the type of action.
IsAutoApproved This property is required. bool
Whether the access request was automatically approved.
State This property is required. string
The current state of the AccessRequest.
TimeOfAction This property is required. string
Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
UserId This property is required. string
Approver who modified the access request.
ActionsLists This property is required. []string
List of operator actions for which approvals were requested by the operator.
Description This property is required. string
Reason or description about the cause of change.
Duration This property is required. int
Duration for approval of request or extension depending on the type of action.
IsAutoApproved This property is required. bool
Whether the access request was automatically approved.
State This property is required. string
The current state of the AccessRequest.
TimeOfAction This property is required. string
Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
UserId This property is required. string
Approver who modified the access request.
actionsLists This property is required. List<String>
List of operator actions for which approvals were requested by the operator.
description This property is required. String
Reason or description about the cause of change.
duration This property is required. Integer
Duration for approval of request or extension depending on the type of action.
isAutoApproved This property is required. Boolean
Whether the access request was automatically approved.
state This property is required. String
The current state of the AccessRequest.
timeOfAction This property is required. String
Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
userId This property is required. String
Approver who modified the access request.
actionsLists This property is required. string[]
List of operator actions for which approvals were requested by the operator.
description This property is required. string
Reason or description about the cause of change.
duration This property is required. number
Duration for approval of request or extension depending on the type of action.
isAutoApproved This property is required. boolean
Whether the access request was automatically approved.
state This property is required. string
The current state of the AccessRequest.
timeOfAction This property is required. string
Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
userId This property is required. string
Approver who modified the access request.
actions_lists This property is required. Sequence[str]
List of operator actions for which approvals were requested by the operator.
description This property is required. str
Reason or description about the cause of change.
duration This property is required. int
Duration for approval of request or extension depending on the type of action.
is_auto_approved This property is required. bool
Whether the access request was automatically approved.
state This property is required. str
The current state of the AccessRequest.
time_of_action This property is required. str
Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
user_id This property is required. str
Approver who modified the access request.
actionsLists This property is required. List<String>
List of operator actions for which approvals were requested by the operator.
description This property is required. String
Reason or description about the cause of change.
duration This property is required. Number
Duration for approval of request or extension depending on the type of action.
isAutoApproved This property is required. Boolean
Whether the access request was automatically approved.
state This property is required. String
The current state of the AccessRequest.
timeOfAction This property is required. String
Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
userId This property is required. 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.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi