AttachVnic
POST {{baseUrl}}/vnicAttachments/
Creates a secondary VNIC and attaches it to the specified instance. For more information about secondary VNICs, see Virtual Network Interface Cards (VNICs).
Request Body
{"instanceId"=>"commodo aute ad enim", "createVnicDetails"=>{"assignPrivateDnsRecord"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "assignPublicIp"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "definedTags"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "displayName"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "freeformTags"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "hostnameLabel"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "nsgIds"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "privateIp"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "skipSourceDestCheck"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "subnetId"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "vlanId"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "displayName"=>"dolore", "nicIndex"=>17}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or | |
server error without risk of executing that same action again. Retry tokens expire after 24 | |||
hours, but can be invalidated before then due to conflicting operations (for example, if a resource | |||
has been deleted and purged from the system, then a retry of the original creation request | |||
may be rejected). | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
{"id":"minim esse","compartmentId":"Excepteur consequat","instanceId":"eu laborum Ut","lifecycleState":"ATTACHING","availabilityDomain":"Ut labore velit sint","timeCreated":"1975-05-23T11:08:01.478Z","displayName":"Excepteur id","nicIndex":10,"subnetId":"nulla veniam labore","vlanId":"sit eiusmod","vlanTag":-60384509,"vnicId":"nostrud velit amet magna"}