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

oci.DelegateAccessControl.getDelegatedResourceAccessRequestHistories

Explore with Pulumi AI

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

    This data source provides the list of Delegated Resource Access Request Histories in Oracle Cloud Infrastructure Delegate Access Control service.

    Returns a history of all status associated with the Delegated Resource Access RequestId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDelegatedResourceAccessRequestHistories = oci.DelegateAccessControl.getDelegatedResourceAccessRequestHistories({
        delegatedResourceAccessRequestId: testDelegatedResourceAccessRequest.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_delegated_resource_access_request_histories = oci.DelegateAccessControl.get_delegated_resource_access_request_histories(delegated_resource_access_request_id=test_delegated_resource_access_request["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DelegateAccessControl"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DelegateAccessControl.GetDelegatedResourceAccessRequestHistories(ctx, &delegateaccesscontrol.GetDelegatedResourceAccessRequestHistoriesArgs{
    			DelegatedResourceAccessRequestId: testDelegatedResourceAccessRequest.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 testDelegatedResourceAccessRequestHistories = Oci.DelegateAccessControl.GetDelegatedResourceAccessRequestHistories.Invoke(new()
        {
            DelegatedResourceAccessRequestId = testDelegatedResourceAccessRequest.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DelegateAccessControl.DelegateAccessControlFunctions;
    import com.pulumi.oci.DelegateAccessControl.inputs.GetDelegatedResourceAccessRequestHistoriesArgs;
    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 testDelegatedResourceAccessRequestHistories = DelegateAccessControlFunctions.getDelegatedResourceAccessRequestHistories(GetDelegatedResourceAccessRequestHistoriesArgs.builder()
                .delegatedResourceAccessRequestId(testDelegatedResourceAccessRequest.id())
                .build());
    
        }
    }
    
    variables:
      testDelegatedResourceAccessRequestHistories:
        fn::invoke:
          Function: oci:DelegateAccessControl:getDelegatedResourceAccessRequestHistories
          Arguments:
            delegatedResourceAccessRequestId: ${testDelegatedResourceAccessRequest.id}
    

    Using getDelegatedResourceAccessRequestHistories

    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 getDelegatedResourceAccessRequestHistories(args: GetDelegatedResourceAccessRequestHistoriesArgs, opts?: InvokeOptions): Promise<GetDelegatedResourceAccessRequestHistoriesResult>
    function getDelegatedResourceAccessRequestHistoriesOutput(args: GetDelegatedResourceAccessRequestHistoriesOutputArgs, opts?: InvokeOptions): Output<GetDelegatedResourceAccessRequestHistoriesResult>
    def get_delegated_resource_access_request_histories(delegated_resource_access_request_id: Optional[str] = None,
                                                        filters: Optional[Sequence[_delegateaccesscontrol.GetDelegatedResourceAccessRequestHistoriesFilter]] = None,
                                                        opts: Optional[InvokeOptions] = None) -> GetDelegatedResourceAccessRequestHistoriesResult
    def get_delegated_resource_access_request_histories_output(delegated_resource_access_request_id: Optional[pulumi.Input[str]] = None,
                                                        filters: Optional[pulumi.Input[Sequence[pulumi.Input[_delegateaccesscontrol.GetDelegatedResourceAccessRequestHistoriesFilterArgs]]]] = None,
                                                        opts: Optional[InvokeOptions] = None) -> Output[GetDelegatedResourceAccessRequestHistoriesResult]
    func GetDelegatedResourceAccessRequestHistories(ctx *Context, args *GetDelegatedResourceAccessRequestHistoriesArgs, opts ...InvokeOption) (*GetDelegatedResourceAccessRequestHistoriesResult, error)
    func GetDelegatedResourceAccessRequestHistoriesOutput(ctx *Context, args *GetDelegatedResourceAccessRequestHistoriesOutputArgs, opts ...InvokeOption) GetDelegatedResourceAccessRequestHistoriesResultOutput

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

    public static class GetDelegatedResourceAccessRequestHistories 
    {
        public static Task<GetDelegatedResourceAccessRequestHistoriesResult> InvokeAsync(GetDelegatedResourceAccessRequestHistoriesArgs args, InvokeOptions? opts = null)
        public static Output<GetDelegatedResourceAccessRequestHistoriesResult> Invoke(GetDelegatedResourceAccessRequestHistoriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDelegatedResourceAccessRequestHistoriesResult> getDelegatedResourceAccessRequestHistories(GetDelegatedResourceAccessRequestHistoriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DelegateAccessControl/getDelegatedResourceAccessRequestHistories:getDelegatedResourceAccessRequestHistories
      arguments:
        # arguments dictionary

    The following arguments are supported:

    delegatedResourceAccessRequestId String
    Unique Delegated Resource Access Request identifier
    filters List<Property Map>

    getDelegatedResourceAccessRequestHistories Result

    The following output properties are available:

    delegatedResourceAccessRequestHistoryCollections List<Property Map>
    The list of delegated_resource_access_request_history_collection.
    delegatedResourceAccessRequestId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetDelegatedResourceAccessRequestHistoriesDelegatedResourceAccessRequestHistoryCollection

    items List<Property Map>
    List of DelegatedResourceAccessRequestHistorySummary objects.

    GetDelegatedResourceAccessRequestHistoriesDelegatedResourceAccessRequestHistoryCollectionItem

    Comment string
    Comment about the status change.
    RequestStatus string
    The current status of the Delegated Resource Access Request.
    State string
    The current lifecycle state of the Delegated Resource Access Request.
    Timestamp string
    Time when the respective action happened in RFC 3339timestamp format, e.g. '2020-05-22T21:10:29.600Z'.
    UserId string
    ID of user who modified the Delegated Resource Access Request. For operator, this field is "Operator".
    Comment string
    Comment about the status change.
    RequestStatus string
    The current status of the Delegated Resource Access Request.
    State string
    The current lifecycle state of the Delegated Resource Access Request.
    Timestamp string
    Time when the respective action happened in RFC 3339timestamp format, e.g. '2020-05-22T21:10:29.600Z'.
    UserId string
    ID of user who modified the Delegated Resource Access Request. For operator, this field is "Operator".
    comment String
    Comment about the status change.
    requestStatus String
    The current status of the Delegated Resource Access Request.
    state String
    The current lifecycle state of the Delegated Resource Access Request.
    timestamp String
    Time when the respective action happened in RFC 3339timestamp format, e.g. '2020-05-22T21:10:29.600Z'.
    userId String
    ID of user who modified the Delegated Resource Access Request. For operator, this field is "Operator".
    comment string
    Comment about the status change.
    requestStatus string
    The current status of the Delegated Resource Access Request.
    state string
    The current lifecycle state of the Delegated Resource Access Request.
    timestamp string
    Time when the respective action happened in RFC 3339timestamp format, e.g. '2020-05-22T21:10:29.600Z'.
    userId string
    ID of user who modified the Delegated Resource Access Request. For operator, this field is "Operator".
    comment str
    Comment about the status change.
    request_status str
    The current status of the Delegated Resource Access Request.
    state str
    The current lifecycle state of the Delegated Resource Access Request.
    timestamp str
    Time when the respective action happened in RFC 3339timestamp format, e.g. '2020-05-22T21:10:29.600Z'.
    user_id str
    ID of user who modified the Delegated Resource Access Request. For operator, this field is "Operator".
    comment String
    Comment about the status change.
    requestStatus String
    The current status of the Delegated Resource Access Request.
    state String
    The current lifecycle state of the Delegated Resource Access Request.
    timestamp String
    Time when the respective action happened in RFC 3339timestamp format, e.g. '2020-05-22T21:10:29.600Z'.
    userId String
    ID of user who modified the Delegated Resource Access Request. For operator, this field is "Operator".

    GetDelegatedResourceAccessRequestHistoriesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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