diff --git a/x-pack/plugins/actions/server/routes/connector/get/get.ts b/x-pack/plugins/actions/server/routes/connector/get/get.ts index 4716ee22137074..2a05405a6a722d 100644 --- a/x-pack/plugins/actions/server/routes/connector/get/get.ts +++ b/x-pack/plugins/actions/server/routes/connector/get/get.ts @@ -23,6 +23,10 @@ export const getConnectorRoute = ( router.get( { path: `${BASE_ACTION_API_PATH}/connector/{id}`, + options: { + access: 'public', + description: `Get connector information`, + }, validate: { params: getConnectorParamsSchemaV1, }, diff --git a/x-pack/plugins/actions/server/routes/connector/get_all/get_all.ts b/x-pack/plugins/actions/server/routes/connector/get_all/get_all.ts index 18885f90512e8b..e37edc2347a32d 100644 --- a/x-pack/plugins/actions/server/routes/connector/get_all/get_all.ts +++ b/x-pack/plugins/actions/server/routes/connector/get_all/get_all.ts @@ -20,6 +20,10 @@ export const getAllConnectorsRoute = ( router.get( { path: `${BASE_ACTION_API_PATH}/connectors`, + options: { + access: 'public', + description: `Get all connectors`, + }, validate: {}, }, router.handleLegacyErrors( diff --git a/x-pack/plugins/actions/server/routes/connector/list_types/list_types.ts b/x-pack/plugins/actions/server/routes/connector/list_types/list_types.ts index b53b213dcc1887..e09a828c9ff6ca 100644 --- a/x-pack/plugins/actions/server/routes/connector/list_types/list_types.ts +++ b/x-pack/plugins/actions/server/routes/connector/list_types/list_types.ts @@ -24,6 +24,10 @@ export const listTypesRoute = ( router.get( { path: `${BASE_ACTION_API_PATH}/connector_types`, + options: { + access: 'public', + description: `Get connector types`, + }, validate: { query: connectorTypesQuerySchemaV1, }, diff --git a/x-pack/plugins/actions/server/routes/create.ts b/x-pack/plugins/actions/server/routes/create.ts index c3928e72d042ba..63cf948d318cdd 100644 --- a/x-pack/plugins/actions/server/routes/create.ts +++ b/x-pack/plugins/actions/server/routes/create.ts @@ -53,6 +53,10 @@ export const createActionRoute = ( router.post( { path: `${BASE_ACTION_API_PATH}/connector/{id?}`, + options: { + access: 'public', + description: 'Create a connector', + }, validate: { params: schema.maybe( schema.object({ diff --git a/x-pack/plugins/actions/server/routes/delete.ts b/x-pack/plugins/actions/server/routes/delete.ts index 1537999664ee8d..c6a6c8afcbb728 100644 --- a/x-pack/plugins/actions/server/routes/delete.ts +++ b/x-pack/plugins/actions/server/routes/delete.ts @@ -23,6 +23,10 @@ export const deleteActionRoute = ( router.delete( { path: `${BASE_ACTION_API_PATH}/connector/{id}`, + options: { + access: 'public', + description: `Delete a connector`, + }, validate: { params: paramSchema, }, diff --git a/x-pack/plugins/actions/server/routes/execute.ts b/x-pack/plugins/actions/server/routes/execute.ts index 406b9983b7bda1..d366feb7ce3eea 100644 --- a/x-pack/plugins/actions/server/routes/execute.ts +++ b/x-pack/plugins/actions/server/routes/execute.ts @@ -39,6 +39,10 @@ export const executeActionRoute = ( router.post( { path: `${BASE_ACTION_API_PATH}/connector/{id}/_execute`, + options: { + access: 'public', + description: `Run a connector`, + }, validate: { body: bodySchema, params: paramSchema, diff --git a/x-pack/plugins/actions/server/routes/legacy/create.ts b/x-pack/plugins/actions/server/routes/legacy/create.ts index 120a7e53362354..bbdf528f215643 100644 --- a/x-pack/plugins/actions/server/routes/legacy/create.ts +++ b/x-pack/plugins/actions/server/routes/legacy/create.ts @@ -29,6 +29,10 @@ export const createActionRoute = ( router.post( { path: `${BASE_ACTION_API_PATH}/action`, + options: { + access: 'public', + description: `Create a connector`, + }, validate: { body: bodySchema, }, diff --git a/x-pack/plugins/actions/server/routes/legacy/delete.ts b/x-pack/plugins/actions/server/routes/legacy/delete.ts index dd5f99aebd974c..57c4346084f576 100644 --- a/x-pack/plugins/actions/server/routes/legacy/delete.ts +++ b/x-pack/plugins/actions/server/routes/legacy/delete.ts @@ -25,6 +25,10 @@ export const deleteActionRoute = ( router.delete( { path: `${BASE_ACTION_API_PATH}/action/{id}`, + options: { + access: 'public', + description: `Delete a connector`, + }, validate: { params: paramSchema, }, diff --git a/x-pack/plugins/actions/server/routes/legacy/execute.ts b/x-pack/plugins/actions/server/routes/legacy/execute.ts index e54e5f6c503974..f4ec794635263e 100644 --- a/x-pack/plugins/actions/server/routes/legacy/execute.ts +++ b/x-pack/plugins/actions/server/routes/legacy/execute.ts @@ -31,6 +31,10 @@ export const executeActionRoute = ( router.post( { path: `${BASE_ACTION_API_PATH}/action/{id}/_execute`, + options: { + access: 'public', + description: `Run a connector`, + }, validate: { body: bodySchema, params: paramSchema, diff --git a/x-pack/plugins/actions/server/routes/legacy/get.ts b/x-pack/plugins/actions/server/routes/legacy/get.ts index f1037202335071..d47efc698c2fef 100644 --- a/x-pack/plugins/actions/server/routes/legacy/get.ts +++ b/x-pack/plugins/actions/server/routes/legacy/get.ts @@ -25,6 +25,10 @@ export const getActionRoute = ( router.get( { path: `${BASE_ACTION_API_PATH}/action/{id}`, + options: { + access: 'public', + description: `Get connector information`, + }, validate: { params: paramSchema, }, diff --git a/x-pack/plugins/actions/server/routes/legacy/get_all.ts b/x-pack/plugins/actions/server/routes/legacy/get_all.ts index 6fc478b04d51fe..19fc32389c2ec1 100644 --- a/x-pack/plugins/actions/server/routes/legacy/get_all.ts +++ b/x-pack/plugins/actions/server/routes/legacy/get_all.ts @@ -20,6 +20,10 @@ export const getAllActionRoute = ( router.get( { path: `${BASE_ACTION_API_PATH}`, + options: { + access: 'public', + description: `Get all connectors`, + }, validate: {}, }, router.handleLegacyErrors(async function (context, req, res) { diff --git a/x-pack/plugins/actions/server/routes/legacy/list_action_types.ts b/x-pack/plugins/actions/server/routes/legacy/list_action_types.ts index 1316d10f434b0b..ef587d1ad11a6f 100644 --- a/x-pack/plugins/actions/server/routes/legacy/list_action_types.ts +++ b/x-pack/plugins/actions/server/routes/legacy/list_action_types.ts @@ -24,6 +24,10 @@ export const listActionTypesRoute = ( router.get( { path: `${BASE_ACTION_API_PATH}/list_action_types`, + options: { + access: 'public', + description: `Get connector types`, + }, validate: {}, }, router.handleLegacyErrors(async function (context, req, res) { diff --git a/x-pack/plugins/actions/server/routes/legacy/update.ts b/x-pack/plugins/actions/server/routes/legacy/update.ts index a4e441d5d9846f..0959398dd1a691 100644 --- a/x-pack/plugins/actions/server/routes/legacy/update.ts +++ b/x-pack/plugins/actions/server/routes/legacy/update.ts @@ -31,6 +31,10 @@ export const updateActionRoute = ( router.put( { path: `${BASE_ACTION_API_PATH}/action/{id}`, + options: { + access: 'public', + description: `Update a connector`, + }, validate: { body: bodySchema, params: paramSchema, diff --git a/x-pack/plugins/actions/server/routes/update.ts b/x-pack/plugins/actions/server/routes/update.ts index a44c8ea7bb5b91..68c7a8e9f9def4 100644 --- a/x-pack/plugins/actions/server/routes/update.ts +++ b/x-pack/plugins/actions/server/routes/update.ts @@ -49,6 +49,10 @@ export const updateActionRoute = ( router.put( { path: `${BASE_ACTION_API_PATH}/connector/{id}`, + options: { + access: 'public', + description: `Update a connector`, + }, validate: { body: bodySchema, params: paramSchema,