Class CreateContainerVnicDetails
Information to create a virtual network interface card (VNIC) which gives
the containers on this container instance access to a virtual client network (VCN).
You use this object when creating the primary VNIC during container instance launch or when creating a secondary VNIC.
This VNIC is created in the same compartment as the specified subnet on
behalf of the customer.
The VNIC created by this call contains both the tags specified
in this object as well as any tags specified in the parent container instance.
Inherited Members
Namespace: Oci.ContainerinstancesService.Models
Assembly: OCI.DotNetSDK.Containerinstances.dll
Syntax
public class CreateContainerVnicDetails
Properties
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}}. |
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information. |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"} |
HostnameLabel
Declaration
[JsonProperty(PropertyName = "hostnameLabel")]
public string HostnameLabel { get; set; }
Property Value
Type | Description |
---|---|
string | The hostname for the VNIC's primary private IP. Used for DNS. |
IsPublicIpAssigned
Declaration
[JsonProperty(PropertyName = "isPublicIpAssigned")]
public bool? IsPublicIpAssigned { get; set; }
Property Value
Type | Description |
---|---|
bool? | Whether the VNIC should be assigned a public IP address. |
NsgIds
Declaration
[JsonProperty(PropertyName = "nsgIds")]
public List<string> NsgIds { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. |
PrivateIp
Declaration
[JsonProperty(PropertyName = "privateIp")]
public string PrivateIp { get; set; }
Property Value
Type | Description |
---|---|
string | A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR. |
SkipSourceDestCheck
Declaration
[JsonProperty(PropertyName = "skipSourceDestCheck")]
public bool? SkipSourceDestCheck { get; set; }
Property Value
Type | Description |
---|---|
bool? | Whether the source/destination check is disabled on the VNIC. |
SubnetId
Declaration
[Required(ErrorMessage = "SubnetId is required.")]
[JsonProperty(PropertyName = "subnetId")]
public string SubnetId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the subnet to create the VNIC in. |
Remarks
Required