-
Notifications
You must be signed in to change notification settings - Fork 0
create temp CG for consistent VM snapshot for the VM which is span across multiple flexvolumes #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3efaa7a
4ec7c18
4b482df
2724dbb
4d1377c
f72d5cf
5d9639e
26f20d7
0d3f4b7
605a878
61f8105
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -181,4 +181,96 @@ JobResponse restoreFileFromSnapshot(@Param("authHeader") String authHeader, | |
| @Headers({"Authorization: {authHeader}", "Content-Type: application/json"}) | ||
| JobResponse restoreFileFromSnapshotCli(@Param("authHeader") String authHeader, | ||
| CliSnapshotRestoreRequest request); | ||
|
|
||
| /** | ||
| * Creates a consistency group. | ||
| * | ||
| * <p>ONTAP REST: {@code POST /api/application/consistency-groups}</p> | ||
| * | ||
| * @param authHeader Basic auth header | ||
| * @param request consistency group create request body | ||
| * @return JobResponse containing the async job reference | ||
| */ | ||
| @RequestLine("POST /api/application/consistency-groups") | ||
| @Headers({"Authorization: {authHeader}", "Content-Type: application/json"}) | ||
| JobResponse createConsistencyGroup(@Param("authHeader") String authHeader, | ||
| Map<String, Object> request); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to create CG, request should be model type why map? |
||
|
|
||
| /** | ||
| * Lists consistency groups. | ||
| * | ||
| * <p>ONTAP REST: {@code GET /api/application/consistency-groups}</p> | ||
| * | ||
| * @param authHeader Basic auth header | ||
| * @param queryParams Optional query parameters | ||
| * @return Paginated consistency group records | ||
| */ | ||
| @RequestLine("GET /api/application/consistency-groups") | ||
| @Headers({"Authorization: {authHeader}"}) | ||
| OntapResponse<Map<String, Object>> getConsistencyGroups(@Param("authHeader") String authHeader, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the return type should be OntapResponse of type ConsistencyGroup Object |
||
| @QueryMap Map<String, Object> queryParams); | ||
|
|
||
| /** | ||
| * Creates (starts) a consistency group snapshot. | ||
| * | ||
| * <p>ONTAP REST: {@code POST /api/application/consistency-groups/{cgUuid}/snapshots}</p> | ||
| * | ||
| * @param authHeader Basic auth header | ||
| * @param cgUuid consistency group UUID | ||
| * @param request snapshot start request body | ||
| * @return JobResponse containing the async job reference | ||
| */ | ||
| @RequestLine("POST /api/application/consistency-groups/{cgUuid}/snapshots") | ||
| @Headers({"Authorization: {authHeader}", "Content-Type: application/json"}) | ||
| JobResponse createConsistencyGroupSnapshot(@Param("authHeader") String authHeader, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here for request |
||
| @Param("cgUuid") String cgUuid, | ||
| Map<String, Object> request); | ||
|
|
||
| /** | ||
| * Lists snapshots for a consistency group. | ||
| * | ||
| * <p>ONTAP REST: {@code GET /api/application/consistency-groups/{cgUuid}/snapshots}</p> | ||
| * | ||
| * @param authHeader Basic auth header | ||
| * @param cgUuid consistency group UUID | ||
| * @param queryParams Optional query parameters | ||
| * @return Paginated consistency group snapshot records | ||
| */ | ||
| @RequestLine("GET /api/application/consistency-groups/{cgUuid}/snapshots") | ||
| @Headers({"Authorization: {authHeader}"}) | ||
| OntapResponse<Map<String, Object>> getConsistencyGroupSnapshots(@Param("authHeader") String authHeader, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here for return type |
||
| @Param("cgUuid") String cgUuid, | ||
| @QueryMap Map<String, Object> queryParams); | ||
|
|
||
| /** | ||
| * Commits a started consistency group snapshot. | ||
| * | ||
| * <p>ONTAP REST: {@code PATCH /api/application/consistency-groups/{cgUuid}/snapshots/{snapshotUuid}}</p> | ||
| * | ||
| * @param authHeader Basic auth header | ||
| * @param cgUuid consistency group UUID | ||
| * @param snapshotUuid consistency group snapshot UUID | ||
| * @param request commit request body | ||
| * @return JobResponse containing the async job reference | ||
| */ | ||
| @RequestLine("PATCH /api/application/consistency-groups/{cgUuid}/snapshots/{snapshotUuid}") | ||
| @Headers({"Authorization: {authHeader}", "Content-Type: application/json"}) | ||
| JobResponse commitConsistencyGroupSnapshot(@Param("authHeader") String authHeader, | ||
| @Param("cgUuid") String cgUuid, | ||
| @Param("snapshotUuid") String snapshotUuid, | ||
| Map<String, Object> request); | ||
|
|
||
| /** | ||
| * Deletes a consistency group. | ||
| * | ||
| * <p>ONTAP REST: {@code DELETE /api/application/consistency-groups/{cgUuid}}</p> | ||
| * | ||
| * @param authHeader Basic auth header | ||
| * @param cgUuid consistency group UUID | ||
| * @return JobResponse containing the async job reference | ||
| */ | ||
| @RequestLine("DELETE /api/application/consistency-groups/{cgUuid}") | ||
| @Headers({"Authorization: {authHeader}"}) | ||
| JobResponse deleteConsistencyGroup(@Param("authHeader") String authHeader, | ||
| @Param("cgUuid") String cgUuid); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it better to create a model for CG request, instead?