Re-generate open api config.
@@ -769,6 +769,40 @@ paths:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
+ /api/v1/aliasexecution/match_and_execute:
+ post:
+ operationId: st2api.controllers.v1.aliasexecution:action_alias_execution_controller.match_and_execute
+ description: |
+ Create an execution based on action alias match (if any).
+ parameters:
+ - name: input_api
+ in: body
+ description: Input data.
+ schema:
+ $ref: '#/definitions/AliasMatchAndExecuteInputAPI'
+ - name: show_secrets
+ in: query
+ description: Show secrets in plain text
+ type: boolean
+ x-parameters:
+ - name: user
+ in: context
+ x-as: requester_user
+ description: User performing the operation.
+ responses:
+ '201':
+ description: Action alias execution created
+ schema:
+ $ref: '#/definitions/AliasExecution'
+ examples:
+ application/json:
+ ref: 'core.local'
+ # and stuff
+ default:
+ description: Unexpected error
+ schema:
+ $ref: '#/definitions/Error'
+
/api/v1/executions:
get:
operationId: st2api.controllers.v1.actionexecutions:action_executions_controller.get_all
@@ -3985,6 +4019,9 @@ definitions:
type: string
AliasExecution:
type: object
+ AliasMatchAndExecuteInputAPI:
+ x-api-model: st2common.models.api.action.AliasMatchAndExecuteInputAPI
+ type: object
Execution:
title: ActionExecution
description: Record of the execution of an action.
