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
Key | Datatype | Required | Description |
---|---|---|---|
if-match | string | For 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-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
{"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"}