1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getPsaPsaWorkRequest
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi

    This data source provides details about a specific Psa Work Request resource in Oracle Cloud Infrastructure Psa service.

    Gets the details of a PrivateServiceAccess work request.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPsaWorkRequest = oci.oci.getPsaPsaWorkRequest({
        workRequestId: testPsaWorkRequestOciPsaPsaWorkRequest.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_psa_work_request = oci.oci.get_psa_psa_work_request(work_request_id=test_psa_work_request_oci_psa_psa_work_request["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetPsaPsaWorkRequest(ctx, &oci.GetPsaPsaWorkRequestArgs{
    			WorkRequestId: testPsaWorkRequestOciPsaPsaWorkRequest.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 testPsaWorkRequest = Oci.Oci.GetPsaPsaWorkRequest.Invoke(new()
        {
            WorkRequestId = testPsaWorkRequestOciPsaPsaWorkRequest.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetPsaPsaWorkRequestArgs;
    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 testPsaWorkRequest = OciFunctions.getPsaPsaWorkRequest(GetPsaPsaWorkRequestArgs.builder()
                .workRequestId(testPsaWorkRequestOciPsaPsaWorkRequest.id())
                .build());
    
        }
    }
    
    variables:
      testPsaWorkRequest:
        fn::invoke:
          function: oci:oci:getPsaPsaWorkRequest
          arguments:
            workRequestId: ${testPsaWorkRequestOciPsaPsaWorkRequest.id}
    

    Using getPsaPsaWorkRequest

    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 getPsaPsaWorkRequest(args: GetPsaPsaWorkRequestArgs, opts?: InvokeOptions): Promise<GetPsaPsaWorkRequestResult>
    function getPsaPsaWorkRequestOutput(args: GetPsaPsaWorkRequestOutputArgs, opts?: InvokeOptions): Output<GetPsaPsaWorkRequestResult>
    def get_psa_psa_work_request(work_request_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetPsaPsaWorkRequestResult
    def get_psa_psa_work_request_output(work_request_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetPsaPsaWorkRequestResult]
    func GetPsaPsaWorkRequest(ctx *Context, args *GetPsaPsaWorkRequestArgs, opts ...InvokeOption) (*GetPsaPsaWorkRequestResult, error)
    func GetPsaPsaWorkRequestOutput(ctx *Context, args *GetPsaPsaWorkRequestOutputArgs, opts ...InvokeOption) GetPsaPsaWorkRequestResultOutput

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

    public static class GetPsaPsaWorkRequest 
    {
        public static Task<GetPsaPsaWorkRequestResult> InvokeAsync(GetPsaPsaWorkRequestArgs args, InvokeOptions? opts = null)
        public static Output<GetPsaPsaWorkRequestResult> Invoke(GetPsaPsaWorkRequestInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPsaPsaWorkRequestResult> getPsaPsaWorkRequest(GetPsaPsaWorkRequestArgs args, InvokeOptions options)
    public static Output<GetPsaPsaWorkRequestResult> getPsaPsaWorkRequest(GetPsaPsaWorkRequestArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getPsaPsaWorkRequest:getPsaPsaWorkRequest
      arguments:
        # arguments dictionary

    The following arguments are supported:

    WorkRequestId string
    The OCID of the asynchronous work request.
    WorkRequestId string
    The OCID of the asynchronous work request.
    workRequestId String
    The OCID of the asynchronous work request.
    workRequestId string
    The OCID of the asynchronous work request.
    work_request_id str
    The OCID of the asynchronous work request.
    workRequestId String
    The OCID of the asynchronous work request.

    getPsaPsaWorkRequest Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains the work request.
    Id string
    The provider-assigned unique ID for this managed resource.
    OperationType string
    The asynchronous operation tracked by this work request.
    PercentComplete double
    Shows the progress of the operation tracked by the work request, as a percentage of the total work that must be performed.
    Resources List<GetPsaPsaWorkRequestResource>
    The resources that are affected by the work request.
    Status string
    The status of the work request.
    TimeAccepted string
    The date and time the work request was created, in the format defined by RFC 3339.
    TimeFinished string
    The date and time the work request was finished, in the format defined by RFC 3339.
    TimeStarted string
    The date and time the work request was started, in the format defined by RFC 3339.
    TimeUpdated string
    The date and time the work request was updated, in the format defined by RFC 3339.
    WorkRequestId string
    CompartmentId string
    The OCID of the compartment that contains the work request.
    Id string
    The provider-assigned unique ID for this managed resource.
    OperationType string
    The asynchronous operation tracked by this work request.
    PercentComplete float64
    Shows the progress of the operation tracked by the work request, as a percentage of the total work that must be performed.
    Resources []GetPsaPsaWorkRequestResource
    The resources that are affected by the work request.
    Status string
    The status of the work request.
    TimeAccepted string
    The date and time the work request was created, in the format defined by RFC 3339.
    TimeFinished string
    The date and time the work request was finished, in the format defined by RFC 3339.
    TimeStarted string
    The date and time the work request was started, in the format defined by RFC 3339.
    TimeUpdated string
    The date and time the work request was updated, in the format defined by RFC 3339.
    WorkRequestId string
    compartmentId String
    The OCID of the compartment that contains the work request.
    id String
    The provider-assigned unique ID for this managed resource.
    operationType String
    The asynchronous operation tracked by this work request.
    percentComplete Double
    Shows the progress of the operation tracked by the work request, as a percentage of the total work that must be performed.
    resources List<GetPsaPsaWorkRequestResource>
    The resources that are affected by the work request.
    status String
    The status of the work request.
    timeAccepted String
    The date and time the work request was created, in the format defined by RFC 3339.
    timeFinished String
    The date and time the work request was finished, in the format defined by RFC 3339.
    timeStarted String
    The date and time the work request was started, in the format defined by RFC 3339.
    timeUpdated String
    The date and time the work request was updated, in the format defined by RFC 3339.
    workRequestId String
    compartmentId string
    The OCID of the compartment that contains the work request.
    id string
    The provider-assigned unique ID for this managed resource.
    operationType string
    The asynchronous operation tracked by this work request.
    percentComplete number
    Shows the progress of the operation tracked by the work request, as a percentage of the total work that must be performed.
    resources GetPsaPsaWorkRequestResource[]
    The resources that are affected by the work request.
    status string
    The status of the work request.
    timeAccepted string
    The date and time the work request was created, in the format defined by RFC 3339.
    timeFinished string
    The date and time the work request was finished, in the format defined by RFC 3339.
    timeStarted string
    The date and time the work request was started, in the format defined by RFC 3339.
    timeUpdated string
    The date and time the work request was updated, in the format defined by RFC 3339.
    workRequestId string
    compartment_id str
    The OCID of the compartment that contains the work request.
    id str
    The provider-assigned unique ID for this managed resource.
    operation_type str
    The asynchronous operation tracked by this work request.
    percent_complete float
    Shows the progress of the operation tracked by the work request, as a percentage of the total work that must be performed.
    resources Sequence[GetPsaPsaWorkRequestResource]
    The resources that are affected by the work request.
    status str
    The status of the work request.
    time_accepted str
    The date and time the work request was created, in the format defined by RFC 3339.
    time_finished str
    The date and time the work request was finished, in the format defined by RFC 3339.
    time_started str
    The date and time the work request was started, in the format defined by RFC 3339.
    time_updated str
    The date and time the work request was updated, in the format defined by RFC 3339.
    work_request_id str
    compartmentId String
    The OCID of the compartment that contains the work request.
    id String
    The provider-assigned unique ID for this managed resource.
    operationType String
    The asynchronous operation tracked by this work request.
    percentComplete Number
    Shows the progress of the operation tracked by the work request, as a percentage of the total work that must be performed.
    resources List<Property Map>
    The resources that are affected by the work request.
    status String
    The status of the work request.
    timeAccepted String
    The date and time the work request was created, in the format defined by RFC 3339.
    timeFinished String
    The date and time the work request was finished, in the format defined by RFC 3339.
    timeStarted String
    The date and time the work request was started, in the format defined by RFC 3339.
    timeUpdated String
    The date and time the work request was updated, in the format defined by RFC 3339.
    workRequestId String

    Supporting Types

    GetPsaPsaWorkRequestResource

    ActionType string
    The way in which this resource is affected by the operation tracked in the work request. A resource being created, updated, or deleted remains in the IN_PROGRESS state until work is complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, respectively.
    EntityType string
    The resource type that the work request affects.
    EntityUri string
    The URI path that you can use for a GET request to access the resource metadata.
    Identifier string
    An OCID or other unique identifier for the resource.
    Metadata Dictionary<string, string>
    Additional information that helps to explain the resource.
    ActionType string
    The way in which this resource is affected by the operation tracked in the work request. A resource being created, updated, or deleted remains in the IN_PROGRESS state until work is complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, respectively.
    EntityType string
    The resource type that the work request affects.
    EntityUri string
    The URI path that you can use for a GET request to access the resource metadata.
    Identifier string
    An OCID or other unique identifier for the resource.
    Metadata map[string]string
    Additional information that helps to explain the resource.
    actionType String
    The way in which this resource is affected by the operation tracked in the work request. A resource being created, updated, or deleted remains in the IN_PROGRESS state until work is complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, respectively.
    entityType String
    The resource type that the work request affects.
    entityUri String
    The URI path that you can use for a GET request to access the resource metadata.
    identifier String
    An OCID or other unique identifier for the resource.
    metadata Map<String,String>
    Additional information that helps to explain the resource.
    actionType string
    The way in which this resource is affected by the operation tracked in the work request. A resource being created, updated, or deleted remains in the IN_PROGRESS state until work is complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, respectively.
    entityType string
    The resource type that the work request affects.
    entityUri string
    The URI path that you can use for a GET request to access the resource metadata.
    identifier string
    An OCID or other unique identifier for the resource.
    metadata {[key: string]: string}
    Additional information that helps to explain the resource.
    action_type str
    The way in which this resource is affected by the operation tracked in the work request. A resource being created, updated, or deleted remains in the IN_PROGRESS state until work is complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, respectively.
    entity_type str
    The resource type that the work request affects.
    entity_uri str
    The URI path that you can use for a GET request to access the resource metadata.
    identifier str
    An OCID or other unique identifier for the resource.
    metadata Mapping[str, str]
    Additional information that helps to explain the resource.
    actionType String
    The way in which this resource is affected by the operation tracked in the work request. A resource being created, updated, or deleted remains in the IN_PROGRESS state until work is complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, respectively.
    entityType String
    The resource type that the work request affects.
    entityUri String
    The URI path that you can use for a GET request to access the resource metadata.
    identifier String
    An OCID or other unique identifier for the resource.
    metadata Map<String>
    Additional information that helps to explain the resource.

    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 v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate