Retrieve Details of all Shapes
/shape/
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.
Back to TopResponse
- application/oracle-compute-v3+json
200 Response
-
set-cookie: string
The cookie value is returned if the session is extended
object
-
cpus(optional):
number
Number of CPUs or partial CPUs allocated to instances of this shape.
-
gpus(optional):
integer
Number of gpu devices allocated to instances of this shape
-
io(optional):
integer
IO share allocated to instances of this shape.
-
is_root_ssd(optional):
boolean
Store the root disk image on SSD storage.
-
name(optional):
string
Name of this shape.
-
nds_iops_limit(optional):
integer
Limits the rate of IO for NDS storage volumes.
-
placement_requirements(optional):
array placement_requirements
A list of strings specifying arbitrary tags on nodes to be matched on placement.
-
ram(optional):
integer
Number of megabytes of memory allocated to instances of this shape.
-
root_disk_size(optional):
integer
Size of the root disk in bytes.
-
ssd_data_size(optional):
integer
Size of the local SSD data disk in bytes.
-
uri(optional):
string
Uniform Resource Identifier
array
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" } ] }