Retrieve Details of all IP Reservations in a Container

get

/ip/reservation/{container}/

Retrieves details of the IP reservations that are available in the specified container and match the specified query criteria. If you don't specify any query criteria, then details of all the IP reservations in the container are displayed. To filter the search results, you can pass one or more of the following query parameters, by appending them to the URI in the following syntax:

?parameter1=value1&parameter2=value2&parameterN=valueN

Required Role: To complete this task, you must have the Compute_Monitor or Compute_Operations role. If this role isn't assigned to you or you're not sure, then ask your system administrator to ensure that the role is assigned to you in Oracle Cloud My Services. See Modifying User Roles in Managing and Monitoring Oracle Cloud.

Request

Supported Media Types
Path Parameters
Query Parameters
  • true indicates that the IP reservation has a persistent public IP address. You can associate either a temporary or a persistent public IP address with an instance when you create the instance.

    Temporary public IP addresses are assigned dynamically from a pool of public IP addresses. When you associate a temporary public IP address with an instance, if the instance is restarted or is deleted and created again later, its public IP address might change.

  • A comma-separated list of strings which helps you to identify IP reservations.
  • true indicates that the IP reservation is associated with an instance.
Header Parameters

Response

Supported Media Types

200 Response

OK. See Status Codes for information about other possible HTTP status codes.
Headers
Body ()
Root Schema : IPReservation-list-response
Type: object
Show Source
Nested Schema : result
Type: array
Show Source
Nested Schema : IPReservation-response
Type: object
Show Source
  • Shows the default account for your identity domain.
  • Public IP address.

    An IP reservation is a public IP address that you can attach to a Compute Classic instance that requires access to or from the Internet.

  • The three-part name of the object (/Compute-identity_domain/user/object).

  • /oracle/public/ippool

    Pool of public IP addresses

  • true indicates that the IP reservation has a persistent public IP address. You can associate either a temporary or a persistent public IP address with an instance when you create the instance.

    Temporary public IP addresses are assigned dynamically from a pool of public IP addresses. When you associate a temporary public IP address with an instance, if the instance is restarted or is deleted and created again later, its public IP address might change.

  • Not used
  • tags
    A comma-separated list of strings which helps you to identify IP reservation.
  • Uniform Resource Identifier
  • true indicates that the IP reservation is associated with an instance.
Nested Schema : tags
Type: array
A comma-separated list of strings which helps you to identify IP reservation.
Show Source

Examples

cURL Command

The following example shows how to retrieve details about all IP reservations in the /Compute-acme/jack.jones@example.com/ container by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

Enter the command on a single line. Line breaks are used in this example for readability.

curl -X GET 
     -H "Cookie: $COMPUTE_COOKIE"
     -H "Accept: application/oracle-compute-v3+json"
     https://api-z999.compute.us0.oraclecloud.com/ip/reservation/Compute-acme/jack.jones@example.com/
  • COMPUTE_COOKIE is the name of the variable in which you stored the authentication cookie earlier. For information about retrieving the authentication cookie and storing it in a variable, see Authentication.

  • api-z999.compute.us0.oraclecloud.com is an example REST endpoint URL. Change this value to the REST endpoint URL of your Compute Classic site. For information about finding out REST endpoint URL for your site, see Send Requests.

  • acme and jack.jones@example.com are example values. Replace acme with the identity domain ID of your Compute Classic account, and jack.jones@example.com with your user name.

Example of Response Body

The following example shows the response body in JSON format.

Some lines may be truncated with ellipses (...) for readability.

{
  "result": [
    {
      "account": "/Compute-acme/default",
      "used": false,
      "name": "/Compute-acme/jack.jones@example.com/375570f2-a8a0-482b-9b1d-3978cde33c61",
      "tags": [],
      "ip": "129.144.54.42",
      "uri": "https://api-z999.compute.us0.oraclecloud.com/ip/reservation/Compute-acme/jack.jones@example.com/375570f2-a8a0-482b-9b1d-3978cde33c61",
      "quota": null,
      "parentpool": "/oracle/public/ippool",
      "permanent": true
    },
    {
      "account": "/Compute-acme/default",
      "used": false,
      "name": "/Compute-acme/jack.jones@example.com/c7588bef-dab7-4b0d-adb4-648ba462c2c1",
      "tags": [],
      "ip": "129.144.53.38",
      "uri": "https://api-z999.compute.us0.oraclecloud.com/ip/reservation/Compute-acme/jack.jones@example.com/c7588bef-dab7-4b0d-adb4-648ba462c2c1",
      "quota": null,
      "parentpool": "/oracle/public/ippool",
      "permanent": true
    }
  ]
}