1. Packages
  2. Okta Provider
  3. API Docs
  4. getRequestV2
Okta v6.1.0 published on Wednesday, Oct 29, 2025 by Pulumi

okta.getRequestV2

Start a Neo task
Explain and create an okta.getRequestV2 resource
okta logo
Okta v6.1.0 published on Wednesday, Oct 29, 2025 by Pulumi

    Retrieves the full representation of a specific request.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const test = okta.getRequestV2({
        id: "<request_id>",
    });
    
    import pulumi
    import pulumi_okta as okta
    
    test = okta.get_request_v2(id="<request_id>")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := okta.LookupRequestV2(ctx, &okta.LookupRequestV2Args{
    			Id: "<request_id>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Okta.GetRequestV2.Invoke(new()
        {
            Id = "<request_id>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.OktaFunctions;
    import com.pulumi.okta.inputs.GetRequestV2Args;
    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 test = OktaFunctions.getRequestV2(GetRequestV2Args.builder()
                .id("<request_id>")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: okta:getRequestV2
          arguments:
            id: <request_id>
    

    Using getRequestV2

    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 getRequestV2(args: GetRequestV2Args, opts?: InvokeOptions): Promise<GetRequestV2Result>
    function getRequestV2Output(args: GetRequestV2OutputArgs, opts?: InvokeOptions): Output<GetRequestV2Result>
    def get_request_v2(id: Optional[str] = None,
                       requested: Optional[GetRequestV2Requested] = None,
                       requested_by: Optional[GetRequestV2RequestedBy] = None,
                       requested_for: Optional[GetRequestV2RequestedFor] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRequestV2Result
    def get_request_v2_output(id: Optional[pulumi.Input[str]] = None,
                       requested: Optional[pulumi.Input[GetRequestV2RequestedArgs]] = None,
                       requested_by: Optional[pulumi.Input[GetRequestV2RequestedByArgs]] = None,
                       requested_for: Optional[pulumi.Input[GetRequestV2RequestedForArgs]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRequestV2Result]
    func LookupRequestV2(ctx *Context, args *LookupRequestV2Args, opts ...InvokeOption) (*LookupRequestV2Result, error)
    func LookupRequestV2Output(ctx *Context, args *LookupRequestV2OutputArgs, opts ...InvokeOption) LookupRequestV2ResultOutput

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

    public static class GetRequestV2 
    {
        public static Task<GetRequestV2Result> InvokeAsync(GetRequestV2Args args, InvokeOptions? opts = null)
        public static Output<GetRequestV2Result> Invoke(GetRequestV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRequestV2Result> getRequestV2(GetRequestV2Args args, InvokeOptions options)
    public static Output<GetRequestV2Result> getRequestV2(GetRequestV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: okta:index/getRequestV2:getRequestV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the request.
    Requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    RequestedBy GetRequestV2RequestedBy
    A representation of a principal.
    RequestedFor GetRequestV2RequestedFor
    A representation of a principal.
    Id string
    The ID of the request.
    Requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    RequestedBy GetRequestV2RequestedBy
    A representation of a principal.
    RequestedFor GetRequestV2RequestedFor
    A representation of a principal.
    id String
    The ID of the request.
    requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    requestedBy GetRequestV2RequestedBy
    A representation of a principal.
    requestedFor GetRequestV2RequestedFor
    A representation of a principal.
    id string
    The ID of the request.
    requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    requestedBy GetRequestV2RequestedBy
    A representation of a principal.
    requestedFor GetRequestV2RequestedFor
    A representation of a principal.
    id str
    The ID of the request.
    requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    requested_by GetRequestV2RequestedBy
    A representation of a principal.
    requested_for GetRequestV2RequestedFor
    A representation of a principal.
    id String
    The ID of the request.
    requested Property Map
    A representation of a resource that can be requested for access.
    requestedBy Property Map
    A representation of a principal.
    requestedFor Property Map
    A representation of a principal.

    getRequestV2 Result

    The following output properties are available:

    Created string
    The date and time when the request condition was created.
    CreatedBy string
    The id of the user who created the request condition.
    Id string
    The ID of the request.
    LastUpdated string
    The date and time when the request condition was last updated.
    LastUpdatedBy string
    The id of the user who last updated the request condition.
    Status string
    The status of the request.
    Requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    RequestedBy GetRequestV2RequestedBy
    A representation of a principal.
    RequestedFor GetRequestV2RequestedFor
    A representation of a principal.
    Created string
    The date and time when the request condition was created.
    CreatedBy string
    The id of the user who created the request condition.
    Id string
    The ID of the request.
    LastUpdated string
    The date and time when the request condition was last updated.
    LastUpdatedBy string
    The id of the user who last updated the request condition.
    Status string
    The status of the request.
    Requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    RequestedBy GetRequestV2RequestedBy
    A representation of a principal.
    RequestedFor GetRequestV2RequestedFor
    A representation of a principal.
    created String
    The date and time when the request condition was created.
    createdBy String
    The id of the user who created the request condition.
    id String
    The ID of the request.
    lastUpdated String
    The date and time when the request condition was last updated.
    lastUpdatedBy String
    The id of the user who last updated the request condition.
    status String
    The status of the request.
    requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    requestedBy GetRequestV2RequestedBy
    A representation of a principal.
    requestedFor GetRequestV2RequestedFor
    A representation of a principal.
    created string
    The date and time when the request condition was created.
    createdBy string
    The id of the user who created the request condition.
    id string
    The ID of the request.
    lastUpdated string
    The date and time when the request condition was last updated.
    lastUpdatedBy string
    The id of the user who last updated the request condition.
    status string
    The status of the request.
    requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    requestedBy GetRequestV2RequestedBy
    A representation of a principal.
    requestedFor GetRequestV2RequestedFor
    A representation of a principal.
    created str
    The date and time when the request condition was created.
    created_by str
    The id of the user who created the request condition.
    id str
    The ID of the request.
    last_updated str
    The date and time when the request condition was last updated.
    last_updated_by str
    The id of the user who last updated the request condition.
    status str
    The status of the request.
    requested GetRequestV2Requested
    A representation of a resource that can be requested for access.
    requested_by GetRequestV2RequestedBy
    A representation of a principal.
    requested_for GetRequestV2RequestedFor
    A representation of a principal.
    created String
    The date and time when the request condition was created.
    createdBy String
    The id of the user who created the request condition.
    id String
    The ID of the request.
    lastUpdated String
    The date and time when the request condition was last updated.
    lastUpdatedBy String
    The id of the user who last updated the request condition.
    status String
    The status of the request.
    requested Property Map
    A representation of a resource that can be requested for access.
    requestedBy Property Map
    A representation of a principal.
    requestedFor Property Map
    A representation of a principal.

    Supporting Types

    GetRequestV2Requested

    AccessScopeId string
    The ID of the access scope associated with the resource.
    AccessScopeType string
    The access scope type.
    EntryId string
    The ID of the resource catalog entry.
    ResourceId string
    The ID of the requested resource.
    ResourceType string
    The requested resource type.
    Type string
    The type of the resource.
    AccessScopeId string
    The ID of the access scope associated with the resource.
    AccessScopeType string
    The access scope type.
    EntryId string
    The ID of the resource catalog entry.
    ResourceId string
    The ID of the requested resource.
    ResourceType string
    The requested resource type.
    Type string
    The type of the resource.
    accessScopeId String
    The ID of the access scope associated with the resource.
    accessScopeType String
    The access scope type.
    entryId String
    The ID of the resource catalog entry.
    resourceId String
    The ID of the requested resource.
    resourceType String
    The requested resource type.
    type String
    The type of the resource.
    accessScopeId string
    The ID of the access scope associated with the resource.
    accessScopeType string
    The access scope type.
    entryId string
    The ID of the resource catalog entry.
    resourceId string
    The ID of the requested resource.
    resourceType string
    The requested resource type.
    type string
    The type of the resource.
    access_scope_id str
    The ID of the access scope associated with the resource.
    access_scope_type str
    The access scope type.
    entry_id str
    The ID of the resource catalog entry.
    resource_id str
    The ID of the requested resource.
    resource_type str
    The requested resource type.
    type str
    The type of the resource.
    accessScopeId String
    The ID of the access scope associated with the resource.
    accessScopeType String
    The access scope type.
    entryId String
    The ID of the resource catalog entry.
    resourceId String
    The ID of the requested resource.
    resourceType String
    The requested resource type.
    type String
    The type of the resource.

    GetRequestV2RequestedBy

    ExternalId string
    The Okta user id.
    Type string
    The type of principal.
    ExternalId string
    The Okta user id.
    Type string
    The type of principal.
    externalId String
    The Okta user id.
    type String
    The type of principal.
    externalId string
    The Okta user id.
    type string
    The type of principal.
    external_id str
    The Okta user id.
    type str
    The type of principal.
    externalId String
    The Okta user id.
    type String
    The type of principal.

    GetRequestV2RequestedFor

    ExternalId string
    The ID of the Okta user.
    Type string
    The type of principal.
    ExternalId string
    The ID of the Okta user.
    Type string
    The type of principal.
    externalId String
    The ID of the Okta user.
    type String
    The type of principal.
    externalId string
    The ID of the Okta user.
    type string
    The type of principal.
    external_id str
    The ID of the Okta user.
    type str
    The type of principal.
    externalId String
    The ID of the Okta user.
    type String
    The type of principal.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v6.1.0 published on Wednesday, Oct 29, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate