From 83f31c0c4778e6b9a9471a19f6567720d0cc807d Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Mon, 19 Sep 2022 01:29:25 +0200 Subject: [PATCH] authorization header --- packages/xo-server/docs/vm-sync-hook.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/xo-server/docs/vm-sync-hook.md b/packages/xo-server/docs/vm-sync-hook.md index 4a0b68c310c..fc6a427571d 100644 --- a/packages/xo-server/docs/vm-sync-hook.md +++ b/packages/xo-server/docs/vm-sync-hook.md @@ -31,12 +31,14 @@ If the request fails for any reason, XO will go ahead with snapshot immediately. ```http GET /sync HTTP/1.1 +Authorization: Bearer dW5pcXVlIGxvbmcgc3RyaW5nIHRvIGVuc3VyZSB0aGUgcmVxdWVzdCBjb21lcyBmcm9tIFhP ``` When the snapshot is finished, another request will be sent: ```http GET /post-sync HTTP/1.1 +Authorization: Bearer dW5pcXVlIGxvbmcgc3RyaW5nIHRvIGVuc3VyZSB0aGUgcmVxdWVzdCBjb21lcyBmcm9tIFhP ``` The created snapshot will have the special `xo:synced` tag set to make it identifiable.