Replication

Replication Export

To trigger a replication export for an entire Vault:

Replication Export

POST https://vault.provide.services/api/v1/

Replicate the contents (i.e., keys and secrets) of an entire

Vault

Path Parameters

Name
Type
Description

id*

string

id of

Vault

to be replicated

Headers

Name
Type
Description

authorization*

string

bearer scope to an entity with sufficient permissions for target

vault

Request Body

Name
Type
Description

credential*

string

destinations*

object

endpoint*

string

stream*

ReplicationExportStream

type*

string

// ReplicationExport is a configured export stream used to replicate
// the contents (i.e., keys and secrets) of an entire vault
type ReplicationExport struct {
	Credential   string                  `json:"credential"`
	Destinations []string                `json:"destinations"`
	Endpoint     string                  `json:"endpoint"`
	Stream       ReplicationExportStream `json:"-"`
	Type         *string                 `json:"type"`
}

Replication Export Stream

Interface for broadcasting replication events

Replication Export Stream

GET

Broadcasts replication events

Request Body

Name
Type
Description

export

String

nc

String

// natsReplicationExportStream NATS impl of the `ReplicationExportStream` interface
type natsReplicationExportStream struct {
	export *ReplicationExport
	nc     *nats.Conn
}

Last updated