Get resource pool details
get
/api/pools/{poolID}
Retrieves the details of a specific resource pool. You specify the pool using the poolID parameter.
Request
Path Parameters
-
poolID: string
poolID
Security
-
Authorization: apiKey
Type:
apiKey
Response
Supported Media Types
- application/json
200 Response
200 Response
Default Response
Error Payload
Examples
The following example shows how to retrieve the details about a specific resource pool. You perform this task by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.
cURL Command
curl -sk
-X "GET"
-H "Authorization: Bearer b39f09c71c297f1d"
"https://rest_server_url/api/pools/default"
In this example, default
is the name of the resource pool.
Example of Response Body
{
"id": "default",
"name": "default",
"total_hosts": "1",
"active_hosts": "1",
"resources": {
"memory_max": "7477",
"memory_used": "224",
"memory_percent": "3"
}
}