oci.Core.VnicAttachment
Explore with Pulumi AI
This resource provides the Vnic Attachment resource in Oracle Cloud Infrastructure Core service.
Creates a secondary VNIC and attaches it to the specified instance. For more information about secondary VNICs, see Virtual Network Interface Cards (VNICs).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVnicAttachment = new oci.core.VnicAttachment("test_vnic_attachment", {
createVnicDetails: {
assignIpv6ip: vnicAttachmentCreateVnicDetailsAssignIpv6ip,
assignPrivateDnsRecord: vnicAttachmentCreateVnicDetailsAssignPrivateDnsRecord,
assignPublicIp: vnicAttachmentCreateVnicDetailsAssignPublicIp,
definedTags: vnicAttachmentCreateVnicDetailsDefinedTags,
displayName: vnicAttachmentCreateVnicDetailsDisplayName,
freeformTags: vnicAttachmentCreateVnicDetailsFreeformTags,
hostnameLabel: vnicAttachmentCreateVnicDetailsHostnameLabel,
ipv6addressIpv6subnetCidrPairDetails: vnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetails,
nsgIds: vnicAttachmentCreateVnicDetailsNsgIds,
privateIp: vnicAttachmentCreateVnicDetailsPrivateIp,
skipSourceDestCheck: vnicAttachmentCreateVnicDetailsSkipSourceDestCheck,
subnetId: testSubnet.id,
vlanId: testVlan.id,
},
instanceId: testInstance.id,
displayName: vnicAttachmentDisplayName,
nicIndex: vnicAttachmentNicIndex,
});
import pulumi
import pulumi_oci as oci
test_vnic_attachment = oci.core.VnicAttachment("test_vnic_attachment",
create_vnic_details={
"assign_ipv6ip": vnic_attachment_create_vnic_details_assign_ipv6ip,
"assign_private_dns_record": vnic_attachment_create_vnic_details_assign_private_dns_record,
"assign_public_ip": vnic_attachment_create_vnic_details_assign_public_ip,
"defined_tags": vnic_attachment_create_vnic_details_defined_tags,
"display_name": vnic_attachment_create_vnic_details_display_name,
"freeform_tags": vnic_attachment_create_vnic_details_freeform_tags,
"hostname_label": vnic_attachment_create_vnic_details_hostname_label,
"ipv6address_ipv6subnet_cidr_pair_details": vnic_attachment_create_vnic_details_ipv6address_ipv6subnet_cidr_pair_details,
"nsg_ids": vnic_attachment_create_vnic_details_nsg_ids,
"private_ip": vnic_attachment_create_vnic_details_private_ip,
"skip_source_dest_check": vnic_attachment_create_vnic_details_skip_source_dest_check,
"subnet_id": test_subnet["id"],
"vlan_id": test_vlan["id"],
},
instance_id=test_instance["id"],
display_name=vnic_attachment_display_name,
nic_index=vnic_attachment_nic_index)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.NewVnicAttachment(ctx, "test_vnic_attachment", &Core.VnicAttachmentArgs{
CreateVnicDetails: &core.VnicAttachmentCreateVnicDetailsArgs{
AssignIpv6ip: pulumi.Any(vnicAttachmentCreateVnicDetailsAssignIpv6ip),
AssignPrivateDnsRecord: pulumi.Any(vnicAttachmentCreateVnicDetailsAssignPrivateDnsRecord),
AssignPublicIp: pulumi.Any(vnicAttachmentCreateVnicDetailsAssignPublicIp),
DefinedTags: pulumi.Any(vnicAttachmentCreateVnicDetailsDefinedTags),
DisplayName: pulumi.Any(vnicAttachmentCreateVnicDetailsDisplayName),
FreeformTags: pulumi.Any(vnicAttachmentCreateVnicDetailsFreeformTags),
HostnameLabel: pulumi.Any(vnicAttachmentCreateVnicDetailsHostnameLabel),
Ipv6addressIpv6subnetCidrPairDetails: pulumi.Any(vnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetails),
NsgIds: pulumi.Any(vnicAttachmentCreateVnicDetailsNsgIds),
PrivateIp: pulumi.Any(vnicAttachmentCreateVnicDetailsPrivateIp),
SkipSourceDestCheck: pulumi.Any(vnicAttachmentCreateVnicDetailsSkipSourceDestCheck),
SubnetId: pulumi.Any(testSubnet.Id),
VlanId: pulumi.Any(testVlan.Id),
},
InstanceId: pulumi.Any(testInstance.Id),
DisplayName: pulumi.Any(vnicAttachmentDisplayName),
NicIndex: pulumi.Any(vnicAttachmentNicIndex),
})
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 testVnicAttachment = new Oci.Core.VnicAttachment("test_vnic_attachment", new()
{
CreateVnicDetails = new Oci.Core.Inputs.VnicAttachmentCreateVnicDetailsArgs
{
AssignIpv6ip = vnicAttachmentCreateVnicDetailsAssignIpv6ip,
AssignPrivateDnsRecord = vnicAttachmentCreateVnicDetailsAssignPrivateDnsRecord,
AssignPublicIp = vnicAttachmentCreateVnicDetailsAssignPublicIp,
DefinedTags = vnicAttachmentCreateVnicDetailsDefinedTags,
DisplayName = vnicAttachmentCreateVnicDetailsDisplayName,
FreeformTags = vnicAttachmentCreateVnicDetailsFreeformTags,
HostnameLabel = vnicAttachmentCreateVnicDetailsHostnameLabel,
Ipv6addressIpv6subnetCidrPairDetails = vnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetails,
NsgIds = vnicAttachmentCreateVnicDetailsNsgIds,
PrivateIp = vnicAttachmentCreateVnicDetailsPrivateIp,
SkipSourceDestCheck = vnicAttachmentCreateVnicDetailsSkipSourceDestCheck,
SubnetId = testSubnet.Id,
VlanId = testVlan.Id,
},
InstanceId = testInstance.Id,
DisplayName = vnicAttachmentDisplayName,
NicIndex = vnicAttachmentNicIndex,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.VnicAttachment;
import com.pulumi.oci.Core.VnicAttachmentArgs;
import com.pulumi.oci.Core.inputs.VnicAttachmentCreateVnicDetailsArgs;
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 testVnicAttachment = new VnicAttachment("testVnicAttachment", VnicAttachmentArgs.builder()
.createVnicDetails(VnicAttachmentCreateVnicDetailsArgs.builder()
.assignIpv6ip(vnicAttachmentCreateVnicDetailsAssignIpv6ip)
.assignPrivateDnsRecord(vnicAttachmentCreateVnicDetailsAssignPrivateDnsRecord)
.assignPublicIp(vnicAttachmentCreateVnicDetailsAssignPublicIp)
.definedTags(vnicAttachmentCreateVnicDetailsDefinedTags)
.displayName(vnicAttachmentCreateVnicDetailsDisplayName)
.freeformTags(vnicAttachmentCreateVnicDetailsFreeformTags)
.hostnameLabel(vnicAttachmentCreateVnicDetailsHostnameLabel)
.ipv6addressIpv6subnetCidrPairDetails(vnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetails)
.nsgIds(vnicAttachmentCreateVnicDetailsNsgIds)
.privateIp(vnicAttachmentCreateVnicDetailsPrivateIp)
.skipSourceDestCheck(vnicAttachmentCreateVnicDetailsSkipSourceDestCheck)
.subnetId(testSubnet.id())
.vlanId(testVlan.id())
.build())
.instanceId(testInstance.id())
.displayName(vnicAttachmentDisplayName)
.nicIndex(vnicAttachmentNicIndex)
.build());
}
}
resources:
testVnicAttachment:
type: oci:Core:VnicAttachment
name: test_vnic_attachment
properties:
createVnicDetails:
assignIpv6ip: ${vnicAttachmentCreateVnicDetailsAssignIpv6ip}
assignPrivateDnsRecord: ${vnicAttachmentCreateVnicDetailsAssignPrivateDnsRecord}
assignPublicIp: ${vnicAttachmentCreateVnicDetailsAssignPublicIp}
definedTags: ${vnicAttachmentCreateVnicDetailsDefinedTags}
displayName: ${vnicAttachmentCreateVnicDetailsDisplayName}
freeformTags: ${vnicAttachmentCreateVnicDetailsFreeformTags}
hostnameLabel: ${vnicAttachmentCreateVnicDetailsHostnameLabel}
ipv6addressIpv6subnetCidrPairDetails: ${vnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetails}
nsgIds: ${vnicAttachmentCreateVnicDetailsNsgIds}
privateIp: ${vnicAttachmentCreateVnicDetailsPrivateIp}
skipSourceDestCheck: ${vnicAttachmentCreateVnicDetailsSkipSourceDestCheck}
subnetId: ${testSubnet.id}
vlanId: ${testVlan.id}
instanceId: ${testInstance.id}
displayName: ${vnicAttachmentDisplayName}
nicIndex: ${vnicAttachmentNicIndex}
Create VnicAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VnicAttachment(name: string, args: VnicAttachmentArgs, opts?: CustomResourceOptions);
@overload
def VnicAttachment(resource_name: str,
args: VnicAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VnicAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
create_vnic_details: Optional[_core.VnicAttachmentCreateVnicDetailsArgs] = None,
instance_id: Optional[str] = None,
display_name: Optional[str] = None,
nic_index: Optional[int] = None)
func NewVnicAttachment(ctx *Context, name string, args VnicAttachmentArgs, opts ...ResourceOption) (*VnicAttachment, error)
public VnicAttachment(string name, VnicAttachmentArgs args, CustomResourceOptions? opts = null)
public VnicAttachment(String name, VnicAttachmentArgs args)
public VnicAttachment(String name, VnicAttachmentArgs args, CustomResourceOptions options)
type: oci:Core:VnicAttachment
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 VnicAttachmentArgs
- 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 VnicAttachmentArgs
- 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 VnicAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VnicAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VnicAttachmentArgs
- 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 vnicAttachmentResource = new Oci.Core.VnicAttachment("vnicAttachmentResource", new()
{
CreateVnicDetails = new Oci.Core.Inputs.VnicAttachmentCreateVnicDetailsArgs
{
AssignIpv6ip = false,
AssignPrivateDnsRecord = false,
AssignPublicIp = "string",
DefinedTags =
{
{ "string", "string" },
},
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
HostnameLabel = "string",
Ipv6addressIpv6subnetCidrPairDetails = new[]
{
new Oci.Core.Inputs.VnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetailArgs
{
Ipv6Address = "string",
Ipv6SubnetCidr = "string",
},
},
NsgIds = new[]
{
"string",
},
PrivateIp = "string",
SkipSourceDestCheck = false,
SubnetId = "string",
VlanId = "string",
},
InstanceId = "string",
DisplayName = "string",
NicIndex = 0,
});
example, err := Core.NewVnicAttachment(ctx, "vnicAttachmentResource", &Core.VnicAttachmentArgs{
CreateVnicDetails: &core.VnicAttachmentCreateVnicDetailsArgs{
AssignIpv6ip: pulumi.Bool(false),
AssignPrivateDnsRecord: pulumi.Bool(false),
AssignPublicIp: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
HostnameLabel: pulumi.String("string"),
Ipv6addressIpv6subnetCidrPairDetails: core.VnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetailArray{
&core.VnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetailArgs{
Ipv6Address: pulumi.String("string"),
Ipv6SubnetCidr: pulumi.String("string"),
},
},
NsgIds: pulumi.StringArray{
pulumi.String("string"),
},
PrivateIp: pulumi.String("string"),
SkipSourceDestCheck: pulumi.Bool(false),
SubnetId: pulumi.String("string"),
VlanId: pulumi.String("string"),
},
InstanceId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
NicIndex: pulumi.Int(0),
})
var vnicAttachmentResource = new VnicAttachment("vnicAttachmentResource", VnicAttachmentArgs.builder()
.createVnicDetails(VnicAttachmentCreateVnicDetailsArgs.builder()
.assignIpv6ip(false)
.assignPrivateDnsRecord(false)
.assignPublicIp("string")
.definedTags(Map.of("string", "string"))
.displayName("string")
.freeformTags(Map.of("string", "string"))
.hostnameLabel("string")
.ipv6addressIpv6subnetCidrPairDetails(VnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetailArgs.builder()
.ipv6Address("string")
.ipv6SubnetCidr("string")
.build())
.nsgIds("string")
.privateIp("string")
.skipSourceDestCheck(false)
.subnetId("string")
.vlanId("string")
.build())
.instanceId("string")
.displayName("string")
.nicIndex(0)
.build());
vnic_attachment_resource = oci.core.VnicAttachment("vnicAttachmentResource",
create_vnic_details=oci.core.VnicAttachmentCreateVnicDetailsArgs(
assign_ipv6ip=False,
assign_private_dns_record=False,
assign_public_ip="string",
defined_tags={
"string": "string",
},
display_name="string",
freeform_tags={
"string": "string",
},
hostname_label="string",
ipv6address_ipv6subnet_cidr_pair_details=[oci.core.VnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetailArgs(
ipv6_address="string",
ipv6_subnet_cidr="string",
)],
nsg_ids=["string"],
private_ip="string",
skip_source_dest_check=False,
subnet_id="string",
vlan_id="string",
),
instance_id="string",
display_name="string",
nic_index=0)
const vnicAttachmentResource = new oci.core.VnicAttachment("vnicAttachmentResource", {
createVnicDetails: {
assignIpv6ip: false,
assignPrivateDnsRecord: false,
assignPublicIp: "string",
definedTags: {
string: "string",
},
displayName: "string",
freeformTags: {
string: "string",
},
hostnameLabel: "string",
ipv6addressIpv6subnetCidrPairDetails: [{
ipv6Address: "string",
ipv6SubnetCidr: "string",
}],
nsgIds: ["string"],
privateIp: "string",
skipSourceDestCheck: false,
subnetId: "string",
vlanId: "string",
},
instanceId: "string",
displayName: "string",
nicIndex: 0,
});
type: oci:Core:VnicAttachment
properties:
createVnicDetails:
assignIpv6ip: false
assignPrivateDnsRecord: false
assignPublicIp: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
hostnameLabel: string
ipv6addressIpv6subnetCidrPairDetails:
- ipv6Address: string
ipv6SubnetCidr: string
nsgIds:
- string
privateIp: string
skipSourceDestCheck: false
subnetId: string
vlanId: string
displayName: string
instanceId: string
nicIndex: 0
VnicAttachment 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 VnicAttachment resource accepts the following input properties:
- Create
Vnic VnicDetails Attachment Create Vnic Details - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- Instance
Id string - The OCID of the instance.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Nic
Index int Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- Create
Vnic VnicDetails Attachment Create Vnic Details Args - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- Instance
Id string - The OCID of the instance.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Nic
Index int Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- create
Vnic VnicDetails Attachment Create Vnic Details - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- instance
Id String - The OCID of the instance.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- nic
Index Integer Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- create
Vnic VnicDetails Attachment Create Vnic Details - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- instance
Id string - The OCID of the instance.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- nic
Index number Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- create_
vnic_ core.details Vnic Attachment Create Vnic Details Args - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- instance_
id str - The OCID of the instance.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- nic_
index int Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- create
Vnic Property MapDetails - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- instance
Id String - The OCID of the instance.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- nic
Index Number Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
Outputs
All input properties are implicitly available as output properties. Additionally, the VnicAttachment resource produces the following output properties:
- Availability
Domain string - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the VNIC attachment.
- Subnet
Id string - The OCID of the subnet to create the VNIC in.
- Time
Created string - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vlan
Id string - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- Vlan
Tag int - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- Vnic
Id string - The OCID of the VNIC. Available after the attachment process is complete.
- Availability
Domain string - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the VNIC attachment.
- Subnet
Id string - The OCID of the subnet to create the VNIC in.
- Time
Created string - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vlan
Id string - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- Vlan
Tag int - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- Vnic
Id string - The OCID of the VNIC. Available after the attachment process is complete.
- availability
Domain String - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the VNIC attachment.
- subnet
Id String - The OCID of the subnet to create the VNIC in.
- time
Created String - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vlan
Id String - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- vlan
Tag Integer - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- vnic
Id String - The OCID of the VNIC. Available after the attachment process is complete.
- availability
Domain string - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- compartment
Id string - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of the VNIC attachment.
- subnet
Id string - The OCID of the subnet to create the VNIC in.
- time
Created string - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vlan
Id string - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- vlan
Tag number - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- vnic
Id string - The OCID of the VNIC. Available after the attachment process is complete.
- availability_
domain str - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- compartment_
id str - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of the VNIC attachment.
- subnet_
id str - The OCID of the subnet to create the VNIC in.
- time_
created str - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vlan_
id str - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- vlan_
tag int - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- vnic_
id str - The OCID of the VNIC. Available after the attachment process is complete.
- availability
Domain String - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the VNIC attachment.
- subnet
Id String - The OCID of the subnet to create the VNIC in.
- time
Created String - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vlan
Id String - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- vlan
Tag Number - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- vnic
Id String - The OCID of the VNIC. Available after the attachment process is complete.
Look up Existing VnicAttachment Resource
Get an existing VnicAttachment 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?: VnicAttachmentState, opts?: CustomResourceOptions): VnicAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
create_vnic_details: Optional[_core.VnicAttachmentCreateVnicDetailsArgs] = None,
display_name: Optional[str] = None,
instance_id: Optional[str] = None,
nic_index: Optional[int] = None,
state: Optional[str] = None,
subnet_id: Optional[str] = None,
time_created: Optional[str] = None,
vlan_id: Optional[str] = None,
vlan_tag: Optional[int] = None,
vnic_id: Optional[str] = None) -> VnicAttachment
func GetVnicAttachment(ctx *Context, name string, id IDInput, state *VnicAttachmentState, opts ...ResourceOption) (*VnicAttachment, error)
public static VnicAttachment Get(string name, Input<string> id, VnicAttachmentState? state, CustomResourceOptions? opts = null)
public static VnicAttachment get(String name, Output<String> id, VnicAttachmentState 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.
- Availability
Domain string - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- Create
Vnic VnicDetails Attachment Create Vnic Details - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Instance
Id string - The OCID of the instance.
- Nic
Index int Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- State string
- The current state of the VNIC attachment.
- Subnet
Id string - The OCID of the subnet to create the VNIC in.
- Time
Created string - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vlan
Id string - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- Vlan
Tag int - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- Vnic
Id string - The OCID of the VNIC. Available after the attachment process is complete.
- Availability
Domain string - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- Create
Vnic VnicDetails Attachment Create Vnic Details Args - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Instance
Id string - The OCID of the instance.
- Nic
Index int Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- State string
- The current state of the VNIC attachment.
- Subnet
Id string - The OCID of the subnet to create the VNIC in.
- Time
Created string - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vlan
Id string - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- Vlan
Tag int - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- Vnic
Id string - The OCID of the VNIC. Available after the attachment process is complete.
- availability
Domain String - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- create
Vnic VnicDetails Attachment Create Vnic Details - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- instance
Id String - The OCID of the instance.
- nic
Index Integer Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- state String
- The current state of the VNIC attachment.
- subnet
Id String - The OCID of the subnet to create the VNIC in.
- time
Created String - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vlan
Id String - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- vlan
Tag Integer - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- vnic
Id String - The OCID of the VNIC. Available after the attachment process is complete.
- availability
Domain string - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- compartment
Id string - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- create
Vnic VnicDetails Attachment Create Vnic Details - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- instance
Id string - The OCID of the instance.
- nic
Index number Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- state string
- The current state of the VNIC attachment.
- subnet
Id string - The OCID of the subnet to create the VNIC in.
- time
Created string - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vlan
Id string - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- vlan
Tag number - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- vnic
Id string - The OCID of the VNIC. Available after the attachment process is complete.
- availability_
domain str - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- compartment_
id str - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- create_
vnic_ core.details Vnic Attachment Create Vnic Details Args - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- instance_
id str - The OCID of the instance.
- nic_
index int Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- state str
- The current state of the VNIC attachment.
- subnet_
id str - The OCID of the subnet to create the VNIC in.
- time_
created str - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vlan_
id str - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- vlan_
tag int - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- vnic_
id str - The OCID of the VNIC. Available after the attachment process is complete.
- availability
Domain String - The availability domain of the instance. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in.
- create
Vnic Property MapDetails - (Updatable) Contains properties for a VNIC. You use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC. For more information about VNICs, see Virtual Network Interface Cards (VNICs).
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- instance
Id String - The OCID of the instance.
- nic
Index Number Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
** 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
- state String
- The current state of the VNIC attachment.
- subnet
Id String - The OCID of the subnet to create the VNIC in.
- time
Created String - The date and time the VNIC attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vlan
Id String - The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. See Vlan.
- vlan
Tag Number - The Oracle-assigned VLAN tag of the attached VNIC. Available after the attachment process is complete.
- vnic
Id String - The OCID of the VNIC. Available after the attachment process is complete.
Supporting Types
VnicAttachmentCreateVnicDetails, VnicAttachmentCreateVnicDetailsArgs
- Assign
Ipv6ip bool - Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (
ipv6SubnetCidr
) of your choice to assign the IPv6 address from. Ifipv6SubnetCidr
is not provided then an IPv6 prefix is chosen for you. - Assign
Private boolDns Record Whether the VNIC should be assigned a DNS record. If set to false, no DNS record registion for the VNIC; if set to true, DNS record will be registered. Example:
true
If you specify a
hostnameLabel
, theassignPrivateDnsRecord
is require to be set to true.- Assign
Public stringIp Whether the VNIC should be assigned a public IP address. Defaults to whether the subnet is public or private. If not set and the VNIC is being created in a private subnet (that is, where
prohibitPublicIpOnVnic
= true in the Subnet), then no public IP address is assigned. If not set and the subnet is public (prohibitPublicIpOnVnic
= false), then a public IP address is assigned. If set to true andprohibitPublicIpOnVnic
= true, an error is returned.Note: This public IP address is associated with the primary private IP on the VNIC. For more information, see IP Addresses.
Note: There's a limit to the number of public IPs a VNIC or instance can have. If you try to create a secondary VNIC with an assigned public IP for an instance that has already reached its public IP limit, an error is returned. For information about the public IP limits, see Public IP Addresses.
Example:
false
If you specify a
vlanId
, thenassignPublicIp
must be set to false. See Vlan.- Dictionary<string, string>
- (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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) 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"}
- Hostname
Label string (Updatable) The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example,
bminstance1
in FQDNbminstance1.subnet123.vcn1.oraclevcn.com
). Must be unique across all VNICs in the subnet and comply with RFC 952 and RFC 1123. The value appears in the[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.For more information, see DNS in Your Virtual Cloud Network.
When launching an instance, use this
hostnameLabel
instead of the deprecatedhostnameLabel
in[LaunchInstanceDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/requests/LaunchInstanceDetails)
. If you provide both, the values must match.Example:
bminstance1
If you specify a
vlanId
, thehostnameLabel
cannot be specified. VNICs on a VLAN can not be assigned a hostname. See Vlan.- Ipv6address
Ipv6subnet List<VnicCidr Pair Details Attachment Create Vnic Details Ipv6address Ipv6subnet Cidr Pair Detail> - A list of IPv6 prefix ranges from which the VNIC should be assigned an IPv6 address. You can provide only the prefix ranges from which Oracle Cloud Infrastructure will select an available address from the range. You can optionally choose to leave the prefix range empty and instead provide the specific IPv6 address that should be used from within that range.
- Nsg
Ids List<string> (Updatable) A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more information about NSGs, see NetworkSecurityGroup.
If a
vlanId
is specified, thensgIds
cannot be specified. ThevlanId
indicates that the VNIC will belong to a VLAN instead of a subnet. With VLANs, all VNICs in the VLAN belong to the NSGs that are associated with the VLAN. See Vlan.- Private
Ip string A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet. This is the VNIC's primary private IP address. The value appears in the
[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.If you specify a
vlanId
, theprivateIp
cannot be specified. See Vlan.Example:
10.0.3.3
- Skip
Source boolDest Check (Updatable) Whether the source/destination check is disabled on the VNIC. Defaults to
false
, which means the check is performed. For information about why you would skip the source/destination check, see Using a Private IP as a Route Target.If you specify a
vlanId
, theskipSourceDestCheck
cannot be specified because the source/destination check is always disabled for VNICs in a VLAN. See Vlan.Example:
true
- Subnet
Id string The OCID of the subnet to create the VNIC in. When launching an instance, use this
subnetId
instead of the deprecatedsubnetId
in LaunchInstanceDetails. At least one of them is required; if you provide both, the values must match.If you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN instead of a subnet, provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.- Vlan
Id string Provide this attribute only if you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN. The value is the OCID of the VLAN. See Vlan.
Provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.
- Assign
Ipv6ip bool - Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (
ipv6SubnetCidr
) of your choice to assign the IPv6 address from. Ifipv6SubnetCidr
is not provided then an IPv6 prefix is chosen for you. - Assign
Private boolDns Record Whether the VNIC should be assigned a DNS record. If set to false, no DNS record registion for the VNIC; if set to true, DNS record will be registered. Example:
true
If you specify a
hostnameLabel
, theassignPrivateDnsRecord
is require to be set to true.- Assign
Public stringIp Whether the VNIC should be assigned a public IP address. Defaults to whether the subnet is public or private. If not set and the VNIC is being created in a private subnet (that is, where
prohibitPublicIpOnVnic
= true in the Subnet), then no public IP address is assigned. If not set and the subnet is public (prohibitPublicIpOnVnic
= false), then a public IP address is assigned. If set to true andprohibitPublicIpOnVnic
= true, an error is returned.Note: This public IP address is associated with the primary private IP on the VNIC. For more information, see IP Addresses.
Note: There's a limit to the number of public IPs a VNIC or instance can have. If you try to create a secondary VNIC with an assigned public IP for an instance that has already reached its public IP limit, an error is returned. For information about the public IP limits, see Public IP Addresses.
Example:
false
If you specify a
vlanId
, thenassignPublicIp
must be set to false. See Vlan.- map[string]string
- (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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- (Updatable) 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"}
- Hostname
Label string (Updatable) The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example,
bminstance1
in FQDNbminstance1.subnet123.vcn1.oraclevcn.com
). Must be unique across all VNICs in the subnet and comply with RFC 952 and RFC 1123. The value appears in the[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.For more information, see DNS in Your Virtual Cloud Network.
When launching an instance, use this
hostnameLabel
instead of the deprecatedhostnameLabel
in[LaunchInstanceDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/requests/LaunchInstanceDetails)
. If you provide both, the values must match.Example:
bminstance1
If you specify a
vlanId
, thehostnameLabel
cannot be specified. VNICs on a VLAN can not be assigned a hostname. See Vlan.- Ipv6address
Ipv6subnet []VnicCidr Pair Details Attachment Create Vnic Details Ipv6address Ipv6subnet Cidr Pair Detail - A list of IPv6 prefix ranges from which the VNIC should be assigned an IPv6 address. You can provide only the prefix ranges from which Oracle Cloud Infrastructure will select an available address from the range. You can optionally choose to leave the prefix range empty and instead provide the specific IPv6 address that should be used from within that range.
- Nsg
Ids []string (Updatable) A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more information about NSGs, see NetworkSecurityGroup.
If a
vlanId
is specified, thensgIds
cannot be specified. ThevlanId
indicates that the VNIC will belong to a VLAN instead of a subnet. With VLANs, all VNICs in the VLAN belong to the NSGs that are associated with the VLAN. See Vlan.- Private
Ip string A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet. This is the VNIC's primary private IP address. The value appears in the
[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.If you specify a
vlanId
, theprivateIp
cannot be specified. See Vlan.Example:
10.0.3.3
- Skip
Source boolDest Check (Updatable) Whether the source/destination check is disabled on the VNIC. Defaults to
false
, which means the check is performed. For information about why you would skip the source/destination check, see Using a Private IP as a Route Target.If you specify a
vlanId
, theskipSourceDestCheck
cannot be specified because the source/destination check is always disabled for VNICs in a VLAN. See Vlan.Example:
true
- Subnet
Id string The OCID of the subnet to create the VNIC in. When launching an instance, use this
subnetId
instead of the deprecatedsubnetId
in LaunchInstanceDetails. At least one of them is required; if you provide both, the values must match.If you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN instead of a subnet, provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.- Vlan
Id string Provide this attribute only if you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN. The value is the OCID of the VLAN. See Vlan.
Provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.
- assign
Ipv6ip Boolean - Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (
ipv6SubnetCidr
) of your choice to assign the IPv6 address from. Ifipv6SubnetCidr
is not provided then an IPv6 prefix is chosen for you. - assign
Private BooleanDns Record Whether the VNIC should be assigned a DNS record. If set to false, no DNS record registion for the VNIC; if set to true, DNS record will be registered. Example:
true
If you specify a
hostnameLabel
, theassignPrivateDnsRecord
is require to be set to true.- assign
Public StringIp Whether the VNIC should be assigned a public IP address. Defaults to whether the subnet is public or private. If not set and the VNIC is being created in a private subnet (that is, where
prohibitPublicIpOnVnic
= true in the Subnet), then no public IP address is assigned. If not set and the subnet is public (prohibitPublicIpOnVnic
= false), then a public IP address is assigned. If set to true andprohibitPublicIpOnVnic
= true, an error is returned.Note: This public IP address is associated with the primary private IP on the VNIC. For more information, see IP Addresses.
Note: There's a limit to the number of public IPs a VNIC or instance can have. If you try to create a secondary VNIC with an assigned public IP for an instance that has already reached its public IP limit, an error is returned. For information about the public IP limits, see Public IP Addresses.
Example:
false
If you specify a
vlanId
, thenassignPublicIp
must be set to false. See Vlan.- Map<String,String>
- (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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- (Updatable) 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"}
- hostname
Label String (Updatable) The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example,
bminstance1
in FQDNbminstance1.subnet123.vcn1.oraclevcn.com
). Must be unique across all VNICs in the subnet and comply with RFC 952 and RFC 1123. The value appears in the[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.For more information, see DNS in Your Virtual Cloud Network.
When launching an instance, use this
hostnameLabel
instead of the deprecatedhostnameLabel
in[LaunchInstanceDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/requests/LaunchInstanceDetails)
. If you provide both, the values must match.Example:
bminstance1
If you specify a
vlanId
, thehostnameLabel
cannot be specified. VNICs on a VLAN can not be assigned a hostname. See Vlan.- ipv6address
Ipv6subnet List<VnicCidr Pair Details Attachment Create Vnic Details Ipv6address Ipv6subnet Cidr Pair Detail> - A list of IPv6 prefix ranges from which the VNIC should be assigned an IPv6 address. You can provide only the prefix ranges from which Oracle Cloud Infrastructure will select an available address from the range. You can optionally choose to leave the prefix range empty and instead provide the specific IPv6 address that should be used from within that range.
- nsg
Ids List<String> (Updatable) A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more information about NSGs, see NetworkSecurityGroup.
If a
vlanId
is specified, thensgIds
cannot be specified. ThevlanId
indicates that the VNIC will belong to a VLAN instead of a subnet. With VLANs, all VNICs in the VLAN belong to the NSGs that are associated with the VLAN. See Vlan.- private
Ip String A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet. This is the VNIC's primary private IP address. The value appears in the
[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.If you specify a
vlanId
, theprivateIp
cannot be specified. See Vlan.Example:
10.0.3.3
- skip
Source BooleanDest Check (Updatable) Whether the source/destination check is disabled on the VNIC. Defaults to
false
, which means the check is performed. For information about why you would skip the source/destination check, see Using a Private IP as a Route Target.If you specify a
vlanId
, theskipSourceDestCheck
cannot be specified because the source/destination check is always disabled for VNICs in a VLAN. See Vlan.Example:
true
- subnet
Id String The OCID of the subnet to create the VNIC in. When launching an instance, use this
subnetId
instead of the deprecatedsubnetId
in LaunchInstanceDetails. At least one of them is required; if you provide both, the values must match.If you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN instead of a subnet, provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.- vlan
Id String Provide this attribute only if you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN. The value is the OCID of the VLAN. See Vlan.
Provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.
- assign
Ipv6ip boolean - Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (
ipv6SubnetCidr
) of your choice to assign the IPv6 address from. Ifipv6SubnetCidr
is not provided then an IPv6 prefix is chosen for you. - assign
Private booleanDns Record Whether the VNIC should be assigned a DNS record. If set to false, no DNS record registion for the VNIC; if set to true, DNS record will be registered. Example:
true
If you specify a
hostnameLabel
, theassignPrivateDnsRecord
is require to be set to true.- assign
Public stringIp Whether the VNIC should be assigned a public IP address. Defaults to whether the subnet is public or private. If not set and the VNIC is being created in a private subnet (that is, where
prohibitPublicIpOnVnic
= true in the Subnet), then no public IP address is assigned. If not set and the subnet is public (prohibitPublicIpOnVnic
= false), then a public IP address is assigned. If set to true andprohibitPublicIpOnVnic
= true, an error is returned.Note: This public IP address is associated with the primary private IP on the VNIC. For more information, see IP Addresses.
Note: There's a limit to the number of public IPs a VNIC or instance can have. If you try to create a secondary VNIC with an assigned public IP for an instance that has already reached its public IP limit, an error is returned. For information about the public IP limits, see Public IP Addresses.
Example:
false
If you specify a
vlanId
, thenassignPublicIp
must be set to false. See Vlan.- {[key: string]: string}
- (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"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) 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"}
- hostname
Label string (Updatable) The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example,
bminstance1
in FQDNbminstance1.subnet123.vcn1.oraclevcn.com
). Must be unique across all VNICs in the subnet and comply with RFC 952 and RFC 1123. The value appears in the[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.For more information, see DNS in Your Virtual Cloud Network.
When launching an instance, use this
hostnameLabel
instead of the deprecatedhostnameLabel
in[LaunchInstanceDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/requests/LaunchInstanceDetails)
. If you provide both, the values must match.Example:
bminstance1
If you specify a
vlanId
, thehostnameLabel
cannot be specified. VNICs on a VLAN can not be assigned a hostname. See Vlan.- ipv6address
Ipv6subnet VnicCidr Pair Details Attachment Create Vnic Details Ipv6address Ipv6subnet Cidr Pair Detail[] - A list of IPv6 prefix ranges from which the VNIC should be assigned an IPv6 address. You can provide only the prefix ranges from which Oracle Cloud Infrastructure will select an available address from the range. You can optionally choose to leave the prefix range empty and instead provide the specific IPv6 address that should be used from within that range.
- nsg
Ids string[] (Updatable) A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more information about NSGs, see NetworkSecurityGroup.
If a
vlanId
is specified, thensgIds
cannot be specified. ThevlanId
indicates that the VNIC will belong to a VLAN instead of a subnet. With VLANs, all VNICs in the VLAN belong to the NSGs that are associated with the VLAN. See Vlan.- private
Ip string A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet. This is the VNIC's primary private IP address. The value appears in the
[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.If you specify a
vlanId
, theprivateIp
cannot be specified. See Vlan.Example:
10.0.3.3
- skip
Source booleanDest Check (Updatable) Whether the source/destination check is disabled on the VNIC. Defaults to
false
, which means the check is performed. For information about why you would skip the source/destination check, see Using a Private IP as a Route Target.If you specify a
vlanId
, theskipSourceDestCheck
cannot be specified because the source/destination check is always disabled for VNICs in a VLAN. See Vlan.Example:
true
- subnet
Id string The OCID of the subnet to create the VNIC in. When launching an instance, use this
subnetId
instead of the deprecatedsubnetId
in LaunchInstanceDetails. At least one of them is required; if you provide both, the values must match.If you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN instead of a subnet, provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.- vlan
Id string Provide this attribute only if you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN. The value is the OCID of the VLAN. See Vlan.
Provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.
- assign_
ipv6ip bool - Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (
ipv6SubnetCidr
) of your choice to assign the IPv6 address from. Ifipv6SubnetCidr
is not provided then an IPv6 prefix is chosen for you. - assign_
private_ booldns_ record Whether the VNIC should be assigned a DNS record. If set to false, no DNS record registion for the VNIC; if set to true, DNS record will be registered. Example:
true
If you specify a
hostnameLabel
, theassignPrivateDnsRecord
is require to be set to true.- assign_
public_ strip Whether the VNIC should be assigned a public IP address. Defaults to whether the subnet is public or private. If not set and the VNIC is being created in a private subnet (that is, where
prohibitPublicIpOnVnic
= true in the Subnet), then no public IP address is assigned. If not set and the subnet is public (prohibitPublicIpOnVnic
= false), then a public IP address is assigned. If set to true andprohibitPublicIpOnVnic
= true, an error is returned.Note: This public IP address is associated with the primary private IP on the VNIC. For more information, see IP Addresses.
Note: There's a limit to the number of public IPs a VNIC or instance can have. If you try to create a secondary VNIC with an assigned public IP for an instance that has already reached its public IP limit, an error is returned. For information about the public IP limits, see Public IP Addresses.
Example:
false
If you specify a
vlanId
, thenassignPublicIp
must be set to false. See Vlan.- Mapping[str, str]
- (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"}
- display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) 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"}
- hostname_
label str (Updatable) The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example,
bminstance1
in FQDNbminstance1.subnet123.vcn1.oraclevcn.com
). Must be unique across all VNICs in the subnet and comply with RFC 952 and RFC 1123. The value appears in the[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.For more information, see DNS in Your Virtual Cloud Network.
When launching an instance, use this
hostnameLabel
instead of the deprecatedhostnameLabel
in[LaunchInstanceDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/requests/LaunchInstanceDetails)
. If you provide both, the values must match.Example:
bminstance1
If you specify a
vlanId
, thehostnameLabel
cannot be specified. VNICs on a VLAN can not be assigned a hostname. See Vlan.- ipv6address_
ipv6subnet_ Sequence[core.cidr_ pair_ details Vnic Attachment Create Vnic Details Ipv6address Ipv6subnet Cidr Pair Detail] - A list of IPv6 prefix ranges from which the VNIC should be assigned an IPv6 address. You can provide only the prefix ranges from which Oracle Cloud Infrastructure will select an available address from the range. You can optionally choose to leave the prefix range empty and instead provide the specific IPv6 address that should be used from within that range.
- nsg_
ids Sequence[str] (Updatable) A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more information about NSGs, see NetworkSecurityGroup.
If a
vlanId
is specified, thensgIds
cannot be specified. ThevlanId
indicates that the VNIC will belong to a VLAN instead of a subnet. With VLANs, all VNICs in the VLAN belong to the NSGs that are associated with the VLAN. See Vlan.- private_
ip str A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet. This is the VNIC's primary private IP address. The value appears in the
[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.If you specify a
vlanId
, theprivateIp
cannot be specified. See Vlan.Example:
10.0.3.3
- skip_
source_ booldest_ check (Updatable) Whether the source/destination check is disabled on the VNIC. Defaults to
false
, which means the check is performed. For information about why you would skip the source/destination check, see Using a Private IP as a Route Target.If you specify a
vlanId
, theskipSourceDestCheck
cannot be specified because the source/destination check is always disabled for VNICs in a VLAN. See Vlan.Example:
true
- subnet_
id str The OCID of the subnet to create the VNIC in. When launching an instance, use this
subnetId
instead of the deprecatedsubnetId
in LaunchInstanceDetails. At least one of them is required; if you provide both, the values must match.If you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN instead of a subnet, provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.- vlan_
id str Provide this attribute only if you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN. The value is the OCID of the VLAN. See Vlan.
Provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.
- assign
Ipv6ip Boolean - Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (
ipv6SubnetCidr
) of your choice to assign the IPv6 address from. Ifipv6SubnetCidr
is not provided then an IPv6 prefix is chosen for you. - assign
Private BooleanDns Record Whether the VNIC should be assigned a DNS record. If set to false, no DNS record registion for the VNIC; if set to true, DNS record will be registered. Example:
true
If you specify a
hostnameLabel
, theassignPrivateDnsRecord
is require to be set to true.- assign
Public StringIp Whether the VNIC should be assigned a public IP address. Defaults to whether the subnet is public or private. If not set and the VNIC is being created in a private subnet (that is, where
prohibitPublicIpOnVnic
= true in the Subnet), then no public IP address is assigned. If not set and the subnet is public (prohibitPublicIpOnVnic
= false), then a public IP address is assigned. If set to true andprohibitPublicIpOnVnic
= true, an error is returned.Note: This public IP address is associated with the primary private IP on the VNIC. For more information, see IP Addresses.
Note: There's a limit to the number of public IPs a VNIC or instance can have. If you try to create a secondary VNIC with an assigned public IP for an instance that has already reached its public IP limit, an error is returned. For information about the public IP limits, see Public IP Addresses.
Example:
false
If you specify a
vlanId
, thenassignPublicIp
must be set to false. See Vlan.- Map<String>
- (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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- (Updatable) 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"}
- hostname
Label String (Updatable) The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example,
bminstance1
in FQDNbminstance1.subnet123.vcn1.oraclevcn.com
). Must be unique across all VNICs in the subnet and comply with RFC 952 and RFC 1123. The value appears in the[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.For more information, see DNS in Your Virtual Cloud Network.
When launching an instance, use this
hostnameLabel
instead of the deprecatedhostnameLabel
in[LaunchInstanceDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/requests/LaunchInstanceDetails)
. If you provide both, the values must match.Example:
bminstance1
If you specify a
vlanId
, thehostnameLabel
cannot be specified. VNICs on a VLAN can not be assigned a hostname. See Vlan.- ipv6address
Ipv6subnet List<Property Map>Cidr Pair Details - A list of IPv6 prefix ranges from which the VNIC should be assigned an IPv6 address. You can provide only the prefix ranges from which Oracle Cloud Infrastructure will select an available address from the range. You can optionally choose to leave the prefix range empty and instead provide the specific IPv6 address that should be used from within that range.
- nsg
Ids List<String> (Updatable) A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more information about NSGs, see NetworkSecurityGroup.
If a
vlanId
is specified, thensgIds
cannot be specified. ThevlanId
indicates that the VNIC will belong to a VLAN instead of a subnet. With VLANs, all VNICs in the VLAN belong to the NSGs that are associated with the VLAN. See Vlan.- private
Ip String A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet. This is the VNIC's primary private IP address. The value appears in the
[Vnic](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vnic/)
object and also the[PrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/)
object returned by[ListPrivateIps](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/ListPrivateIps)
and[GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PrivateIp/GetPrivateIp)
.If you specify a
vlanId
, theprivateIp
cannot be specified. See Vlan.Example:
10.0.3.3
- skip
Source BooleanDest Check (Updatable) Whether the source/destination check is disabled on the VNIC. Defaults to
false
, which means the check is performed. For information about why you would skip the source/destination check, see Using a Private IP as a Route Target.If you specify a
vlanId
, theskipSourceDestCheck
cannot be specified because the source/destination check is always disabled for VNICs in a VLAN. See Vlan.Example:
true
- subnet
Id String The OCID of the subnet to create the VNIC in. When launching an instance, use this
subnetId
instead of the deprecatedsubnetId
in LaunchInstanceDetails. At least one of them is required; if you provide both, the values must match.If you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN instead of a subnet, provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.- vlan
Id String Provide this attribute only if you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN. The value is the OCID of the VLAN. See Vlan.
Provide a
vlanId
instead of asubnetId
. If you provide both avlanId
andsubnetId
, the request fails.
VnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetail, VnicAttachmentCreateVnicDetailsIpv6addressIpv6subnetCidrPairDetailArgs
- Ipv6Address string
- Ipv6Subnet
Cidr string
- Ipv6Address string
- Ipv6Subnet
Cidr string
- ipv6Address String
- ipv6Subnet
Cidr String
- ipv6Address string
- ipv6Subnet
Cidr string
- ipv6_
address str - ipv6_
subnet_ strcidr
- ipv6Address String
- ipv6Subnet
Cidr String
Import
VnicAttachments can be imported using the id
, e.g.
$ pulumi import oci:Core/vnicAttachment:VnicAttachment test_vnic_attachment "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.