IBM Db2 Monitoring memory API
The Monitoring memory API from IBM Db2 — 2 operation(s) for monitoring memory.
The Monitoring memory API from IBM Db2 — 2 operation(s) for monitoring memory.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ibm-db2:ibm-db2-monitoring-memory-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Ibm Db2 Monitoring memory API
version: '4'
termsOfService: http://www.ibm.com/software/sla/sladb.nsf
x-github: https://github.ibm.com/cloud-api-docs/db2-saas
x-github-issues: https://github.ibm.com/cloud-api-docs/db2-saas/issues/new
x-last-updated: '2025-06-25'
x-sdk-supported-languages:
- java
- node
- go
- python
x-try-it-out-enabled: true
description: 'Operations tagged Monitoring memory across 2 of this provider''s published API definitions: ibm-db2-db2-on-cloud-v4-openapi.json, ibm-db2-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://_HOSTNAME_VARIABLE_/dbapi/v4
security:
- authToken: []
- deploymentId: []
tags:
- name: Monitoring memory
paths:
/metrics/max_memory:
get:
operationId: GetMaxMemory
summary: Get the maximum percent of node memory usage. **DB ADMIN ONLY**
description: Get the maximum percent of node memory usage for a specified time frame.
tags:
- Monitoring memory
parameters:
- name: X-DB-Profile
in: header
description: Database profile name.
required: true
schema:
type: string
- name: start
in: query
description: Start timestamp.
required: true
schema:
type: integer
- name: end
in: query
description: End timestamp.
required: true
schema:
type: integer
responses:
'200':
description: Return the maximum percent of node memory usage for a specified time frame.
content:
application/json:
schema:
$ref: '#/components/schemas/MaxMemory'
'403':
description: Operation is only available to administrators.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
default:
description: Error payload.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
x-sdk-operations:
request-examples:
go:
- name: Example request
example:
- type: code
source:
- "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://{HOSTNAME}/dbapi/v4/metrics/max_memory?start=1546272000000&end=1546272300000\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"x-db-profile\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n\treq.Header.Add(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
java:
- name: Example request
example:
- type: code
source:
- "OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://{HOSTNAME}/dbapi/v4/metrics/max_memory?start=1546272000000&end=1546272300000\")\n .get()\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"x-db-profile\", \"SOME_STRING_VALUE\")\n .addHeader(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n .addHeader(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n .build();\n\nResponse response = client.newCall(request).execute();"
node:
- name: Example request
example:
- type: code
source:
- "var http = require(\"https\");\n\nvar options = {\n \"method\": \"GET\",\n \"hostname\": \"{HOSTNAME}\",\n \"port\": null,\n \"path\": \"/dbapi/v4/metrics/max_memory?start=1546272000000&end=1546272300000\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"x-db-profile\": \"SOME_STRING_VALUE\",\n \"authorization\": \"Bearer {AUTH_TOKEN}\",\n \"x-deployment-id\": \"{DEPLOYMENT_ID}\"\n }\n};\n\nvar req = http.request(options, function (res) {\n var chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n var body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();"
python:
- name: Example request
example:
- type: code
source:
- "import http.client\n\nconn = http.client.HTTPSConnection(\"{HOSTNAME}\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'x-db-profile': \"SOME_STRING_VALUE\",\n 'authorization': \"Bearer {AUTH_TOKEN}\",\n 'x-deployment-id': \"{DEPLOYMENT_ID}\"\n }\n\nconn.request(\"GET\", \"/dbapi/v4/metrics/max_memory?start=1546272000000&end=1546272300000\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"
curl:
- name: Example request
example:
- type: code
source:
- "curl -X GET \\\n 'https://{HOSTNAME}/dbapi/v4/metrics/max_memory?start=1546272000000&end=1546272300000' \\\n -H 'authorization: Bearer {AUTH_TOKEN}' \\\n -H 'content-type: application/json' \\\n -H 'x-db-profile: SOME_STRING_VALUE' \\\n -H 'x-deployment-id: {DEPLOYMENT_ID}'"
servers:
- url: https://_HOSTNAME_VARIABLE_/dbapi/v4
/metrics/memory_summary:
get:
operationId: GetMemory
summary: Get the percent of node memory usage. **DB ADMIN ONLY**
description: Get the percent of node memory usage for a specified time frame.
parameters:
- name: X-DB-Profile
in: header
description: Database profile name.
required: true
schema:
type: string
- name: start
in: query
description: Start timestamp.
required: true
schema:
type: integer
- name: end
in: query
description: End timestamp.
required: true
schema:
type: integer
tags:
- Monitoring memory
responses:
'200':
description: Return the percent of memory usage in each node for a specified time frame.
content:
application/json:
schema:
$ref: '#/components/schemas/MemoryList'
'404':
description: Database profile not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
default:
description: Error payload.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
x-sdk-operations:
request-examples:
go:
- name: Example request
example:
- type: code
source:
- "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://{HOSTNAME}/dbapi/v4/metrics/memory_summary?start=1546272000000&end=1546272300000\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"x-db-profile\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n\treq.Header.Add(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
java:
- name: Example request
example:
- type: code
source:
- "OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://{HOSTNAME}/dbapi/v4/metrics/memory_summary?start=1546272000000&end=1546272300000\")\n .get()\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"x-db-profile\", \"SOME_STRING_VALUE\")\n .addHeader(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n .addHeader(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n .build();\n\nResponse response = client.newCall(request).execute();"
node:
- name: Example request
example:
- type: code
source:
- "var http = require(\"https\");\n\nvar options = {\n \"method\": \"GET\",\n \"hostname\": \"{HOSTNAME}\",\n \"port\": null,\n \"path\": \"/dbapi/v4/metrics/memory_summary?start=1546272000000&end=1546272300000\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"x-db-profile\": \"SOME_STRING_VALUE\",\n \"authorization\": \"Bearer {AUTH_TOKEN}\",\n \"x-deployment-id\": \"{DEPLOYMENT_ID}\"\n }\n};\n\nvar req = http.request(options, function (res) {\n var chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n var body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();"
python:
- name: Example request
example:
- type: code
source:
- "import http.client\n\nconn = http.client.HTTPSConnection(\"{HOSTNAME}\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'x-db-profile': \"SOME_STRING_VALUE\",\n 'authorization': \"Bearer {AUTH_TOKEN}\",\n 'x-deployment-id': \"{DEPLOYMENT_ID}\"\n }\n\nconn.request(\"GET\", \"/dbapi/v4/metrics/memory_summary?start=1546272000000&end=1546272300000\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"
curl:
- name: Example request
example:
- type: code
source:
- "curl -X GET \\\n 'https://{HOSTNAME}/dbapi/v4/metrics/memory_summary?start=1546272000000&end=1546272300000' \\\n -H 'authorization: Bearer {AUTH_TOKEN}' \\\n -H 'content-type: application/json' \\\n -H 'x-db-profile: SOME_STRING_VALUE' \\\n -H 'x-deployment-id: {DEPLOYMENT_ID}'"
servers:
- url: https://_HOSTNAME_VARIABLE_/dbapi/v4
components:
schemas:
MaxMemory:
type: object
description: A list of Memory.
required:
- memory_used_percent
properties:
memory_used_percent:
type: integer
format: int32
description: The percent of memory usage.
ErrorContainer:
type: object
description: Error response containing one or more error messages
required:
- trace
- errors
properties:
trace:
type: string
description: Unique ID assigned by the server that identifies the request that generated the error
errors:
type: array
description: List of errors
items:
$ref: '#/components/schemas/ErrorModel'
Memory:
type: object
description: Memory usage.
required:
- timestamp
- interval
- min_percent
- max_percent
- avg_percent
- master_node_percent
- max_node_name
- min_node_name
properties:
timestamp:
type: integer
format: int64
description: Timestamp of this data been collected.
interval:
type: integer
format: int64
description: Interval.
min_percent:
type: number
format: double
description: Min node used memory percent(%).
max_percent:
type: number
format: double
description: maximum node used memory percent(%).
avg_percent:
type: number
format: double
description: Avg node used memory percent(%).
master_node_percent:
type: number
format: double
description: Master node used memory percent(%).
max_node_name:
type: string
description: Max node name.
min_node_name:
type: string
description: Min node name.
ErrorModel:
type: object
description: Error information
required:
- code
- message
properties:
code:
type: string
description: Error code succinctly identifying the problem
enum:
- authentication_failure
- database_error
- forbidden
- internal_server_error
- invalid_authentication_token
- invalid_content_type
- invalid_api_endpoint
- invalid_parameters
- invalid_request_payload
- not_found
- resource_already_exists
- session_expired
- unavailable
message:
type: string
description: Explanation of the problem and possible solutions
target:
$ref: '#/components/schemas/ErrorTargetModel'
more_info:
type: string
description: URL where more information about the error can be found (if available)
ErrorTargetModel:
type: object
description: Field or parameter related to an error
required:
- type
- name
properties:
type:
type: string
description: Field type
enum:
- field
- parameter
- header
name:
type: string
description: Name of the problematic field (with dot-syntax if necessary), query parameter, or header
MemoryList:
type: object
description: A list of Memory.
required:
- count
- issinglenode
- timeseries
properties:
count:
type: integer
format: int32
description: Counts of Memory.
issinglenode:
type: boolean
description: Single node or not.
timeseries:
type: array
items:
$ref: '#/components/schemas/Memory'
securitySchemes:
authToken:
type: apiKey
in: header
name: Authorization
description: Authorize using **Bearer [access_token]**. The access token can be obtained by authenticating with the **/auth/tokens** endpoint or [use the API key to generate an IAM Bearer Token](https://cloud.ibm.com/docs/account?topic=account-iamtoken_from_apikey).
deploymentId:
type: apiKey
in: header
name: X-Deployment-Id
description: The deployment id of the service, which can be obtained after provision. When providing the deployment id in the header, use URL encoding. For example, ":" should be escaped as "%3A", and "/" should be escaped as "%2F".
x-refined-from:
- ibm-db2-db2-on-cloud-v4-openapi.json
- ibm-db2-openapi.yml