docs(import): correct formatting of json examples for export and import (#4142)

Co-authored-by: Florian Forster <florian@caos.ch>
This commit is contained in:
Stefan Benz 2022-08-08 14:33:56 +02:00 committed by GitHub
parent 50acb22399
commit 46e5c0da97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,9 +35,9 @@ curl --request POST \
"org_ids": [ "70669144072186707", "70671105999825752" ], "org_ids": [ "70669144072186707", "70671105999825752" ],
"excluded_org_ids": [ ], "excluded_org_ids": [ ],
"with_passwords": true, "with_passwords": true,
"with_otp": true "with_otp": true,
"timeout": "30s", "timeout": "30s",
"response_output": true, "response_output": true
}' -o export.json }' -o export.json
``` ```
@ -80,15 +80,16 @@ curl --request POST \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data ' "{ --data ' "{
"org_ids": [ "70669144072186707", "70671105999825752" ], "org_ids": [ "70669144072186707", "70671105999825752" ],
"excluded_org_ids": [ ], "excluded_org_ids": [ ],
"with_passwords": true, "with_passwords": true,
"with_otp": true, "with_otp": true,
"timeout": "10m", "timeout": "10m",
"gcs_output": { "gcs_output": {
"path": "export.json", "path": "export.json",
"bucket": "caos-zitadel-exports", "bucket": "caos-zitadel-exports",
"serviceaccount_json": "XXXX" "serviceaccount_json": "XXXX"
}' -o export.json }
}'
``` ```
* "org_ids": to select which organizations should be exported * "org_ids": to select which organizations should be exported
@ -114,12 +115,12 @@ curl --request POST \
--header 'Authorization: Bearer XXXX' \ --header 'Authorization: Bearer XXXX' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data '{ --data '{
"timeout": "10m", "timeout": "10m",
"data_orgsv1_gcs": { "data_orgsv1_gcs": {
"path": "export.json", "path": "export.json",
"bucket": "caos-zitadel-exports", "bucket": "caos-zitadel-exports",
"serviceaccount_json": "XXXX" "serviceaccount_json": "XXXX"
} }
}' }'
``` ```