-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CBG-4213: add attachment migration api
- Loading branch information
Showing
11 changed files
with
490 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Copyright 2022-Present Couchbase, Inc. | ||
# | ||
# Use of this software is governed by the Business Source License included | ||
# in the file licenses/BSL-Couchbase.txt. As of the Change Date specified | ||
# in that file, in accordance with the Business Source License, use of this | ||
# software will be governed by the Apache License, Version 2.0, included in | ||
# the file licenses/APL2.txt. | ||
parameters: | ||
- $ref: ../../components/parameters.yaml#/db | ||
post: | ||
summary: Manage a attachment migration operation | ||
description: |- | ||
This allows a new attachment migration operation to be done on the database, or to stop an existing running attachment migration operation. | ||
Attachment Migration is a single node process and can only one node can be running it at one point. | ||
Required Sync Gateway RBAC roles: | ||
* Sync Gateway Architect | ||
parameters: | ||
Check warning on line 20 in docs/api/paths/admin/db-_attachment_migration.yaml GitHub Actions / OpenAPI Validation
|
||
- name: action | ||
in: query | ||
description: Defines whether the an attachment migration operation is being started or stopped. | ||
schema: | ||
type: string | ||
default: start | ||
enum: | ||
- start | ||
- stop | ||
- name: reset | ||
in: query | ||
description: |- | ||
This forces a fresh attachment migration start instead of trying to resume the previous failed migration operation. | ||
schema: | ||
type: boolean | ||
responses: | ||
'200': | ||
description: Started or stopped compact operation successfully | ||
'400': | ||
$ref: ../../components/responses.yaml#/request-problem | ||
'404': | ||
$ref: ../../components/responses.yaml#/Not-found | ||
'503': | ||
description: Cannot start attachment migration due to another migration operation still running. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas.yaml#/HTTP-Error | ||
tags: | ||
- Database Management | ||
operationId: post_db-_attachment_migration | ||
get: | ||
Check warning on line 52 in docs/api/paths/admin/db-_attachment_migration.yaml GitHub Actions / OpenAPI Validation
|
||
summary: Get the status of the most recent attachment migration operation | ||
description: |- | ||
This will retrieve the current status of the most recent attachment migration operation. | ||
Required Sync Gateway RBAC roles: | ||
* Sync Gateway Architect | ||
responses: | ||
'200': | ||
description: Attachment migration status retrieved successfully | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas.yaml#/Attachment-Migration-status | ||
'400': | ||
$ref: ../../components/responses.yaml#/request-problem | ||
'404': | ||
$ref: ../../components/responses.yaml#/Not-found | ||
tags: | ||
- Database Management | ||
operationId: get_db-_attachment_migration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.