1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getPsaPsaWorkRequests
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 the list of Psa Work Requests in Oracle Cloud Infrastructure Psa service.

    Lists the PrivateServiceAccess work requests in a compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPsaWorkRequests = oci.oci.getPsaPsaWorkRequests({
        compartmentId: compartmentId,
        resourceId: testResource.id,
        status: psaWorkRequestStatus,
        workRequestId: testPsaWorkRequest.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_psa_work_requests = oci.oci.get_psa_psa_work_requests(compartment_id=compartment_id,
        resource_id=test_resource["id"],
        status=psa_work_request_status,
        work_request_id=test_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.GetPsaPsaWorkRequests(ctx, &oci.GetPsaPsaWorkRequestsArgs{
    			CompartmentId: pulumi.StringRef(compartmentId),
    			ResourceId:    pulumi.StringRef(testResource.Id),
    			Status:        pulumi.StringRef(psaWorkRequestStatus),
    			WorkRequestId: pulumi.StringRef(testPsaWorkRequest.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 testPsaWorkRequests = Oci.Oci.GetPsaPsaWorkRequests.Invoke(new()
        {
            CompartmentId = compartmentId,
            ResourceId = testResource.Id,
            Status = psaWorkRequestStatus,
            WorkRequestId = testPsaWorkRequest.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.GetPsaPsaWorkRequestsArgs;
    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 testPsaWorkRequests = OciFunctions.getPsaPsaWorkRequests(GetPsaPsaWorkRequestsArgs.builder()
                .compartmentId(compartmentId)
                .resourceId(testResource.id())
                .status(psaWorkRequestStatus)
                .workRequestId(testPsaWorkRequest.id())
                .build());
    
        }
    }
    
    variables:
      testPsaWorkRequests:
        fn::invoke:
          function: oci:oci:getPsaPsaWorkRequests
          arguments:
            compartmentId: ${compartmentId}
            resourceId: ${testResource.id}
            status: ${psaWorkRequestStatus}
            workRequestId: ${testPsaWorkRequest.id}
    

    Using getPsaPsaWorkRequests

    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 getPsaPsaWorkRequests(args: GetPsaPsaWorkRequestsArgs, opts?: InvokeOptions): Promise<GetPsaPsaWorkRequestsResult>
    function getPsaPsaWorkRequestsOutput(args: GetPsaPsaWorkRequestsOutputArgs, opts?: InvokeOptions): Output<GetPsaPsaWorkRequestsResult>
    def get_psa_psa_work_requests(compartment_id: Optional[str] = None,
                                  filters: Optional[Sequence[GetPsaPsaWorkRequestsFilter]] = None,
                                  resource_id: Optional[str] = None,
                                  status: Optional[str] = None,
                                  work_request_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetPsaPsaWorkRequestsResult
    def get_psa_psa_work_requests_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPsaPsaWorkRequestsFilterArgs]]]] = None,
                                  resource_id: Optional[pulumi.Input[str]] = None,
                                  status: Optional[pulumi.Input[str]] = None,
                                  work_request_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetPsaPsaWorkRequestsResult]
    func GetPsaPsaWorkRequests(ctx *Context, args *GetPsaPsaWorkRequestsArgs, opts ...InvokeOption) (*GetPsaPsaWorkRequestsResult, error)
    func GetPsaPsaWorkRequestsOutput(ctx *Context, args *GetPsaPsaWorkRequestsOutputArgs, opts ...InvokeOption) GetPsaPsaWorkRequestsResultOutput

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

    public static class GetPsaPsaWorkRequests 
    {
        public static Task<GetPsaPsaWorkRequestsResult> InvokeAsync(GetPsaPsaWorkRequestsArgs args, InvokeOptions? opts = null)
        public static Output<GetPsaPsaWorkRequestsResult> Invoke(GetPsaPsaWorkRequestsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPsaPsaWorkRequestsResult> getPsaPsaWorkRequests(GetPsaPsaWorkRequestsArgs args, InvokeOptions options)
    public static Output<GetPsaPsaWorkRequestsResult> getPsaPsaWorkRequests(GetPsaPsaWorkRequestsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getPsaPsaWorkRequests:getPsaPsaWorkRequests
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters List<GetPsaPsaWorkRequestsFilter>
    ResourceId string
    The OCID of the resource affected by the work request.
    Status string
    A filter to return only the resources that match the given lifecycle state.
    WorkRequestId string
    The OCID of the asynchronous work request.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters []GetPsaPsaWorkRequestsFilter
    ResourceId string
    The OCID of the resource affected by the work request.
    Status string
    A filter to return only the resources that match the given lifecycle state.
    WorkRequestId string
    The OCID of the asynchronous work request.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<GetPsaPsaWorkRequestsFilter>
    resourceId String
    The OCID of the resource affected by the work request.
    status String
    A filter to return only the resources that match the given lifecycle state.
    workRequestId String
    The OCID of the asynchronous work request.
    compartmentId string
    The OCID of the compartment in which to list resources.
    filters GetPsaPsaWorkRequestsFilter[]
    resourceId string
    The OCID of the resource affected by the work request.
    status string
    A filter to return only the resources that match the given lifecycle state.
    workRequestId string
    The OCID of the asynchronous work request.
    compartment_id str
    The OCID of the compartment in which to list resources.
    filters Sequence[GetPsaPsaWorkRequestsFilter]
    resource_id str
    The OCID of the resource affected by the work request.
    status str
    A filter to return only the resources that match the given lifecycle state.
    work_request_id str
    The OCID of the asynchronous work request.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<Property Map>
    resourceId String
    The OCID of the resource affected by the work request.
    status String
    A filter to return only the resources that match the given lifecycle state.
    workRequestId String
    The OCID of the asynchronous work request.

    getPsaPsaWorkRequests Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    WorkRequestSummaryCollections List<GetPsaPsaWorkRequestsWorkRequestSummaryCollection>
    The list of work_request_summary_collection.
    CompartmentId string
    The OCID of the compartment that contains the work request.
    Filters List<GetPsaPsaWorkRequestsFilter>
    ResourceId string
    Status string
    The status of the work request.
    WorkRequestId string
    Id string
    The provider-assigned unique ID for this managed resource.
    WorkRequestSummaryCollections []GetPsaPsaWorkRequestsWorkRequestSummaryCollection
    The list of work_request_summary_collection.
    CompartmentId string
    The OCID of the compartment that contains the work request.
    Filters []GetPsaPsaWorkRequestsFilter
    ResourceId string
    Status string
    The status of the work request.
    WorkRequestId string
    id String
    The provider-assigned unique ID for this managed resource.
    workRequestSummaryCollections List<GetPsaPsaWorkRequestsWorkRequestSummaryCollection>
    The list of work_request_summary_collection.
    compartmentId String
    The OCID of the compartment that contains the work request.
    filters List<GetPsaPsaWorkRequestsFilter>
    resourceId String
    status String
    The status of the work request.
    workRequestId String
    id string
    The provider-assigned unique ID for this managed resource.
    workRequestSummaryCollections GetPsaPsaWorkRequestsWorkRequestSummaryCollection[]
    The list of work_request_summary_collection.
    compartmentId string
    The OCID of the compartment that contains the work request.
    filters GetPsaPsaWorkRequestsFilter[]
    resourceId string
    status string
    The status of the work request.
    workRequestId string
    id str
    The provider-assigned unique ID for this managed resource.
    work_request_summary_collections Sequence[GetPsaPsaWorkRequestsWorkRequestSummaryCollection]
    The list of work_request_summary_collection.
    compartment_id str
    The OCID of the compartment that contains the work request.
    filters Sequence[GetPsaPsaWorkRequestsFilter]
    resource_id str
    status str
    The status of the work request.
    work_request_id str
    id String
    The provider-assigned unique ID for this managed resource.
    workRequestSummaryCollections List<Property Map>
    The list of work_request_summary_collection.
    compartmentId String
    The OCID of the compartment that contains the work request.
    filters List<Property Map>
    resourceId String
    status String
    The status of the work request.
    workRequestId String

    Supporting Types

    GetPsaPsaWorkRequestsFilter

    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

    GetPsaPsaWorkRequestsWorkRequestSummaryCollection

    GetPsaPsaWorkRequestsWorkRequestSummaryCollectionItem

    CompartmentId string
    The OCID of the compartment in which to list resources.
    Id string
    The OCID of the work request.
    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<GetPsaPsaWorkRequestsWorkRequestSummaryCollectionItemResource>
    The resources that are affected by the work request.
    Status string
    A filter to return only the resources that match the given lifecycle state.
    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.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    Id string
    The OCID of the work request.
    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 []GetPsaPsaWorkRequestsWorkRequestSummaryCollectionItemResource
    The resources that are affected by the work request.
    Status string
    A filter to return only the resources that match the given lifecycle state.
    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.
    compartmentId String
    The OCID of the compartment in which to list resources.
    id String
    The OCID of the work request.
    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<GetPsaPsaWorkRequestsWorkRequestSummaryCollectionItemResource>
    The resources that are affected by the work request.
    status String
    A filter to return only the resources that match the given lifecycle state.
    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.
    compartmentId string
    The OCID of the compartment in which to list resources.
    id string
    The OCID of the work request.
    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 GetPsaPsaWorkRequestsWorkRequestSummaryCollectionItemResource[]
    The resources that are affected by the work request.
    status string
    A filter to return only the resources that match the given lifecycle state.
    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.
    compartment_id str
    The OCID of the compartment in which to list resources.
    id str
    The OCID of the work request.
    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[GetPsaPsaWorkRequestsWorkRequestSummaryCollectionItemResource]
    The resources that are affected by the work request.
    status str
    A filter to return only the resources that match the given lifecycle state.
    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.
    compartmentId String
    The OCID of the compartment in which to list resources.
    id String
    The OCID of the work request.
    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
    A filter to return only the resources that match the given lifecycle state.
    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.

    GetPsaPsaWorkRequestsWorkRequestSummaryCollectionItemResource

    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