IBM Db2 Tasks API

The Tasks API from IBM Db2 — 1 operation(s) for tasks.

GitHub OpenAPI

Operations 1

GET /tasks/status Get tasks status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ibm-db2:ibm-db2-tasks-api"
All apis
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.

Get an API 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 Specification

ibm-db2-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ibm Db2 Tasks 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 Tasks 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: Tasks
paths:
  /tasks/status:
    get:
      tags:
      - Tasks
      summary: Get tasks status
      operationId: getTasksStatus
      responses:
        '200':
          description: contain tasks status for scaling ,restore etc.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessTasksStatusResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      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/tasks/status\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"accept\", \"application/json\")\n\treq.Header.Add(\"content-type\", \"application/json\")\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/tasks/status\")\n  .get()\n  .addHeader(\"accept\", \"application/json\")\n  .addHeader(\"content-type\", \"application/json\")\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/tasks/status\",\n  \"headers\": {\n    \"accept\": \"application/json\",\n    \"content-type\": \"application/json\",\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    'accept': \"application/json\",\n    'content-type': \"application/json\",\n    'authorization': \"Bearer {AUTH_TOKEN}\",\n    'x-deployment-id': \"{DEPLOYMENT_ID}\"\n    }\n\nconn.request(\"GET\", \"/dbapi/v4/tasks/status\", 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/tasks/status \\\n  -H 'accept: application/json' \\\n  -H 'authorization: Bearer {AUTH_TOKEN}' \\\n  -H 'content-type: application/json' \\\n  -H 'x-deployment-id: {DEPLOYMENT_ID}'"
    servers:
    - url: https://_HOSTNAME_VARIABLE_/dbapi/v4
components:
  schemas:
    ErrorResponse:
      required:
      - message
      - code
      properties:
        message:
          type: string
          description: error message
          example: An error occurred invoking the backend api
        code:
          type: integer
          format: int32
          description: error status code
          example: 500
    SuccessTasksStatusResponse:
      required:
      - tasks
      properties:
        tasks:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                example: crn:v1:bluemix:public:databases-for-postgresql:us-south:a/274074dce64e9c423ffc238516c755e1:a127f76a-98bf-4f8b-b263-01d9e16b15bd:task:3dc480bd-0cd9-4db6-92f4-b5c96544393b
              type:
                type: string
                example: restore
              status:
                type: string
                example: completed
              created_at:
                type: string
                example: '2018-03-28T10:20:30Z'
  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