Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Add specifications for deprecated connector APIs #149637

Merged
merged 5 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
520 changes: 514 additions & 6 deletions docs/api-generated/connectors/connector-apis-passthru.asciidoc

Large diffs are not rendered by default.

514 changes: 512 additions & 2 deletions x-pack/plugins/actions/docs/openapi/bundled.json

Large diffs are not rendered by default.

314 changes: 312 additions & 2 deletions x-pack/plugins/actions/docs/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,285 @@ paths:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/s/{spaceId}/api/actions/action/{actionId}:
delete:
summary: Deletes a connector.
operationId: legacyDeleteConnector
deprecated: true
description: |
Deprecated in 7.13.0. Use the delete connector API instead. WARNING: When you delete a connector, it cannot be recovered.
tags:
- connectors
parameters:
- $ref: '#/components/parameters/kbn_xsrf'
- $ref: '#/components/parameters/action_id'
- $ref: '#/components/parameters/space_id'
responses:
'204':
description: Indicates a successful call.
'401':
description: Authorization information is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/401_response'
servers:
- url: https://localhost:5601
get:
summary: Retrieves a connector by ID.
operationId: legacyGetConnector
description: Deprecated in 7.13.0. Use the get connector API instead.
deprecated: true
tags:
- connectors
parameters:
- $ref: '#/components/parameters/action_id'
- $ref: '#/components/parameters/space_id'
responses:
'200':
description: Indicates a successful call.
content:
application/json:
schema:
$ref: '#/components/schemas/action_response_properties'
'401':
description: Authorization information is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/401_response'
servers:
- url: https://localhost:5601
put:
summary: Updates the attributes for a connector.
operationId: legacyUpdateConnector
deprecated: true
description: Deprecated in 7.13.0. Use the update connector API instead.
tags:
- connectors
parameters:
- $ref: '#/components/parameters/kbn_xsrf'
- $ref: '#/components/parameters/action_id'
- $ref: '#/components/parameters/space_id'
requestBody:
required: true
content:
application/json:
schema:
title: Legacy update connector request body properties
description: The properties vary depending on the connector type.
type: object
properties:
config:
type: object
description: The new connector configuration. Configuration properties vary depending on the connector type.
name:
type: string
description: The new name for the connector.
secrets:
type: object
description: The updated secrets configuration for the connector. Secrets properties vary depending on the connector type.
responses:
'200':
description: Indicates a successful call.
content:
application/json:
schema:
$ref: '#/components/schemas/action_response_properties'
'404':
description: Object is not found.
content:
application/json:
schema:
$ref: '#/components/schemas/404_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/s/{spaceId}/api/actions:
get:
summary: Retrieves all connectors.
operationId: legacyGetConnectors
deprecated: true
description: Deprecated in 7.13.0. Use the get all connectors API instead.
tags:
- connectors
parameters:
- $ref: '#/components/parameters/space_id'
responses:
'200':
description: Indicates a successful call.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/action_response_properties'
'401':
description: Authorization information is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/401_response'
servers:
- url: https://localhost:5601
post:
summary: Creates a connector.
operationId: legacyCreateConnector
deprecated: true
description: Deprecated in 7.13.0. Use the create connector API instead.
tags:
- connectors
parameters:
- $ref: '#/components/parameters/kbn_xsrf'
- $ref: '#/components/parameters/space_id'
requestBody:
required: true
content:
application/json:
schema:
title: Legacy create connector request properties
type: object
properties:
actionTypeId:
type: string
description: The connector type identifier.
config:
type: object
description: The configuration for the connector. Configuration properties vary depending on the connector type.
name:
type: string
description: The display name for the connector.
secrets:
type: object
description: |
The secrets configuration for the connector. Secrets configuration properties vary depending on the connector type. NOTE: Remember these values. You must provide them each time you update the connector.
responses:
'200':
description: Indicates a successful call.
content:
application/json:
schema:
$ref: '#/components/schemas/action_response_properties'
'401':
description: Authorization information is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/401_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/s/{spaceId}/api/actions/list_action_types:
get:
summary: Retrieves a list of all connector types.
operationId: legacyGetConnectorTypes
deprecated: true
description: Deprecated in 7.13.0. Use the get all connector types API instead.
tags:
- connectors
parameters:
- $ref: '#/components/parameters/space_id'
responses:
'200':
description: Indicates a successful call.
content:
application/json:
schema:
title: Legacy get connector types response body properties
description: The properties vary for each connector type.
type: array
items:
type: object
properties:
enabled:
type: boolean
description: Indicates whether the connector type is enabled in Kibana.
enabledInConfig:
type: boolean
description: Indicates whether the connector type is enabled in the Kibana `.yml` file.
enabledInLicense:
type: boolean
description: Indicates whether the connector is enabled in the license.
example: true
id:
type: string
description: The unique identifier for the connector type.
minimumLicenseRequired:
type: string
description: The license that is required to use the connector type.
name:
type: string
description: The name of the connector type.
'401':
description: Authorization information is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/401_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/s/{spaceId}/api/actions/action/{actionId}/_execute:
post:
summary: Runs a connector.
operationId: legacyRunConnector
deprecated: true
description: Deprecated in 7.13.0. Use the run connector API instead.
tags:
- connectors
parameters:
- $ref: '#/components/parameters/kbn_xsrf'
- $ref: '#/components/parameters/action_id'
- $ref: '#/components/parameters/space_id'
requestBody:
required: true
content:
application/json:
schema:
title: Legacy run connector request body properties
description: The properties vary depending on the connector type.
type: object
required:
- params
properties:
params:
type: object
description: The parameters of the connector. Parameter properties vary depending on the connector type.
responses:
'200':
description: Indicates a successful call.
content:
application/json:
schema:
type: object
properties:
actionId:
type: string
data:
oneOf:
- type: object
description: Information returned from the action.
additionalProperties: true
- type: array
description: An array of information returned from the action.
items:
type: object
status:
type: string
description: The status of the action.
'401':
description: Authorization information is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/401_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
components:
securitySchemes:
basicAuth:
Expand All @@ -487,6 +766,7 @@ components:
type: string
in: header
name: kbn-xsrf
description: Cross-site request forgery protection
required: true
space_id:
in: path
Expand All @@ -504,6 +784,14 @@ components:
schema:
type: string
example: df770e30-8b8b-11ed-a780-3b746c987a81
action_id:
in: path
name: actionId
description: An identifier for the action.
required: true
schema:
type: string
example: c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad
schemas:
config_properties_cases_webhook:
title: Connector request properties for Webhook - Case Management connector
Expand Down Expand Up @@ -945,7 +1233,7 @@ components:
description: |
The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth).
default: false
type: string
type: boolean
jwtKeyId:
description: |
The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when `isOAuth` is `true`.
Expand Down Expand Up @@ -1022,7 +1310,7 @@ components:
description: |
The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth).
default: false
type: string
type: boolean
jwtKeyId:
description: |
The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when `isOAuth` is `true`.
Expand Down Expand Up @@ -2671,6 +2959,28 @@ components:
urgency:
type: string
description: The urgency of the incident for ServiceNow ITSM connectors.
action_response_properties:
title: Action response properties
description: The properties vary depending on the action type.
type: object
properties:
actionTypeId:
type: string
config:
type: object
id:
type: string
isDeprecated:
type: boolean
description: Indicates whether the action type is deprecated.
isMissingSecrets:
type: boolean
description: Indicates whether secrets are missing for the action.
isPreconfigured:
type: boolean
description: Indicates whether it is a preconfigured action.
name:
type: string
examples:
create_index_connector_request:
summary: Create an index connector.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ schema:
type: string
in: header
name: kbn-xsrf
description: Cross-site request forgery protection
required: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
in: path
name: actionId
description: An identifier for the action.
required: true
schema:
type: string
example: c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
title: Action response properties
description: The properties vary depending on the action type.
type: object
properties:
actionTypeId:
type: string
config:
type: object
id:
type: string
isDeprecated:
type: boolean
description: Indicates whether the action type is deprecated.
isMissingSecrets:
type: boolean
description: Indicates whether secrets are missing for the action.
isPreconfigured:
type: boolean
description: Indicates whether it is a preconfigured action.
name:
type: string
Loading