1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getPsaPrivateServiceAccess
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 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 dictionary

    The following arguments are supported:

    getPsaPrivateServiceAccess Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains the private service access.
    DefinedTags 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.
    DisplayName 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
    FreeformTags 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.
    NsgIds 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.
    PrivateServiceAccessId string
    SecurityAttributes 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"}}}
    ServiceId string
    A unique service identifier for which the private service access was created.
    State string
    The private service access's current lifecycle state.
    SubnetId string
    The OCID of the subnet that the private service access belongs to.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the private service access was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    VcnId string
    The OCID of the VCN that the private service access belongs to.
    VnicId string
    An OCID of the private service access's VNIC, which resides in the private service access's VCN .
    CompartmentId string
    The OCID of the compartment that contains the private service access.
    DefinedTags 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.
    DisplayName 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
    FreeformTags 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.
    NsgIds []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.
    PrivateServiceAccessId string
    SecurityAttributes 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"}}}
    ServiceId string
    A unique service identifier for which the private service access was created.
    State string
    The private service access's current lifecycle state.
    SubnetId string
    The OCID of the subnet that the private service access belongs to.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the private service access was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    VcnId string
    The OCID of the VCN that the private service access belongs to.
    VnicId string
    An OCID of the private service access's VNIC, which resides in the private service access's VCN .
    compartmentId String
    The OCID of the compartment that contains the private service access.
    definedTags 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.
    displayName 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
    freeformTags 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.
    nsgIds 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.
    privateServiceAccessId String
    securityAttributes 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"}}}
    serviceId String
    A unique service identifier for which the private service access was created.
    state String
    The private service access's current lifecycle state.
    subnetId String
    The OCID of the subnet that the private service access belongs to.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the private service access was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    vcnId String
    The OCID of the VCN that the private service access belongs to.
    vnicId String
    An OCID of the private service access's VNIC, which resides in the private service access's VCN .
    compartmentId string
    The OCID of the compartment that contains the private service access.
    definedTags {[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.
    displayName 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
    freeformTags {[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.
    nsgIds 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.
    privateServiceAccessId string
    securityAttributes {[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"}}}
    serviceId string
    A unique service identifier for which the private service access was created.
    state string
    The private service access's current lifecycle state.
    subnetId string
    The OCID of the subnet that the private service access belongs to.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the private service access was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    vcnId string
    The OCID of the VCN that the private service access belongs to.
    vnicId 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.
    defined_tags 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
    freeform_tags 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_access_id str
    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.
    system_tags 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 .
    compartmentId String
    The OCID of the compartment that contains the private service access.
    definedTags 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.
    displayName 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
    freeformTags 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.
    nsgIds 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.
    privateServiceAccessId String
    securityAttributes 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"}}}
    serviceId String
    A unique service identifier for which the private service access was created.
    state String
    The private service access's current lifecycle state.
    subnetId String
    The OCID of the subnet that the private service access belongs to.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the private service access was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the PrivateServiceAccess was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    vcnId String
    The OCID of the VCN that the private service access belongs to.
    vnicId 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 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