GetPublicIpByPrivateIpId
POST {{baseUrl}}/publicIps/actions/getByPrivateIpId
Gets the public IP assigned to the specified private IP. You must specify the OCID of the private IP. If no public IP is assigned, a 404 is returned.
Note: If you're fetching a reserved public IP that is in the process of being
moved to a different private IP, and you provide the OCID of the original private
IP, this operation returns a 404. If you instead provide the OCID of the target
private IP, or if you instead call
GetPublicIp or
GetPublicIpByIpAddress, the
service returns the public IP object with lifecycleState
= ASSIGNING and
assignedEntityId
= OCID of the target private IP.
Request Body
{"privateIpId"=>"in ipsum ad id exercitation"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
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
{"assignedEntityId":"eu reprehenderit aliquip nulla","assignedEntityType":"NAT_GATEWAY","availabilityDomain":"irure commodo","compartmentId":"est dolor proident","definedTags":{},"displayName":"ipsum quis dolore","freeformTags":{},"id":"sint commodo dolor culpa","ipAddress":"dolore quis esse aliqua","lifecycleState":"UNASSIGNED","lifetime":"EPHEMERAL","privateIpId":"non in consectetur laborum nostrud","publicIpPoolId":"quis aliquip anim","scope":"REGION","timeCreated":"1986-03-06T20:25:38.760Z"}