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

    Create PsaPrivateServiceAccess Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PsaPrivateServiceAccess(name: string, args: PsaPrivateServiceAccessArgs, opts?: CustomResourceOptions);
    @overload
    def PsaPrivateServiceAccess(resource_name: str,
                                args: PsaPrivateServiceAccessArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def PsaPrivateServiceAccess(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                compartment_id: Optional[str] = None,
                                service_id: Optional[str] = None,
                                subnet_id: Optional[str] = None,
                                defined_tags: Optional[Mapping[str, str]] = None,
                                description: Optional[str] = None,
                                display_name: Optional[str] = None,
                                freeform_tags: Optional[Mapping[str, str]] = None,
                                ipv4ip: Optional[str] = None,
                                nsg_ids: Optional[Sequence[str]] = None,
                                security_attributes: Optional[Mapping[str, str]] = None)
    func NewPsaPrivateServiceAccess(ctx *Context, name string, args PsaPrivateServiceAccessArgs, opts ...ResourceOption) (*PsaPrivateServiceAccess, error)
    public PsaPrivateServiceAccess(string name, PsaPrivateServiceAccessArgs args, CustomResourceOptions? opts = null)
    public PsaPrivateServiceAccess(String name, PsaPrivateServiceAccessArgs args)
    public PsaPrivateServiceAccess(String name, PsaPrivateServiceAccessArgs args, CustomResourceOptions options)
    
    type: oci:oci:PsaPrivateServiceAccess
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PsaPrivateServiceAccessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PsaPrivateServiceAccessArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PsaPrivateServiceAccessArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PsaPrivateServiceAccessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PsaPrivateServiceAccessArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var psaPrivateServiceAccessResource = new Oci.Oci.PsaPrivateServiceAccess("psaPrivateServiceAccessResource", new()
    {
        CompartmentId = "string",
        ServiceId = "string",
        SubnetId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        Description = "string",
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        Ipv4ip = "string",
        NsgIds = new[]
        {
            "string",
        },
        SecurityAttributes = 
        {
            { "string", "string" },
        },
    });
    
    example, err := oci.NewPsaPrivateServiceAccess(ctx, "psaPrivateServiceAccessResource", &oci.PsaPrivateServiceAccessArgs{
    	CompartmentId: pulumi.String("string"),
    	ServiceId:     pulumi.String("string"),
    	SubnetId:      pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Ipv4ip: pulumi.String("string"),
    	NsgIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecurityAttributes: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var psaPrivateServiceAccessResource = new PsaPrivateServiceAccess("psaPrivateServiceAccessResource", PsaPrivateServiceAccessArgs.builder()
        .compartmentId("string")
        .serviceId("string")
        .subnetId("string")
        .definedTags(Map.of("string", "string"))
        .description("string")
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .ipv4ip("string")
        .nsgIds("string")
        .securityAttributes(Map.of("string", "string"))
        .build());
    
    psa_private_service_access_resource = oci.oci.PsaPrivateServiceAccess("psaPrivateServiceAccessResource",
        compartment_id="string",
        service_id="string",
        subnet_id="string",
        defined_tags={
            "string": "string",
        },
        description="string",
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        ipv4ip="string",
        nsg_ids=["string"],
        security_attributes={
            "string": "string",
        })
    
    const psaPrivateServiceAccessResource = new oci.oci.PsaPrivateServiceAccess("psaPrivateServiceAccessResource", {
        compartmentId: "string",
        serviceId: "string",
        subnetId: "string",
        definedTags: {
            string: "string",
        },
        description: "string",
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        ipv4ip: "string",
        nsgIds: ["string"],
        securityAttributes: {
            string: "string",
        },
    });
    
    type: oci:oci:PsaPrivateServiceAccess
    properties:
        compartmentId: string
        definedTags:
            string: string
        description: string
        displayName: string
        freeformTags:
            string: string
        ipv4ip: string
        nsgIds:
            - string
        securityAttributes:
            string: string
        serviceId: string
        subnetId: string
    

    PsaPrivateServiceAccess Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PsaPrivateServiceAccess resource accepts the following input properties:

    CompartmentId string
    ServiceId string
    SubnetId string
    DefinedTags Dictionary<string, string>
    Description string
    DisplayName string
    FreeformTags Dictionary<string, string>
    Ipv4ip string
    NsgIds List<string>
    SecurityAttributes Dictionary<string, string>
    CompartmentId string
    ServiceId string
    SubnetId string
    DefinedTags map[string]string
    Description string
    DisplayName string
    FreeformTags map[string]string
    Ipv4ip string
    NsgIds []string
    SecurityAttributes map[string]string
    compartmentId String
    serviceId String
    subnetId String
    definedTags Map<String,String>
    description String
    displayName String
    freeformTags Map<String,String>
    ipv4ip String
    nsgIds List<String>
    securityAttributes Map<String,String>
    compartmentId string
    serviceId string
    subnetId string
    definedTags {[key: string]: string}
    description string
    displayName string
    freeformTags {[key: string]: string}
    ipv4ip string
    nsgIds string[]
    securityAttributes {[key: string]: string}
    compartment_id str
    service_id str
    subnet_id str
    defined_tags Mapping[str, str]
    description str
    display_name str
    freeform_tags Mapping[str, str]
    ipv4ip str
    nsg_ids Sequence[str]
    security_attributes Mapping[str, str]
    compartmentId String
    serviceId String
    subnetId String
    definedTags Map<String>
    description String
    displayName String
    freeformTags Map<String>
    ipv4ip String
    nsgIds List<String>
    securityAttributes Map<String>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PsaPrivateServiceAccess resource produces the following output properties:

    Fqdns List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    SystemTags Dictionary<string, string>
    TimeCreated string
    TimeUpdated string
    VcnId string
    VnicId string
    Fqdns []string
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    SystemTags map[string]string
    TimeCreated string
    TimeUpdated string
    VcnId string
    VnicId string
    fqdns List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    systemTags Map<String,String>
    timeCreated String
    timeUpdated String
    vcnId String
    vnicId String
    fqdns string[]
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    systemTags {[key: string]: string}
    timeCreated string
    timeUpdated string
    vcnId string
    vnicId string
    fqdns Sequence[str]
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    system_tags Mapping[str, str]
    time_created str
    time_updated str
    vcn_id str
    vnic_id str
    fqdns List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    systemTags Map<String>
    timeCreated String
    timeUpdated String
    vcnId String
    vnicId String

    Look up Existing PsaPrivateServiceAccess Resource

    Get an existing PsaPrivateServiceAccess resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: PsaPrivateServiceAccessState, opts?: CustomResourceOptions): PsaPrivateServiceAccess
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            fqdns: Optional[Sequence[str]] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            ipv4ip: Optional[str] = None,
            nsg_ids: Optional[Sequence[str]] = None,
            security_attributes: Optional[Mapping[str, str]] = None,
            service_id: Optional[str] = None,
            state: Optional[str] = None,
            subnet_id: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            vcn_id: Optional[str] = None,
            vnic_id: Optional[str] = None) -> PsaPrivateServiceAccess
    func GetPsaPrivateServiceAccess(ctx *Context, name string, id IDInput, state *PsaPrivateServiceAccessState, opts ...ResourceOption) (*PsaPrivateServiceAccess, error)
    public static PsaPrivateServiceAccess Get(string name, Input<string> id, PsaPrivateServiceAccessState? state, CustomResourceOptions? opts = null)
    public static PsaPrivateServiceAccess get(String name, Output<String> id, PsaPrivateServiceAccessState state, CustomResourceOptions options)
    resources:  _:    type: oci:oci:PsaPrivateServiceAccess    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    DefinedTags Dictionary<string, string>
    Description string
    DisplayName string
    Fqdns List<string>
    FreeformTags Dictionary<string, string>
    Ipv4ip string
    NsgIds List<string>
    SecurityAttributes Dictionary<string, string>
    ServiceId string
    State string
    SubnetId string
    SystemTags Dictionary<string, string>
    TimeCreated string
    TimeUpdated string
    VcnId string
    VnicId string
    CompartmentId string
    DefinedTags map[string]string
    Description string
    DisplayName string
    Fqdns []string
    FreeformTags map[string]string
    Ipv4ip string
    NsgIds []string
    SecurityAttributes map[string]string
    ServiceId string
    State string
    SubnetId string
    SystemTags map[string]string
    TimeCreated string
    TimeUpdated string
    VcnId string
    VnicId string
    compartmentId String
    definedTags Map<String,String>
    description String
    displayName String
    fqdns List<String>
    freeformTags Map<String,String>
    ipv4ip String
    nsgIds List<String>
    securityAttributes Map<String,String>
    serviceId String
    state String
    subnetId String
    systemTags Map<String,String>
    timeCreated String
    timeUpdated String
    vcnId String
    vnicId String
    compartmentId string
    definedTags {[key: string]: string}
    description string
    displayName string
    fqdns string[]
    freeformTags {[key: string]: string}
    ipv4ip string
    nsgIds string[]
    securityAttributes {[key: string]: string}
    serviceId string
    state string
    subnetId string
    systemTags {[key: string]: string}
    timeCreated string
    timeUpdated string
    vcnId string
    vnicId string
    compartment_id str
    defined_tags Mapping[str, str]
    description str
    display_name str
    fqdns Sequence[str]
    freeform_tags Mapping[str, str]
    ipv4ip str
    nsg_ids Sequence[str]
    security_attributes Mapping[str, str]
    service_id str
    state str
    subnet_id str
    system_tags Mapping[str, str]
    time_created str
    time_updated str
    vcn_id str
    vnic_id str
    compartmentId String
    definedTags Map<String>
    description String
    displayName String
    fqdns List<String>
    freeformTags Map<String>
    ipv4ip String
    nsgIds List<String>
    securityAttributes Map<String>
    serviceId String
    state String
    subnetId String
    systemTags Map<String>
    timeCreated String
    timeUpdated String
    vcnId String
    vnicId String

    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