This commit is contained in:
@@ -477,6 +477,18 @@ definitions:
|
||||
client_cert:
|
||||
type: string
|
||||
type: object
|
||||
internal_handlers.RenameRequest:
|
||||
properties:
|
||||
new_path:
|
||||
example: deploy/nginx-v2
|
||||
type: string
|
||||
old_path:
|
||||
example: deploy/nginx
|
||||
type: string
|
||||
required:
|
||||
- new_path
|
||||
- old_path
|
||||
type: object
|
||||
internal_handlers.RunScriptIn:
|
||||
properties:
|
||||
agent_id:
|
||||
@@ -1809,6 +1821,49 @@ paths:
|
||||
summary: Update interpreter
|
||||
tags:
|
||||
- scripts
|
||||
/scripts/rename:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Renames a single script or all scripts under a folder prefix
|
||||
parameters:
|
||||
- description: Rename request
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/internal_handlers.RenameRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Rename result with count of renamed scripts
|
||||
schema:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
"409":
|
||||
description: Conflict
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
security:
|
||||
- Bearer: []
|
||||
summary: Rename script or folder
|
||||
tags:
|
||||
- scripts
|
||||
/scripts/run:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user