diff --git a/api/sys_generate_root.go b/api/sys_generate_root.go index ec267a3d63..410ccf4c60 100644 --- a/api/sys_generate_root.go +++ b/api/sys_generate_root.go @@ -5,7 +5,7 @@ func (c *Sys) GenerateRootStatus() (*GenerateRootStatusResponse, error) { } func (c *Sys) GenerateDROperationTokenStatus() (*GenerateRootStatusResponse, error) { - return c.generateRootStatusCommon("/v1/sys/generate-dr-operation-token/attempt") + return c.generateRootStatusCommon("/v1/sys/replication/dr/secondary/generate-operation-token/attempt") } func (c *Sys) generateRootStatusCommon(path string) (*GenerateRootStatusResponse, error) { @@ -26,7 +26,7 @@ func (c *Sys) GenerateRootInit(otp, pgpKey string) (*GenerateRootStatusResponse, } func (c *Sys) GenerateDROperationTokenInit(otp, pgpKey string) (*GenerateRootStatusResponse, error) { - return c.generateRootInitCommon("/v1/sys/generate-dr-operation-token/attempt", otp, pgpKey) + return c.generateRootInitCommon("/v1/sys/replication/dr/secondary/generate-operation-token/attempt", otp, pgpKey) } func (c *Sys) generateRootInitCommon(path, otp, pgpKey string) (*GenerateRootStatusResponse, error) { @@ -56,7 +56,7 @@ func (c *Sys) GenerateRootCancel() error { } func (c *Sys) GenerateDROperationTokenCancel() error { - return c.generateRootCancelCommon("/v1/sys/generate-dr-operation-token/attempt") + return c.generateRootCancelCommon("/v1/sys/replication/dr/secondary/generate-operation-token/attempt") } func (c *Sys) generateRootCancelCommon(path string) error { @@ -73,7 +73,7 @@ func (c *Sys) GenerateRootUpdate(shard, nonce string) (*GenerateRootStatusRespon } func (c *Sys) GenerateDROperationTokenUpdate(shard, nonce string) (*GenerateRootStatusResponse, error) { - return c.generateRootUpdateCommon("/v1/sys/generate-dr-operation-token/update", shard, nonce) + return c.generateRootUpdateCommon("/v1/sys/replication/dr/secondary/generate-operation-token/update", shard, nonce) } func (c *Sys) generateRootUpdateCommon(path, shard, nonce string) (*GenerateRootStatusResponse, error) {