openapi: 3.0.0
info:
contact:
email: paas-team@confluent.io
name: CDMUM Team
url: https://confluent.slack.com/app_redirect?channel=cdmum-eng
title: Organization Management API
version: 0.0.1-alpha0
x-api-id: 01c617d8-2acd-4920-8567-045bf3b224db
x-api-group: org/v2
x-audience: external-public
x-tag-group: Org API (%s)
servers:
- description: Confluent Cloud production
url: https://api.confluent.cloud
tags:
- description: |-
[](#section/Versioning/API-Lifecycle-Policy)
`Environment` objects represent an isolated namespace for your Confluent resources
for organizational purposes.
The API allows you to create, delete, and update your environments. You can retrieve
individual environments as well as a list of all your environments.
Related guide: [Environments in Confluent Cloud](https://docs.confluent.io/cloud/current/access-management/environments.html).
## The Environments Model
## Quotas and Limits
This resource is subject to the [following quotas](https://docs.confluent.io/cloud/current/quotas/overview.html):
| Quota | Description |
| --- | --- |
| `environments_per_org` | Environments in one Confluent Cloud organization |
name: Environments (org/v2)
- description: |-
[](#section/Versioning/API-Lifecycle-Policy)
`Organization` objects represent a customer organization. An organization contains all customer
resources (e.g., Environments, Kafka Clusters, Service Accounts, API Keys) and is tied to a billing
agreement (including any annual commitment or support plan).
The API allows you to list, view, and update your organizations.
Related guide: [Organizations for Confluent Cloud](https://docs.confluent.io/cloud/current/access-management/hierarchy/organizations/cloud-organization.html).
## The Organizations Model
## Quotas and Limits
This resource is subject to the [following quotas](https://docs.confluent.io/cloud/current/quotas/overview.html):
| Quota | Description |
| --- | --- |
| `organizations_per_user` | Confluent Cloud organizations a user belongs to |
name: Organizations (org/v2)
- description: |-
[](#section/Versioning/API-Lifecycle-Policy)
`ScimToken` objects represent bearer tokens used for SCIM 2.0 API authentication.
The token value is only returned when the token is first created and cannot be retrieved later.
## The Scim Tokens Model
name: Scim Tokens (org/v2)
paths:
/org/v2/environments:
get:
description: |-
[](#section/Versioning/API-Lifecycle-Policy)
Retrieve a sorted, filtered, paginated list of all environments.
operationId: listOrgV2Environments
parameters:
- description: A pagination size for collection requests.
explode: true
in: query
name: page_size
required: false
schema:
default: 10
maximum: 100
type: integer
x-max-page-items: 500
style: form
- description: An opaque pagination token for collection requests.
explode: true
in: query
name: page_token
required: false
schema:
maxLength: 255
type: string
style: form
responses:
"200":
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/org.v2.EnvironmentList'
description: Environment.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- global-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Describe:Environment
summary: List of Environments
tags:
- Environments (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request GET \
--url https://api.confluent.cloud/org/v2/environments \
--header 'Authorization: Basic REPLACE_BASIC_AUTH'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/environments")
.get()
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
source: "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\
\n)\n\nfunc main() {\n\n\turl := \"https://api.confluent.cloud/org/v2/environments\"\
\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"\
Authorization\", \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
headers = { 'Authorization': "Basic REPLACE_BASIC_AUTH" }
conn.request("GET", "/org/v2/environments", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/environments",
"headers": {
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/environments");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/environments");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
IRestResponse response = client.Execute(request);
post:
description: |-
[](#section/Versioning/API-Lifecycle-Policy)
Make a request to create an environment.
operationId: createOrgV2Environment
requestBody:
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/org.v2.Environment'
- required:
- display_name
type: object
responses:
"201":
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/org.v2.Environment'
- required:
- display_name
type: object
description: An Environment was created.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Location:
description: Environment resource uri
explode: false
schema:
example: https://api.confluent.cloud/org/v2/environments/{id}
format: uri
type: string
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"402":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "402"
code: quota_exceeded
title: Kafka Clusters Per Org Quota Exceeded
detail: 'The request would exceed the quota: kafka_clusters_per_environment'
schema:
$ref: '#/components/schemas/Failure'
description: The request would exceed one or more quotas.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Over Quota
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"409":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "409"
code: resource_already_exists
title: Resource Already exists
detail: The entitlement '91e3e86f-fca6-4f14-98f5-a48e64113ce2' already
exists.
schema:
$ref: '#/components/schemas/Failure'
description: The request is in conflict with the current server state
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
Location:
description: Resource URI of conflicting resource
explode: false
schema:
example: https://api.confluent.cloud/{object}/{id}
format: uri
type: string
style: simple
x-summary: Conflict
"422":
content:
application/json:
example:
errors:
- status: "422"
code: invalid_configuration
id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
title: Validation Failed
detail: 'The property ''/cluster/storage_size'' of type string did
not match the following type: integer'
source:
pointer: /cluster/storage_size
schema:
$ref: '#/components/schemas/Failure'
description: Validation Failed
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- global-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- CreateEnvironment:Organization
summary: Create an Environment
tags:
- Environments (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request POST \
--url https://api.confluent.cloud/org/v2/environments \
--header 'Authorization: Basic REPLACE_BASIC_AUTH' \
--header 'content-type: application/json' \
--data '{"display_name":"prod-finance01","stream_governance_config":{"package":"string"}}'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"display_name\":\"prod-finance01\",\"stream_governance_config\":{\"package\":\"string\"}}");
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/environments")
.post(body)
.addHeader("content-type", "application/json")
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
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://api.confluent.cloud/org/v2/environments\"\
\n\n\tpayload := strings.NewReader(\"{\\\"display_name\\\":\\\"prod-finance01\\\
\",\\\"stream_governance_config\\\":{\\\"package\\\":\\\"string\\\"}}\"\
)\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"\
content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\"\
, \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
payload = "{\"display_name\":\"prod-finance01\",\"stream_governance_config\":{\"package\":\"string\"}}"
headers = {
'content-type': "application/json",
'Authorization': "Basic REPLACE_BASIC_AUTH"
}
conn.request("POST", "/org/v2/environments", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "POST",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/environments",
"headers": {
"content-type": "application/json",
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({display_name: 'prod-finance01', stream_governance_config: {package: 'string'}}));
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/environments");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"display_name\":\"prod-finance01\",\"stream_governance_config\":{\"package\":\"string\"}}");
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/environments");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
request.AddParameter("application/json", "{\"display_name\":\"prod-finance01\",\"stream_governance_config\":{\"package\":\"string\"}}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
/org/v2/environments/{id}:
delete:
description: |
[](#section/Versioning/API-Lifecycle-Policy)
Make a request to delete an environment.
If successful, this request will also recursively delete all of the environment's associated resources,
including all Kafka clusters, connectors, etc.
operationId: deleteOrgV2Environment
parameters:
- description: The unique identifier for the environment.
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"204":
description: An Environment is being deleted.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"404":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "404"
title: Not Found
schema:
$ref: '#/components/schemas/Failure'
description: Not Found
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"409":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "409"
code: resource_already_exists
title: Resource Already exists
detail: The entitlement '91e3e86f-fca6-4f14-98f5-a48e64113ce2' already
exists.
schema:
$ref: '#/components/schemas/Failure'
description: The request is in conflict with the current server state
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
Location:
description: Resource URI of conflicting resource
explode: false
schema:
example: https://api.confluent.cloud/{object}/{id}
format: uri
type: string
style: simple
x-summary: Conflict
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- global-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Delete:Environment
summary: Delete an Environment
tags:
- Environments (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request DELETE \
--url 'https://api.confluent.cloud/org/v2/environments/{id}' \
--header 'Authorization: Basic REPLACE_BASIC_AUTH'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/environments/{id}")
.delete(null)
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
source: "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\
\n)\n\nfunc main() {\n\n\turl := \"https://api.confluent.cloud/org/v2/environments/{id}\"\
\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"\
Authorization\", \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
headers = { 'Authorization': "Basic REPLACE_BASIC_AUTH" }
conn.request("DELETE", "/org/v2/environments/{id}", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/environments/{id}",
"headers": {
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/environments/{id}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/environments/{id}");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
IRestResponse response = client.Execute(request);
get:
description: |-
[](#section/Versioning/API-Lifecycle-Policy)
Make a request to read an environment.
operationId: getOrgV2Environment
parameters:
- description: The unique identifier for the environment.
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/org.v2.Environment'
- required:
- api_version
- display_name
- id
- kind
type: object
description: Environment.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"404":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "404"
title: Not Found
schema:
$ref: '#/components/schemas/Failure'
description: Not Found
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- global-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Describe:Environment
summary: Read an Environment
tags:
- Environments (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request GET \
--url 'https://api.confluent.cloud/org/v2/environments/{id}' \
--header 'Authorization: Basic REPLACE_BASIC_AUTH'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/environments/{id}")
.get()
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
source: "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\
\n)\n\nfunc main() {\n\n\turl := \"https://api.confluent.cloud/org/v2/environments/{id}\"\
\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"\
Authorization\", \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
headers = { 'Authorization': "Basic REPLACE_BASIC_AUTH" }
conn.request("GET", "/org/v2/environments/{id}", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/environments/{id}",
"headers": {
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/environments/{id}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/environments/{id}");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
IRestResponse response = client.Execute(request);
patch:
description: |+
[](#section/Versioning/API-Lifecycle-Policy)
Make a request to update an environment.
operationId: updateOrgV2Environment
parameters:
- description: The unique identifier for the environment.
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/org.v2.Environment'
responses:
"200":
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/org.v2.Environment'
- required:
- api_version
- display_name
- id
- kind
type: object
description: Environment.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"402":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "402"
code: quota_exceeded
title: Kafka Clusters Per Org Quota Exceeded
detail: 'The request would exceed the quota: kafka_clusters_per_environment'
schema:
$ref: '#/components/schemas/Failure'
description: The request would exceed one or more quotas.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Over Quota
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"404":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "404"
title: Not Found
schema:
$ref: '#/components/schemas/Failure'
description: Not Found
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"409":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "409"
code: resource_already_exists
title: Resource Already exists
detail: The entitlement '91e3e86f-fca6-4f14-98f5-a48e64113ce2' already
exists.
schema:
$ref: '#/components/schemas/Failure'
description: The request is in conflict with the current server state
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
Location:
description: Resource URI of conflicting resource
explode: false
schema:
example: https://api.confluent.cloud/{object}/{id}
format: uri
type: string
style: simple
x-summary: Conflict
"422":
content:
application/json:
example:
errors:
- status: "422"
code: invalid_configuration
id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
title: Validation Failed
detail: 'The property ''/cluster/storage_size'' of type string did
not match the following type: integer'
source:
pointer: /cluster/storage_size
schema:
$ref: '#/components/schemas/Failure'
description: Validation Failed
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- global-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Alter:Environment
summary: Update an Environment
tags:
- Environments (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request PATCH \
--url 'https://api.confluent.cloud/org/v2/environments/{id}' \
--header 'Authorization: Basic REPLACE_BASIC_AUTH' \
--header 'content-type: application/json' \
--data '{"display_name":"prod-finance01","stream_governance_config":{"package":"string"}}'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"display_name\":\"prod-finance01\",\"stream_governance_config\":{\"package\":\"string\"}}");
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/environments/{id}")
.patch(body)
.addHeader("content-type", "application/json")
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
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://api.confluent.cloud/org/v2/environments/{id}\"\
\n\n\tpayload := strings.NewReader(\"{\\\"display_name\\\":\\\"prod-finance01\\\
\",\\\"stream_governance_config\\\":{\\\"package\\\":\\\"string\\\"}}\"\
)\n\n\treq, _ := http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"\
content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\"\
, \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
payload = "{\"display_name\":\"prod-finance01\",\"stream_governance_config\":{\"package\":\"string\"}}"
headers = {
'content-type': "application/json",
'Authorization': "Basic REPLACE_BASIC_AUTH"
}
conn.request("PATCH", "/org/v2/environments/{id}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "PATCH",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/environments/{id}",
"headers": {
"content-type": "application/json",
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({display_name: 'prod-finance01', stream_governance_config: {package: 'string'}}));
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/environments/{id}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"display_name\":\"prod-finance01\",\"stream_governance_config\":{\"package\":\"string\"}}");
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/environments/{id}");
var request = new RestRequest(Method.PATCH);
request.AddHeader("content-type", "application/json");
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
request.AddParameter("application/json", "{\"display_name\":\"prod-finance01\",\"stream_governance_config\":{\"package\":\"string\"}}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
/org/v2/organizations:
get:
description: |-
[](#section/Versioning/API-Lifecycle-Policy)
Retrieve a sorted, filtered, paginated list of all organizations.
operationId: listOrgV2Organizations
parameters:
- description: A pagination size for collection requests.
explode: true
in: query
name: page_size
required: false
schema:
default: 10
maximum: 100
type: integer
x-max-page-items: 500
style: form
- description: An opaque pagination token for collection requests.
explode: true
in: query
name: page_token
required: false
schema:
maxLength: 255
type: string
style: form
responses:
"200":
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/org.v2.OrganizationList'
description: Organization.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- global-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Describe:Organization
summary: List of Organizations
tags:
- Organizations (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request GET \
--url https://api.confluent.cloud/org/v2/organizations \
--header 'Authorization: Basic REPLACE_BASIC_AUTH'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/organizations")
.get()
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
source: "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\
\n)\n\nfunc main() {\n\n\turl := \"https://api.confluent.cloud/org/v2/organizations\"\
\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"\
Authorization\", \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
headers = { 'Authorization': "Basic REPLACE_BASIC_AUTH" }
conn.request("GET", "/org/v2/organizations", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/organizations",
"headers": {
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/organizations");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/organizations");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
IRestResponse response = client.Execute(request);
/org/v2/organizations/{id}:
get:
description: |-
[](#section/Versioning/API-Lifecycle-Policy)
Make a request to read an organization.
operationId: getOrgV2Organization
parameters:
- description: The unique identifier for the organization.
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/org.v2.Organization'
- required:
- api_version
- id
- kind
type: object
description: Organization.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"404":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "404"
title: Not Found
schema:
$ref: '#/components/schemas/Failure'
description: Not Found
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- global-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Describe:Organization
summary: Read an Organization
tags:
- Organizations (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request GET \
--url 'https://api.confluent.cloud/org/v2/organizations/{id}' \
--header 'Authorization: Basic REPLACE_BASIC_AUTH'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/organizations/{id}")
.get()
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
source: "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\
\n)\n\nfunc main() {\n\n\turl := \"https://api.confluent.cloud/org/v2/organizations/{id}\"\
\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"\
Authorization\", \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
headers = { 'Authorization': "Basic REPLACE_BASIC_AUTH" }
conn.request("GET", "/org/v2/organizations/{id}", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/organizations/{id}",
"headers": {
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/organizations/{id}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/organizations/{id}");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
IRestResponse response = client.Execute(request);
patch:
description: |+
[](#section/Versioning/API-Lifecycle-Policy)
Make a request to update an organization.
operationId: updateOrgV2Organization
parameters:
- description: The unique identifier for the organization.
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/org.v2.Organization'
responses:
"200":
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/org.v2.Organization'
- required:
- api_version
- id
- kind
type: object
description: Organization.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"402":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "402"
code: quota_exceeded
title: Kafka Clusters Per Org Quota Exceeded
detail: 'The request would exceed the quota: kafka_clusters_per_environment'
schema:
$ref: '#/components/schemas/Failure'
description: The request would exceed one or more quotas.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Over Quota
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"404":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "404"
title: Not Found
schema:
$ref: '#/components/schemas/Failure'
description: Not Found
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"409":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "409"
code: resource_already_exists
title: Resource Already exists
detail: The entitlement '91e3e86f-fca6-4f14-98f5-a48e64113ce2' already
exists.
schema:
$ref: '#/components/schemas/Failure'
description: The request is in conflict with the current server state
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
Location:
description: Resource URI of conflicting resource
explode: false
schema:
example: https://api.confluent.cloud/{object}/{id}
format: uri
type: string
style: simple
x-summary: Conflict
"422":
content:
application/json:
example:
errors:
- status: "422"
code: invalid_configuration
id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
title: Validation Failed
detail: 'The property ''/cluster/storage_size'' of type string did
not match the following type: integer'
source:
pointer: /cluster/storage_size
schema:
$ref: '#/components/schemas/Failure'
description: Validation Failed
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- global-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Alter:Organization
summary: Update an Organization
tags:
- Organizations (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request PATCH \
--url 'https://api.confluent.cloud/org/v2/organizations/{id}' \
--header 'Authorization: Basic REPLACE_BASIC_AUTH' \
--header 'content-type: application/json' \
--data '{"display_name":"Finance Org","jit_enabled":true,"scim_enabled":true}'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"display_name\":\"Finance Org\",\"jit_enabled\":true,\"scim_enabled\":true}");
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/organizations/{id}")
.patch(body)
.addHeader("content-type", "application/json")
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
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://api.confluent.cloud/org/v2/organizations/{id}\"\
\n\n\tpayload := strings.NewReader(\"{\\\"display_name\\\":\\\"Finance Org\\\
\",\\\"jit_enabled\\\":true,\\\"scim_enabled\\\":true}\")\n\n\treq, _ :=\
\ http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"content-type\"\
, \"application/json\")\n\treq.Header.Add(\"Authorization\", \"Basic REPLACE_BASIC_AUTH\"\
)\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}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
payload = "{\"display_name\":\"Finance Org\",\"jit_enabled\":true,\"scim_enabled\":true}"
headers = {
'content-type': "application/json",
'Authorization': "Basic REPLACE_BASIC_AUTH"
}
conn.request("PATCH", "/org/v2/organizations/{id}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "PATCH",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/organizations/{id}",
"headers": {
"content-type": "application/json",
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({display_name: 'Finance Org', jit_enabled: true, scim_enabled: true}));
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/organizations/{id}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"display_name\":\"Finance Org\",\"jit_enabled\":true,\"scim_enabled\":true}");
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/organizations/{id}");
var request = new RestRequest(Method.PATCH);
request.AddHeader("content-type", "application/json");
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
request.AddParameter("application/json", "{\"display_name\":\"Finance Org\",\"jit_enabled\":true,\"scim_enabled\":true}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
/org/v2/scim-tokens:
get:
description: |-
[](#section/Versioning/API-Lifecycle-Policy)
Retrieve a sorted, filtered, paginated list of all scim tokens.
operationId: listOrgV2ScimTokens
parameters:
- description: A pagination size for collection requests.
explode: true
in: query
name: page_size
required: false
schema:
default: 10
maximum: 100
type: integer
x-max-page-items: 500
style: form
- description: An opaque pagination token for collection requests.
explode: true
in: query
name: page_token
required: false
schema:
maxLength: 255
type: string
style: form
responses:
"200":
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/org.v2.ScimTokenList'
description: Scim Token.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Describe:ScimToken
summary: List of Scim Tokens
tags:
- Scim Tokens (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request GET \
--url https://api.confluent.cloud/org/v2/scim-tokens \
--header 'Authorization: Basic REPLACE_BASIC_AUTH'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/scim-tokens")
.get()
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
source: "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\
\n)\n\nfunc main() {\n\n\turl := \"https://api.confluent.cloud/org/v2/scim-tokens\"\
\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"\
Authorization\", \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
headers = { 'Authorization': "Basic REPLACE_BASIC_AUTH" }
conn.request("GET", "/org/v2/scim-tokens", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/scim-tokens",
"headers": {
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/scim-tokens");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/scim-tokens");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
IRestResponse response = client.Execute(request);
post:
description: |-
[](#section/Versioning/API-Lifecycle-Policy)
Make a request to create a scim token.
operationId: createOrgV2ScimToken
requestBody:
$ref: '#/components/requestBodies/inline_object'
content:
application/json:
schema:
properties:
expire_duration_mins:
default: 259200
description: |
The duration in minutes after which the token expires.
Defaults to 6 months (259200 minutes) if not specified.
Minimum: 1 month (43200 minutes).
Maximum: 2 years (1051200 minutes).
example: 259200
format: int32
maximum: 1051200
minimum: 43200
type: integer
type: object
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/org.v2.ScimToken'
description: A Scim Token was created.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Location:
description: ScimToken resource uri
explode: false
schema:
example: https://api.confluent.cloud/org/v2/scim-tokens/{id}
format: uri
type: string
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"409":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "409"
code: resource_already_exists
title: Resource Already exists
detail: The entitlement '91e3e86f-fca6-4f14-98f5-a48e64113ce2' already
exists.
schema:
$ref: '#/components/schemas/Failure'
description: The request is in conflict with the current server state
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
Location:
description: Resource URI of conflicting resource
explode: false
schema:
example: https://api.confluent.cloud/{object}/{id}
format: uri
type: string
style: simple
x-summary: Conflict
"422":
content:
application/json:
example:
errors:
- status: "422"
code: invalid_configuration
id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
title: Validation Failed
detail: 'The property ''/cluster/storage_size'' of type string did
not match the following type: integer'
source:
pointer: /cluster/storage_size
schema:
$ref: '#/components/schemas/Failure'
description: Validation Failed
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Create:ScimToken
summary: Create a Scim Token
tags:
- Scim Tokens (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request POST \
--url https://api.confluent.cloud/org/v2/scim-tokens \
--header 'Authorization: Basic REPLACE_BASIC_AUTH' \
--header 'content-type: application/json' \
--data '{"expire_duration_mins":259200}'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"expire_duration_mins\":259200}");
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/scim-tokens")
.post(body)
.addHeader("content-type", "application/json")
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
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://api.confluent.cloud/org/v2/scim-tokens\"\
\n\n\tpayload := strings.NewReader(\"{\\\"expire_duration_mins\\\":259200}\"\
)\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"\
content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\"\
, \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
payload = "{\"expire_duration_mins\":259200}"
headers = {
'content-type': "application/json",
'Authorization': "Basic REPLACE_BASIC_AUTH"
}
conn.request("POST", "/org/v2/scim-tokens", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "POST",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/scim-tokens",
"headers": {
"content-type": "application/json",
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({expire_duration_mins: 259200}));
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/scim-tokens");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"expire_duration_mins\":259200}");
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/scim-tokens");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
request.AddParameter("application/json", "{\"expire_duration_mins\":259200}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
/org/v2/scim-tokens/{id}:
delete:
description: |-
[](#section/Versioning/API-Lifecycle-Policy)
Make a request to delete a scim token.
operationId: deleteOrgV2ScimToken
parameters:
- description: The unique identifier for the scim token.
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"204":
description: A Scim Token is being deleted.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
"400":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"401":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this
resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is
invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
"403":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean'
resource without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant
access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
"404":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "404"
title: Not Found
schema:
$ref: '#/components/schemas/Failure'
description: Not Found
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
"429":
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make
per time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and\
\ Twitter's same-named header which uses UTC epoch seconds. We use\
\ relative time to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window
resets. Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
"500":
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill
'er up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
security:
- cloud-api-key: []
- confluent-sts-access-token: []
- confluent_auth:
- Delete:ScimToken
summary: Delete a Scim Token
tags:
- Scim Tokens (org/v2)
x-codeSamples:
- lang: Shell
source: |-
curl --request DELETE \
--url 'https://api.confluent.cloud/org/v2/scim-tokens/{id}' \
--header 'Authorization: Basic REPLACE_BASIC_AUTH'
- lang: Java
source: |-
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.confluent.cloud/org/v2/scim-tokens/{id}")
.delete(null)
.addHeader("Authorization", "Basic REPLACE_BASIC_AUTH")
.build();
Response response = client.newCall(request).execute();
- lang: Go
source: "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\
\n)\n\nfunc main() {\n\n\turl := \"https://api.confluent.cloud/org/v2/scim-tokens/{id}\"\
\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"\
Authorization\", \"Basic REPLACE_BASIC_AUTH\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\
\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\t\
fmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
- lang: Python
source: |-
import http.client
conn = http.client.HTTPSConnection("api.confluent.cloud")
headers = { 'Authorization': "Basic REPLACE_BASIC_AUTH" }
conn.request("DELETE", "/org/v2/scim-tokens/{id}", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
- lang: Node
source: |-
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "api.confluent.cloud",
"port": null,
"path": "/org/v2/scim-tokens/{id}",
"headers": {
"Authorization": "Basic REPLACE_BASIC_AUTH"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
- lang: C
source: |-
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.confluent.cloud/org/v2/scim-tokens/{id}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
- lang: C#
source: |-
var client = new RestClient("https://api.confluent.cloud/org/v2/scim-tokens/{id}");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "Basic REPLACE_BASIC_AUTH");
IRestResponse response = client.Execute(request);
components:
requestBodies:
inline_object:
content:
application/json:
schema:
$ref: '#/components/schemas/inline_object'
responses:
BadRequestError:
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "400"
code: invalid_filter
title: Invalid Filter
detail: The 'delorean' resource can't be filtered by 'num_doors'
source:
parameter: num_doors
schema:
$ref: '#/components/schemas/Failure'
description: Bad Request
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
UnauthenticatedError:
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "401"
code: user_unauthenticated
title: Authentication Required
detail: Valid authentication credentials must be provided
schema:
$ref: '#/components/schemas/Failure'
description: The request lacks valid authentication credentials for this resource.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
WWW-Authenticate:
description: The unique identifier for the API request.
example: Basic error="invalid_key", error_description="The API Key is invalid"
explode: false
schema:
type: string
style: simple
x-summary: Unauthorized
OverQuotaError:
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "402"
code: quota_exceeded
title: Kafka Clusters Per Org Quota Exceeded
detail: 'The request would exceed the quota: kafka_clusters_per_environment'
schema:
$ref: '#/components/schemas/Failure'
description: The request would exceed one or more quotas.
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Over Quota
UnauthorizedError:
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "403"
code: user_unauthorized
title: User Access Unauthorized
detail: The user 'mcfly' is not allowed to access the 'delorean' resource
without the 'plutonium' role.
schema:
$ref: '#/components/schemas/Failure'
description: The access credentials were considered insufficient to grant access
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
x-summary: Forbidden
ConflictError:
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "409"
code: resource_already_exists
title: Resource Already exists
detail: The entitlement '91e3e86f-fca6-4f14-98f5-a48e64113ce2' already
exists.
schema:
$ref: '#/components/schemas/Failure'
description: The request is in conflict with the current server state
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
Location:
description: Resource URI of conflicting resource
explode: false
schema:
example: https://api.confluent.cloud/{object}/{id}
format: uri
type: string
style: simple
x-summary: Conflict
NotFoundError:
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "404"
title: Not Found
schema:
$ref: '#/components/schemas/Failure'
description: Not Found
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
ValidationError:
content:
application/json:
example:
errors:
- status: "422"
code: invalid_configuration
id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
title: Validation Failed
detail: 'The property ''/cluster/storage_size'' of type string did not
match the following type: integer'
source:
pointer: /cluster/storage_size
schema:
$ref: '#/components/schemas/Failure'
description: Validation Failed
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
RateLimitError:
description: Rate Limit Exceeded
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
X-RateLimit-Limit:
description: The maximum number of requests you're permitted to make per
time period.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Remaining:
description: The number of requests remaining in the current rate limit
window.
explode: false
schema:
type: integer
style: simple
X-RateLimit-Reset:
description: "The relative time in seconds until the current rate-limit\
\ window resets. \n \n**Important:** This differs from Github and Twitter's\
\ same-named header which uses UTC epoch seconds. We use relative time\
\ to avoid client/server time synchronization issues."
explode: false
schema:
type: integer
style: simple
Retry-After:
description: The number of seconds to wait until the rate limit window resets.
Only sent when the rate limit is reached.
explode: false
schema:
type: integer
style: simple
DefaultSystemError:
content:
application/json:
example:
errors:
- id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
status: "500"
code: out_of_gas
title: DeLorean Out Of Gas
detail: The DeLorean has run out of gas, but Doc Brown will fill 'er
up for you asap
schema:
$ref: '#/components/schemas/Failure'
description: Oops, something went wrong!
headers:
X-Request-Id:
description: The unique identifier for the API request.
explode: false
schema:
type: string
style: simple
schemas:
org.v2.Environment:
description: |-
`Environment` objects represent an isolated namespace for your Confluent resources
for organizational purposes.
The API allows you to create, delete, and update your environments. You can retrieve
individual environments as well as a list of all your environments.
Related guide: [Environments in Confluent Cloud](https://docs.confluent.io/cloud/current/access-management/environments.html).
## The Environments Model
## Quotas and Limits
This resource is subject to the [following quotas](https://docs.confluent.io/cloud/current/quotas/overview.html):
| Quota | Description |
| --- | --- |
| `environments_per_org` | Environments in one Confluent Cloud organization |
properties:
api_version:
description: APIVersion defines the schema version of this representation
of a resource.
enum:
- org/v2
readOnly: true
type: string
kind:
description: Kind defines the object this REST resource represents.
enum:
- Environment
readOnly: true
type: string
id:
description: ID is the "natural identifier" for an object within its scope/namespace;
it is normally unique across time but not space. That is, you can assume
that the ID will not be reclaimed and reused after an object is deleted
("time"); however, it may collide with IDs for other object `kinds` or
objects of the same `kind` within a different scope/namespace ("space").
example: dlz-f3a90de
maxLength: 255
readOnly: true
type: string
metadata:
allOf:
- $ref: '#/components/schemas/ObjectMeta'
- properties:
self:
example: https://api.confluent.cloud/org/v2/environments/e-12345
resource_name:
example: crn://confluent.cloud/organization=9bb441c4-edef-46ac-8a41-c49e44a3fd9a/environment=e-12345
display_name:
description: A human-readable name for the Environment
example: prod-finance01
type: string
stream_governance_config:
allOf:
- $ref: '#/components/schemas/org.v2.StreamGovernanceConfig'
description: Stream Governance configurations for the environment
type: object
type: object
org.v2.Organization:
description: |-
`Organization` objects represent a customer organization. An organization contains all customer
resources (e.g., Environments, Kafka Clusters, Service Accounts, API Keys) and is tied to a billing
agreement (including any annual commitment or support plan).
The API allows you to list, view, and update your organizations.
Related guide: [Organizations for Confluent Cloud](https://docs.confluent.io/cloud/current/access-management/hierarchy/organizations/cloud-organization.html).
## The Organizations Model
## Quotas and Limits
This resource is subject to the [following quotas](https://docs.confluent.io/cloud/current/quotas/overview.html):
| Quota | Description |
| --- | --- |
| `organizations_per_user` | Confluent Cloud organizations a user belongs to |
properties:
api_version:
description: APIVersion defines the schema version of this representation
of a resource.
enum:
- org/v2
readOnly: true
type: string
kind:
description: Kind defines the object this REST resource represents.
enum:
- Organization
readOnly: true
type: string
id:
description: ID is the "natural identifier" for an object within its scope/namespace;
it is normally unique across time but not space. That is, you can assume
that the ID will not be reclaimed and reused after an object is deleted
("time"); however, it may collide with IDs for other object `kinds` or
objects of the same `kind` within a different scope/namespace ("space").
example: dlz-f3a90de
maxLength: 255
readOnly: true
type: string
metadata:
allOf:
- $ref: '#/components/schemas/ObjectMeta'
- properties:
self:
example: https://api.confluent.cloud/org/v2/organizations/o-12345
resource_name:
example: crn://confluent.cloud/organization=o-12345
display_name:
description: A human-readable name for the Organization
example: Finance Org
pattern: ^[^<>#%'*^`{|}~\"]{1,31}$
type: string
jit_enabled:
description: The flag to toggle Just-In-Time user provisioning for SSO-enabled
organization. Available for early access only.
type: boolean
scim_enabled:
description: |
The flag to toggle SCIM user provisioning for an SSO-enabled organization.
Note - The attribute is in a [Limited Availability lifecycle stage](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
type: boolean
type: object
org.v2.ScimToken:
description: |-
`ScimToken` objects represent bearer tokens used for SCIM 2.0 API authentication.
The token value is only returned when the token is first created and cannot be retrieved later.
## The Scim Tokens Model
example:
connection_name: test-connection
metadata: ""
expires_at: 2026-10-16T10:00:00Z
kind: ScimToken
created_at: 2026-04-16T10:00:00Z
id: dlz-f3a90de
api_version: org/v2
token: cflt-scim_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
properties:
api_version:
description: APIVersion defines the schema version of this representation
of a resource.
enum:
- org/v2
readOnly: true
type: string
kind:
description: Kind defines the object this REST resource represents.
enum:
- ScimToken
readOnly: true
type: string
id:
description: ID is the "natural identifier" for an object within its scope/namespace;
it is normally unique across time but not space. That is, you can assume
that the ID will not be reclaimed and reused after an object is deleted
("time"); however, it may collide with IDs for other object `kinds` or
objects of the same `kind` within a different scope/namespace ("space").
example: dlz-f3a90de
maxLength: 255
readOnly: true
type: string
metadata:
allOf:
- $ref: '#/components/schemas/ObjectMeta'
- properties:
self:
example: https://api.confluent.cloud/org/v2/scim-tokens/st-12345
resource_name:
example: crn://confluent.cloud/organization=9bb441c4-edef-46ac-8a41-c49e44a3fd9a/scim-token=st-12345
connection_name:
description: The SSO connection name associated with this token.
example: test-connection
readOnly: true
type: string
token:
description: The SCIM bearer token. Only provided in create responses, not
in `list`.
example: cflt-scim_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
readOnly: true
type: string
x-redact: true
x-immutable: true
created_at:
description: The date and time when the token was created.
example: 2026-04-16T10:00:00Z
format: date-time
readOnly: true
type: string
expires_at:
description: The date and time when the token expires.
example: 2026-10-16T10:00:00Z
format: date-time
readOnly: true
type: string
type: object
org.v2.StreamGovernanceConfig:
description: |
Configurations pertaining to Stream Governance
properties:
package:
description: |
Stream Governance Package. Supported values are ESSENTIALS and ADVANCED.
Package comparison can be found
[here](https://docs.confluent.io/cloud/current/stream-governance/packages.html#features-by-package-type).
type: string
x-extensible-enum:
- ESSENTIALS
- ADVANCED
required:
- package
type: object
org.v2.EnvironmentList:
description: |-
`Environment` objects represent an isolated namespace for your Confluent resources
for organizational purposes.
The API allows you to create, delete, and update your environments. You can retrieve
individual environments as well as a list of all your environments.
Related guide: [Environments in Confluent Cloud](https://docs.confluent.io/cloud/current/access-management/environments.html).
## The Environments Model
## Quotas and Limits
This resource is subject to the [following quotas](https://docs.confluent.io/cloud/current/quotas/overview.html):
| Quota | Description |
| --- | --- |
| `environments_per_org` | Environments in one Confluent Cloud organization |
properties:
api_version:
description: APIVersion defines the schema version of this representation
of a resource.
enum:
- org/v2
readOnly: true
type: string
kind:
description: Kind defines the object this REST resource represents.
enum:
- EnvironmentList
readOnly: true
type: string
metadata:
allOf:
- $ref: '#/components/schemas/ListMeta'
- properties:
first:
example: https://api.confluent.cloud/org/v2/environments
last:
example: https://api.confluent.cloud/org/v2/environments?page_token=bcAOehAY8F16YD84Z1wT
prev:
example: https://api.confluent.cloud/org/v2/environments?page_token=YIXRY97wWYmwzrax4dld
next:
example: https://api.confluent.cloud/org/v2/environments?page_token=UvmDWOB1iwfAIBPj6EYb
data:
description: A data property that contains an array of resource items. Each
entry in the array is a separate resource.
items:
allOf:
- $ref: '#/components/schemas/org.v2.Environment'
- required:
- display_name
- id
- metadata
type: object
type: array
uniqueItems: true
required:
- api_version
- data
- kind
- metadata
type: object
org.v2.OrganizationList:
description: |-
`Organization` objects represent a customer organization. An organization contains all customer
resources (e.g., Environments, Kafka Clusters, Service Accounts, API Keys) and is tied to a billing
agreement (including any annual commitment or support plan).
The API allows you to list, view, and update your organizations.
Related guide: [Organizations for Confluent Cloud](https://docs.confluent.io/cloud/current/access-management/hierarchy/organizations/cloud-organization.html).
## The Organizations Model
## Quotas and Limits
This resource is subject to the [following quotas](https://docs.confluent.io/cloud/current/quotas/overview.html):
| Quota | Description |
| --- | --- |
| `organizations_per_user` | Confluent Cloud organizations a user belongs to |
properties:
api_version:
description: APIVersion defines the schema version of this representation
of a resource.
enum:
- org/v2
readOnly: true
type: string
kind:
description: Kind defines the object this REST resource represents.
enum:
- OrganizationList
readOnly: true
type: string
metadata:
allOf:
- $ref: '#/components/schemas/ListMeta'
- properties:
first:
example: https://api.confluent.cloud/org/v2/organizations
last:
example: https://api.confluent.cloud/org/v2/organizations?page_token=bcAOehAY8F16YD84Z1wT
prev:
example: https://api.confluent.cloud/org/v2/organizations?page_token=YIXRY97wWYmwzrax4dld
next:
example: https://api.confluent.cloud/org/v2/organizations?page_token=UvmDWOB1iwfAIBPj6EYb
data:
description: A data property that contains an array of resource items. Each
entry in the array is a separate resource.
items:
allOf:
- $ref: '#/components/schemas/org.v2.Organization'
- required:
- id
- metadata
type: object
type: array
uniqueItems: true
required:
- api_version
- data
- kind
- metadata
type: object
org.v2.ScimTokenList:
description: |-
`ScimToken` objects represent bearer tokens used for SCIM 2.0 API authentication.
The token value is only returned when the token is first created and cannot be retrieved later.
## The Scim Tokens Model
properties:
api_version:
description: APIVersion defines the schema version of this representation
of a resource.
enum:
- org/v2
readOnly: true
type: string
kind:
description: Kind defines the object this REST resource represents.
enum:
- ScimTokenList
readOnly: true
type: string
metadata:
allOf:
- $ref: '#/components/schemas/ListMeta'
- properties:
first:
example: https://api.confluent.cloud/org/v2/scim-tokens
last:
example: https://api.confluent.cloud/org/v2/scim-tokens?page_token=bcAOehAY8F16YD84Z1wT
prev:
example: https://api.confluent.cloud/org/v2/scim-tokens?page_token=YIXRY97wWYmwzrax4dld
next:
example: https://api.confluent.cloud/org/v2/scim-tokens?page_token=UvmDWOB1iwfAIBPj6EYb
data:
description: A data property that contains an array of resource items. Each
entry in the array is a separate resource.
items:
allOf:
- $ref: '#/components/schemas/org.v2.ScimToken'
- required:
- connection_name
- created_at
- expires_at
- id
- metadata
type: object
type: array
uniqueItems: true
required:
- api_version
- data
- kind
- metadata
type: object
ObjectMeta:
description: ObjectMeta is metadata that all persisted resources must have,
which includes all objects users must create.
properties:
self:
description: Self is a Uniform Resource Locator (URL) at which an object
can be addressed. This URL encodes the service location, API version,
and other particulars necessary to locate the resource at a point in time
example: https://api.confluent.cloud/v2/kafka-clusters/lkc-f3a90de
format: uri
readOnly: true
type: string
resource_name:
description: Resource Name is a Uniform Resource Identifier (URI) that is
globally unique across space and time. It is represented as a Confluent
Resource Name
example: crn://confluent.cloud/kafka=lkc-f3a90de
format: uri
readOnly: true
type: string
created_at:
description: The date and time at which this object was created. It is represented
in RFC3339 format and is in UTC.
example: 2006-01-02T15:04:05-07:00
format: date-time
readOnly: true
type: string
updated_at:
description: The date and time at which this object was last updated. It
is represented in RFC3339 format and is in UTC.
example: 2006-01-02T15:04:05-07:00
format: date-time
readOnly: true
type: string
deleted_at:
description: The date and time at which this object was (or will be) deleted.
It is represented in RFC3339 format and is in UTC.
example: 2006-01-02T15:04:05-07:00
format: date-time
readOnly: true
type: string
readOnly: true
required:
- self
ListMeta:
description: ListMeta describes metadata that resource collections may have
properties:
first:
description: A link to the first page of results. If a response does not
contain a first link, then direct navigation to the first page is not
supported.
example: https://api.confluent.cloud/v2/resourcekinds
format: uri
nullable: true
type: string
last:
description: A link to the last page of results. If a response does not
contain a last link, then direct navigation to the last page is not supported.
example: https://api.confluent.cloud/v2/resourcekinds?page_token=bcAOehAY8F16YD84Z1wT
format: uri
nullable: true
type: string
prev:
description: A link to the previous page of results. If a response does
not contain a prev link, then either there is no previous data or backwards
traversal through the result set is not supported.
example: https://api.confluent.cloud/v2/resourcekinds?page_token=YIXRY97wWYmwzrax4dld
format: uri
nullable: true
type: string
next:
description: A link to the next page of results. If a response does not
contain a next link, then there is no more data available.
example: https://api.confluent.cloud/v2/resourcekinds?page_token=UvmDWOB1iwfAIBPj6EYb
format: uri
nullable: true
type: string
total_size:
description: Number of records in the full result set. This response may
be paginated and have a smaller number of records.
example: 123
format: int32
minimum: 0
type: integer
type: object
ObjectReference:
description: ObjectReference provides information for you to locate the referred
object
properties:
id:
description: ID of the referred resource
maxLength: 255
minLength: 1
type: string
environment:
description: Environment of the referred resource, if env-scoped
maxLength: 255
minLength: 1
type: string
related:
description: API URL for accessing or modifying the referred object
format: uri
minLength: 1
readOnly: true
type: string
resource_name:
description: CRN reference to the referred resource
format: uri
minLength: 1
readOnly: true
type: string
api_version:
description: API group and version of the referred resource
minLength: 1
readOnly: true
type: string
kind:
description: Kind of the referred resource
minLength: 1
readOnly: true
type: string
required:
- id
- related
- resource_name
type: object
Failure:
description: Provides information about problems encountered while performing
an operation.
properties:
errors:
description: List of errors which caused this operation to fail
items:
$ref: '#/components/schemas/Error'
type: array
uniqueItems: true
required:
- errors
type: object
Error:
description: Describes a particular error encountered while performing an operation.
properties:
id:
description: A unique identifier for this particular occurrence of the problem.
maxLength: 255
type: string
status:
description: The HTTP status code applicable to this problem, expressed
as a string value.
type: string
code:
description: An application-specific error code, expressed as a string value.
type: string
title:
description: A short, human-readable summary of the problem. It **SHOULD
NOT** change from occurrence to occurrence of the problem, except for
purposes of localization.
type: string
detail:
description: A human-readable explanation specific to this occurrence of
the problem.
type: string
source:
$ref: '#/components/schemas/Error_source'
type: object
inline_object:
properties:
expire_duration_mins:
default: 259200
description: |
The duration in minutes after which the token expires.
Defaults to 6 months (259200 minutes) if not specified.
Minimum: 1 month (43200 minutes).
Maximum: 2 years (1051200 minutes).
example: 259200
format: int32
maximum: 1051200
minimum: 43200
type: integer
type: object
Error_source:
description: If this error was caused by a particular part of the API request,
the source will point to the query string parameter or request body property
that caused it.
properties:
pointer:
description: A JSON Pointer [RFC6901] to the associated entity in the request
document [e.g. "/spec" for a spec object, or "/spec/title" for a specific
field].
type: string
parameter:
description: A string indicating which query parameter caused the error.
type: string
type: object
securitySchemes:
cloud-api-key:
description: Authenticate with Cloud API Keys using HTTP Basic Auth. Treat the
Cloud API Key ID as the username and Cloud API Key Secret as the password.
scheme: basic
type: http
global-api-key:
description: Authenticate with Global API Keys using HTTP Basic Auth. Treat
the Global API Key ID as the username and Global API Key Secret as the password.
scheme: basic
type: http
confluent-sts-access-token:
description: Authenticate with Confluent API using this credentials (JSON Web
Tokens) following OAuth 2.0.
flows:
clientCredentials:
scopes: {}
tokenUrl: https://api.confluent.cloud/sts/v1/oauth2/token
type: oauth2
confluent_auth:
description: RBAC permissions required for this endpoint
flows:
implicit:
authorizationUrl: https://confluent.cloud/oauth
scopes:
Alter:Environment: Alter permission on Environment resource type
Alter:Organization: Alter permission on Organization resource type
Create:ScimToken: Create permission on ScimToken resource type
CreateEnvironment:Organization: CreateEnvironment permission on Organization
resource type
Delete:Environment: Delete permission on Environment resource type
Delete:ScimToken: Delete permission on ScimToken resource type
Describe:Environment: Describe permission on Environment resource type
Describe:Organization: Describe permission on Organization resource type
Describe:ScimToken: Describe permission on ScimToken resource type
type: oauth2