UpdatePrivateIp

PUT {{baseUrl}}/privateIps/:privateIpId

Updates the specified private IP. You must specify the object's OCID. Use this operation if you want to:

  • Move a secondary private IP to a different VNIC in the same subnet.
  • Change the display name for a secondary private IP.
  • Change the hostname for a secondary private IP.

This operation cannot be used with primary private IPs. To update the hostname for the primary IP on a VNIC, use UpdateVnic.

Request Body

{"displayName"=>"ullamco quis sed nostru", "hostnameLabel"=>"t", "vnicId"=>"magna labor"}

HEADERS

KeyDatatypeRequiredDescription
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
will be updated or deleted only if the etag you provide matches the resource's current etag value.
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{"availabilityDomain":"Excepteur","compartmentId":"dolore est sed","definedTags":{},"displayName":"amet dolor qui fugiat","freeformTags":{},"hostnameLabel":"pariatur Lorem in","id":"qui Ut","ipAddress":"proident irure non enim","isPrimary":true,"lifecycleState":"TERMINATING","subnetId":"velit tempor officia incididunt ullamco","timeCreated":"2011-12-31T21:46:36.823Z","vlanId":"ut ullamco reprehenderit","vnicId":"magna"}