Endpoint Redirections

Revert dynamic endpoint redirection

Changed on

Reverts a previously completed dynamic endpoint redirection, restoring the original endpoint configuration. This is available in private preview.

post/v1/endpoint-redirections/{redirectionId}/revert

Request

  • Base URL
    https://api.redislabs.com
  • URL
    https://api.redislabs.com/v1/endpoint-redirections/{redirectionId}/revert
  • Auth
    API key in header x-api-key and API key in header x-api-secret-key and API key in header x-auth-token

Path parameters

redirectionIdstring uuid required

Dynamic endpoint redirection ID.

Response

OK

redirectionIdstring uuid

Unique identifier of the dynamic endpoint redirection. Use it to poll the redirection status.

status'initiated' | 'pending' | 'in-progress' | 'completed' | 'failed' | 'reverted'

Current status of the dynamic endpoint redirection.

sourceDatabaseIdinteger

ID of the source database the endpoint is redirected from.

targetDatabaseIdinteger

ID of the target database the endpoint is redirected to.

isRevertboolean

Whether this redirection reverts a previously completed redirection.

duplicateACLsboolean

Whether the source database ACLs were duplicated to the target database.

startedAtstring date-time

Timestamp when the redirection started.

completedAtstring date-time

Timestamp when the redirection completed.

revertedAtstring date-time

Timestamp when the redirection was reverted, if applicable.

errorMessagestring

Error message describing why the redirection failed, if applicable.

Example response

{
  "redirectionId": "550e8400-e29b-41d4-a716-446655440000",
  "status": "in-progress",
  "sourceDatabaseId": 51404231,
  "targetDatabaseId": 51404232,
  "duplicateACLs": true,
  "startedAt": "2024-05-01T13:03:08Z",
  "completedAt": "2024-05-01T13:05:42Z",
  "endpoints": [
    {
      "sourceEndpointName": "redis-12345",
      "targetEndpointName": "redis-12346",
      "sourceEndpointType": "public",
      "targetEndpointType": "public"
    }
  ]
}

Changes