1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ResourceManager
  5. PrivateEndpoint
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.ResourceManager.PrivateEndpoint

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Private Endpoint resource in Oracle Cloud Infrastructure Resource Manager service.

    Creates a a private endpoint in the specified compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPrivateEndpoint = new oci.resourcemanager.PrivateEndpoint("testPrivateEndpoint", {
        compartmentId: _var.compartment_id,
        displayName: _var.private_endpoint_display_name,
        subnetId: oci_core_subnet.test_subnet.id,
        vcnId: oci_core_vcn.test_vcn.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: _var.private_endpoint_description,
        dnsZones: _var.private_endpoint_dns_zones,
        freeformTags: {
            Department: "Finance",
        },
        isUsedWithConfigurationSourceProvider: _var.private_endpoint_is_used_with_configuration_source_provider,
        nsgIdLists: _var.private_endpoint_nsg_id_list,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_private_endpoint = oci.resource_manager.PrivateEndpoint("testPrivateEndpoint",
        compartment_id=var["compartment_id"],
        display_name=var["private_endpoint_display_name"],
        subnet_id=oci_core_subnet["test_subnet"]["id"],
        vcn_id=oci_core_vcn["test_vcn"]["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=var["private_endpoint_description"],
        dns_zones=var["private_endpoint_dns_zones"],
        freeform_tags={
            "Department": "Finance",
        },
        is_used_with_configuration_source_provider=var["private_endpoint_is_used_with_configuration_source_provider"],
        nsg_id_lists=var["private_endpoint_nsg_id_list"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ResourceManager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ResourceManager.NewPrivateEndpoint(ctx, "testPrivateEndpoint", &ResourceManager.PrivateEndpointArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			DisplayName:   pulumi.Any(_var.Private_endpoint_display_name),
    			SubnetId:      pulumi.Any(oci_core_subnet.Test_subnet.Id),
    			VcnId:         pulumi.Any(oci_core_vcn.Test_vcn.Id),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			Description: pulumi.Any(_var.Private_endpoint_description),
    			DnsZones:    pulumi.Any(_var.Private_endpoint_dns_zones),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			IsUsedWithConfigurationSourceProvider: pulumi.Any(_var.Private_endpoint_is_used_with_configuration_source_provider),
    			NsgIdLists:                            pulumi.Any(_var.Private_endpoint_nsg_id_list),
    		})
    		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 testPrivateEndpoint = new Oci.ResourceManager.PrivateEndpoint("testPrivateEndpoint", new()
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Private_endpoint_display_name,
            SubnetId = oci_core_subnet.Test_subnet.Id,
            VcnId = oci_core_vcn.Test_vcn.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = @var.Private_endpoint_description,
            DnsZones = @var.Private_endpoint_dns_zones,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            IsUsedWithConfigurationSourceProvider = @var.Private_endpoint_is_used_with_configuration_source_provider,
            NsgIdLists = @var.Private_endpoint_nsg_id_list,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ResourceManager.PrivateEndpoint;
    import com.pulumi.oci.ResourceManager.PrivateEndpointArgs;
    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) {
            var testPrivateEndpoint = new PrivateEndpoint("testPrivateEndpoint", PrivateEndpointArgs.builder()        
                .compartmentId(var_.compartment_id())
                .displayName(var_.private_endpoint_display_name())
                .subnetId(oci_core_subnet.test_subnet().id())
                .vcnId(oci_core_vcn.test_vcn().id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(var_.private_endpoint_description())
                .dnsZones(var_.private_endpoint_dns_zones())
                .freeformTags(Map.of("Department", "Finance"))
                .isUsedWithConfigurationSourceProvider(var_.private_endpoint_is_used_with_configuration_source_provider())
                .nsgIdLists(var_.private_endpoint_nsg_id_list())
                .build());
    
        }
    }
    
    resources:
      testPrivateEndpoint:
        type: oci:ResourceManager:PrivateEndpoint
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          displayName: ${var.private_endpoint_display_name}
          subnetId: ${oci_core_subnet.test_subnet.id}
          vcnId: ${oci_core_vcn.test_vcn.id}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          description: ${var.private_endpoint_description}
          dnsZones: ${var.private_endpoint_dns_zones}
          freeformTags:
            Department: Finance
          isUsedWithConfigurationSourceProvider: ${var.private_endpoint_is_used_with_configuration_source_provider}
          nsgIdLists: ${var.private_endpoint_nsg_id_list}
    

    Create PrivateEndpoint Resource

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

    Constructor syntax

    new PrivateEndpoint(name: string, args: PrivateEndpointArgs, opts?: CustomResourceOptions);
    @overload
    def PrivateEndpoint(resource_name: str,
                        args: PrivateEndpointArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivateEndpoint(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        compartment_id: Optional[str] = None,
                        display_name: Optional[str] = None,
                        subnet_id: Optional[str] = None,
                        vcn_id: Optional[str] = None,
                        defined_tags: Optional[Mapping[str, Any]] = None,
                        description: Optional[str] = None,
                        dns_zones: Optional[Sequence[str]] = None,
                        freeform_tags: Optional[Mapping[str, Any]] = None,
                        is_used_with_configuration_source_provider: Optional[bool] = None,
                        nsg_id_lists: Optional[Sequence[str]] = None)
    func NewPrivateEndpoint(ctx *Context, name string, args PrivateEndpointArgs, opts ...ResourceOption) (*PrivateEndpoint, error)
    public PrivateEndpoint(string name, PrivateEndpointArgs args, CustomResourceOptions? opts = null)
    public PrivateEndpoint(String name, PrivateEndpointArgs args)
    public PrivateEndpoint(String name, PrivateEndpointArgs args, CustomResourceOptions options)
    
    type: oci:ResourceManager:PrivateEndpoint
    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 PrivateEndpointArgs
    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 PrivateEndpointArgs
    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 PrivateEndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivateEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivateEndpointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var exampleprivateEndpointResourceResourceFromResourceManagerprivateEndpoint = new Oci.ResourceManager.PrivateEndpoint("exampleprivateEndpointResourceResourceFromResourceManagerprivateEndpoint", new()
    {
        CompartmentId = "string",
        DisplayName = "string",
        SubnetId = "string",
        VcnId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        Description = "string",
        DnsZones = new[]
        {
            "string",
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        IsUsedWithConfigurationSourceProvider = false,
        NsgIdLists = new[]
        {
            "string",
        },
    });
    
    example, err := ResourceManager.NewPrivateEndpoint(ctx, "exampleprivateEndpointResourceResourceFromResourceManagerprivateEndpoint", &ResourceManager.PrivateEndpointArgs{
    	CompartmentId: pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	SubnetId:      pulumi.String("string"),
    	VcnId:         pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Description: pulumi.String("string"),
    	DnsZones: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	IsUsedWithConfigurationSourceProvider: pulumi.Bool(false),
    	NsgIdLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var exampleprivateEndpointResourceResourceFromResourceManagerprivateEndpoint = new PrivateEndpoint("exampleprivateEndpointResourceResourceFromResourceManagerprivateEndpoint", PrivateEndpointArgs.builder()        
        .compartmentId("string")
        .displayName("string")
        .subnetId("string")
        .vcnId("string")
        .definedTags(Map.of("string", "any"))
        .description("string")
        .dnsZones("string")
        .freeformTags(Map.of("string", "any"))
        .isUsedWithConfigurationSourceProvider(false)
        .nsgIdLists("string")
        .build());
    
    exampleprivate_endpoint_resource_resource_from_resource_managerprivate_endpoint = oci.resource_manager.PrivateEndpoint("exampleprivateEndpointResourceResourceFromResourceManagerprivateEndpoint",
        compartment_id="string",
        display_name="string",
        subnet_id="string",
        vcn_id="string",
        defined_tags={
            "string": "any",
        },
        description="string",
        dns_zones=["string"],
        freeform_tags={
            "string": "any",
        },
        is_used_with_configuration_source_provider=False,
        nsg_id_lists=["string"])
    
    const exampleprivateEndpointResourceResourceFromResourceManagerprivateEndpoint = new oci.resourcemanager.PrivateEndpoint("exampleprivateEndpointResourceResourceFromResourceManagerprivateEndpoint", {
        compartmentId: "string",
        displayName: "string",
        subnetId: "string",
        vcnId: "string",
        definedTags: {
            string: "any",
        },
        description: "string",
        dnsZones: ["string"],
        freeformTags: {
            string: "any",
        },
        isUsedWithConfigurationSourceProvider: false,
        nsgIdLists: ["string"],
    });
    
    type: oci:ResourceManager:PrivateEndpoint
    properties:
        compartmentId: string
        definedTags:
            string: any
        description: string
        displayName: string
        dnsZones:
            - string
        freeformTags:
            string: any
        isUsedWithConfigurationSourceProvider: false
        nsgIdLists:
            - string
        subnetId: string
        vcnId: string
    

    PrivateEndpoint Resource Properties

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

    Inputs

    The PrivateEndpoint resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment containing this private endpoint details.
    DisplayName string
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    SubnetId string
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    VcnId string

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags Dictionary<string, object>
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    DnsZones List<string>
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    IsUsedWithConfigurationSourceProvider bool
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    NsgIdLists List<string>
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    CompartmentId string
    (Updatable) The OCID of the compartment containing this private endpoint details.
    DisplayName string
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    SubnetId string
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    VcnId string

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags map[string]interface{}
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    DnsZones []string
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    IsUsedWithConfigurationSourceProvider bool
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    NsgIdLists []string
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    compartmentId String
    (Updatable) The OCID of the compartment containing this private endpoint details.
    displayName String
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    subnetId String
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    vcnId String

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String,Object>
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    dnsZones List<String>
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    freeformTags Map<String,Object>
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    isUsedWithConfigurationSourceProvider Boolean
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    nsgIdLists List<String>
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    compartmentId string
    (Updatable) The OCID of the compartment containing this private endpoint details.
    displayName string
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    subnetId string
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    vcnId string

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags {[key: string]: any}
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    dnsZones string[]
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    isUsedWithConfigurationSourceProvider boolean
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    nsgIdLists string[]
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    compartment_id str
    (Updatable) The OCID of the compartment containing this private endpoint details.
    display_name str
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    subnet_id str
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    vcn_id str

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    defined_tags Mapping[str, Any]
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    dns_zones Sequence[str]
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    is_used_with_configuration_source_provider bool
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    nsg_id_lists Sequence[str]
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    compartmentId String
    (Updatable) The OCID of the compartment containing this private endpoint details.
    displayName String
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    subnetId String
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    vcnId String

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<Any>
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    dnsZones List<String>
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    freeformTags Map<Any>
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    isUsedWithConfigurationSourceProvider Boolean
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    nsgIdLists List<String>
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    SourceIps List<string>
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    State string
    The current lifecycle state of the private endpoint.
    TimeCreated string
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceIps []string
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    State string
    The current lifecycle state of the private endpoint.
    TimeCreated string
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    sourceIps List<String>
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    state String
    The current lifecycle state of the private endpoint.
    timeCreated String
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    sourceIps string[]
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    state string
    The current lifecycle state of the private endpoint.
    timeCreated string
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    id str
    The provider-assigned unique ID for this managed resource.
    source_ips Sequence[str]
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    state str
    The current lifecycle state of the private endpoint.
    time_created str
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    sourceIps List<String>
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    state String
    The current lifecycle state of the private endpoint.
    timeCreated String
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z

    Look up Existing PrivateEndpoint Resource

    Get an existing PrivateEndpoint 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?: PrivateEndpointState, opts?: CustomResourceOptions): PrivateEndpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            dns_zones: Optional[Sequence[str]] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            is_used_with_configuration_source_provider: Optional[bool] = None,
            nsg_id_lists: Optional[Sequence[str]] = None,
            source_ips: Optional[Sequence[str]] = None,
            state: Optional[str] = None,
            subnet_id: Optional[str] = None,
            time_created: Optional[str] = None,
            vcn_id: Optional[str] = None) -> PrivateEndpoint
    func GetPrivateEndpoint(ctx *Context, name string, id IDInput, state *PrivateEndpointState, opts ...ResourceOption) (*PrivateEndpoint, error)
    public static PrivateEndpoint Get(string name, Input<string> id, PrivateEndpointState? state, CustomResourceOptions? opts = null)
    public static PrivateEndpoint get(String name, Output<String> id, PrivateEndpointState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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
    (Updatable) The OCID of the compartment containing this private endpoint details.
    DefinedTags Dictionary<string, object>
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    DisplayName string
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    DnsZones List<string>
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    IsUsedWithConfigurationSourceProvider bool
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    NsgIdLists List<string>
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    SourceIps List<string>
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    State string
    The current lifecycle state of the private endpoint.
    SubnetId string
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    TimeCreated string
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    VcnId string

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    CompartmentId string
    (Updatable) The OCID of the compartment containing this private endpoint details.
    DefinedTags map[string]interface{}
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    DisplayName string
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    DnsZones []string
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    IsUsedWithConfigurationSourceProvider bool
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    NsgIdLists []string
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    SourceIps []string
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    State string
    The current lifecycle state of the private endpoint.
    SubnetId string
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    TimeCreated string
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    VcnId string

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment containing this private endpoint details.
    definedTags Map<String,Object>
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    displayName String
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    dnsZones List<String>
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    freeformTags Map<String,Object>
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    isUsedWithConfigurationSourceProvider Boolean
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    nsgIdLists List<String>
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    sourceIps List<String>
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    state String
    The current lifecycle state of the private endpoint.
    subnetId String
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    timeCreated String
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    vcnId String

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId string
    (Updatable) The OCID of the compartment containing this private endpoint details.
    definedTags {[key: string]: any}
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    displayName string
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    dnsZones string[]
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    isUsedWithConfigurationSourceProvider boolean
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    nsgIdLists string[]
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    sourceIps string[]
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    state string
    The current lifecycle state of the private endpoint.
    subnetId string
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    timeCreated string
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    vcnId string

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartment_id str
    (Updatable) The OCID of the compartment containing this private endpoint details.
    defined_tags Mapping[str, Any]
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    display_name str
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    dns_zones Sequence[str]
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    is_used_with_configuration_source_provider bool
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    nsg_id_lists Sequence[str]
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    source_ips Sequence[str]
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    state str
    The current lifecycle state of the private endpoint.
    subnet_id str
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    time_created str
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    vcn_id str

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment containing this private endpoint details.
    definedTags Map<Any>
    (Updatable) 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
    (Updatable) Description of the private endpoint. Avoid entering confidential information.
    displayName String
    (Updatable) The private endpoint display name. Avoid entering confidential information.
    dnsZones List<String>
    (Updatable) DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
    freeformTags Map<Any>
    (Updatable) Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    isUsedWithConfigurationSourceProvider Boolean
    (Updatable) When true, allows the private endpoint to be used with a configuration source provider.
    nsgIdLists List<String>
    (Updatable) An array of network security group (NSG) OCIDs for the private endpoint. Order does not matter.
    sourceIps List<String>
    The source IPs which resource manager service will use to connect to customer's network. Automatically assigned by Resource Manager Service.
    state String
    The current lifecycle state of the private endpoint.
    subnetId String
    (Updatable) The OCID of the subnet within the VCN for the private endpoint.
    timeCreated String
    The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
    vcnId String

    (Updatable) The OCID of the VCN for the private endpoint.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    PrivateEndpoints can be imported using the id, e.g.

    $ pulumi import oci:ResourceManager/privateEndpoint:PrivateEndpoint test_private_endpoint "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi