You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Secrets Recovery (enterprise): Deprecate the `recover_snapshot_id` query parameter to pass the snapshot ID for recover operations, in favor of a `X-Vault-Recover-Snapshot-Id` header. Vault will still accept the query parameter for backward compatibility. Also support setting the HTTP method to `RECOVER` for recover operations, in addition to `POST` and `PUT`.
Description: "Triggers a recover operation using the given snapshot ID. Request body is ignored when a recover operation is requested.",
405
405
In: "query",
406
+
Deprecated: true,
407
+
Schema: &OASSchema{Type: "string"},
408
+
}, OASParameter{
409
+
Name: "X-Vault-Recover-Snapshot-Id",
410
+
Description: "Triggers a recover operation using the given snapshot ID. Request body is ignored when a recover operation is requested.",
411
+
In: "header",
406
412
Schema: &OASSchema{Type: "string"},
407
413
})
408
414
// If there are path fields, it will also be possible to recover from a path with
409
415
// different path field values than the request path.
410
416
iflen(pathFields) >0 {
411
417
op.Parameters=append(op.Parameters, OASParameter{
412
-
Name: "recover_source_path",
413
-
Description: "The source path to recover from. Only used if recover_snapshot_id parameter is also supplied. If not specified, the source path is assumed to be the same as the request path.",
414
-
In: "query",
418
+
Name: "X-Vault-Recover-Source-Path",
419
+
Description: "The source path to recover from. Only used if a snapshot ID is also supplied. If not specified, the source path is assumed to be the same as the request path.",
Copy file name to clipboardExpand all lines: sdk/framework/testdata/operations.json
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -71,14 +71,23 @@
71
71
"name": "recover_snapshot_id",
72
72
"description": "Triggers a recover operation using the given snapshot ID. Request body is ignored when a recover operation is requested.",
73
73
"in": "query",
74
+
"schema": {
75
+
"type": "string"
76
+
},
77
+
"deprecated": true
78
+
},
79
+
{
80
+
"name": "X-Vault-Recover-Snapshot-Id",
81
+
"description": "Triggers a recover operation using the given snapshot ID. Request body is ignored when a recover operation is requested.",
82
+
"in": "header",
74
83
"schema": {
75
84
"type": "string"
76
85
}
77
86
},
78
87
{
79
-
"name": "recover_source_path",
80
-
"description": "The source path to recover from. Only used if recover_snapshot_id parameter is also supplied. If not specified, the source path is assumed to be the same as the request path.",
81
-
"in": "query",
88
+
"name": "X-Vault-Recover-Source-Path",
89
+
"description": "The source path to recover from. Only used if a snapshot ID is also supplied. If not specified, the source path is assumed to be the same as the request path.",
0 commit comments