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 Private Service Access in Oracle Cloud Infrastructure Psa service.
List the private service accesses in the specified compartment. You can optionally filter the list by specifying the OCID of a subnet in the cunsumer’s VCN.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPrivateServiceAccesses = oci.oci.getPsaPrivateServiceAccesses({
compartmentId: compartmentId,
displayName: privateServiceAccesDisplayName,
id: privateServiceAccesId,
serviceId: testPsaService.id,
state: privateServiceAccesState,
vcnId: testVcn.id,
});
import pulumi
import pulumi_oci as oci
test_private_service_accesses = oci.oci.get_psa_private_service_accesses(compartment_id=compartment_id,
display_name=private_service_acces_display_name,
id=private_service_acces_id,
service_id=test_psa_service["id"],
state=private_service_acces_state,
vcn_id=test_vcn["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.GetPsaPrivateServiceAccesses(ctx, &oci.GetPsaPrivateServiceAccessesArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(privateServiceAccesDisplayName),
Id: pulumi.StringRef(privateServiceAccesId),
ServiceId: pulumi.StringRef(testPsaService.Id),
State: pulumi.StringRef(privateServiceAccesState),
VcnId: pulumi.StringRef(testVcn.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 testPrivateServiceAccesses = Oci.Oci.GetPsaPrivateServiceAccesses.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = privateServiceAccesDisplayName,
Id = privateServiceAccesId,
ServiceId = testPsaService.Id,
State = privateServiceAccesState,
VcnId = testVcn.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.GetPsaPrivateServiceAccessesArgs;
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 testPrivateServiceAccesses = OciFunctions.getPsaPrivateServiceAccesses(GetPsaPrivateServiceAccessesArgs.builder()
.compartmentId(compartmentId)
.displayName(privateServiceAccesDisplayName)
.id(privateServiceAccesId)
.serviceId(testPsaService.id())
.state(privateServiceAccesState)
.vcnId(testVcn.id())
.build());
}
}
variables:
testPrivateServiceAccesses:
fn::invoke:
function: oci:oci:getPsaPrivateServiceAccesses
arguments:
compartmentId: ${compartmentId}
displayName: ${privateServiceAccesDisplayName}
id: ${privateServiceAccesId}
serviceId: ${testPsaService.id}
state: ${privateServiceAccesState}
vcnId: ${testVcn.id}
Using getPsaPrivateServiceAccess
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 getPsaPrivateServiceAccess(args: GetPsaPrivateServiceAccessArgs, opts?: InvokeOptions): Promise<GetPsaPrivateServiceAccessResult>
function getPsaPrivateServiceAccessOutput(args: GetPsaPrivateServiceAccessOutputArgs, opts?: InvokeOptions): Output<GetPsaPrivateServiceAccessResult>def get_psa_private_service_access(private_service_access_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPsaPrivateServiceAccessResult
def get_psa_private_service_access_output(private_service_access_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPsaPrivateServiceAccessResult]func LookupPsaPrivateServiceAccess(ctx *Context, args *LookupPsaPrivateServiceAccessArgs, opts ...InvokeOption) (*LookupPsaPrivateServiceAccessResult, error)
func LookupPsaPrivateServiceAccessOutput(ctx *Context, args *LookupPsaPrivateServiceAccessOutputArgs, opts ...InvokeOption) LookupPsaPrivateServiceAccessResultOutput> Note: This function is named LookupPsaPrivateServiceAccess in the Go SDK.
public static class GetPsaPrivateServiceAccess
{
public static Task<GetPsaPrivateServiceAccessResult> InvokeAsync(GetPsaPrivateServiceAccessArgs args, InvokeOptions? opts = null)
public static Output<GetPsaPrivateServiceAccessResult> Invoke(GetPsaPrivateServiceAccessInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPsaPrivateServiceAccessResult> getPsaPrivateServiceAccess(GetPsaPrivateServiceAccessArgs args, InvokeOptions options)
public static Output<GetPsaPrivateServiceAccessResult> getPsaPrivateServiceAccess(GetPsaPrivateServiceAccessArgs args, InvokeOptions options)
fn::invoke:
function: oci:oci/getPsaPrivateServiceAccess:getPsaPrivateServiceAccess
arguments:
# arguments dictionaryThe following arguments are supported:
- Private
Service stringAccess Id
- Private
Service stringAccess Id
- private
Service StringAccess Id
- private
Service stringAccess Id
- private
Service StringAccess Id
getPsaPrivateServiceAccess Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the private service access.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- A description of this private service access.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Fqdns List<string>
- The private service access FQDNs, which are going to be used to access the service. Example:
xyz.oraclecloud.com - Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the private service access.
- Ipv4ip string
- The private IPv4 address (in the consumer's VCN) that represents the access point for the associated service.
- Nsg
Ids List<string> - A list of the OCIDs of the network security groups that the private service access's VNIC belongs to. For more information about NSGs, see NetworkSecurityGroup.
- Private
Service stringAccess Id - Security
Attributes Dictionary<string, string> - Security attributes are labels for a resource that can be referenced in a Zero Trust Packet Routing (ZPR) policy to control access to ZPR-supported resources. Example:
{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}} - Service
Id string - A unique service identifier for which the private service access was created.
- State string
- The private service access's current lifecycle state.
- Subnet
Id string - The OCID of the subnet that the private service access belongs to.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the private service access was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Vcn
Id string - The OCID of the VCN that the private service access belongs to.
- Vnic
Id string - An OCID of the private service access's VNIC, which resides in the private service access's VCN .
- Compartment
Id string - The OCID of the compartment that contains the private service access.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- A description of this private service access.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Fqdns []string
- The private service access FQDNs, which are going to be used to access the service. Example:
xyz.oraclecloud.com - map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the private service access.
- Ipv4ip string
- The private IPv4 address (in the consumer's VCN) that represents the access point for the associated service.
- Nsg
Ids []string - A list of the OCIDs of the network security groups that the private service access's VNIC belongs to. For more information about NSGs, see NetworkSecurityGroup.
- Private
Service stringAccess Id - Security
Attributes map[string]string - Security attributes are labels for a resource that can be referenced in a Zero Trust Packet Routing (ZPR) policy to control access to ZPR-supported resources. Example:
{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}} - Service
Id string - A unique service identifier for which the private service access was created.
- State string
- The private service access's current lifecycle state.
- Subnet
Id string - The OCID of the subnet that the private service access belongs to.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the private service access was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Vcn
Id string - The OCID of the VCN that the private service access belongs to.
- Vnic
Id string - An OCID of the private service access's VNIC, which resides in the private service access's VCN .
- compartment
Id String - The OCID of the compartment that contains the private service access.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- A description of this private service access.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- fqdns List<String>
- The private service access FQDNs, which are going to be used to access the service. Example:
xyz.oraclecloud.com - Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the private service access.
- ipv4ip String
- The private IPv4 address (in the consumer's VCN) that represents the access point for the associated service.
- nsg
Ids List<String> - A list of the OCIDs of the network security groups that the private service access's VNIC belongs to. For more information about NSGs, see NetworkSecurityGroup.
- private
Service StringAccess Id - security
Attributes Map<String,String> - Security attributes are labels for a resource that can be referenced in a Zero Trust Packet Routing (ZPR) policy to control access to ZPR-supported resources. Example:
{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}} - service
Id String - A unique service identifier for which the private service access was created.
- state String
- The private service access's current lifecycle state.
- subnet
Id String - The OCID of the subnet that the private service access belongs to.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the private service access was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - vcn
Id String - The OCID of the VCN that the private service access belongs to.
- vnic
Id String - An OCID of the private service access's VNIC, which resides in the private service access's VCN .
- compartment
Id string - The OCID of the compartment that contains the private service access.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- A description of this private service access.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- fqdns string[]
- The private service access FQDNs, which are going to be used to access the service. Example:
xyz.oraclecloud.com - {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- The OCID of the private service access.
- ipv4ip string
- The private IPv4 address (in the consumer's VCN) that represents the access point for the associated service.
- nsg
Ids string[] - A list of the OCIDs of the network security groups that the private service access's VNIC belongs to. For more information about NSGs, see NetworkSecurityGroup.
- private
Service stringAccess Id - security
Attributes {[key: string]: string} - Security attributes are labels for a resource that can be referenced in a Zero Trust Packet Routing (ZPR) policy to control access to ZPR-supported resources. Example:
{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}} - service
Id string - A unique service identifier for which the private service access was created.
- state string
- The private service access's current lifecycle state.
- subnet
Id string - The OCID of the subnet that the private service access belongs to.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the private service access was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - vcn
Id string - The OCID of the VCN that the private service access belongs to.
- vnic
Id string - An OCID of the private service access's VNIC, which resides in the private service access's VCN .
- compartment_
id str - The OCID of the compartment that contains the private service access.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- A description of this private service access.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- fqdns Sequence[str]
- The private service access FQDNs, which are going to be used to access the service. Example:
xyz.oraclecloud.com - Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id str
- The OCID of the private service access.
- ipv4ip str
- The private IPv4 address (in the consumer's VCN) that represents the access point for the associated service.
- nsg_
ids Sequence[str] - A list of the OCIDs of the network security groups that the private service access's VNIC belongs to. For more information about NSGs, see NetworkSecurityGroup.
- private_
service_ straccess_ id - security_
attributes Mapping[str, str] - Security attributes are labels for a resource that can be referenced in a Zero Trust Packet Routing (ZPR) policy to control access to ZPR-supported resources. Example:
{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}} - service_
id str - A unique service identifier for which the private service access was created.
- state str
- The private service access's current lifecycle state.
- subnet_
id str - The OCID of the subnet that the private service access belongs to.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the private service access was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - vcn_
id str - The OCID of the VCN that the private service access belongs to.
- vnic_
id str - An OCID of the private service access's VNIC, which resides in the private service access's VCN .
- compartment
Id String - The OCID of the compartment that contains the private service access.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- A description of this private service access.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- fqdns List<String>
- The private service access FQDNs, which are going to be used to access the service. Example:
xyz.oraclecloud.com - Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the private service access.
- ipv4ip String
- The private IPv4 address (in the consumer's VCN) that represents the access point for the associated service.
- nsg
Ids List<String> - A list of the OCIDs of the network security groups that the private service access's VNIC belongs to. For more information about NSGs, see NetworkSecurityGroup.
- private
Service StringAccess Id - security
Attributes Map<String> - Security attributes are labels for a resource that can be referenced in a Zero Trust Packet Routing (ZPR) policy to control access to ZPR-supported resources. Example:
{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}} - service
Id String - A unique service identifier for which the private service access was created.
- state String
- The private service access's current lifecycle state.
- subnet
Id String - The OCID of the subnet that the private service access belongs to.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the private service access was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - vcn
Id String - The OCID of the VCN that the private service access belongs to.
- vnic
Id String - An OCID of the private service access's VNIC, which resides in the private service access's VCN .
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
