We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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?

Received Response
edited Jul 27, 2020 12:56PM in Oracle Cloud Infrastructure - General 4 comments


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


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": "",

Howdy, Stranger!

Log In

To view full details, sign in.


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