Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
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 dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Filters
List<Get
Psa Psa Work Requests Filter> - Resource
Id 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.
- Work
Request stringId - The OCID of the asynchronous work request.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Filters
[]Get
Psa Psa Work Requests Filter - Resource
Id 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.
- Work
Request stringId - The OCID of the asynchronous work request.
- compartment
Id String - The OCID of the compartment in which to list resources.
- filters
List<Get
Psa Psa Work Requests Filter> - resource
Id 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.
- work
Request StringId - The OCID of the asynchronous work request.
- compartment
Id string - The OCID of the compartment in which to list resources.
- filters
Get
Psa Psa Work Requests Filter[] - resource
Id 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.
- work
Request stringId - The OCID of the asynchronous work request.
- compartment_
id str - The OCID of the compartment in which to list resources.
- filters
Sequence[Get
Psa Psa Work Requests Filter] - 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_ strid - The OCID of the asynchronous work request.
- compartment
Id String - The OCID of the compartment in which to list resources.
- filters List<Property Map>
- resource
Id 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.
- work
Request StringId - 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.
- Work
Request List<GetSummary Collections Psa Psa Work Requests Work Request Summary Collection> - The list of work_request_summary_collection.
- Compartment
Id string - The OCID of the compartment that contains the work request.
- Filters
List<Get
Psa Psa Work Requests Filter> - Resource
Id string - Status string
- The status of the work request.
- Work
Request stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Work
Request []GetSummary Collections Psa Psa Work Requests Work Request Summary Collection - The list of work_request_summary_collection.
- Compartment
Id string - The OCID of the compartment that contains the work request.
- Filters
[]Get
Psa Psa Work Requests Filter - Resource
Id string - Status string
- The status of the work request.
- Work
Request stringId
- id String
- The provider-assigned unique ID for this managed resource.
- work
Request List<GetSummary Collections Psa Psa Work Requests Work Request Summary Collection> - The list of work_request_summary_collection.
- compartment
Id String - The OCID of the compartment that contains the work request.
- filters
List<Get
Psa Psa Work Requests Filter> - resource
Id String - status String
- The status of the work request.
- work
Request StringId
- id string
- The provider-assigned unique ID for this managed resource.
- work
Request GetSummary Collections Psa Psa Work Requests Work Request Summary Collection[] - The list of work_request_summary_collection.
- compartment
Id string - The OCID of the compartment that contains the work request.
- filters
Get
Psa Psa Work Requests Filter[] - resource
Id string - status string
- The status of the work request.
- work
Request stringId
- id str
- The provider-assigned unique ID for this managed resource.
- work_
request_ Sequence[Getsummary_ collections Psa Psa Work Requests Work Request Summary Collection] - The list of work_request_summary_collection.
- compartment_
id str - The OCID of the compartment that contains the work request.
- filters
Sequence[Get
Psa Psa Work Requests Filter] - resource_
id str - status str
- The status of the work request.
- work_
request_ strid
- id String
- The provider-assigned unique ID for this managed resource.
- work
Request List<Property Map>Summary Collections - The list of work_request_summary_collection.
- compartment
Id String - The OCID of the compartment that contains the work request.
- filters List<Property Map>
- resource
Id String - status String
- The status of the work request.
- work
Request StringId
Supporting Types
GetPsaPsaWorkRequestsFilter
GetPsaPsaWorkRequestsWorkRequestSummaryCollection
GetPsaPsaWorkRequestsWorkRequestSummaryCollectionItem
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Id string
- The OCID of the work request.
- Operation
Type string - The asynchronous operation tracked by this work request.
- Percent
Complete 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<Get
Psa Psa Work Requests Work Request Summary Collection Item Resource> - The resources that are affected by the work request.
- Status string
- A filter to return only the resources that match the given lifecycle state.
- Time
Accepted string - The date and time the work request was created, in the format defined by RFC 3339.
- Time
Finished string - The date and time the work request was finished, in the format defined by RFC 3339.
- Time
Started string - The date and time the work request was started, in the format defined by RFC 3339.
- Time
Updated string - The date and time the work request was updated, in the format defined by RFC 3339.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Id string
- The OCID of the work request.
- Operation
Type string - The asynchronous operation tracked by this work request.
- Percent
Complete float64 - Shows the progress of the operation tracked by the work request, as a percentage of the total work that must be performed.
- Resources
[]Get
Psa Psa Work Requests Work Request Summary Collection Item Resource - The resources that are affected by the work request.
- Status string
- A filter to return only the resources that match the given lifecycle state.
- Time
Accepted string - The date and time the work request was created, in the format defined by RFC 3339.
- Time
Finished string - The date and time the work request was finished, in the format defined by RFC 3339.
- Time
Started string - The date and time the work request was started, in the format defined by RFC 3339.
- Time
Updated string - The date and time the work request was updated, in the format defined by RFC 3339.
- compartment
Id String - The OCID of the compartment in which to list resources.
- id String
- The OCID of the work request.
- operation
Type String - The asynchronous operation tracked by this work request.
- percent
Complete 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<Get
Psa Psa Work Requests Work Request Summary Collection Item Resource> - The resources that are affected by the work request.
- status String
- A filter to return only the resources that match the given lifecycle state.
- time
Accepted String - The date and time the work request was created, in the format defined by RFC 3339.
- time
Finished String - The date and time the work request was finished, in the format defined by RFC 3339.
- time
Started String - The date and time the work request was started, in the format defined by RFC 3339.
- time
Updated String - The date and time the work request was updated, in the format defined by RFC 3339.
- compartment
Id string - The OCID of the compartment in which to list resources.
- id string
- The OCID of the work request.
- operation
Type string - The asynchronous operation tracked by this work request.
- percent
Complete number - Shows the progress of the operation tracked by the work request, as a percentage of the total work that must be performed.
- resources
Get
Psa Psa Work Requests Work Request Summary Collection Item Resource[] - The resources that are affected by the work request.
- status string
- A filter to return only the resources that match the given lifecycle state.
- time
Accepted string - The date and time the work request was created, in the format defined by RFC 3339.
- time
Finished string - The date and time the work request was finished, in the format defined by RFC 3339.
- time
Started string - The date and time the work request was started, in the format defined by RFC 3339.
- time
Updated 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[Get
Psa Psa Work Requests Work Request Summary Collection Item Resource] - 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.
- compartment
Id String - The OCID of the compartment in which to list resources.
- id String
- The OCID of the work request.
- operation
Type String - The asynchronous operation tracked by this work request.
- percent
Complete 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.
- time
Accepted String - The date and time the work request was created, in the format defined by RFC 3339.
- time
Finished String - The date and time the work request was finished, in the format defined by RFC 3339.
- time
Started String - The date and time the work request was started, in the format defined by RFC 3339.
- time
Updated String - The date and time the work request was updated, in the format defined by RFC 3339.
GetPsaPsaWorkRequestsWorkRequestSummaryCollectionItemResource
- Action
Type 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.
- Entity
Type string - The resource type that the work request affects.
- Entity
Uri 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.
- Action
Type 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.
- Entity
Type string - The resource type that the work request affects.
- Entity
Uri 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.
- action
Type 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.
- entity
Type String - The resource type that the work request affects.
- entity
Uri 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.
- action
Type 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.
- entity
Type string - The resource type that the work request affects.
- entity
Uri 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.
- action
Type 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.
- entity
Type String - The resource type that the work request affects.
- entity
Uri 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
ociTerraform Provider.
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
