Retrieve Details of all Shapes

get

/shape/

Retrieves the CPU and memory details of all the available shapes.

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

There are no request parameters for this operation.

Response

Supported Media Types

200 Response

OK. See Status Codes for information about other possible HTTP status codes.
Headers
Body ()
Root Schema : Shape-list-response
Type: object
Show Source
Nested Schema : result
Type: array
Show Source
Nested Schema : Shape-response
Type: object
Show Source
Nested Schema : placement_requirements
Type: array
A list of strings specifying arbitrary tags on nodes to be matched on placement.
Show Source

Examples

cURL Command

The following example shows how to retrieve details about all shapes 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/shape/
  • 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.

Example of Response Body

The following example shows the response body in JSON format.

{
  "result": [
    {
      "nds_iops_limit": 0,
      "ram": 122880,
      "cpus": 16.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc4m",
      "io": 800,
      "name": "oc4m"
    },
    {
      "nds_iops_limit": 0,
      "ram": 122880,
      "cpus": 32.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc7",
      "io": 1000,
      "name": "oc7"
    },
    {
      "nds_iops_limit": 0,
      "ram": 61440,
      "cpus": 8.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc3m",
      "io": 600,
      "name": "oc3m"
    },
    {
      "nds_iops_limit": 0,
      "ram": 245760,
      "cpus": 32.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc5m",
      "io": 1000,
      "name": "oc5m"
    },
    {
      "nds_iops_limit": 0,
      "ram": 7680,
      "cpus": 2.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc3",
      "io": 200,
      "name": "oc3"
    },
    {
      "nds_iops_limit": 0,
      "ram": 30720,
      "cpus": 8.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc5",
      "io": 600,
      "name": "oc5"
    },
    {
      "nds_iops_limit": 0,
      "ram": 15360,
      "cpus": 4.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc4",
      "io": 400,
      "name": "oc4"
    },
    {
      "nds_iops_limit": 0,
      "ram": 15360,
      "cpus": 2.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc1m",
      "io": 200,
      "name": "oc1m"
    },
    {
      "nds_iops_limit": 0,
      "ram": 30720,
      "cpus": 4.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc2m",
      "io": 400,
      "name": "oc2m"
    },
    {
      "nds_iops_limit": 0,
      "ram": 61440,
      "cpus": 16.0,
      "root_disk_size": 0,
      "uri": "https://api-z999.compute.us0.oraclecloud.com/shape/oc6",
      "io": 800,
      "name": "oc6"
    }
  ]
}