Download OpenAPI specification:Download
The platform API for Kong Konnect Service Hub core.
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": 1,
- "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": 1,
- "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": 1,
- "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"
}
]
}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": 1,
- "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"
}
]
}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 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": 1,
- "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": 1,
- "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": [
- {
- "type": "text",
- "text": "Hello World"
}
]
}
]
}, - "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"
}
]
}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"
}
]
}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"
}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": 1,
- "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"
}
}
]
}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": 1,
- "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 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": 1,
- "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": 1,
- "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"
}
]
}