Class VnicAttachment
Represents an attachment between a VNIC and an instance. For more information, see
Virtual Network Interface Cards (VNICs).
Warning: Oracle recommends that you avoid using any confidential information when you
supply string values using the API.
Inherited Members
Namespace: Oci.CoreService.Models
Assembly: OCI.DotNetSDK.Core.dll
Syntax
public class VnicAttachment
Properties
AvailabilityDomain
Declaration
[Required(ErrorMessage = "AvailabilityDomain is required.")]
[JsonProperty(PropertyName = "availabilityDomain")]
public string AvailabilityDomain { get; set; }
Property Value
Type | Description |
---|---|
string | The availability domain of the instance.
|
Remarks
Required
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment the VNIC attachment is in, which is the same compartment the instance is in. |
Remarks
Required
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the VNIC attachment. |
Remarks
Required
InstanceId
Declaration
[Required(ErrorMessage = "InstanceId is required.")]
[JsonProperty(PropertyName = "instanceId")]
public string InstanceId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the instance. |
Remarks
Required
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public VnicAttachment.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
VnicAttachment.LifecycleStateEnum? | The current state of the VNIC attachment. |
Remarks
Required
NicIndex
Declaration
[JsonProperty(PropertyName = "nicIndex")]
public int? NicIndex { get; set; }
Property Value
Type | Description |
---|---|
int? | Which physical network interface card (NIC) the VNIC uses. 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). |
SubnetId
Declaration
[JsonProperty(PropertyName = "subnetId")]
public string SubnetId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the subnet to create the VNIC in. |
TimeCreated
Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the VNIC attachment was created, in the format defined by RFC3339.
|
Remarks
Required
VlanId
Declaration
[JsonProperty(PropertyName = "vlanId")]
public string VlanId { get; set; }
Property Value
Type | Description |
---|---|
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 {@link Vlan}.
|
VlanTag
Declaration
[JsonProperty(PropertyName = "vlanTag")]
public int? VlanTag { get; set; }
Property Value
Type | Description |
---|---|
int? | The Oracle-assigned VLAN tag of the attached VNIC. Available after the
attachment process is complete.
|
VnicId
Declaration
[JsonProperty(PropertyName = "vnicId")]
public string VnicId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the VNIC. Available after the attachment process is complete. |