To retrieve the configured eviction policy for an existing Redis cluster, send a GET request to /v2/databases/$DATABASE_ID/eviction_policy.
The response will be a JSON object with an eviction_policy key. This will be set to a string representing the eviction policy.
643 matches
60 actions
DigitalOcean
60 actions
- Create a New DomainPOSTv1.0.0
- Create a New Domain RecordPOSTv1.0.0
- Get Customer BalanceGETv1.0.0
- Get NamespaceGETv1.0.0
- Get TriggerGETv1.0.0
- Get User InformationGETv1.0.0
- List All ActionsGETv1.0.0
- List All Actions for a Floating IPGETv1.0.0
- List All Actions for an ImageGETv1.0.0
- List all app alertsGETv1.0.0
- List All CDN EndpointsGETv1.0.0
- List All CertificatesGETv1.0.0
- List All Database ClustersGETv1.0.0
- List all Database UsersGETv1.0.0
- List All DatabasesGETv1.0.0
- List All Domain RecordsGETv1.0.0
- List All DomainsGETv1.0.0
- List All Droplet NeighborsGETv1.0.0
- List All FirewallsGETv1.0.0
- List All Floating IPsGETv1.0.0
- List All Read-only ReplicasGETv1.0.0
- List App RegionsGETv1.0.0
- List App TiersGETv1.0.0
- List Associated Resources for a DropletGETv1.0.0
- List Backups for a Database ClusterGETv1.0.0
- List Billing HistoryGETv1.0.0
- List Connection Pools (PostgreSQL)GETv1.0.0
- List Database OptionsGETv1.0.0
- List Default Project ResourcesGETv1.0.0
- List Firewall Rules (Trusted Sources) for a Database ClusterGETv1.0.0
- List Instance SizesGETv1.0.0
- List NamespacesGETv1.0.0
- List Neighbors for a DropletGETv1.0.0
- List TriggersGETv1.0.0
- Retrieve a Droplet ActionGETv1.0.0
- Retrieve an App DeploymentGETv1.0.0
- Retrieve an App TierGETv1.0.0
- Retrieve an Existing ActionGETv1.0.0
- Retrieve an Existing ActionGETv1.0.0
- Retrieve an Existing AppGETv1.0.0
- Retrieve an Existing CDN EndpointGETv1.0.0
- Retrieve an Existing CertificateGETv1.0.0
- Retrieve an Existing DatabaseGETv1.0.0
- Retrieve an Existing Database ClusterGETv1.0.0
- Retrieve an Existing Database Cluster ConfigurationGETv1.0.0
- Retrieve an Existing Database UserGETv1.0.0
- Retrieve an Existing DomainGETv1.0.0
- Retrieve an Existing Domain RecordGETv1.0.0
- Retrieve an Existing DropletGETv1.0.0
- Retrieve an Existing FirewallGETv1.0.0
- Retrieve an Existing Floating IPGETv1.0.0
- Retrieve an Existing Floating IP ActionGETv1.0.0
- Retrieve an Existing Read-only ReplicaGETv1.0.0
- Retrieve an Instance SizeGETv1.0.0
- Retrieve App Daily Bandwidth MetricsGETv1.0.0
- Retrieve Existing Connection Pool (PostgreSQL)GETv1.0.0
- Retrieve the Eviction Policy for a Redis ClusterGETv1.0.0
- Retrieve the Public CertificateGETv1.0.0
- Retrieve the SQL Modes for a MySQL ClusterGETv1.0.0
- Retrieve the Status of an Online MigrationGETv1.0.0
Infrastructure/DigitalOcean
Retrieve the Eviction Policy for a Redis Cluster
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
{
"type": "object",
"properties": {
"database_cluster_uuid": {
"type": "string",
"format": "uuid"
}
},
"required": [
"database_cluster_uuid"
],
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
{
"required": [
"eviction_policy"
],
"properties": {
"eviction_policy": {
"type": "string",
"description": "A string specifying the desired eviction policy for the Redis cluster.\n\n- `noeviction`: Don't evict any data, returns error when memory limit is reached.\n- `allkeys_lru:` Evict any key, least recently used (LRU) first.\n- `allkeys_random`: Evict keys in a random order.\n- `volatile_lru`: Evict keys with expiration only, least recently used (LRU) first.\n- `volatile_random`: Evict keys with expiration only in a random order.\n- `volatile_ttl`: Evict keys with expiration only, shortest time-to-live (TTL) first.",
"enum": [
"noeviction",
"allkeys_lru",
"allkeys_random",
"volatile_lru",
"volatile_random",
"volatile_ttl"
]
}
}
}