mirror of
https://github.com/openziti/ziti.git
synced 2026-09-21 10:03:26 +00:00
b562fb5c07
- splits Open API 2.0 (swagger) into client/management APIs - uses go-swaggers flatten capabilities - uses newer version of go-swagger (v0.27.0) - introduces /edge/client/v1, /edge/management/v1 - non-prefixed URLs default to /edge/client/v1 - splits some shared management/client API handlers - renames some REST models to "client" instead of "limited" - passes all apitests, fails dataflow upd test (main fails this as well) - updates generate rest script for powershell - todo: test generate rest script for bash - todo: use xweb (different branch)
123 lines
3.8 KiB
YAML
123 lines
3.8 KiB
YAML
---
|
|
paths:
|
|
database-snapshot:
|
|
post:
|
|
summary: Create a new database snapshot
|
|
description: Create a new database snapshot. Requires admin access.
|
|
security:
|
|
- ztSession: [ ]
|
|
tags:
|
|
- Database
|
|
operationId: createDatabaseSnapshot
|
|
responses:
|
|
'200':
|
|
$ref: '../shared/standard-responses.yml#/responses/emptyResponse'
|
|
'401':
|
|
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
|
|
'429':
|
|
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
|
|
database-check-data-integrity:
|
|
post:
|
|
summary: Starts a data integrity scan on the datastore
|
|
description: Starts a data integrity scan on the datastore. Requires admin access. Only once instance may run at a time, including runs of fixDataIntegrity.
|
|
security:
|
|
- ztSession: [ ]
|
|
tags:
|
|
- Database
|
|
operationId: checkDataIntegrity
|
|
responses:
|
|
'202':
|
|
$ref: '../shared/standard-responses.yml#/responses/emptyResponse'
|
|
'401':
|
|
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
|
|
'429':
|
|
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
|
|
database-fix-data-integrity:
|
|
post:
|
|
summary: Runs a data integrity scan on the datastore, attempts to fix any issues it can and returns any found issues
|
|
description: Runs a data integrity scan on the datastore, attempts to fix any issues it can, and returns any found issues. Requires admin access. Only once instance may run at a time, including runs of checkDataIntegrity.
|
|
security:
|
|
- ztSession: [ ]
|
|
tags:
|
|
- Database
|
|
operationId: fixDataIntegrity
|
|
responses:
|
|
'202':
|
|
$ref: '../shared/standard-responses.yml#/responses/emptyResponse'
|
|
'429':
|
|
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
|
|
'401':
|
|
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
|
|
database-data-integrity-results:
|
|
get:
|
|
summary: Returns any results found from in-progress integrity checks
|
|
description: Returns any results found from in-progress integrity checks. Requires admin access.
|
|
security:
|
|
- ztSession: [ ]
|
|
tags:
|
|
- Database
|
|
operationId: dataIntegrityResults
|
|
responses:
|
|
'200':
|
|
$ref: '#/responses/dataIntegrityCheckResult'
|
|
'401':
|
|
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
|
|
|
|
responses:
|
|
dataIntegrityCheckResult:
|
|
description: A list of data integrity issues found
|
|
schema:
|
|
$ref: '#/definitions/dataIntegrityCheckResultEnvelope'
|
|
|
|
definitions:
|
|
dataIntegrityCheckResultEnvelope:
|
|
type: object
|
|
required:
|
|
- meta
|
|
- data
|
|
properties:
|
|
meta:
|
|
$ref: '../shared/standard-responses.yml#/definitions/meta'
|
|
data:
|
|
$ref: '#/definitions/dataIntegrityCheckDetails'
|
|
dataIntegrityCheckDetails:
|
|
type: object
|
|
required:
|
|
- inProgress
|
|
- fixingErrors
|
|
- tooManyErrors
|
|
- startTime
|
|
- endTime
|
|
- error
|
|
- results
|
|
properties:
|
|
inProgress:
|
|
type: boolean
|
|
startTime:
|
|
type: string
|
|
format: date-time
|
|
endTime:
|
|
type: string
|
|
format: date-time
|
|
fixingErrors:
|
|
type: boolean
|
|
error:
|
|
type: string
|
|
tooManyErrors:
|
|
type: boolean
|
|
results:
|
|
$ref: '#/definitions/dataIntegrityCheckDetailList'
|
|
dataIntegrityCheckDetailList:
|
|
type: array
|
|
items:
|
|
$ref: '#/definitions/dataIntegrityCheckDetail'
|
|
dataIntegrityCheckDetail:
|
|
type: object
|
|
required:
|
|
- description
|
|
- fixed
|
|
properties:
|
|
description:
|
|
type: string
|
|
fixed:
|
|
type: boolean |