IBM Db2 Allowlists and Service Endpoint Settings API
The Allowlists and Service Endpoint Settings API from IBM Db2 — 2 operation(s) for allowlists and service endpoint settings.
The Allowlists and Service Endpoint Settings API from IBM Db2 — 2 operation(s) for allowlists and service endpoint settings.
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-allowlists-and-service-endpoint-settings-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 Allowlists and Service Endpoint Settings 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 Allowlists and Service Endpoint Settings 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: Allowlists and Service Endpoint Settings
paths:
/dbsettings/endpoints:
get:
tags:
- Allowlists and Service Endpoint Settings
summary: Get the endpoint information
operationId: getServiceEndpoints
parameters:
- name: X-DB-Profile
in: header
description: Database profile name.
required: true
schema:
type: string
responses:
'200':
description: Get the endpoint information
content:
application/json:
schema:
$ref: '#/components/schemas/EnableEndpointStatusResponse'
'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/dbsettings/endpoints\"\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/dbsettings/endpoints\")\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/dbsettings/endpoints\",\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/dbsettings/endpoints\", 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/dbsettings/endpoints \\\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
/dbsettings/whitelistips:
get:
tags:
- Allowlists and Service Endpoint Settings
summary: Get all the whitelist IPs
operationId: getWhitelistIps
parameters:
- name: X-DB-Profile
in: header
description: Database profile name.
required: true
schema:
type: string
responses:
'200':
description: List of whitelist IPs
content:
application/json:
schema:
$ref: '#/components/schemas/GetIpAddressesResponse'
'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/dbsettings/whitelistips\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\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/dbsettings/whitelistips\")\n .get()\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/dbsettings/whitelistips\",\n \"headers\": {\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 'x-db-profile': \"SOME_STRING_VALUE\",\n 'authorization': \"Bearer {AUTH_TOKEN}\",\n 'x-deployment-id': \"{DEPLOYMENT_ID}\"\n }\n\nconn.request(\"GET\", \"/dbapi/v4/dbsettings/whitelistips\", 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/dbsettings/whitelistips \\\n -H 'authorization: Bearer {AUTH_TOKEN}' \\\n -H 'x-db-profile: SOME_STRING_VALUE' \\\n -H 'x-deployment-id: {DEPLOYMENT_ID}'"
post:
tags:
- Allowlists and Service Endpoint Settings
summary: Add whitelist IPs
operationId: addWhitelistIps
parameters:
- name: X-DB-Profile
in: header
description: Database profile name.
required: true
schema:
type: string
requestBody:
$ref: '#/components/requestBodies/PostIpAddressesRequest'
x-codegen-request-body-name: body
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/StatusSuccess'
'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\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://{HOSTNAME}/dbapi/v4/dbsettings/whitelistips\"\n\n\tpayload := strings.NewReader(\"{\\\"ip_addresses\\\":[{\\\"address\\\":\\\"<ADD STRING VALUE>\\\",\\\"description\\\":\\\"<ADD STRING VALUE>\\\"}]}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\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\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"ip_addresses\\\":[{\\\"address\\\":\\\"<ADD STRING VALUE>\\\",\\\"description\\\":\\\"<ADD STRING VALUE>\\\"}]}\");\nRequest request = new Request.Builder()\n .url(\"https://{HOSTNAME}/dbapi/v4/dbsettings/whitelistips\")\n .post(body)\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\": \"POST\",\n \"hostname\": \"{HOSTNAME}\",\n \"port\": null,\n \"path\": \"/dbapi/v4/dbsettings/whitelistips\",\n \"headers\": {\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.write(JSON.stringify({\n ip_addresses: [{address: '<ADD STRING VALUE>', description: '<ADD STRING VALUE>'}]\n}));\nreq.end();"
python:
- name: Example request
example:
- type: code
source:
- "import http.client\n\nconn = http.client.HTTPSConnection(\"{HOSTNAME}\")\n\npayload = \"{\\\"ip_addresses\\\":[{\\\"address\\\":\\\"<ADD STRING VALUE>\\\",\\\"description\\\":\\\"<ADD STRING VALUE>\\\"}]}\"\n\nheaders = {\n 'authorization': \"Bearer {AUTH_TOKEN}\",\n 'x-deployment-id': \"{DEPLOYMENT_ID}\"\n }\n\nconn.request(\"POST\", \"/dbapi/v4/dbsettings/whitelistips\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"
curl:
- name: Example request
example:
- type: code
source:
- "curl -X POST \\\n https://{HOSTNAME}/dbapi/v4/dbsettings/whitelistips \\\n -H 'authorization: Bearer {AUTH_TOKEN}' \\\n -H 'x-deployment-id: {DEPLOYMENT_ID}' \\\n -d '{\"ip_addresses\":[{\"address\":\"<ADD STRING VALUE>\",\"description\":\"<ADD STRING VALUE>\"}]}'"
delete:
tags:
- Allowlists and Service Endpoint Settings
summary: Delete whitelist IPs
operationId: deleteWhitelistIps
parameters:
- name: X-DB-Profile
in: header
description: Database profile name.
required: true
schema:
type: string
requestBody:
$ref: '#/components/requestBodies/PostIpAddressesRequest'
x-codegen-request-body-name: body
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/StatusSuccess'
'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\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://{HOSTNAME}/dbapi/v4/dbsettings/whitelistips\"\n\n\tpayload := strings.NewReader(\"{\\\"ip_addresses\\\":[{\\\"address\\\":\\\"<ADD STRING VALUE>\\\",\\\"description\\\":\\\"<ADD STRING VALUE>\\\"}]}\")\n\n\treq, _ := http.NewRequest(\"DELETE\", url, payload)\n\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\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"ip_addresses\\\":[{\\\"address\\\":\\\"<ADD STRING VALUE>\\\",\\\"description\\\":\\\"<ADD STRING VALUE>\\\"}]}\");\nRequest request = new Request.Builder()\n .url(\"https://{HOSTNAME}/dbapi/v4/dbsettings/whitelistips\")\n .delete(body)\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\": \"DELETE\",\n \"hostname\": \"{HOSTNAME}\",\n \"port\": null,\n \"path\": \"/dbapi/v4/dbsettings/whitelistips\",\n \"headers\": {\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.write(JSON.stringify({\n ip_addresses: [{address: '<ADD STRING VALUE>', description: '<ADD STRING VALUE>'}]\n}));\nreq.end();"
python:
- name: Example request
example:
- type: code
source:
- "import http.client\n\nconn = http.client.HTTPSConnection(\"{HOSTNAME}\")\n\npayload = \"{\\\"ip_addresses\\\":[{\\\"address\\\":\\\"<ADD STRING VALUE>\\\",\\\"description\\\":\\\"<ADD STRING VALUE>\\\"}]}\"\n\nheaders = {\n 'authorization': \"Bearer {AUTH_TOKEN}\",\n 'x-deployment-id': \"{DEPLOYMENT_ID}\"\n }\n\nconn.request(\"DELETE\", \"/dbapi/v4/dbsettings/whitelistips\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"
curl:
- name: Example request
example:
- type: code
source:
- "curl -X DELETE \\\n https://{HOSTNAME}/dbapi/v4/dbsettings/whitelistips \\\n -H 'authorization: Bearer {AUTH_TOKEN}' \\\n -H 'x-deployment-id: {DEPLOYMENT_ID}' \\\n -d '{\"ip_addresses\":[{\"address\":\"<ADD STRING VALUE>\",\"description\":\"<ADD STRING VALUE>\"}]}'"
servers:
- url: https://_HOSTNAME_VARIABLE_/dbapi/v4
components:
schemas:
EnableEndpointStatusResponse:
type: object
required:
- enable_public_endpoint
- updating
- enable_private_endpoint
properties:
enable_public_endpoint:
type: string
description: Indicates if the public endpoint is enabled ("true" or "false")
enum:
- 'true'
- 'false'
updating:
type: string
description: Indicates if the endpoint is currently updating ("yes" or "no")
enum:
- 'yes'
- 'no'
enable_private_endpoint:
type: string
description: Indicates if the private endpoint is enabled ("true" or "false")
enum:
- 'true'
- 'false'
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
PostIpAddressesRequest:
type: object
required:
- ip_addresses
properties:
ip_addresses:
type: array
description: List of IP addresses to be whitelisted
items:
type: object
required:
- address
- description
properties:
address:
type: string
description: IP address to be added (e.g., "1.2.3.4/6")
description:
type: string
description: A description for the IP address
StatusSuccess:
type: object
properties:
status:
type: string
example: success
GetIpAddressesResponse:
type: object
required:
- ip_addresses
properties:
ip_addresses:
type: array
description: List of whitelist IPs
items:
type: object
required:
- address
- description
properties:
address:
type: string
description: IP address to be added (e.g., "1.2.3.4/6")
description:
type: string
description: A description for the IP address
requestBodies:
PostIpAddressesRequest:
content:
application/json:
schema:
$ref: '#/components/schemas/PostIpAddressesRequest'
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