Redis

    • Redis Enterprise Cloud
      • Overview
      • Cloud Migration
      • Cloud-Native
      • Pricing
    • Cloud Partners
      • Azure
      • Google Cloud
      • AWS
    • Redis Enterprise Software
      • Overview
      • Deployment
      • Pricing
      • Download Center
    • Redis Enterprise
      • Advantages
      • Data Structures
      • Modules
      • Multi-Model
      • RedisInsight
      • Technology
    • Deployment
      • Method
      • Infrastructure
      • Customer Success
      • Support
    • Modules
      • RediSearch
      • RedisJSON
      • RedisGears
      • RedisAI
      • RedisGraph
      • RedisTimeSeries
      • RedisBloom
    • More
      • Connectors
      • Clients
      • RedisEdge
    • Use Cases
      • Caching
      • Session Management
      • Fraud Detection
      • Real Time Inventory
      • Claims Processing
      • Leaderboards
      • Messaging
      • Fast Data Ingest
      • Microservices
    • Industries
      • Financial Services
      • Retail
      • Healthcare
    • Start Here
      • Developer Hub
      • Community
      • Get Started with Modules
      • Redis Best Practices
    • Learn
      • Documentation
      • Blog
      • University
      • Certification
      • e-Books
    • Redis Enterprise Cloud
      Expand all Collapse all
      • Quick Start
      • Subscriptions
        • Create a Fixed subscription
        • Create a Flexible subscription
        • View Fixed subscription
        • View Flexible subscription
        • Delete subscription
      • Databases
        • Create database
        • View and edit databases
        • Delete database
        • Monitor performance
        • Back up data
        • Import data
        • Migrate databases
        • Flush data
        • Configuration
          • Clustering
          • Data eviction
          • Data persistence
          • High availability
      • Billing & payments
      • Cloud accounts
        • Create IAM resources
          • AWS console
          • CloudFormation
          • Terraform
      • Administration
        • Access management
        • System logs
        • Usage reports
        • Changing Redis Cloud plans
        • AWS zone mapping
        • Manage account memberships
      • Security
        • Shared responsibility model
        • Cloud database security
          • Passwords, users, and roles
          • Transport Layer Security (TLS)
          • Network security
        • CIDR allow list
        • Encryption at rest
        • Multi-factor authentication
        • Single sign-on
        • VPC peering
      • REST API
        • Get started
          • Enable the API
          • Manage API keys
          • Use the API
          • Manage tasks
          • API request lifecycle
        • Examples
          • Create and edit subscriptions
          • Create databases
          • Update databases
          • Database backup and import
          • Estimate cost
          • Audit using Service Log
          • View account information
          • Manage cloud accounts
      • FAQs
    • Redis Enterprise Software
      Expand all Collapse all
      • Technical overview
      • Install and setup
        • Get started
        • Docker
        • Supported platforms
        • File locations
        • AWS EC2 configuration
        • Customize install locations
        • Customize user and group
        • Manage install questions
        • Offline Installation
        • Upgrade existing deployment
        • Uninstall existing deployment
        • Additional configuration
          • AWS Route 53 DNS
          • CentOS/RHEL 7 firewall
          • Cluster DNS configuration
          • Cluster load balancer setup
          • Linux swap configuration
          • mDNS client prerequisites
          • Socket file location
      • Databases
        • Create a database
        • Configure database settings
          • Edit and delete databases
          • Memory limits
          • Eviction policy
          • Database persistence
        • Active-Active databases
          • Get started with Active-Active
          • Create Active-Active database
          • Edit Active-Active database configuration
          • Delete Active-Active database
          • Develop apps
          • App failover
          • Data types
            • Hashes
            • HyperLogLog
            • Lists
            • Sets
            • Sorted sets
            • Streams
            • Strings and bitfields
        • Import and export data
          • Import data
          • Schedule periodic backups
          • Export data from a database
          • Flush database
          • Migrate to Active-Active
        • Recover a database
        • Create Replica Of database
        • Replica Of
      • Concepts and architecture
        • Data Access Architecture
          • Consistency and durability
          • Discovery Service
          • Redis OSS Cluster API Architecture
        • Durability and availability
          • Database clustering
          • Database replication
          • Rack-zone awareness
        • Geo-Distributed Active-Active Redis Applications
        • Memory and performance
          • Memory management
          • Redis on Flash
          • Shard placement policy
          • Disk sizing for heavy writes
        • Redis Enterprise Software compatibility with open source Redis
        • Terminology
      • Administration
        • Planning your Cluster Deployment
          • Cluster environment optimization
          • Configuring Shard Placement
          • Hardware requirements
          • Networking
            • Multi-IP and IPv6
            • Multiple Active Proxy Support
            • Network Port Configurations
            • Public and private endpoints
            • Use the OSS Cluster API
          • Persistent node storage
          • Synchronizing cluster node clocks
        • Setting up a New Cluster
        • Adding a Cluster Node
        • Benchmark
        • Cluster Maintenance
          • Cluster Name, Email Service, Time Zone, and License
          • Cluster License Keys
          • Redis on Flash
          • Distributed Synchronization for Replicated Databases
          • Maintenance mode
          • Removing a Cluster Node
          • Replacing a Faulty Cluster Node
        • Database Maintenance
          • Causal Consistency in an Active-Active Database
          • High availability for replicas
        • Monitoring with Metrics and Alerts
          • Metrics in the Admin Console
          • Redis Enterprise Software Integration with Prometheus
          • Metrics in Prometheus
          • Redis Enterprise Software Integration with Nagios
        • Logging and Audit Events
          • rsyslog logging
            • Cluster alerts/events
            • Database alerts/events
            • Node alerts/events
            • User events
          • Viewing Redis Slow Log
        • Troubleshooting
          • Creating a Support Package
          • Database Metrics Not Collected During Resharding
          • Disabling Services to Free System Memory
          • Nodes on Different VLANs
          • Recover a cluster
          • Replica Of Repeatedly Fails
        • Product lifecycle
        • User password rotation
      • Security
        • Database access control
        • Internode encryption
        • Admin console security
          • Authentication and authorization
          • Manage encryption
        • LDAP authentication
          • Enable role-based LDAP
          • Map LDAP groups to roles
          • Update database ACLs
          • Migrate to role-based LDAP
        • Log security
        • Certificates
          • Create certificates
          • Update certificates
        • TLS
          • Enable TLS
          • Configure TLS protocol
          • Configure cipher suites
      • Connections
        • Supported connection clients
        • Test client connectivity
      • FAQs
      • Reference
        • Redis clients
          • Node.js (node_redis)
          • Node.js (ioredis)
          • .NET
          • Python
          • Java
          • PHP (Predis)
          • C
          • Ruby
          • Drupal
        • Benchmark Redis on Flash
        • CRDB-CLI commands
        • Node Verification Utility (rlcheck)
        • REST API
          • Requests
            • actions
            • bdbs
              • actions
                • backup_reset_status
                • export
                • export_reset_status
                • import
                • import_reset_status
                • optimize_shards_placement
              • alerts
              • crdt_sources/alerts
              • modules
                • config
                • upgrade
              • passwords
              • peer_stats
              • replica_sources/alerts
              • stats
                • last
              • sync_source_stats
              • upgrade
            • bootstrap
              • validate
            • cluster
              • actions
              • alerts
              • certificates
                • rotate
              • ldap
              • module-capabilities
              • services_configuration
              • stats
                • last
              • update_cert
            • crdb_tasks
            • crdbs
              • flush
              • health_report
              • purge
              • updates
            • endpoints/stats
            • jsonschema
            • ldap_mappings
            • license
            • logs
            • modules
              • config/bdb
              • upgrade/bdb
            • nodes
              • actions
              • alerts
              • stats
                • last
            • redis_acls
            • roles
            • shards/stats
              • last
            • suffix
            • suffixes
            • users
              • authorize
              • password
              • refresh_jwt
          • Objects
            • action
            • alert
            • bdb
              • backup_location/export_location
              • dataset_import_sources
              • replica_sources status
              • replica_sync
              • snapshot_policy
              • status
              • syncer_sources
            • bdb_group
            • bootstrap
              • cluster_identity
              • credentials
              • identity
              • limits
              • node_identity
              • paths
              • policy
            • check_result
            • cluster
              • alert_settings
              • cluster_alert_settings_with_threshold
            • cluster_settings
            • crdb
              • cluster_info
              • database_config
              • health_report
                • health_report_configuration
              • instance_info
              • modify_request
            • crdb_task
            • db_alerts_settings
              • bdb_alert_settings_with_threshold
            • job_scheduler
              • backup_job_settings
              • cert_rotation_job_settings
              • log_rotation_job_settings
              • node_checks_job_settings
              • redis_cleanup_job_settings
              • rotate_ccs_job_settings
            • jwt_authorize
            • ldap
            • ldap_mapping
            • module
            • node
            • proxy
            • redis_acl
            • role
            • services_configuration
              • cm_server
              • crdb_coordinator
              • crdb_worker
              • mdns_server
              • pdns_server
              • saslauthd
              • stats_archiver
            • shard
              • backup
              • loading
              • sync
            • state-machine
            • statistics
              • cluster metrics
              • DB metrics
              • node metrics
              • shard metrics
            • suffix
            • user
          • Permissions
        • rladmin
      • Release notes
        • 6.2.10 (February 2022)
        • 6.2.8 (October 2021)
        • 6.2.4 (August 2021)
        • 6.0.20 (April 2021)
        • 6.0.12 (January 2021)
        • 6.0.8 (September 2020)
        • 6.0 (May 2020)
        • 5.6.0 (April 2020)
        • 5.5 Preview (April 2019)
        • Previous releases
          • 5.4.14 (February 2020)
          • 5.4.10 (December 2019)
          • 5.4.6 (July 2019)
          • 5.4.4 (June 2019)
          • 5.4.2 (April 2019)
          • 5.4 (December 2018)
          • 5.2.2 (August 2018)
          • 5.3 beta(July 2018)
          • 5.2 (June 2018)
          • 5.0.2 (2018 March)
          • 5.0 (November 2017)
          • 4.5 (May 2017)
          • 4.4 (December 2016)
          • 4.3.0-230 (August 2, 2016)
          • 4.2.1-30 (October 18, 2015)
          • 4.0.0-49 (June 18, 2015)
          • 0.99.5-24 (February 15, 2015)
          • 0.99.5-11 (January 5, 2015)
    • Redis Enterprise Software on Kubernetes
      Expand all Collapse all
      • Architecture
        • What is an operator?
      • Deployment
        • Kubernetes
        • OpenShift
          • OpenShift OperatorHub
          • OpenShift CLI
        • TKGI
        • Deploy with kustomize
        • Use a private container registry
      • Redis Enterprise clusters (REC)
        • Connect to the admin console
        • Create Active-Active databases
        • Upgrade a Redis cluster
        • Recover a Redis cluster
        • Delete custom resources
        • Export metrics to Prometheus
      • Redis Enterprise databases (REDB)
        • Manage databases
        • Ingress routing
        • Istio ingress routing
        • Create replica databases
      • Security
        • LDAP authentication
        • Manage REC credentials
        • Manage REC certificates
        • Add client certificates
        • Internode encryption
      • Logs
        • Collect logs
      • Memory
        • Persistent volumes
        • Sizing and scaling
        • Node selection
        • Pod stability
      • Reference
        • Supported distributions
        • REC options
        • REDB options
      • Release notes
        • 6.2.10-34 (May 2022)
        • 6.2.10-4 (March 2022)
        • 6.2.8-15 (January 2022)
        • 6.2.8-11 (January 2022)
        • 6.2.8-2 (November 2021)
        • 6.2.4-1 (September 2021)
        • 6.0.20-12 (July 2021)
        • 6.0.20-4 (May 2021)
        • 6.0.12-5 (February 2021)
        • 6.0.8-20 (December 2020)
        • 6.0.8-1 (October 2020)
        • 6.0.6-24 (August 2020)
        • 6.0.6-23 (August 2020)
        • 6.0.6-11 (July 2020)
        • 6.0.6-6 (June 2020)
        • 5.4.14-2 (March 2020)
        • 5.4.10-8 (January 2020)
      • FAQs
    • Redis Stack and modules
      Expand all Collapse all
      • Quick start
      • Install and upgrade modules
        • Install on a cluster
        • Enable for a database
        • Upgrade modules
        • Package modules
      • Module lifecycle
      • Enterprise feature compatibility
      • Redis Stack
      • RediSearch
        • Quick start
        • Search active-active databases
        • Upgrade a database
        • Release notes
          • v2.4 (March 2022)
          • v2.2 (November 2021)
          • v2.0 (September 2020)
          • v1.6 (January 2020)
          • v1.4 (August 2018)
          • v1.2 (June 2018)
          • v1.1 (April 2018)
          • v1.0 (April 2018)
      • RedisJSON
        • Quick start
        • Release notes
          • v2.0 (November 2021)
          • v1.0 (December 2017)
      • RedisGraph
        • Quick start
        • Release notes
          • v2.8 (February 2022)
          • v2.4 (March 2021)
          • v2.2 (November 2020)
          • v2.0 (January 2020)
          • v1.2 (April 2019)
          • v1.0 (November 2018)
      • RedisTimeSeries
        • Quick start
        • Release notes
          • v1.6 (January 2022)
          • v1.4 (September 2020)
          • v1.2 (January 2020)
          • v1.0 (June 2019)
      • RedisBloom
        • Quick start
        • Release notes
          • v2.2 (December 2019)
          • v2.0 (June 2019)
          • v1.1 (February 2019)
          • v1.0 (September 2017)
      • RedisGears
        • Install
        • Run with Python
          • Quick start
          • Install
          • Recipes
            • Write-behind caching
        • Run with JVM
          • Quick start
          • Install
          • Commands
            • RG.JDUMPSESSIONS
            • RG.JEXECUTE
          • Classes and functions
            • GearsBuilder
              • accumulate
              • accumulateBy
              • asyncFilter
              • asyncForeach
              • asyncMap
              • callNext
              • callNextArray
              • collect
              • configGet
              • count
              • CreateGearsBuilder
              • execute
              • executeArray
              • filter
              • flatMap
              • foreach
              • hashtag
              • localAccumulateBy
              • log
              • map
              • register
              • repartition
              • run
            • GearsFuture
              • setError
              • setResult
            • Readers
              • CommandOverrider
              • CommandReader
              • JavaReader
              • KeysOnlyReader
              • KeysReader
              • ShardsIDReader
              • StreamReader
          • Recipes
            • Caching strategies
        • Release notes
          • v1.2 (February 2022)
          • v1.0 (May 2020)
      • RedisAI
        • Quick start
        • Release notes
          • v1.2 (November 2021)
          • v1.0 (May 2020)
    • RedisInsight
      Expand all Collapse all
      • Installation
        • Install the RedisInsight Desktop Client
        • Installing RedisInsight on Docker
        • Installing RedisInsight on Kubernetes
        • Installing RedisInsight on AWS EC2
        • Configuring RedisInsight
      • Administration
        • Add database
        • Automatically Discovering Databases
        • Adding Databases Programmatically
        • Adding Databases via GET URL
        • Performance Metrics
        • Cluster Management
        • Browser
        • CLI
        • Memory analysis
        • Profiler
        • Slowlog
        • Configuration
        • View Java Serialized Objects in Redis
        • Troubleshooting RedisInsight
      • Release notes
        • v2.0 (Nov 2021)
        • v1.11 (Oct 2021)
        • v1.10 (Mar 2021)
        • v1.9 (Jan 2021)
        • v1.8 (Mar 2020)
        • v1.7 (Sep 2020)
        • v1.6 (June 2020)
        • v1.5 (May 2020)
        • v1.4 (Apr 2020)
        • v1.3 (Mar 2020)
        • v1.2 (Jan 2020)
        • v1.1 (Dec 2019)
        • v1.0 (Nov 2019)
        • RDBTools (2019)
          • v0.9.42 (22 Jul 2019)
          • v0.9.41 (4 Jul 2019)
          • v0.9.40.1 (Jun 2019)
          • v0.9.40 (17 May 2019)
          • v0.9.39 (8 May 2019)
          • v0.9.38 (3 May 2019)
          • v0.9.37 (10 Apr 2019)
          • v0.9.36 (Mar 2019)
          • v0.9.35 (Feb 2019)
          • v0.9.34.2 (11 Feb 2019)
          • v0.9.34.1 (7 Feb 2019)
          • v0.9.34.0 (4 Feb 2019)
          • v0.9.34.0 (23 Jan 2019)
          • v0.9.32 (7 Jan 2019)
      • FAQs
      • Memory Optimization for Redis
    • Glossary
    • Embeds
    Redis Documentation > Redis Enterprise Cloud > REST API > Examples

      REST API Examples

        Create and edit subscriptions

        This article describes how to create and manage a subscription using `cURL` commands.

        Create and manage databases

        This article describes how to create and manage a database using `cURL` commands.

        Update databases

        How to construct requests that update an existing database.

        Database backup and import

        When you create or update a database, you can specify the backup path. The import API operation lets you import data from various source types and specified locations.

        Estimate cost

        How to evaluate the cost of a specific subscription or database without changing existing resources.

        Audit using Service Log

        Use the service log to track and audit actions performed in the account

        View account information

        Get initial information on account parameters

        Create and manage cloud accounts

        Cloud accounts specify which account to use when creating and modifying infrastructure resources.

      Edit on GitHub
      Updated: October 18, 2021
      Download PDF
      Top 
      Previous:The API request lifecycle
      Next: Create and edit subscriptions   
      Company
      • About Us
      • Team
      • Careers
      • Newsroom
      • Contact Us
      • Support
      • Compliance
      • Legal Notices
      Resources
      • Blog
      • Events
      • Webinars
      • Whitepapers
      • Datasheets
      • Tech Videos
      • Tech Talks
      Partners
      • Partner Center
      • Find a Partner
      Customers
      • Customer Stories
      • Case Studies

      TRY REDIS ENTERPRISE CLOUD FREE

      Redis Enterprise Cloud provides complete automation of day-to-day database operations. Start now with 30MB of free storage.

      Try Now


      © 2022 Redis. Redis and the cube logo are registered trademarks of Redis, Inc.

      By continuing to use this site, you consent to our updated privacy agreement as described here. You can change your cookie settings at any time as described here but parts of our site will not function correctly without them.

      Continue
      ×