oci.ObjectStorage.PrivateEndpoint
Explore with Pulumi AI
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,
namespace: Optional[str] = None,
subnet_id: Optional[str] = None,
compartment_id: Optional[str] = None,
access_targets: Optional[Sequence[_objectstorage.PrivateEndpointAccessTargetArgs]] = None,
prefix: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
nsg_ids: Optional[Sequence[str]] = None,
fqdns: Optional[Mapping[str, Mapping[str, Mapping[str, str]]]] = None,
private_endpoint_ip: Optional[str] = None,
state: Optional[str] = None,
additional_prefixes: 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:ObjectStorage:PrivateEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PrivateEndpointArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. PrivateEndpointArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PrivateEndpointArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. PrivateEndpointArgs - 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 exampleprivateEndpointResourceResourceFromObjectStorageprivateEndpoint = new Oci.ObjectStorage.PrivateEndpoint("exampleprivateEndpointResourceResourceFromObjectStorageprivateEndpoint", new()
{
Namespace = "string",
SubnetId = "string",
CompartmentId = "string",
AccessTargets = new[]
{
new Oci.ObjectStorage.Inputs.PrivateEndpointAccessTargetArgs
{
Bucket = "string",
CompartmentId = "string",
Namespace = "string",
},
},
Prefix = "string",
DefinedTags =
{
{ "string", "string" },
},
Name = "string",
FreeformTags =
{
{ "string", "string" },
},
NsgIds = new[]
{
"string",
},
Fqdns =
{
{ "string",
{
{ "string",
{
{ "string", "string" },
} },
} },
},
PrivateEndpointIp = "string",
State = "string",
AdditionalPrefixes = new[]
{
"string",
},
});
example, err := ObjectStorage.NewPrivateEndpoint(ctx, "exampleprivateEndpointResourceResourceFromObjectStorageprivateEndpoint", &ObjectStorage.PrivateEndpointArgs{
Namespace: pulumi.String("string"),
SubnetId: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
AccessTargets: objectstorage.PrivateEndpointAccessTargetArray{
&objectstorage.PrivateEndpointAccessTargetArgs{
Bucket: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
Namespace: pulumi.String("string"),
},
},
Prefix: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
NsgIds: pulumi.StringArray{
pulumi.String("string"),
},
Fqdns: pulumi.StringMapMapMap{
"string": pulumi.StringMapMap{
"string": pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
PrivateEndpointIp: pulumi.String("string"),
State: pulumi.String("string"),
AdditionalPrefixes: pulumi.StringArray{
pulumi.String("string"),
},
})
var exampleprivateEndpointResourceResourceFromObjectStorageprivateEndpoint = new PrivateEndpoint("exampleprivateEndpointResourceResourceFromObjectStorageprivateEndpoint", PrivateEndpointArgs.builder()
.namespace("string")
.subnetId("string")
.compartmentId("string")
.accessTargets(PrivateEndpointAccessTargetArgs.builder()
.bucket("string")
.compartmentId("string")
.namespace("string")
.build())
.prefix("string")
.definedTags(Map.of("string", "string"))
.name("string")
.freeformTags(Map.of("string", "string"))
.nsgIds("string")
.fqdns(Map.of("string", Map.of("string", Map.of("string", "string"))))
.privateEndpointIp("string")
.state("string")
.additionalPrefixes("string")
.build());
exampleprivate_endpoint_resource_resource_from_object_storageprivate_endpoint = oci.object_storage.PrivateEndpoint("exampleprivateEndpointResourceResourceFromObjectStorageprivateEndpoint",
namespace="string",
subnet_id="string",
compartment_id="string",
access_targets=[{
"bucket": "string",
"compartment_id": "string",
"namespace": "string",
}],
prefix="string",
defined_tags={
"string": "string",
},
name="string",
freeform_tags={
"string": "string",
},
nsg_ids=["string"],
fqdns={
"string": {
"string": {
"string": "string",
},
},
},
private_endpoint_ip="string",
state="string",
additional_prefixes=["string"])
const exampleprivateEndpointResourceResourceFromObjectStorageprivateEndpoint = new oci.objectstorage.PrivateEndpoint("exampleprivateEndpointResourceResourceFromObjectStorageprivateEndpoint", {
namespace: "string",
subnetId: "string",
compartmentId: "string",
accessTargets: [{
bucket: "string",
compartmentId: "string",
namespace: "string",
}],
prefix: "string",
definedTags: {
string: "string",
},
name: "string",
freeformTags: {
string: "string",
},
nsgIds: ["string"],
fqdns: {
string: {
string: {
string: "string",
},
},
},
privateEndpointIp: "string",
state: "string",
additionalPrefixes: ["string"],
});
type: oci:ObjectStorage:PrivateEndpoint
properties:
accessTargets:
- bucket: string
compartmentId: string
namespace: string
additionalPrefixes:
- string
compartmentId: string
definedTags:
string: string
fqdns:
string:
string:
string: string
freeformTags:
string: string
name: string
namespace: string
nsgIds:
- string
prefix: string
privateEndpointIp: string
state: string
subnetId: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PrivateEndpoint resource accepts the following input properties:
- Access
Targets This property is required. List<PrivateEndpoint Access Target> - Compartment
Id This property is required. string - Namespace
This property is required. string - Prefix
This property is required. Changes to this property will trigger replacement.
- Subnet
Id This property is required. string - Additional
Prefixes List<string> - Dictionary<string, string>
- Fqdns
Dictionary<string, Immutable
Dictionary<string, Immutable Dictionary<string, string>>> - Dictionary<string, string>
- Name
Changes to this property will trigger replacement.
- Nsg
Ids List<string> - Private
Endpoint stringIp - State string
- Access
Targets This property is required. []PrivateEndpoint Access Target Args - Compartment
Id This property is required. string - Namespace
This property is required. string - Prefix
This property is required. Changes to this property will trigger replacement.
- Subnet
Id This property is required. string - Additional
Prefixes []string - map[string]string
- Fqdns map[string]map[string]map[string]string
- map[string]string
- Name
Changes to this property will trigger replacement.
- Nsg
Ids []string - Private
Endpoint stringIp - State string
- access
Targets This property is required. List<PrivateEndpoint Access Target> - compartment
Id This property is required. String - namespace
This property is required. String - prefix
This property is required. Changes to this property will trigger replacement.
- subnet
Id This property is required. String - additional
Prefixes List<String> - Map<String,String>
- fqdns Map<String,Map<String,Map<String,String>>>
- Map<String,String>
- name
Changes to this property will trigger replacement.
- nsg
Ids List<String> - private
Endpoint StringIp - state String
- access
Targets This property is required. PrivateEndpoint Access Target[] - compartment
Id This property is required. string - namespace
This property is required. string - prefix
This property is required. Changes to this property will trigger replacement.
- subnet
Id This property is required. string - additional
Prefixes string[] - {[key: string]: string}
- fqdns {[key: string]: {[key: string]: {[key: string]: string}}}
- {[key: string]: string}
- name
Changes to this property will trigger replacement.
- nsg
Ids string[] - private
Endpoint stringIp - state string
- access_
targets This property is required. Sequence[objectstorage.Private Endpoint Access Target Args] - compartment_
id This property is required. str - namespace
This property is required. str - prefix
This property is required. Changes to this property will trigger replacement.
- subnet_
id This property is required. str - additional_
prefixes Sequence[str] - Mapping[str, str]
- fqdns Mapping[str, Mapping[str, Mapping[str, str]]]
- Mapping[str, str]
- name
Changes to this property will trigger replacement.
- nsg_
ids Sequence[str] - private_
endpoint_ strip - state str
- access
Targets This property is required. List<Property Map> - compartment
Id This property is required. String - namespace
This property is required. String - prefix
This property is required. Changes to this property will trigger replacement.
- subnet
Id This property is required. String - additional
Prefixes List<String> - Map<String>
- fqdns Map<Map<Map<String>>>
- Map<String>
- name
Changes to this property will trigger replacement.
- nsg
Ids List<String> - private
Endpoint StringIp - state String
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateEndpoint resource produces the following output properties:
- Created
By string - Etag string
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created string - Time
Modified string
- Created
By string - Etag string
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created string - Time
Modified string
- created
By String - etag String
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created String - time
Modified String
- created
By string - etag string
- id string
- The provider-assigned unique ID for this managed resource.
- time
Created string - time
Modified string
- created_
by str - etag str
- id str
- The provider-assigned unique ID for this managed resource.
- time_
created str - time_
modified str
- created
By String - etag String
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created String - time
Modified String
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,
access_targets: Optional[Sequence[_objectstorage.PrivateEndpointAccessTargetArgs]] = None,
additional_prefixes: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
created_by: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
etag: Optional[str] = None,
fqdns: Optional[Mapping[str, Mapping[str, Mapping[str, str]]]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
nsg_ids: Optional[Sequence[str]] = None,
prefix: Optional[str] = None,
private_endpoint_ip: Optional[str] = None,
state: Optional[str] = None,
subnet_id: Optional[str] = None,
time_created: Optional[str] = None,
time_modified: 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)
resources: _: type: oci:ObjectStorage:PrivateEndpoint get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Access
Targets List<PrivateEndpoint Access Target> - Additional
Prefixes List<string> - Compartment
Id string - Created
By string - Dictionary<string, string>
- Etag string
- Fqdns
Dictionary<string, Immutable
Dictionary<string, Immutable Dictionary<string, string>>> - Dictionary<string, string>
- Name
Changes to this property will trigger replacement.
- Namespace string
- Nsg
Ids List<string> - Prefix
Changes to this property will trigger replacement.
- Private
Endpoint stringIp - State string
- Subnet
Id string - Time
Created string - Time
Modified string
- Access
Targets []PrivateEndpoint Access Target Args - Additional
Prefixes []string - Compartment
Id string - Created
By string - map[string]string
- Etag string
- Fqdns map[string]map[string]map[string]string
- map[string]string
- Name
Changes to this property will trigger replacement.
- Namespace string
- Nsg
Ids []string - Prefix
Changes to this property will trigger replacement.
- Private
Endpoint stringIp - State string
- Subnet
Id string - Time
Created string - Time
Modified string
- access
Targets List<PrivateEndpoint Access Target> - additional
Prefixes List<String> - compartment
Id String - created
By String - Map<String,String>
- etag String
- fqdns Map<String,Map<String,Map<String,String>>>
- Map<String,String>
- name
Changes to this property will trigger replacement.
- namespace String
- nsg
Ids List<String> - prefix
Changes to this property will trigger replacement.
- private
Endpoint StringIp - state String
- subnet
Id String - time
Created String - time
Modified String
- access
Targets PrivateEndpoint Access Target[] - additional
Prefixes string[] - compartment
Id string - created
By string - {[key: string]: string}
- etag string
- fqdns {[key: string]: {[key: string]: {[key: string]: string}}}
- {[key: string]: string}
- name
Changes to this property will trigger replacement.
- namespace string
- nsg
Ids string[] - prefix
Changes to this property will trigger replacement.
- private
Endpoint stringIp - state string
- subnet
Id string - time
Created string - time
Modified string
- access_
targets Sequence[objectstorage.Private Endpoint Access Target Args] - additional_
prefixes Sequence[str] - compartment_
id str - created_
by str - Mapping[str, str]
- etag str
- fqdns Mapping[str, Mapping[str, Mapping[str, str]]]
- Mapping[str, str]
- name
Changes to this property will trigger replacement.
- namespace str
- nsg_
ids Sequence[str] - prefix
Changes to this property will trigger replacement.
- private_
endpoint_ strip - state str
- subnet_
id str - time_
created str - time_
modified str
- access
Targets List<Property Map> - additional
Prefixes List<String> - compartment
Id String - created
By String - Map<String>
- etag String
- fqdns Map<Map<Map<String>>>
- Map<String>
- name
Changes to this property will trigger replacement.
- namespace String
- nsg
Ids List<String> - prefix
Changes to this property will trigger replacement.
- private
Endpoint StringIp - state String
- subnet
Id String - time
Created String - time
Modified String
Supporting Types
PrivateEndpointAccessTarget, PrivateEndpointAccessTargetArgs
- Bucket
This property is required. string - Compartment
Id This property is required. string - Namespace
This property is required. string
- Bucket
This property is required. string - Compartment
Id This property is required. string - Namespace
This property is required. string
- bucket
This property is required. String - compartment
Id This property is required. String - namespace
This property is required. String
- bucket
This property is required. string - compartment
Id This property is required. string - namespace
This property is required. string
- bucket
This property is required. str - compartment_
id This property is required. str - namespace
This property is required. str
- bucket
This property is required. String - compartment
Id This property is required. String - namespace
This property is required. String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.