Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OperatorAccessControl/getAccessRequestHistory:getAccessRequestHistory
arguments:
# arguments dictionary
The following arguments are supported:
- Access
Request stringId - unique AccessRequest identifier
- Access
Request stringId - unique AccessRequest identifier
- access
Request StringId - unique AccessRequest identifier
- access
Request stringId - unique AccessRequest identifier
- access_
request_ strid - unique AccessRequest identifier
- access
Request StringId - unique AccessRequest identifier
getAccessRequestHistory Result
The following output properties are available:
- Access
Request stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Access Request History Item> - contains AccessRequestHistorySummary
- Access
Request stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Access Request History Item - contains AccessRequestHistorySummary
- access
Request StringId - id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Access Request History Item> - contains AccessRequestHistorySummary
- access
Request stringId - id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Access Request History Item[] - contains AccessRequestHistorySummary
- access_
request_ strid - id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[operatoraccesscontrol.
Get Access Request History Item] - contains AccessRequestHistorySummary
- access
Request StringId - id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- contains AccessRequestHistorySummary
Supporting Types
GetAccessRequestHistoryItem
- Actions
Lists 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.
- Is
Auto boolApproved - Whether the access request was automatically approved.
- State string
- The current state of the AccessRequest.
- Time
Of stringAction - Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
- User
Id string - Approver who modified the access request.
- Actions
Lists []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.
- Is
Auto boolApproved - Whether the access request was automatically approved.
- State string
- The current state of the AccessRequest.
- Time
Of stringAction - Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
- User
Id string - Approver who modified the access request.
- actions
Lists 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.
- is
Auto BooleanApproved - Whether the access request was automatically approved.
- state String
- The current state of the AccessRequest.
- time
Of StringAction - Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
- user
Id String - Approver who modified the access request.
- actions
Lists 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.
- is
Auto booleanApproved - Whether the access request was automatically approved.
- state string
- The current state of the AccessRequest.
- time
Of stringAction - Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
- user
Id 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.
- actions
Lists 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.
- is
Auto BooleanApproved - Whether the access request was automatically approved.
- state String
- The current state of the AccessRequest.
- time
Of StringAction - Time when the respective action happened in RFC 3339timestamp format. Example: '2020-05-22T21:10:29.600Z'
- user
Id 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.