A composite object that conceptually represents the concept of an AI Model. The object contains a service object and a plugin object defined on that service. The service object represents the LLM endpoint and the plugin object represents the configuration of the LLM endpoint. The plugin will be one of: ai-proxy or ai-proxy-advanced.
Returns a list of composite objects representing ai-manager-models for the organization ID represented in the JWT claim.
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
{- "items": [
- {
- "control_plane": {
- "id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "cluster_type": "CLUSTER_TYPE_CONTROL_PLANE",
- "cloud_gateway": true
}, - "service": {
- "host": "example.internal",
- "id": "49fd316e-c457-481c-9fc7-8079153e4f3c",
- "name": "example-service",
- "path": "/",
- "port": 80,
- "protocol": "http"
}, - "plugin": {
- "config": {
- "anonymous": null,
- "hide_credentials": false,
- "key_in_body": false,
- "key_in_header": true,
- "key_in_query": true,
- "key_names": [
- "apikey"
], - "run_on_preflight": true
}, - "enabled": true,
- "id": "3fd1eea1-885a-4011-b986-289943ff8177",
- "name": "key-auth",
- "partials": [
- {
- "id": "cff1230a-00f7-4ae8-b376-c370f0eb4dae",
- "name": "foo-partial",
- "path": "config.redis"
}, - {
- "id": "129ee345-cba8-4e55-9d6d-93c223ff91ae",
- "name": "bar-partial",
- "path": "config.redis"
}
], - "protocols": [
- "grpc",
- "grpcs",
- "http",
- "https"
]
}
}
], - "page": {
- "total_count": 2,
- "next_cursor": "string",
- "has_next_page": true
}
}Post a query to the endpoint to retrieve aggregated metrics down to the minute. Data can be requested to group by any 2 dimensions, and any number of filter conditions.
| metrics required | Array of strings Items Enum: "request_count" "request_per_minute" "response_latency_p99" "response_latency_p95" "response_latency_p50" "response_latency_average" "upstream_latency_p99" "upstream_latency_p95" "upstream_latency_p50" "upstream_latency_average" "kong_latency_p99" "kong_latency_p95" "kong_latency_p50" "kong_latency_average" "response_size_p99" "response_size_p95" "response_size_p50" "request_size_p99" "request_size_p95" "request_size_p50" "request_size_average" "response_size_average" List of aggregated metrics to collect across the requested time span. |
| dimensions | Array of strings [ 0 .. 2 ] items Items Enum: "api_product" "api_product_version" "application" "consumer" "control_plane" "control_plane_group" "data_plane_node" "gateway_service" "route" "status_code" "status_code_grouped" "time" List of attributes or entity types to group by. |
Array of objects (ExploreFilter) A list of filters to apply to the query. | |
| granularity | string Enum: "minute" "hour" "day" "week" "trend" Force time grouping into buckets of the specified duration. Only has an effect if "time" is in the "dimensions" list. If "trend" is chosen, the time range covered by the query will be twice the specified time range, and the granularity will be set such that two time buckets are returned, one for the given time range and one for the same time range prior. For example: time range: last 24 hours granularity: trend will return 2 time buckets (assuming both have data):
Another example: time range: 2020-05-01 to 2020-05-15 granularity: trend will return 2 time buckets:
The granularity of the result may be coarser than requested. The finest allowed granularity depends on the query's time range: data farther in the past may have coarser granularity. The exact result granularity will be reported in the response If granularity is not specified and "time" is in the dimensions list, a default will be chosen based on the time range requested. |
any Default: {"type":"relative","time_range":"1h"} The time range to query. | |
| meta | object |
{- "time_range": {
- "type": "relative",
- "time_range": "24h",
- "tz": "EST"
}, - "dimensions": [
- "time",
- "gateway_service"
], - "filters": [
- {
- "type": "in",
- "dimension": "control_plane",
- "values": [
- "d5ac5d88-efed-4e10-9dfe-0b0a6646c219"
]
}
], - "granularity": "hour",
- "metrics": [
- "response_latency_p99",
- "response_latency_p95",
- "response_latency_p50"
]
}{- "data": [
- {
- "event": {
- "gateway_service": "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-1f2ea9215055",
- "request_count": 1000,
- "response_latency_p99": 23
}, - "timestamp": "2024-01-16T00:00:00Z"
}
], - "meta": {
- "start_ms": 1705428000000,
- "end_ms": 1705429000000,
- "display": {
- "gateway_service": {
- "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-111111111111": {
- "id": "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-111111111111",
- "deleted": true,
- "name": "Gateway Service Alpha"
}, - "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-1f2ea9215055": {
- "id": "d5ac5d88-efed-4e10-9dfe-0b0a6646c219:bf16907c-8673-4f9d-aa83-1f2ea9215055",
- "deleted": false,
- "name": "Gateway Service Beta"
}
}
}, - "metric_units": {
- "request_count": "cnt",
- "response_latency_p99": "ms"
}, - "granularity_ms": 60000,
- "truncated": false,
- "limit": 50,
- "query_id": "requested-query-id"
}
}Returns a list of custom reports.
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "summary": "Bar chart of status codes by API product for the past 24 hours",
- "description": "A vertical bar chart grouping data first by API product, then by status code, for the past 24 hours.",
- "value": {
- "name": "Status codes by service",
- "chart_type": "VERTICAL_BAR",
- "time_range": {
- "type": "RELATIVE",
- "time_period": "24H"
}, - "query": {
- "metrics": [
- "REQUEST_COUNT"
], - "dimensions": [
- "API_PRODUCT",
- "STATUS_CODE"
]
}
}
}
]
}Creates a new custom report.
The request schema for the create report request.
If you pass the same name and description of an existing report in the request, a report with the same name and description will be created. The two reports will have different id values to differentiate them.
Note that all fields are optional: if you pass an empty JSON object as the request ({}), a new report will be created with a default configuration.
| name | string [ 1 .. 255 ] characters The user-provided name for the report. If not provided, the report will be named "Untitled Report" with a timestamp suffix. |
| description | string An optional extended description for the report. |
| chart_type | string Default: "HORIZONTAL_BAR" Enum: "HORIZONTAL_BAR" "VERTICAL_BAR" "LINE" Visualization type selected for this report. |
any (TimeRange) Default: {"type":"RELATIVE","time_period":"24H"} The period of time to return data. Relative time ranges are relative to the current moment. Absolute time ranges specify an unchanging period of time. If not specified, a default relative timeframe of last 24 hours will be chosen. | |
object |
A vertical bar chart grouping data first by API product, then by status code, for the past 24 hours.
{- "name": "Status codes by service",
- "chart_type": "VERTICAL_BAR",
- "time_range": {
- "type": "RELATIVE",
- "time_period": "24H"
}, - "query": {
- "metrics": [
- "REQUEST_COUNT"
], - "dimensions": [
- "API_PRODUCT",
- "STATUS_CODE"
]
}
}{- "summary": "Bar chart of status codes by API product for the past 24 hours",
- "description": "A vertical bar chart grouping data first by API product, then by status code, for the past 24 hours.",
- "value": {
- "name": "Status codes by service",
- "chart_type": "VERTICAL_BAR",
- "time_range": {
- "type": "RELATIVE",
- "time_period": "24H"
}, - "query": {
- "metrics": [
- "REQUEST_COUNT"
], - "dimensions": [
- "API_PRODUCT",
- "STATUS_CODE"
]
}
}
}Returns a single report.
| reportId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The report's ID |
{- "summary": "Bar chart of status codes by API product for the past 24 hours",
- "description": "A vertical bar chart grouping data first by API product, then by status code, for the past 24 hours.",
- "value": {
- "name": "Status codes by service",
- "chart_type": "VERTICAL_BAR",
- "time_range": {
- "type": "RELATIVE",
- "time_period": "24H"
}, - "query": {
- "metrics": [
- "REQUEST_COUNT"
], - "dimensions": [
- "API_PRODUCT",
- "STATUS_CODE"
]
}
}
}Updates a custom report.
| reportId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The report's ID |
The request schema for the update report request.
| name | string [ 1 .. 255 ] characters The user-provided name for the report. If not provided, the report will be named "Untitled Report" with a timestamp suffix. |
| description | string An optional extended description for the report. |
| chart_type | string Default: "HORIZONTAL_BAR" Enum: "HORIZONTAL_BAR" "VERTICAL_BAR" "LINE" Visualization type selected for this report. |
any (TimeRange) Default: {"type":"RELATIVE","time_period":"24H"} The period of time to return data. Relative time ranges are relative to the current moment. Absolute time ranges specify an unchanging period of time. If not specified, a default relative timeframe of last 24 hours will be chosen. | |
object |
A vertical bar chart grouping data first by API product, then by status code, for the past 24 hours.
{- "name": "Status codes by service",
- "chart_type": "VERTICAL_BAR",
- "time_range": {
- "type": "RELATIVE",
- "time_period": "24H"
}, - "query": {
- "metrics": [
- "REQUEST_COUNT"
], - "dimensions": [
- "API_PRODUCT",
- "STATUS_CODE"
]
}
}{- "summary": "Bar chart of status codes by API product for the past 24 hours",
- "description": "A vertical bar chart grouping data first by API product, then by status code, for the past 24 hours.",
- "value": {
- "name": "Status codes by service",
- "chart_type": "VERTICAL_BAR",
- "time_range": {
- "type": "RELATIVE",
- "time_period": "24H"
}, - "query": {
- "metrics": [
- "REQUEST_COUNT"
], - "dimensions": [
- "API_PRODUCT",
- "STATUS_CODE"
]
}
}
}Deletes a custom report. Returns 404 if the report is not found.
| reportId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The report's ID |
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Exports report data in CSV format.
| reportId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The ID of the report to export |
| tz | string Example: tz=Etc/UTC The timezone to use for the report. This impacts several things:
|
| utc_format | boolean If true, export timestamps in "programmer friendly" format (ISO-8601, UTC timezone). If false, export in "spreadsheet friendly" format (local time without timezone specifier). Note: this does NOT impact the timezone of the report, merely the format of the time column if one is present. |
TIMESTAMP,UTC_OFFSET,API_PRODUCT,TOTAL_REQUESTS 2023-01-01 00:00:00,-04:00,ProductA,2497079 2023-01-01 00:00:00,-04:00,ProductB,2029907
Returns a paginated list of networks.
object (NetworksFilterParameters) Filters supported for networks. | |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "36ae63d3-efd1-4bec-b246-62aa5d3f5695",
- "name": "us-east-2 network",
- "default": false,
- "cloud_gateway_provider_account_id": "929b2449-c69f-44c4-b6ad-9ecec6f811ae",
- "region": "us-east-2",
- "availability_zones": [
- "use2-az1",
- "use2-az2",
- "use2-az3"
], - "cidr_block": "10.0.0.0/8",
- "firewall": {
- "allowed_cidr_blocks": [
- "10.0.0.0/8"
], - "denied_cidr_blocks": [
- "10.100.0.0/16"
]
}, - "ddos_protection": false,
- "state": "created",
- "provider_metadata": {
- "vpc_id": "string",
- "subnet_ids": [
- "string"
]
}, - "transit_gateway_count": 0,
- "configuration_reference_count": 0,
- "entity_version": 1,
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}
]
}Creates a new network for a given provider account.
| name required | string (Network Name) Human-readable name of the network. |
| cloud_gateway_provider_account_id required | string <uuid> (ProviderAccountId) |
| region required | string (Provider Region ID) Region ID for cloud provider region. |
| availability_zones required | Array of strings (NetworkAvailabilityZones) List of availability zones that the network is attached to. |
| cidr_block required | string (Network CIDR Block) CIDR block configuration for the network. |
object (Network Firewall Config) Firewall configuration for a network. | |
| ddos_protection | boolean (Network DDOS Protection) Whether DDOS protection is enabled for the network. |
| state | string (Network Create State) Default: "initializing" Enum: "initializing" "offline" Initial state for creating a network. |
{- "name": "us-east-2 network",
- "cloud_gateway_provider_account_id": "929b2449-c69f-44c4-b6ad-9ecec6f811ae",
- "region": "us-east-2",
- "availability_zones": [
- "use2-az1",
- "use2-az2",
- "use2-az3"
], - "cidr_block": "10.0.0.0/8",
- "firewall": {
- "allowed_cidr_blocks": [
- "10.0.0.0/8"
], - "denied_cidr_blocks": [
- "10.100.0.0/16"
]
}, - "ddos_protection": false,
- "state": "initializing"
}{- "id": "36ae63d3-efd1-4bec-b246-62aa5d3f5695",
- "name": "us-east-2 network",
- "default": false,
- "cloud_gateway_provider_account_id": "929b2449-c69f-44c4-b6ad-9ecec6f811ae",
- "region": "us-east-2",
- "availability_zones": [
- "use2-az1",
- "use2-az2",
- "use2-az3"
], - "cidr_block": "10.0.0.0/8",
- "firewall": {
- "allowed_cidr_blocks": [
- "10.0.0.0/8"
], - "denied_cidr_blocks": [
- "10.100.0.0/16"
]
}, - "ddos_protection": false,
- "state": "created",
- "provider_metadata": {
- "vpc_id": "string",
- "subnet_ids": [
- "string"
]
}, - "transit_gateway_count": 0,
- "configuration_reference_count": 0,
- "entity_version": 1,
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Updates a network by ID.
| networkId required | string <uuid> (NetworkId) Example: 36ae63d3-efd1-4bec-b246-62aa5d3f5695 The network to operate on. |
| name | string (Network Name) Human-readable name of the network. |
object (Network Firewall Config) Firewall configuration for a network. |
{- "name": "us-east-2 network",
- "firewall": {
- "allowed_cidr_blocks": [
- "10.0.0.0/8"
], - "denied_cidr_blocks": [
- "10.100.0.0/16"
]
}
}{- "id": "36ae63d3-efd1-4bec-b246-62aa5d3f5695",
- "name": "us-east-2 network",
- "default": false,
- "cloud_gateway_provider_account_id": "929b2449-c69f-44c4-b6ad-9ecec6f811ae",
- "region": "us-east-2",
- "availability_zones": [
- "use2-az1",
- "use2-az2",
- "use2-az3"
], - "cidr_block": "10.0.0.0/8",
- "firewall": {
- "allowed_cidr_blocks": [
- "10.0.0.0/8"
], - "denied_cidr_blocks": [
- "10.100.0.0/16"
]
}, - "ddos_protection": false,
- "state": "created",
- "provider_metadata": {
- "vpc_id": "string",
- "subnet_ids": [
- "string"
]
}, - "transit_gateway_count": 0,
- "configuration_reference_count": 0,
- "entity_version": 1,
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Returns a paginated collection of Private DNS for a given network.
| networkId required | string <uuid> (NetworkId) Example: 36ae63d3-efd1-4bec-b246-62aa5d3f5695 The network to operate on. |
object (PrivateDnsFilterParameters) Filters supported for Private DNS. | |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "name": "us-east-2 private dns",
- "private_dns_attachment_config": {
- "kind": "aws-private-hosted-zone-attachment",
- "hosted_zone_id": "string"
}, - "id": "1850820b-c69f-4a2a-b9be-bbcdbc5cd618",
- "state": "created",
- "entity_version": 1,
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}
]
}Creates a new Private DNS for a given network.
| networkId required | string <uuid> (NetworkId) Example: 36ae63d3-efd1-4bec-b246-62aa5d3f5695 The network to operate on. |
| name required | string (Private DNS Name) Human-readable name of the Private DNS. |
required | object (AWS Private Hosted Zone Attachment Config) |
{- "name": "us-east-2 private dns",
- "private_dns_attachment_config": {
- "kind": "aws-private-hosted-zone-attachment",
- "hosted_zone_id": "string"
}
}{- "name": "us-east-2 private dns",
- "private_dns_attachment_config": {
- "kind": "aws-private-hosted-zone-attachment",
- "hosted_zone_id": "string"
}, - "id": "1850820b-c69f-4a2a-b9be-bbcdbc5cd618",
- "state": "created",
- "entity_version": 1,
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Retrieves a Private DNS by ID for a given network.
| networkId required | string <uuid> (NetworkId) Example: 36ae63d3-efd1-4bec-b246-62aa5d3f5695 The network to operate on. |
| privateDnsId required | string <uuid> (PrivateDnsId) Example: 1850820b-c69f-4a2a-b9be-bbcdbc5cd618 The ID of the Private DNS to operate on. |
{- "name": "us-east-2 private dns",
- "private_dns_attachment_config": {
- "kind": "aws-private-hosted-zone-attachment",
- "hosted_zone_id": "string"
}, - "id": "1850820b-c69f-4a2a-b9be-bbcdbc5cd618",
- "state": "created",
- "entity_version": 1,
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Deletes a Private DNS by ID for a given network.
| networkId required | string <uuid> (NetworkId) Example: 36ae63d3-efd1-4bec-b246-62aa5d3f5695 The network to operate on. |
| privateDnsId required | string <uuid> (PrivateDnsId) Example: 1850820b-c69f-4a2a-b9be-bbcdbc5cd618 The ID of the Private DNS to operate on. |
{- "status": 400,
- "title": "Invalid Request",
- "instance": "konnect:trace:2822394689570210664",
- "detail": "Invalid Parameters",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "max_length",
- "reason": "name must be shorter than or equal to 120 characters",
- "maximum": 120
}
]
}Get Cloud Gateways Availability JSON document for describing cloud provider and region availability, pricing, gateway version availability, and instance type information.
{- "versions": [
- "3.2"
], - "instance_types": [
- {
- "name": "small",
- "hourly_cost": "1.00",
- "v_cpu": "2",
- "gb_memory": "2"
}
], - "providers": [
- {
- "provider": "aws",
- "regions": [
- {
- "region": "us-east-2",
- "name": "N. Virginia",
- "availability_zones": [
- "use2-az1",
- "use2-az2",
- "use2-az3"
], - "cidr_blocks": [
- "10.0.0.0/8",
- "100.64.0.0/10",
- "172.16.0.0/12",
- "192.168.0.0/16",
- "198.18.0.0/15"
], - "reserved_cidr_blocks": [
- "10.100.0.0/16",
- "172.17.0.0/16"
]
}
]
}
]
}| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
{- "data": [
- {
- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "duration_secs": 300,
- "created_at": "2024-10-01T20:00:00.000Z",
- "updated_at": "2024-10-01T20:00:00.000Z"
}
], - "meta": {
- "page": {
- "size": 10,
- "next": null,
- "previous": null
}
}
}Create Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| name | string The optional session name. |
| max_samples | integer The maximum amount of samples to collect per data plane. |
| sampling_rule | string or null An expression used to filter the requests to sample. |
| duration_secs | integer The duration of the debug session in seconds. |
| capture_content | Array of strings Items Enum: "headers" "body" |
| targets | Array of strings <uuid> The data plane nodes to collect samples from. |
{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "targets": [
- "ae853602-23c7-4218-9071-82fdef3a1efe"
]
}{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "duration_secs": 300,
- "created_at": "2024-10-01T20:10:00.000Z",
- "updated_at": "2024-10-01T20:10:00.000Z"
}Returns a Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "duration_secs": 300,
- "created_at": "2024-10-01T20:10:00.000Z",
- "updated_at": "2024-10-01T20:10:00.000Z"
}Deletes a Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Stops an active Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
{ }Marks the target as completed in an active debug session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
| targetId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Unique identifier of the data plane node. |
{ }| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{ }Retrieves the predefined, or system managed, roles.
{- "control_planes": {
- "name": "Control Planes",
- "roles": {
- "admin": {
- "name": "Admin",
- "description": "This role grants full write access to all entities within a control plane."
}, - "certificate_admin": {
- "name": "Certificate Admin",
- "description": "This role grants full write access to administer certificates."
}, - "consumer_admin": {
- "name": "Consumer Admin",
- "description": "This role grants full write access to administer consumers."
}, - "creator": {
- "name": "Creator",
- "description": "Creates a new Control Plane in an organization. The creator becomes the owner of the Control Plane they create."
}, - "deployer": {
- "name": "Deployer",
- "description": "This role grants full write access to administer services, routes and plugins necessary to deploy services in Service Hub."
}, - "gateway_service_admin": {
- "name": "Gateway Service Admin",
- "description": "This role grants full write access to administer gateway services."
}, - "plugin_admin": {
- "name": "Plugin Admin",
- "description": "This role grants full write access to administer plugins."
}, - "route_admin": {
- "name": "Route Admin",
- "description": "This role grants full write access to administer routes."
}, - "sni_admin": {
- "name": "SNI Admin",
- "description": "This role grants full write access to administer SNIs."
}, - "upstream_admin": {
- "name": "Upstream Admin",
- "description": "This role grants full write access to administer upstreams."
}, - "viewer": {
- "name": "Viewer",
- "description": "This role grants read only access to all entities within a control plane."
}
}
}, - "api_products": {
- "name": "API Products",
- "roles": {
- "admin": {
- "name": "Admin",
- "description": "This role grants full write access to an API product and its versions."
}, - "application_registration": {
- "name": "Application Registration",
- "description": "This role grants permission to enable and disable application registration on an API product."
}, - "creator": {
- "name": "Creator",
- "description": "This access is required to create API products. This access is not for creating sub-entities such as versions, API specs, etc."
}, - "deployer": {
- "name": "Deployer",
- "description": "This role grants permission to deploy and remove an API product from a control plane."
}, - "maintainer": {
- "name": "Maintainer",
- "description": "This role grants all write permission to manage an API product and to administer plugins."
}, - "plugins_admin": {
- "name": "Plugins Admin",
- "description": "This role grants full write permission to administer plugins."
}, - "publisher": {
- "name": "Publisher",
- "description": "This role grants permission to publish an API product to one or more portals."
}, - "viewer": {
- "name": "Viewer",
- "description": "Viewer has read-only access to an API product and its sub-entities."
}
}
}, - "audit_logs": {
- "name": "Audit Logs",
- "roles": {
- "admin": {
- "name": "Admin",
- "description": "This role grants full write access to the Audit log configuration."
}
}
}, - "identity": {
- "name": "Identity",
- "roles": {
- "admin": {
- "name": "Admin",
- "description": "This role grants full write access to the Identity configuration."
}
}
}, - "mesh_control_planes": {
- "name": "Mesh Control Plane",
- "roles": {
- "admin": {
- "name": "Admin",
- "description": "This role grants full write access to the related to Mesh control planes."
}, - "connector": {
- "name": "Connector",
- "description": "This role grants a mesh zone to connect to the mesh control plane in Konnect."
}, - "creator": {
- "name": "Creator",
- "description": "This role grants access to create new Mesh control planes."
}, - "viewer": {
- "name": "Viewer",
- "description": "This role grants access to read-only permissions to Mesh control planes."
}
}
}
}List customer managed encryption keys
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
object Filter CMEKs returned in the response. |
{- "data": [
- {
- "id": "default",
- "name": "My KMS Key",
- "description": "My Key Description",
- "key_arn": "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012",
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}, - {
- "id": "alt-key",
- "name": "Alternative KMS Key",
- "description": "My Other Key",
- "key_arn": "arn:aws:kms:us-east-1:123456789012:key/62ab5b30-aa25-4903-be45-b6c696f75fe9",
- "created_at": "2024-02-20T09:29:14.52Z",
- "updated_at": "2024-02-21T09:29:14.52Z"
}
], - "meta": {
- "page": {
- "next": "/v0/cmeks?page%5Bafter%5D=f11CXlAMGEVFB0AEQw19QhNYMV5CCkFYSltZUFgPSBJHFwwWFg%3D%3D&page%5Bsize%5=1",
- "previous": "/v0/cmeks?page%5Bbefore%5D=dl8UWVYPEUZFA0sHQw19EUVYMV5BDhcISl1WWVgNQRBBS1gSFw%3D%3D&page%5Bsize%5D=1",
- "size": 10
}
}
}Get a customer managed encryption key
| cmekId required | string Example: default Id of the CMEK |
{- "id": "default",
- "name": "My KMS Key",
- "description": "My Key Description",
- "key_arn": "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012",
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Replace a customer managed encryption key
| cmekId required | string Example: default Id of the CMEK |
Request body schema for putting a CMEK.
| key_arn required | string The ARN of the KMS key to use for encryption |
| name | string |
| description | string |
{- "name": "My KMS Key",
- "description": "My Key Description",
- "key_arn": "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012"
}{- "id": "default",
- "name": "My KMS Key",
- "description": "My Key Description",
- "key_arn": "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012",
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Delete a customer managed encryption key
| cmekId required | string Example: default Id of the CMEK |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Get a raw decrypted blob
| blobId required | string Example: 680ed2c45c18562ab4448d54c6f962ff:reqres Id of the Blob |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Store a raw blob of data
| blobId required | string Example: 680ed2c45c18562ab4448d54c6f962ff:reqres Id of the Blob |
| X-Konnect-Expires-In | integer Default: 259200 Retention time (TTL) of the blob in seconds |
| X-Konnect-CMEK-Id | string Default: default The CMEK ID to use for encryption |
Raw blob data
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Retrieves a list of Konnect entities matching the search query provided. It requires reports#list permission.
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
Analytics search request payload
| query required | string The query that defines the search criteria. Supports Lucene-like syntax for filtering results. Learn more about search query syntax here. |
{- "query": "type:consumer AND @scope:realm AND id:(abc OR xyz OR 123)"
}{- "data": [
- {
- "id": "c0010105-e840-4824-b7ee-787f22267c36",
- "type": "consumer",
- "name": "example-consumer-1",
- "description": "example consumer 1",
- "labels": {
- "env": "prod"
}, - "attributes": {
- "username": "example-consumer-1",
- "custom_id": "example-consumer-1",
- "created_at": "2022-07-31T09:15:15.04Z",
- "updated_at": "2023-02-11T18:47:03.34Z"
}, - "relations": {
- "control_plane_id": "060e479c-166c-4921-a22c-49a24bbb2c63"
}
}, - {
- "id": "c0010105-e840-4824-b7ee-787f22267c37",
- "type": "consumer",
- "name": "example-consumer-2",
- "description": "example consumer 2",
- "attributes": {
- "username": "example-consumer-2",
- "custom_id": "example-consumer-2",
- "created_at": "2022-07-31T09:15:15.04Z",
- "updated_at": "2023-02-11T18:47:03.34Z"
}, - "relations": {
- "control_plane_id": "060e479c-166c-4921-a22c-49a24bbb2c64"
}
}, - {
- "id": "c0010105-e840-4824-b7ee-787f22267c38",
- "type": "consumer",
- "name": "example-consumer-3",
- "description": "example consumer 3",
- "attributes": {
- "username": "example-consumer-3",
- "custom_id": "example-consumer-3",
- "created_at": "2022-07-31T09:15:15.04Z",
- "updated_at": "2023-02-11T18:47:03.34Z"
}, - "relations": {
- "control_plane_id": "060e479c-166c-4921-a22c-49a24bbb2c65"
}
}
], - "meta": {
- "page": {
- "size": 3,
- "next": "/search?q=son&page[after]=ewogICJpZCI6ICJoZWysbyB3b3JsZCIKgZ"
}
}
}Get the configuration of the portal
| portalId required | string <uuid> Example: f32d905a-ed33-46a3-a093-d8f536af9a8a ID of the portal. |
{- "data": {
- "header": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
}Update the configuration of the portal
| portalId required | string <uuid> Example: f32d905a-ed33-46a3-a093-d8f536af9a8a ID of the portal. |
required | object |
{- "data": {
- "header": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
}{- "data": {
- "header": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
}Update the configuration of the portal
| portalId required | string <uuid> Example: f32d905a-ed33-46a3-a093-d8f536af9a8a ID of the portal. |
Request schema to replace the portal configuration.
required | object |
{- "data": {
- "header": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
}{- "data": {
- "header": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
}Returns the portal customization options.
| portalId required | string <uuid> Example: f32d905a-ed33-46a3-a093-d8f536af9a8a ID of the portal. |
{- "theme": {
- "name": "string",
- "mode": "light",
- "colors": {
- "primary": "#000000"
}
}, - "layout": "string",
- "css": "string",
- "js": {
- "custom": "string",
- "scripts": [
- "string"
]
}, - "menu": {
- "main": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}, - "spec_renderer": {
- "try_it_ui": true,
- "try_it_insomnia": true,
- "infinite_scroll": true,
- "show_schemas": true
}, - "robots": "string"
}Replace the portal customization options.
| portalId required | string <uuid> Example: f32d905a-ed33-46a3-a093-d8f536af9a8a ID of the portal. |
object | |
| layout | string |
| css | string or null |
object | |
object | |
object | |
| robots | string or null |
{- "theme": {
- "name": "string",
- "mode": "light",
- "colors": {
- "primary": "#000000"
}
}, - "layout": "string",
- "css": "string",
- "js": {
- "custom": "string",
- "scripts": [
- "string"
]
}, - "menu": {
- "main": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}, - "spec_renderer": {
- "try_it_ui": true,
- "try_it_insomnia": true,
- "infinite_scroll": true,
- "show_schemas": true
}, - "robots": "string"
}{- "theme": {
- "name": "string",
- "mode": "light",
- "colors": {
- "primary": "#000000"
}
}, - "layout": "string",
- "css": "string",
- "js": {
- "custom": "string",
- "scripts": [
- "string"
]
}, - "menu": {
- "main": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}, - "spec_renderer": {
- "try_it_ui": true,
- "try_it_insomnia": true,
- "infinite_scroll": true,
- "show_schemas": true
}, - "robots": "string"
}Update the portal customization options, merging properties.
| portalId required | string <uuid> Example: f32d905a-ed33-46a3-a093-d8f536af9a8a ID of the portal. |
object | |
| layout | string |
| css | string or null |
object | |
object | |
object | |
| robots | string or null |
{- "theme": {
- "name": "string",
- "mode": "light",
- "colors": {
- "primary": "#000000"
}
}, - "layout": "string",
- "css": "string",
- "js": {
- "custom": "string",
- "scripts": [
- "string"
]
}, - "menu": {
- "main": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}, - "spec_renderer": {
- "try_it_ui": true,
- "try_it_insomnia": true,
- "infinite_scroll": true,
- "show_schemas": true
}, - "robots": "string"
}{- "theme": {
- "name": "string",
- "mode": "light",
- "colors": {
- "primary": "#000000"
}
}, - "layout": "string",
- "css": "string",
- "js": {
- "custom": "string",
- "scripts": [
- "string"
]
}, - "menu": {
- "main": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
], - "footer_sections": [
- {
- "title": "string",
- "items": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}
], - "footer_bottom": [
- {
- "path": "/about/company",
- "title": "My Page",
- "visibility": "public",
- "external": true
}
]
}, - "spec_renderer": {
- "try_it_ui": true,
- "try_it_insomnia": true,
- "infinite_scroll": true,
- "show_schemas": true
}, - "robots": "string"
}list realms
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
{- "data": [
- {
- "id": "string",
- "name": "string",
- "ttl": 0,
- "negative_ttl": 0,
- "consumer_groups": [
- "string"
], - "allowed_control_planes": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}
], - "meta": {
- "first": "string",
- "last": "string",
- "next": "string",
- "previous": "string",
- "size": 10
}
}create realm
| name required | string |
| allowed_control_planes | Array of strings (AllowedControlPlanes) [ items unique ] List of control plane ids that are allowed to use the realm. An entry with '*' makes all control planes able to use the given realm. |
| ttl | integer >= 5 Default: 10 Time to Live in minutes of the consumer for this realm in the gateway cache. |
| negative_ttl | integer >= 5 Default: 10 Time to Live in minutes of the negative consumer for this realm in the gateway cache. |
| consumer_groups | Array of strings (ConsumerGroups) [ items unique ] |
{- "name": "string",
- "allowed_control_planes": [
- "string"
], - "ttl": 10,
- "negative_ttl": 10,
- "consumer_groups": [
- "string"
]
}{- "id": "string",
- "name": "string",
- "ttl": 0,
- "negative_ttl": 0,
- "consumer_groups": [
- "string"
], - "allowed_control_planes": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}get realm
| realmId required | string <uuid> Id of the realm |
{- "id": "string",
- "name": "string",
- "ttl": 0,
- "negative_ttl": 0,
- "consumer_groups": [
- "string"
], - "allowed_control_planes": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}update realm
| realmId required | string <uuid> Id of the realm |
| name | string |
| allowed_control_planes | Array of strings (AllowedControlPlanes) [ items unique ] List of control plane ids that are allowed to use the realm. An entry with '*' makes all control planes able to use the given realm. |
| consumer_groups | Array of strings (ConsumerGroups) [ items unique ] |
| ttl | integer >= 5 Time to Live in minutes of the consumer for this realm in the gateway cache. |
| negative_ttl | integer >= 5 Time to Live in minutes of the negative consumer for this realm in the gateway cache |
{- "name": "string",
- "allowed_control_planes": [
- "string"
], - "consumer_groups": [
- "string"
], - "ttl": 5,
- "negative_ttl": 5
}{- "id": "string",
- "name": "string",
- "ttl": 0,
- "negative_ttl": 0,
- "consumer_groups": [
- "string"
], - "allowed_control_planes": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}delete realm
| realmId required | string <uuid> Id of the realm |
| force | string Default: "false" Enum: "true" "false" If true, delete specified realm and all underlying entities (consumers/apiKeys). If false, do not allow deletion if there are underlying entities. |
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}list realm consumers
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
object (RealmConsumerFilterParameters) Filters Consumers in the response. |
{- "data": [
- {
- "custom_id": "4200",
- "id": "8a388226-80e8-4027-a486-25e4f7db5d21",
- "tags": [
- "silver-tier"
], - "username": "bob-the-builder",
- "realm_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
}
], - "meta": {
- "first": "string",
- "last": "string",
- "next": "string",
- "previous": "string",
- "size": 10
}
}list consumers
| realmId required | string <uuid> Id of the realm |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
object (ConsumerFilterParameters) Filters Consumers in the response. |
{- "data": [
- {
- "custom_id": "4200",
- "id": "8a388226-80e8-4027-a486-25e4f7db5d21",
- "tags": [
- "silver-tier"
], - "username": "bob-the-builder"
}
], - "meta": {
- "first": "string",
- "last": "string",
- "next": "string",
- "previous": "string",
- "size": 10
}
}create consumer
| realmId required | string <uuid> Id of the realm |
| username required | string |
| consumer_groups | Array of strings (ConsumerGroups) [ items unique ] |
| custom_id | string |
| type | string |
| tags | Array of strings (Tags) unique |
{- "username": "string",
- "consumer_groups": [
- "string"
], - "custom_id": "string",
- "type": "string",
- "tags": [
- "string"
]
}{- "custom_id": "4200",
- "id": "8a388226-80e8-4027-a486-25e4f7db5d21",
- "tags": [
- "silver-tier"
], - "username": "bob-the-builder"
}get consumer
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
{- "custom_id": "4200",
- "id": "8a388226-80e8-4027-a486-25e4f7db5d21",
- "tags": [
- "silver-tier"
], - "username": "bob-the-builder"
}update consumer
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| custom_id | string |
| username | string |
| type | string |
| tags | Array of strings (Tags) unique |
| consumer_groups | Array of strings (ConsumerGroups) [ items unique ] |
{- "custom_id": "string",
- "username": "string",
- "type": "string",
- "tags": [
- "string"
], - "consumer_groups": [
- "string"
]
}{- "custom_id": "4200",
- "id": "8a388226-80e8-4027-a486-25e4f7db5d21",
- "tags": [
- "silver-tier"
], - "username": "bob-the-builder"
}move consumer
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| target_realm_id required | string |
{- "target_realm_id": "string"
}{- "realm_id": "string"
}list keys
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
{- "data": [
- {
- "id": "string",
- "created_at": "2022-11-04T20:10:06.927Z",
- "tags": [
- "string"
], - "type": "legacy"
}
], - "meta": {
- "first": "string",
- "last": "string",
- "next": "string",
- "previous": "string",
- "size": 10
}
}create key
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| type | string Default: "new" Value: "new" |
| tags | Array of strings (Tags) unique |
{- "type": "new",
- "tags": [
- "string"
]
}{- "id": "string",
- "type": "legacy",
- "secret": "string",
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z",
- "tags": [
- "string"
]
}get key
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| keyId required | string Id of the key |
{- "id": "string",
- "created_at": "2022-11-04T20:10:06.927Z",
- "tags": [
- "string"
], - "type": "legacy"
}Update an individual serverless cloud gateway.
| controlPlaneId required | string <uuid> Example: bf138ba2-c9b1-4229-b268-04d9d8a6410b Id of the Serverless Cloud Gateway control plane |
| cp_prefix | string The prefix of the serverless cloud gateway CP. |
| cp_region | string (Control plane region) Enum: "us" "eu" "au" The control plane region. |
object (Labels) Labels to facilitate tagged search on serverless cloud gateways. Keys must be of length 1-63 characters, and cannot start with 'kong', 'konnect', 'mesh', 'kic', or '_'. |
{- "labels": {
- "test": "true"
}
}{- "control_plane": {
- "id": "d32d905a-ed33-46a3-a093-d8f536af9a8a",
- "prefix": "518da50bf7",
- "region": "eu"
}, - "gateway_endpoint": "kong-518da50bf7euab123.kongcloud.dev",
- "created_at": "2023-01-11T02:30:42.227Z",
- "updated_at": "2023-01-11T02:30:42.227Z",
- "labels": {
- "test": "true"
}
}Returns a paginated collection of add-ons.
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
object (AddonFilterParameters) Filters a collection of add-ons. | |
| sort | string (SortQuery) Example: sort=name,created_at desc Sorts a collection of add-ons. Supported sort attributes are:
|
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "built_in": false,
- "name": "gateway-manager",
- "display_name": "Gateway Manager",
- "description": "string",
- "version": "v1",
- "authorization": { },
- "config_schema": {
- "base_url": {
- "type": "string",
- "display_name": "Base URL",
- "description": "The customer's base URL (ex: https://foo.some-service.com)",
- "required": true
}
}, - "bindings": {
- "default": {
- "scope": "service",
- "schema_type": "simple",
- "schema": {
- "control_plane_id": "string",
- "count": "number",
- "enabled": "boolean"
}
}, - "service_binding": {
- "scope": "service",
- "schema_type": "simple",
- "schema": {
- "service_id": "string"
}
}
}, - "discovery": {
- "enabled": true,
- "integration_record_examples": {
- "gateway_service": {
- "control_plane": {
- "id": "00000000-0000-0000-0000-000000000000",
- "name": "control-plane-name",
- "labels": {
- "env": "development"
}
}, - "gateway_service_id": {
- "id": "11111111-1111-1111-1111-111111111111",
- "name": "gateway-service",
- "host": "konghq.com",
- "path": "/example",
- "type": "service",
- "port": 443,
- "protocol": "https",
- "enabled": true,
- "cluster_id": "22222222-2222-2222-2222-222222222222",
- "tags": [
- {
- "env": "development"
}
]
}
}
}
}
}
]
}Returns a paginated collection of installed add-ons.
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
object (InstalledAddonFilterParameters) Filters a collection of installed add-ons. | |
| sort | string (SortQuery) Example: sort=name,created_at desc Sorts a collection of installed add-ons. Supported sort attributes are:
|
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "747368bc-d836-45e6-b855-ab9a3defb3c1",
- "name": "gateway-manager",
- "enabled": true,
- "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
]
}Returns information about a specific installed add-on.
| addon required | string Example: gateway-manager Machine name of the add-on. |
{- "id": "747368bc-d836-45e6-b855-ab9a3defb3c1",
- "name": "gateway-manager",
- "enabled": true,
- "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Installs the given add-on.
| addon required | string Example: gateway-manager Machine name of the add-on. |
Request body schema for installing an add-on.
| enabled required | boolean Whether the add-on is enabled |
object (InstalledAddonConfig) Default: {} JSON object containing the configuration values for the add-on. |
{- "enabled": true,
}{- "id": "747368bc-d836-45e6-b855-ab9a3defb3c1",
- "name": "gateway-manager",
- "enabled": true,
- "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Updates the given installed add-on.
| addon required | string Example: gateway-manager Machine name of the add-on. |
Request body schema for updating an installed add-on.
| enabled | boolean Whether the add-on is enabled |
object (InstalledAddonConfig) Default: {} JSON object containing the configuration values for the add-on. |
{- "enabled": true,
}{- "id": "747368bc-d836-45e6-b855-ab9a3defb3c1",
- "name": "gateway-manager",
- "enabled": true,
- "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Deletes an installed add-on. Returns 404 if the add-on is not installed or not found.
| addon required | string Example: gateway-manager Machine name of the add-on. |
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Returns a paginated collection of services.
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
object (ServiceFilterParameters) Filters a collection of services. | |
| sort | string (SortQuery) Example: sort=name,created_at desc Sorts a collection of services. Supported sort attributes are:
|
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test"
}, - "integrations": [
- {
- "id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "name": "pagerduty",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "labels": {
- "env": "test"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
], - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
]
}Creates a service.
Request body schema for creating a service.
| name required | string [ 1 .. 120 ] characters ^[0-9a-z.-]+$ The name of the Service. |
| description | string or null <= 2048 characters The description of the Service. |
| display_name required | string [ 1 .. 120 ] characters The display name of the Service. |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". | |
object (Metadata) Contains key value pairs information about entity's metadata. |
{- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test"
}, - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}
}{- "id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test"
}, - "integrations": [
- {
- "id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "name": "pagerduty",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "labels": {
- "env": "test"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
], - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Returns information about a service from a given service ID.
| serviceId required | string <uuid> Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 ID of the service. |
{- "id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test"
}, - "integrations": [
- {
- "id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "name": "pagerduty",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "labels": {
- "env": "test"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
], - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Updates an individual service.
| serviceId required | string <uuid> Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 ID of the service. |
Request body schema for updating a service.
| name | string [ 1 .. 120 ] characters ^[0-9a-z.-]+$ The name of the Service. |
| description | string or null <= 2048 characters The description of the Service. |
| display_name | string [ 1 .. 120 ] characters The display name of the Service. |
object (LabelsPatch) JSON Merge Patch object for updating labels fields. To delete an existing label, provide the label key with a null value. | |
object (Metadata) Contains key value pairs information about entity's metadata. |
{- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test",
- "owner": null
}, - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}
}{- "id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test"
}, - "integrations": [
- {
- "id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "name": "pagerduty",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "labels": {
- "env": "test"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
], - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Deletes an individual service. Returns 404 if the service is not found.
| serviceId required | string <uuid> Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 ID of the service. |
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Proxies a request to an external API made by a Service Hub integration.
| integration required | string Example: pagerduty Machine name of the integration. |
Request body schema for an integration proxy request.
| method required | string Enum: "DELETE" "GET" "PATCH" "POST" "PUT" The HTTP request method. |
| base_url required | string <uri> The base URL of the proxied API as defined in the integration manifest. |
| path required | string The URL path of the proxied API request as defined in the integration manifest. |
object JSON object representing the request body that will be sent to the proxied API. | |
object JSON object representing the query parameters that will be sent to the proxied API. | |
object JSON object representing the request headers that will be sent to the proxied API. |
{- "method": "GET",
- "path": "/incidents",
- "body": {
- "name": "Foo"
}, - "query": {
- "limit": 5,
- "offset": 10
}, - "headers": {
- "content-type": "application/json"
}
}{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Returns a paginated collection of Service Hub integrations associated to the given service.
| serviceId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a ID of the service. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
object (ServiceIntegrationFilterParameters) Filters a collection of Service Hub integrations associated to a service. | |
| sort | string (SortQuery) Example: sort=name,created_at desc Sorts a collection of Service Hub integrations associated to a service. Supported sort attributes are:
|
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "name": "pagerduty",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "labels": {
- "env": "test"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
]
}Creates an association between the given integration and service using the data binding provided in the request.
| serviceId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a ID of the service. |
| integration required | string Example: gateway-manager Machine name of the integration. |
Request body schema for creating a service integration.
| binding required | string The integration binding object name. |
required | object JSON object containing the data which binds the integration to the service. |
required | object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "labels": {
- "env": "test"
}
}{- "id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "name": "pagerduty",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "labels": {
- "env": "test"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Updates the association between the given integration and service.
| serviceId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a ID of the service. |
| integration required | string Example: gateway-manager Machine name of the integration. |
| serviceIntegrationId required | string Example: 123e4567-e89b-12d3-a456-426614174000 ID of the service integration. |
Request body schema for updating a service integration.
| binding required | string The integration binding object name. |
required | object JSON object containing the data which binds the integration to the service. |
required | object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "labels": {
- "env": "test"
}
}{- "id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "name": "pagerduty",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "labels": {
- "env": "test"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Deletes a Service integration. Returns 404 if the given service or integration is not found.
| serviceId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a ID of the service. |
| integration required | string Example: gateway-manager Machine name of the integration. |
| serviceIntegrationId required | string Example: 123e4567-e89b-12d3-a456-426614174000 ID of the service integration. |
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Returns a paginated collection of installed integration auth credentials.
| integration required | string Example: pagerduty Machine name of the integration. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "95e4f10a-bf10-4724-9378-c3591ad8c6ed",
- "type": "oauth",
- "expires_at": "2024-03-30T07:20:50Z",
- "created_at": "2022-03-30T07:20:50Z"
}
]
}Creates an auth credential for the integration.
| integration required | string Example: pagerduty Machine name of the integration. |
Request body schema for creating an auth credential for an installed integration.
| type required | string Value: "oauth" The authorization type corresponding to the credential |
required | object |
{- "type": "oauth",
- "parameters": {
- "grant_type": "authorization_code",
- "code": "Yzk5ZDczMzRlNDEwY",
}
}{- "id": "95e4f10a-bf10-4724-9378-c3591ad8c6ed",
- "type": "oauth",
- "expires_at": "2024-03-30T07:20:50Z",
- "created_at": "2022-03-30T07:20:50Z"
}Returns context associated to an auth credential for the given installed integration.
| integration required | string Example: pagerduty Machine name of the integration. |
| authCredentialId required | string <uuid> Example: 95e4f10a-bf10-4724-9378-c3591ad8c6ed ID of the auth credential. |
{- "id": "95e4f10a-bf10-4724-9378-c3591ad8c6ed",
- "type": "oauth",
- "expires_at": "2024-03-30T07:20:50Z",
- "created_at": "2022-03-30T07:20:50Z"
}Deletes an auth credential for an integration. Returns 404 if the given credential is not found.
| integration required | string Example: pagerduty Machine name of the integration. |
| authCredentialId required | string <uuid> Example: 95e4f10a-bf10-4724-9378-c3591ad8c6ed ID of the auth credential. |
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Returns information about the service discovery settings for the given integration.
| integration required | string Example: gateway-manager Machine name of the integration. |
{- "integration": "pagerduty",
- "enabled": true,
- "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Updates service discovery settings for the given integration.
| integration required | string Example: gateway-manager Machine name of the integration. |
Request body schema for updating service discovery settings for an integration.
| enabled required | boolean Whether discovery is enabled for the integration. |
{- "enabled": true
}{- "integration": "pagerduty",
- "enabled": true,
- "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Returns a paginated collection of documents belonging to the given service.
| serviceId required | string <uuid> Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 ID of the service. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
| Accept | string (DocumentContentTypeEnum) Default: application/json Enum: "application/json" "application/vnd.konnect.document-tree+json" |
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "d32d905a-ed33-46a3-a093-d8f536af9a8a",
- "parent_document_id": "dd4e1b98-3629-4dd3-acc0-759a726ffee2",
- "slug": "getting-started",
- "title": "Getting Started",
- "filename": "my_doc.md",
- "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
]
}Creates a document associated to the given service.
| serviceId required | string <uuid> Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 ID of the service. |
Request body schema for creating a document.
| title required | string document title |
| parent_document_id | string <uuid> parent document id |
| slug required | string (Slug) <= 80 characters ^[\w-]+$ document slug |
| status | string (PublishStatus) Enum: "published" "unpublished" document publish status |
| raw_content required | string <byte> base64 encoded string of the document content |
| metadata | object or null metadata of the document |
| filename required | string name of the uploaded file |
{- "title": "How to create a document in Service Hub.",
- "parent_document_id": "dd4e1b98-3629-4dd3-acc0-759a726ffee2",
- "slug": "string",
- "status": "published",
- "raw_content": "YmFzZTY0LWVuY29kZWQgdGV4dCBzdHJpbmc=",
- "metadata": {
- "author": "John Doe"
}, - "filename": "my_doc.md"
}{- "document_id": "d32d905a-ed33-46a3-a093-d8f536af9a8a",
- "revision_id": "ecfb698d-77a8-4ab5-91fa-45ee383b48ba"
}Returns information about a document belonging to a given service.
| serviceId required | string <uuid> Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 ID of the service. |
| documentId required | string <uuid> Example: 6c1118d3-0fe3-4695-ae55-84d6ea020916 ID of the document belonging to the given service. |
| Accept | string (DocumentFormatContentTypeEnum) Default: application/json Enum: "application/json" "application/vnd.konnect.document-nodes+json" |
{- "id": "d32d905a-ed33-46a3-a093-d8f536af9a8a",
- "parent_document_id": "dd4e1b98-3629-4dd3-acc0-759a726ffee2",
- "slug": "getting-started",
- "revision": {
- "id": "d32d905a-ed33-46a3-a093-d8f536af9a8a",
- "document_id": "d32d905a-ed33-46a3-a093-d8f536af9a8a",
- "content": "string",
- "metadata": {
- "title": "Hello World",
- "description": "This is a description",
- "keywords": "hello, world"
}, - "title": "Hello World"
}
}Updates a document belonging to a given service.
| serviceId required | string <uuid> Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 ID of the service. |
| documentId required | string <uuid> Example: 6c1118d3-0fe3-4695-ae55-84d6ea020916 ID of the document belonging to the given service. |
Request body schema for updating a document.
| parent_document_id | string or null <uuid> Parent document Id. If this value is explicitly set to null, the document will be put as a top level document at the bottom of the tree. |
| slug | string (Slug) <= 80 characters ^[\w-]+$ document slug |
| status | string (PublishStatus) Enum: "published" "unpublished" document publish status |
| title | string document title |
| raw_content | string <byte> base64 encoded string of the document content |
| filename | string name of the uploaded file |
| metadata | object or null metadata of the document |
{- "parent_document_id": "dd4e1b98-3629-4dd3-acc0-759a726ffee2",
- "slug": "string",
- "status": "published",
- "title": "How to update a document in Konnect DocumentHub",
- "raw_content": "YmFzZTY0LWVuY29kZWQgdGV4dCBzdHJpbmc=",
- "filename": "my_doc.md",
- "metadata": {
- "author": "John Doe"
}
}{- "id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "parent_document_id": "dd4e1b98-3629-4dd3-acc0-759a726ffee2",
- "slug": "string",
- "status": "published",
- "revision": {
- "id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "document_id": "6c1118d3-0fe3-4695-ae55-84d6ea020916",
- "content": {
- "type": "doc",
- "content": [
- {
- "type": "paragraph",
- "content": [
- {
- "text": "Hello World",
- "type": "text"
}
]
}
]
}, - "metadata": {
- "author": "John Doe"
}, - "title": "How to create a document in Service Hub.",
- "raw_md_content": "I0ludHJvZHVjdGlvbg==",
- "file": {
- "filename": "my_doc.md",
- "modified_at": "2023-01-11T02:30:42.227Z"
}
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Deletes an individual document belonging to the given service. Returns 404 if either the service or document is not found.
| serviceId required | string <uuid> Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 ID of the service. |
| documentId required | string <uuid> Example: 6c1118d3-0fe3-4695-ae55-84d6ea020916 ID of the document belonging to the given service. |
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Moves a document within the document tree under the given service, using parameters parent_document_id and index.
| serviceId required | string <uuid> Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 ID of the service. |
| documentId required | string <uuid> Example: 6c1118d3-0fe3-4695-ae55-84d6ea020916 ID of the document belonging to the given service. |
Request body schema for moving a document.
| parent_document_id | string <uuid> Represents the document's parent document Id. If this field is not provided, the document will be placed at the top level of the document tree. |
| index | integer Represents a zero-indexed document order relative to its siblings under the same parent. For example, if we want to put the document at top level in first position we would send empty parent_document_id and index: 0. This api also supports using a negative index to count backwards from the end of the document list, which means you can put the document in last position by using index: -1. |
{- "parent_document_id": "dd4e1b98-3629-4dd3-acc0-759a726ffee2",
- "index": 1
}{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Returns a paginated collection of discovered entities.
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
object (DiscoveredEntityFilterParameters) Filters a collection of discovered entities. | |
| sort | string (SortQuery) Example: sort=name,created_at desc Sorts a collection of discovered entities. Supported sort attributes are:
|
{- "meta": {
- "page": {
- "first": "string",
- "last": "string",
- "next": "string",
- "previous": "string",
- "size": 10
}
}, - "data": [
- {
- "id": "fa3db80f-b661-434e-bd7a-e6c561c3a15c",
- "integration": "gateway-manager",
- "deduplication_id": "2f3adee0-3740-4962-a26b-2a75e550535c",
- "entity_name": "My Service",
- "scope": "service",
- "binding": "pagerduty_service",
- "integration_record": {
- "control_plane": {
- "id": "0a7647d1-483a-4817-a5ac-28937b511563",
- "name": "control_plane_name"
}, - "gateway_service": {
- "id": "3fd1bff6-b60d-4c22-bb74-e4cac63196fb",
- "name": "gateway_service_name"
}
}, - "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "suggestion_rule_evaluation_error": {
- "suggestion_rule_id": "3d8d1c3e-3884-4571-af2e-ad4ad89bc628",
- "details": [
- {
- "type": "error",
- "field": "discovery_selector",
- "expression": "string",
- "message": "string"
}
]
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
]
}Returns information about a discovered entity.
| discoveredEntityId required | string <uuid> Example: cbf06770-fa76-4e94-9226-ec9086938e62 ID of the discovered entity. |
{- "id": "fa3db80f-b661-434e-bd7a-e6c561c3a15c",
- "integration": "gateway-manager",
- "deduplication_id": "2f3adee0-3740-4962-a26b-2a75e550535c",
- "entity_name": "My Service",
- "scope": "service",
- "binding": "pagerduty_service",
- "integration_record": {
- "control_plane": {
- "id": "0a7647d1-483a-4817-a5ac-28937b511563",
- "name": "control_plane_name"
}, - "gateway_service": {
- "id": "3fd1bff6-b60d-4c22-bb74-e4cac63196fb",
- "name": "gateway_service_name"
}
}, - "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "suggestion_rule_evaluation_error": {
- "suggestion_rule_id": "3d8d1c3e-3884-4571-af2e-ad4ad89bc628",
- "details": [
- {
- "type": "error",
- "field": "discovery_selector",
- "expression": "string",
- "message": "string"
}
]
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Upserts Discovered Entities. The request is transactional, that is, a single failed operation will result in a failed state for all operations.
The maximum amount of entities that can be ingested in a single request is 100.
| integration required | string Example: gateway-manager Machine name of the integration. |
Request body schema for upserting discovered entities for an integration.
required | Array of objects (UpsertDiscoveredEntity) |
{- "data": [
- {
- "deduplication_id": "PIJ90N7",
- "entity_name": "My Service",
- "binding": "pagerduty_service",
- "data": {
- "id": "c27a371e-6d49-4395-b822-78a37053e7b"
}, - "integration_record": {
- "control_plane": {
- "id": "0a7647d1-483a-4817-a5ac-28937b511563",
- "name": "control_plane_name"
}, - "gateway_service": {
- "id": "3fd1bff6-b60d-4c22-bb74-e4cac63196fb",
- "name": "gateway_service_name"
}
}
}
]
}{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Creates a suggestion rule for the given integration.
| integration required | string Example: gateway-manager Machine name of the integration. |
Request body schema for creating a suggestion rule for an integration.
| name required | string [ 1 .. 120 ] characters The display name of the suggestion rule |
| description | string or null [ 1 .. 2048 ] characters Default: null The description of the suggestion rule |
| binding required | string The integration binding object name |
| active required | boolean Determines if this suggestion rule should be evaluated when generating suggested actions. |
| auto_accept required | boolean Determines if the suggested action should be applied automatically.
|
| discovery_selector required | string <= 2048 characters A boolean string or JQ expression that must evaluate to a boolean value.
Supports JQ expressions syntax on discovered entity's |
required | IgnoreAction (object) or MapAction (object) (SuggestedRuleAction) |
RankAfterPayload (object) or RankBeforePayload (object) |
{- "name": "string",
- "description": "Suggestion rule description",
- "binding": "pagerduty_service",
- "active": true,
- "auto_accept": true,
- "discovery_selector": ".gateway_service.tags | contains([\"_KonnectDeployment:\"])",
- "action": {
- "type": "ignore"
}, - "rank": {
- "after_suggestion_rule_id": "668a64b4-4c0d-420a-b67c-fde4b554c9a8"
}
}{- "id": "22f72bd1-2897-473e-9471-302de3ccf38b",
- "name": "string",
- "description": "Suggestion rule description",
- "binding": "pagerduty_service",
- "active": true,
- "auto_accept": true,
- "discovery_selector": ".gateway_service.tags | contains([\"_KonnectDeployment:\"])",
- "action": {
- "type": "ignore"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Returns a paginated collection of a suggestion rules.
| integration required | string Example: gateway-manager Machine name of the integration. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
object (DiscoverySuggestionRuleFilterParameters) Filters a collection of discovery suggestion rules. |
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "22f72bd1-2897-473e-9471-302de3ccf38b",
- "name": "string",
- "description": "Suggestion rule description",
- "binding": "pagerduty_service",
- "active": true,
- "auto_accept": true,
- "discovery_selector": ".gateway_service.tags | contains([\"_KonnectDeployment:\"])",
- "action": {
- "type": "ignore"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
]
}Returns information about a suggestion rule from a given suggestion rule ID.
| integration required | string Example: gateway-manager Machine name of the integration. |
| suggestionRuleId required | string <uuid> Example: 22f72bd1-2897-473e-9471-302de3ccf38b ID of the suggestion rule. |
{- "id": "22f72bd1-2897-473e-9471-302de3ccf38b",
- "name": "string",
- "description": "Suggestion rule description",
- "binding": "pagerduty_service",
- "active": true,
- "auto_accept": true,
- "discovery_selector": ".gateway_service.tags | contains([\"_KonnectDeployment:\"])",
- "action": {
- "type": "ignore"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Updates the given suggestion rule.
| integration required | string Example: gateway-manager Machine name of the integration. |
| suggestionRuleId required | string <uuid> Example: 22f72bd1-2897-473e-9471-302de3ccf38b ID of the suggestion rule. |
Request body schema for creating a suggestion rule for an integration.
| name required | string [ 1 .. 120 ] characters The display name of the suggestion rule |
| description | string or null [ 1 .. 2048 ] characters Default: null The description of the suggestion rule |
| binding required | string The integration binding object name |
| active required | boolean Determines if this suggestion rule should be evaluated when generating suggested actions. |
| auto_accept required | boolean Determines if the suggested action should be applied automatically.
|
| discovery_selector required | string <= 2048 characters A boolean string or JQ expression that must evaluate to a boolean value.
Supports JQ expressions syntax on discovered entity's |
required | IgnoreAction (object) or MapAction (object) (SuggestedRuleAction) |
RankAfterPayload (object) or RankBeforePayload (object) |
{- "name": "string",
- "description": "Suggestion rule description",
- "binding": "pagerduty_service",
- "active": true,
- "auto_accept": true,
- "discovery_selector": ".gateway_service.tags | contains([\"_KonnectDeployment:\"])",
- "action": {
- "type": "ignore"
}, - "rank": {
- "after_suggestion_rule_id": "668a64b4-4c0d-420a-b67c-fde4b554c9a8"
}
}{- "id": "22f72bd1-2897-473e-9471-302de3ccf38b",
- "name": "string",
- "description": "Suggestion rule description",
- "binding": "pagerduty_service",
- "active": true,
- "auto_accept": true,
- "discovery_selector": ".gateway_service.tags | contains([\"_KonnectDeployment:\"])",
- "action": {
- "type": "ignore"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Deletes the given suggestion rule.
| integration required | string Example: gateway-manager Machine name of the integration. |
| suggestionRuleId required | string <uuid> Example: 22f72bd1-2897-473e-9471-302de3ccf38b ID of the suggestion rule. |
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}Test suggestion rule configuration against an integration record.
| integration required | string Example: gateway-manager Machine name of the integration. |
Request body schema for testing a suggestion rule configuration against an integration record.
| binding required | string The integration binding object name |
| discovery_selector required | string <= 2048 characters A boolean string or JQ expression that must evaluate to a boolean value.
Supports JQ expressions syntax on discovered entity's |
required | IgnoreAction (object) or MapAction (object) (SuggestedRuleAction) |
required | object JSON object that may contain additional context about the entity. |
{- "binding": "pagerduty_service",
- "discovery_selector": ".gateway_service.tags | contains([\"_KonnectDeployment:\"])",
- "action": {
- "type": "ignore"
}, - "integration_record": {
- "control_plane": {
- "id": "0a7647d1-483a-4817-a5ac-28937b511563",
- "name": "control_plane_name"
}, - "gateway_service": {
- "id": "3fd1bff6-b60d-4c22-bb74-e4cac63196fb",
- "name": "gateway_service_name"
}
}
}{- "evaluation": {
- "matched": true,
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "action": {
- "type": "ignore"
}
}, - "errors": [
- {
- "type": "error",
- "field": "discovery_selector",
- "expression": "string",
- "message": "string"
}
]
}Returns a paginated collection of a system defined suggestion rules.
| integration required | string Example: gateway-manager Machine name of the integration. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "22f72bd1-2897-473e-9471-302de3ccf38b",
- "name": "string",
- "description": "Suggestion rule description",
- "binding": "pagerduty_service",
- "active": true,
- "auto_accept": true,
- "discovery_selector": ".gateway_service.tags | contains([\"_KonnectDeployment:\"])",
- "action": {
- "type": "ignore"
}
}
]
}Returns a paginated collection of a suggested discovery actions.
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
object (SuggestedDiscoveryActionFilterParameters) Filters a collection of suggested discovery actions. | |
| sort | string (SortQuery) Example: sort=name,created_at desc Sorts a collection of suggested discovery actions. Supported sort attributes are:
|
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "76ca0689-f08e-4c04-b2a6-4c992d89d554",
- "integration": "gateway-manager",
- "suggestion_rule_id": "22f72bd1-2897-473e-9471-302de3ccf38b",
- "discovered_entity_id": "287ead32-a7da-4f2e-89cb-802ae6208f18",
- "entity_name": "My Service",
- "scope": "service",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "ignored": false,
- "action": {
- "type": "ignore"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
]
}Returns information about a suggested discovery action.
| suggestedDiscoveryActionId required | string <uuid> Example: 76ca0689-f08e-4c04-b2a6-4c992d89d554 ID of the suggested discovery action. |
{- "id": "76ca0689-f08e-4c04-b2a6-4c992d89d554",
- "integration": "gateway-manager",
- "suggestion_rule_id": "22f72bd1-2897-473e-9471-302de3ccf38b",
- "discovered_entity_id": "287ead32-a7da-4f2e-89cb-802ae6208f18",
- "entity_name": "My Service",
- "scope": "service",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "ignored": false,
- "action": {
- "type": "ignore"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Updates the given suggested discovery.
| suggestedDiscoveryActionId required | string <uuid> Example: 76ca0689-f08e-4c04-b2a6-4c992d89d554 ID of the suggested discovery action. |
Request body schema for updating a suggested discovery action.
| ignored required | boolean Determines if this suggested action has been ignored or not.
|
{- "ignored": false
}{- "id": "76ca0689-f08e-4c04-b2a6-4c992d89d554",
- "integration": "gateway-manager",
- "suggestion_rule_id": "22f72bd1-2897-473e-9471-302de3ccf38b",
- "discovered_entity_id": "287ead32-a7da-4f2e-89cb-802ae6208f18",
- "entity_name": "My Service",
- "scope": "service",
- "service_id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "ignored": false,
- "action": {
- "type": "ignore"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}Creates a discovery action.
Request body schema for creating a service discovery action.
| discovered_entity_id required | string <uuid> The identifier of the discovered entity associated to this discovery action. |
required | CreateAndMapServiceActionPayload (object) or IgnoreAction (object) or RestoreAction (object) or MapServiceAction (object) |
{- "discovered_entity_id": "287ead32-a7da-4f2e-89cb-802ae6208f18",
- "action": {
- "type": "create",
- "data": {
- "service": {
- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test"
}, - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}
}, - "resource": {
- "labels": {
- "env": "test"
}
}
}
}
}{- "id": "76ca0689-f08e-4c04-b2a6-4c992d89d554",
- "discovered_entity_id": "287ead32-a7da-4f2e-89cb-802ae6208f18",
- "entity_name": "My Service",
- "action": {
- "type": "create",
- "data": {
- "service": {
- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test"
}, - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}
}, - "resource": {
- "labels": {
- "env": "test"
}
}
}
}, - "user_id": "699f1021-4ed8-4f97-8ed3-779fba89d9c7",
- "cause": "user-action",
- "integration": "gateway-manager",
- "outputs": { },
- "created_at": "2022-03-30T07:20:50Z"
}Returns a paginated collection of discovery actions.
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
object (DiscoveryActionFilterParameters) Filters a collection of discovery actions. | |
| sort | string (SortQuery) Example: sort=name,created_at desc Sorts a collection of discovery actions. Supported sort attributes are:
|
{- "meta": {
- "page": {
- "first": "string",
- "last": "string",
- "next": "string",
- "previous": "string",
- "size": 10
}
}, - "data": [
- {
- "id": "76ca0689-f08e-4c04-b2a6-4c992d89d554",
- "discovered_entity_id": "287ead32-a7da-4f2e-89cb-802ae6208f18",
- "entity_name": "My Service",
- "action": {
- "type": "create",
- "data": {
- "service": {
- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test"
}, - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}
}, - "resource": {
- "labels": {
- "env": "test"
}
}
}
}, - "user_id": "699f1021-4ed8-4f97-8ed3-779fba89d9c7",
- "cause": "user-action",
- "integration": "gateway-manager",
- "outputs": { },
- "created_at": "2022-03-30T07:20:50Z"
}
]
}Returns information about a discovery action.
| discoveryActionId required | string <uuid> Example: ffa82ca6-3753-42d9-a69e-65e02dd9d9a1 ID of the discovery action. |
{- "id": "76ca0689-f08e-4c04-b2a6-4c992d89d554",
- "discovered_entity_id": "287ead32-a7da-4f2e-89cb-802ae6208f18",
- "entity_name": "My Service",
- "action": {
- "type": "create",
- "data": {
- "service": {
- "name": "user-svc",
- "description": "string",
- "display_name": "User Service",
- "labels": {
- "env": "test"
}, - "metadata": {
- "owner": "John Appleseed",
- "slack_channel": {
- "name": "#public-channel",
}
}
}, - "resource": {
- "labels": {
- "env": "test"
}
}
}
}, - "user_id": "699f1021-4ed8-4f97-8ed3-779fba89d9c7",
- "cause": "user-action",
- "integration": "gateway-manager",
- "outputs": { },
- "created_at": "2022-03-30T07:20:50Z"
}Schedules a discovery ingestion job for the given integration.
| integration required | string Example: gateway-manager Machine name of the integration. |
Request body schema for scheduling a discovery ingestion job.
| ingest_from | string <date-time> A timestamp indicating when to start ingestion from. RFC-3339 format is used with a "T" character separating date from time within the field value. Omitting this property indicates ingestion will be triggered from the beginning of time until the present. |
{- "ingest_from": "2023-02-15T07:20:50Z"
}{- "last_scheduled": "2023-02-15T07:20:50Z"
}Fetches the status of discovery ingestion for the given integration.
| integration required | string Example: gateway-manager Machine name of the integration. |
{- "last_scheduled": "2023-02-15T07:20:50Z"
}Returns a paginated collection of metadata schemas.
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
object (MetadataSchemaFilterParameters) Filters a collection of metadata schemas. | |
| sort | string (SortQuery) Example: sort=name,created_at desc Sorts a collection of metadata schemas. Supported sort attributes are:
|
{- "meta": {
- "page": {
- "number": 2,
- "size": 10,
- "total": 100
}
}, - "data": [
- {
- "id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "name": "slack-url",
- "schema": {
- "display_name": "slack url",
- "description": "Slack URL metadata.",
- "required": false,
- "type": "string"
}, - "created_at": "2022-03-30T07:20:50Z",
- "updated_at": "2022-06-21T17:20:12Z"
}
]
}List all auth servers
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "data": [
- {
- "id": "f44567da-a0b1-4eef-86c9-b27ab2e22048",
- "name": "Auth Server 1",
- "description": "Auth Server 1 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}, - {
- "id": "5e051473-3b98-45c9-aa99-75b18c158bbf",
- "name": "Auth Server 2",
- "description": "Auth Server 2 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Create a new auth server
Auth server to be created
| name required | string (AuthServerName) The name of the auth server. |
| description | string (AuthServerDescription) The description of the auth server. |
| audience required | string (Audience) The recipients that the tokens are intended for. This becomes the 'aud' claim in an access token. |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Auth Server",
- "description": "Auth Server Description",
- "audience": "api://default"
}{- "id": "f44567da-a0b1-4eef-86c9-b27ab2e22048",
- "name": "Auth Server 1",
- "description": "Auth Server 1 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Get an auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
{- "id": "f44567da-a0b1-4eef-86c9-b27ab2e22048",
- "name": "Auth Server 1",
- "description": "Auth Server 1 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Update an auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
Auth server to be updated
| name | string (AuthServerName) The name of the auth server. |
| description | string (AuthServerDescription) The description of the auth server. |
| audience | string (Audience) The recipients that the tokens are intended for. This becomes the 'aud' claim in an access token. |
object or null (LabelsUpdate) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Labels are intended to store INTERNAL metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Updated Auth Server",
- "description": "Updated Auth Server Description",
- "audience": "api://default"
}{- "id": "f44567da-a0b1-4eef-86c9-b27ab2e22048",
- "name": "Auth Server 1",
- "description": "Auth Server 1 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Delete an auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}List all the claims for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
{- "data": [
- {
- "id": "07d05309-45cc-4b37-92fb-1524846deec3",
- "name": "Claim 1",
- "value": "Claim 1 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}, - {
- "id": "5e051473-3b98-45c9-aa99-75b18c158bbf",
- "name": "Claim 2",
- "value": "Claim 2 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Create a new claim for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
Claim to be created
| name required | string (ClaimName) The name of the claim. |
| value required | string (ClaimValue) Specifies the value of the claim. |
| include_in_token | boolean (ClaimIncludeInToken) Default: false Specifies whether to include claim in the token. If the value is set to 'false' for a claim, the client instead uses the access token to get claims from the '/userinfo' endpoint. |
| include_in_all_scopes | boolean (ClaimIncludeInAllScopes) Default: false Specifies whether to include the claim in all scopes. If the value is set to 'false' for a claim, the claim is only included in the scopes that explicitly list it. |
| include_in_scopes | Array of strings (ClaimIncludeInScopes) Specifies the scopes in which the claim is included. |
| enabled | boolean (ClaimEnabled) Default: true Specifies whether the claim is enabled. |
{- "name": "Claim",
- "value": "Claim Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true
}{- "id": "07d05309-45cc-4b37-92fb-1524846deec3",
- "name": "Claim 1",
- "value": "Claim 1 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Get a claim for given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| claimId required | string <uuid> Example: 07d05309-45cc-4b37-92fb-1524846deec3 The claim ID |
{- "id": "07d05309-45cc-4b37-92fb-1524846deec3",
- "name": "Claim 1",
- "value": "Claim 1 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Update a claim for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| claimId required | string <uuid> Example: 07d05309-45cc-4b37-92fb-1524846deec3 The claim ID |
Claim to be updated
| name | string (ClaimName) The name of the claim. |
| value | string (ClaimValue) Specifies the value of the claim. |
| include_in_token | boolean (ClaimIncludeInToken) Default: false Specifies whether to include claim in the token. If the value is set to 'false' for a claim, the client instead uses the access token to get claims from the '/userinfo' endpoint. |
| include_in_all_scopes | boolean (ClaimIncludeInAllScopes) Default: false Specifies whether to include the claim in all scopes. If the value is set to 'false' for a claim, the claim is only included in the scopes that explicitly list it. |
| include_in_scopes | Array of strings (ClaimIncludeInScopes) Specifies the scopes in which the claim is included. |
| enabled | boolean (ClaimEnabled) Default: true Specifies whether the claim is enabled. |
{- "name": "Updated Claim",
- "value": "Updated Claim Value",
- "include_in_token": true,
- "include_in_all_scopes": true,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca"
], - "enabled": false
}{- "id": "07d05309-45cc-4b37-92fb-1524846deec3",
- "name": "Claim 1",
- "value": "Claim 1 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Delete a claim for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| claimId required | string <uuid> Example: 07d05309-45cc-4b37-92fb-1524846deec3 The claim ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}List all the clients for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "data": [
- {
- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "authorization_code",
- "implicit"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}, - {
- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 2",
- "grant_types": [
- "client_credentials"
], - "allow_all_scopes": true,
- "allow_scopes": [ ],
- "redirect_uris": [ ],
- "login_uri": null,
- "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Create a new client for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
Client to be created
| name required | string (ClientName) The name of the client. |
| grant_types required | Array of strings (GrantTypes) unique Items Enum: "authorization_code" "implicit" "client_credentials" Array of OAuth 2.0 grant type strings. |
| response_types required | Array of strings (ResponseTypes) Items Enum: "none" "token" "code" "id_token" array of OAuth 2.0 reponse type string. |
| redirect_uris | Array of strings <uri> (RedirectURIs) The URIs that the client is allowed to redirect to after authentication in interactive flows. All redirect URIs must be absolute URIs, be secure (HTTPS), and must not include a fragment component. |
| login_uri | string or null <uri> (LoginURI) The URI of the login page where the user is redirected to authenticate in interactive flows. The login page must be secure (HTTPS). |
| allow_all_scopes | boolean (ClientAllowAllScopes) Default: false Specifies whether the client is allowed to request all scopes. |
| allow_scopes | Array of strings (ClientAllowScopes) Specifies the scopes that the client is allowed to request. |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Client",
- "grant_types": [
- "client_credentials"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "response_types": [
- "token"
]
}{- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "client_credentials"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "test"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z",
- "client_secret": "YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae"
}Get a client for given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
{- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "client_credentials",
- "authorization_code",
- "implicit"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Update a client for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
Client to be updated
| name | string (ClientName) The name of the client. |
| client_secret | string non-empty Secret of the client |
| grant_types | Array of strings (GrantTypes) unique Items Enum: "authorization_code" "implicit" "client_credentials" Array of OAuth 2.0 grant type strings. |
| response_types | Array of strings (ResponseTypes) Items Enum: "none" "token" "code" "id_token" array of OAuth 2.0 reponse type string. |
| redirect_uris | Array of strings <uri> (RedirectURIs) The URIs that the client is allowed to redirect to after authentication in interactive flows. All redirect URIs must be absolute URIs, be secure (HTTPS), and must not include a fragment component. |
| login_uri | string or null <uri> (LoginURI) The URI of the login page where the user is redirected to authenticate in interactive flows. The login page must be secure (HTTPS). |
| allow_all_scopes | boolean (ClientAllowAllScopes) Default: false Specifies whether the client is allowed to request all scopes. |
| allow_scopes | Array of strings (ClientAllowScopes) Specifies the scopes that the client is allowed to request. |
object or null (LabelsUpdate) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Labels are intended to store INTERNAL metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Updated Client"
}{- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "client_credentials",
- "authorization_code",
- "implicit"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Replace a client for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
Client to be replaced
| name required | string (ClientName) The name of the client. |
| client_secret required | string non-empty Secret of the client |
| grant_types required | Array of strings (GrantTypes) unique Items Enum: "authorization_code" "implicit" "client_credentials" Array of OAuth 2.0 grant type strings. |
| response_types required | Array of strings (ResponseTypes) Items Enum: "none" "token" "code" "id_token" array of OAuth 2.0 reponse type string. |
| redirect_uris | Array of strings <uri> (RedirectURIs) The URIs that the client is allowed to redirect to after authentication in interactive flows. All redirect URIs must be absolute URIs, be secure (HTTPS), and must not include a fragment component. |
| login_uri | string or null <uri> (LoginURI) The URI of the login page where the user is redirected to authenticate in interactive flows. The login page must be secure (HTTPS). |
| allow_all_scopes | boolean (ClientAllowAllScopes) Default: false Specifies whether the client is allowed to request all scopes. |
| allow_scopes | Array of strings (ClientAllowScopes) Specifies the scopes that the client is allowed to request. |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Replace Client",
- "client_secret": "SecretPassword",
- "grant_types": [
- "client_credentials"
], - "response_types": [
- "token"
]
}{- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "client_credentials",
- "authorization_code",
- "implicit"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Delete a client for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}List all the tokens for a given client and auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "data": [
- {
- "id": "2cec70a4-d197-495c-8f3e-c0a1199d1da4",
- "created_at": "2023-03-20T09:29:14.52Z",
- "expires_at": "2022-11-04T20:10:06.927Z"
}, - {
- "id": "8b3bd4a9-7bb3-4b4b-9447-728577bd75e2",
- "created_at": "2023-03-20T09:29:14.52Z",
- "expires_at": "2022-11-04T20:10:06.927Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Revoke all tokens for a given client and auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}Get a token for given client and auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
| tokenId required | string <uuid> Example: 2cec70a4-d197-495c-8f3e-c0a1199d1da4 The token ID |
{- "id": "2cec70a4-d197-495c-8f3e-c0a1199d1da4",
- "created_at": "2023-03-20T09:29:14.52Z",
- "expires_at": "2022-11-04T20:10:06.927Z"
}Revoke a token for a given client and auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
| tokenId required | string <uuid> Example: 2cec70a4-d197-495c-8f3e-c0a1199d1da4 The token ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}List all the scopes for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
{- "data": [
- {
- "id": "c5e12516-182c-4928-ae04-05374b3b1cca",
- "name": "Scope 1",
- "description": "Scope 1 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}, - {
- "id": "b5525b78-f3a0-4bd6-befc-7696be58717e",
- "name": "Scope 2",
- "description": "Scope 2 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Create a new scope for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
Scope to be created
| name required | string (ScopeName) The name of the scope. |
| description | string (ScopeDescription) Description of the scope. |
| default | boolean (ScopeDefault) Default: false Specifies whether the scope is a default scope. |
| include_in_metadata | boolean (ScopeIncludeInMetadata) Default: false Specifies whether to include the scope in the metadata document. |
| enabled | boolean (ScopeEnabled) Default: true Specifies whether the scope is enabled. |
{- "name": "Scope",
- "description": "Scope Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true
}{- "id": "c5e12516-182c-4928-ae04-05374b3b1cca",
- "name": "Scope 1",
- "description": "Scope 1 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Get a scope for given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| scopeId required | string <uuid> Example: c5e12516-182c-4928-ae04-05374b3b1cca The scope ID |
{- "id": "c5e12516-182c-4928-ae04-05374b3b1cca",
- "name": "Scope 1",
- "description": "Scope 1 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Update a scope for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| scopeId required | string <uuid> Example: c5e12516-182c-4928-ae04-05374b3b1cca The scope ID |
Scope to be updated
| name | string (ScopeName) The name of the scope. |
| description | string (ScopeDescription) Description of the scope. |
| default | boolean (ScopeDefault) Default: false Specifies whether the scope is a default scope. |
| include_in_metadata | boolean (ScopeIncludeInMetadata) Default: false Specifies whether to include the scope in the metadata document. |
| enabled | boolean (ScopeEnabled) Default: true Specifies whether the scope is enabled. |
{- "name": "Updated Scope",
- "description": "Updated Scope Description",
- "default": true,
- "include_in_metadata": true,
- "enabled": false
}{- "id": "c5e12516-182c-4928-ae04-05374b3b1cca",
- "name": "Scope 1",
- "description": "Scope 1 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Delete a scope for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| scopeId required | string <uuid> Example: c5e12516-182c-4928-ae04-05374b3b1cca The scope ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}Retrieve the expected config version for this control plane. The expected config version can be used to verify if the config version of a data plane node is up to date with the control plane. The config version will be the same if they are in sync.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "expected_config_version": "string",
- "created_at": 0
}| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
{- "data": [
- {
- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "duration_secs": 300,
- "created_at": "2024-10-01T20:00:00.000Z",
- "updated_at": "2024-10-01T20:00:00.000Z"
}
], - "meta": {
- "page": {
- "size": 10,
- "next": null,
- "previous": null
}
}
}Create Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| name | string The optional session name. |
| max_samples | integer The maximum amount of samples to collect per data plane. |
| sampling_rule | string or null An expression used to filter the requests to sample. |
| duration_secs | integer The duration of the debug session in seconds. |
| capture_content | Array of strings Items Enum: "headers" "body" |
| targets | Array of strings <uuid> The data plane nodes to collect samples from. |
{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "targets": [
- "ae853602-23c7-4218-9071-82fdef3a1efe"
]
}{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "duration_secs": 300,
- "created_at": "2024-10-01T20:10:00.000Z",
- "updated_at": "2024-10-01T20:10:00.000Z"
}Returns a Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "duration_secs": 300,
- "created_at": "2024-10-01T20:10:00.000Z",
- "updated_at": "2024-10-01T20:10:00.000Z"
}Deletes a Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Stops an active Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
{ }| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{ }List all Partials
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| size | integer [ 1 .. 1000 ] Default: 100 Number of resources to be returned. |
| offset | string Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources |
| tags | string Example: tags=tag1,tag2 A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. |
{- "data": [
- {
- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}
], - "next": "string",
- "offset": "string"
}Create a new Partial
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
Description of the new Partial for creation
required | object |
| created_at | integer or null Unix epoch when the resource was created. |
| id | string or null |
| name | string or null |
| tags | Array of strings |
| type required | string |
| updated_at | integer or null Unix epoch when the resource was last updated. |
{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}Delete a Partial
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| PartialId required | string ID of the Partial to lookup |
{- "message": "Duplicate API key found",
- "status": 401
}Get a Partial using ID.
| PartialId required | string ID of the Partial to lookup |
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}Create or Update Partial using ID.
| PartialId required | string ID of the Partial to lookup |
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
Description of the Partial
required | object |
| created_at | integer or null Unix epoch when the resource was created. |
| id | string or null |
| name | string or null |
| tags | Array of strings |
| type required | string |
| updated_at | integer or null Unix epoch when the resource was last updated. |
{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}Create or Update the declarative config
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| config | string The configuration as string. Must be valid yaml or json. |
{- "config": "string"
}{- "config": "string",
- "version": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Returns the declarative configuration set for the control plane.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "config": "string",
- "version": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Delete the declarative config
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Returns the declarative configuration formatted for an event gateway.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "config": { },
- "version": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Returns the declarative configuration formatted for an http gateway.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
Create or update a node.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| nodeId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Node identifier |
| hostname | string |
| type | string |
| version | string |
| config_version | string |
Array of objects (A Node Error) |
{- "hostname": "node1.my.domain.com",
- "type": "knep",
- "version": "1.0",
- "config_version": "string",
- "errors": [
- {
- "name": "string",
- "error_message": "string",
- "config_hash": "string",
- "code": 0,
- "source": "string",
- "traceback": "string"
}
]
}{- "item": {
- "id": "string",
- "version": "string",
- "hostname": "string",
- "last_ping": 0,
- "type": "string",
- "created_at": 0,
- "updated_at": 0,
- "config_hash": "string",
- "compatibility_status": {
- "state": "string"
}
}
}