Assigning a Fixed Public IP Address to an Instance

To give your Compute Classic a fixed public IP address, you must reserve an address and then attach that address to the instance.

Task REST API Call
1. Reserve a public IP address. POST /ip/reservation/
2. Find out the vcable ID of the instance that you want to assign the IP address to. GET /instance/{name}

In the response, note the value of the vcable_id parameter.

3. Attach the IP address to the instance by creating an IP association. POST /ip/association/

See Also:

About Public IP Addresses in Using Oracle Cloud Infrastructure Compute Classic