You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to list free IPs in subnet using oci or any other method?

edited Jul 27, 2020 12:56PM in OCI - General 4 comments

Summary

In a situation of subnet that includes big number of VM machines , how to figure out the available private IPs before creating new VM?

Content

the below is listing only reserved or allocated , I need the opposite , this just an example from small subnet

oci network private-ip list --subnet-id ocid1.subnet.oc1.eu-frankfurt-1.aaaaaaaassbeypdf66zeghoumsq4rgumdnah7v3choc6qbdiys7tbsha75yq
{
  "data": [
    {
      "availability-domain": "ZNfx:EU-FRANKFURT-1-AD-3",
      "compartment-id": "ocid1.compartment.oc1..aaaa,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,",
      "defined-tags": {
        "Oracle-Tags": {
          "CreatedBy": ",,,,,,,,,,,,,,,,,,,",
          "CreatedOn": "2020-07-27T12:32:55.135Z"
        }
      },
      "display-name": "instance-20200727-1532",
      "freeform-tags": {},
      "hostname-label": "instance-20200727-1532",
      "id": "ocid1.privateip.oc1.eu-frankfurt-1.abtheljtkhyp7cwg3lzfwkkrnvlrru4uciovgawioxx5wqscbi2ss5dhxqfq",
      "ip-address": "10.0.1.2",

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!