跳转到主要内容
POST
POST /admin/api/import

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json
export
object
必填

One instance's configuration as a document.

mode
默认值:merge

What an import does with a row the destination already has under that id.

Allowed value: "merge"
sourceMasterKey
string | null

The 32-byte master key the source sealed its credentials with, in standard base64. With it every secret is opened and resealed under this instance's codec; without it the blobs are stored verbatim, which only works if both instances share a key.

响应

Success

What one import did. The counters are rows, across every kind; the warnings are the things that were silently changed rather than refused, which is the only place a caller learns that a credential arrived unusable.

created
integer<uint64>
必填
必填范围: x >= 0
credentialsResealed
integer<uint64>
必填
必填范围: x >= 0
credentialsSkipped
integer<uint64>
必填
必填范围: x >= 0
skipped
integer<uint64>
必填

Rows the document named that were not written, which today is exactly the credentials whose secret could not be opened. What Replace deleted is reported as a warning instead: a removal is not a skip.

必填范围: x >= 0
updated
integer<uint64>
必填
必填范围: x >= 0
warnings
string[]
必填