Authorize periodic export for one replication pair
curl --request POST \ --url https://auth.example.com/api/admin/replication-backups/grants \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "pairId": "example", "sourceDeploymentId": "example", "destinationDeploymentId": "example", "selection": { "settings": true, "users": true, "admin": true, "artifacts": true, "logs": { "audit": true, "other": true, "sensitive": true, "period": 7 } }, "expiresAt": 1 }'Fresh human session MFA within five minutes and backup read, manage and export permissions are required. Sensitive selections additionally require the sensitive-backup permission. Audit persistence is required before any grant mutation. Returns a random 256-bit bearer credential once. Only its SHA-256 hash is stored. The immutable grant fixes source tenant, pair, source and destination deployment, issuer and selection. Expiry must be within thirty days. This credential cannot import data, approve restores or access the ordinary Admin API. The source must match installed replication configuration; the administrator explicitly approves the destination deployment identifier. No backup passphrase is accepted.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
object
Unix milliseconds; after now and no more than thirty days from now.
Responses
Section titled “ Responses ”Operation result. Responses are not cacheable.
object
object
object
object
Example
{ "grant": { "scope": { "version": 1, "kind": "tenant_backup_export", "selection": { "logs": { "period": 7 } } } }}Request rejected; no additional capability is granted.
Request rejected; no additional capability is granted.
Request rejected; no additional capability is granted.
Request rejected; no additional capability is granted.
Request rejected; no additional capability is granted.