1. Cloud /
  2. Elastic Cloud Enterprise /
  3. RESTful API

ECE API examples

Note

This documentation applies to the Elastic Cloud Enterprise API only. If you are using Elasticsearch Service, check the Elastic Cloud API information instead.

Learn how to use the Elastic Cloud Enterprise RESTful API by example. Check our setup instructions, and then you’re ready to try out these examples:

  • A first API call: What deployments are there?
  • Create a first deployment: Elasticsearch and Kibana
  • Applying a new plan: Resize and add high availability
  • Updating a deployment: Check on progress
  • Applying a new deployment configuration: Upgrade
  • Dipping a toe into platform automation: Generate a roles token
  • Customize your deployment
  • Remove unwanted deployment templates and instance configurations
  • Secure your settings

You can find additional RESTful API examples in:

  • Configure deployment templates
  • Generate roles tokens
  • Manage Elastic Stack versions
  • Manage security certificates
  • Create an autoscaled deployment
  • Enable cross-cluster search
  • Manage network security through the API
  • Enable Integrations Server through the API
  • Switch from APM to Integrations Server payload

A complete list of available API operations and request/response models are available in the API reference documentation.

Previous
Create an API client
Next
Setting up your environment
  • View as Markdown
  • Edit this page
  • Cloud

  • Cloud
    • Elastic Cloud Enterprise
      • RESTful API
        • API calls
        • How to access the API
          • Access the API using Elastic Cloud Control
          • Access the API from the command line
          • Access the API using a REST application
          • Access the API using the Elastic Cloud Terraform provider
          • Create an API client
        • API examples
          • Setting up your environment
          • A first API call: What deployments are there?
          • Create your first deployment: Elasticsearch and Kibana
          • Applying a new plan: Resize and add high availability
          • Updating a deployment: Checking on progress
          • Applying a new deployment configuration: Upgrade
          • Enable more stack features: Add Enterprise Search to a deployment
          • Dipping a toe into platform automation: Generate a roles token
          • Customize your deployment
          • Remove unwanted deployment templates and instance configurations
          • Secure your settings
        • Changes to index allocation and API
      • Scripts
        • elastic-cloud-enterprise.sh install
        • elastic-cloud-enterprise.sh upgrade
        • elastic-cloud-enterprise.sh reset-adminconsole-password
        • elastic-cloud-enterprise.sh add-stack-version
      • Third party dependencies
        • ECE 4.0
        • ECE 4.1
        • ECE 4.2
    • Elastic Cloud Hosted
      • Hardware
        • GCP
          • VM configurations
          • Choosing a hardware profile
          • Default hardware specifications
            • Regional availability
        • AWS
          • VM configurations
          • FedRAMP VM configurations
          • Choosing a hardware profile
          • Default hardware specifications
            • Regional availability
        • Azure
          • VM configurations
          • Choosing a hardware profile
          • Default hardware specifications
            • Regional availability
      • Regions
        • Available regions, deployment templates, and instance configurations
      • RESTful API
        • Principles
        • Rate limiting
        • Work with Elastic APIs
          • Access the Elasticsearch API console
        • How to access the API
          • Access the API using Elastic Cloud Control
          • Access the API from the command line
          • Access the API using a REST application
          • Access the API using the Elastic Cloud Terraform provider
        • API examples
          • Deployment CRUD operations
          • Other deployment operations
          • Organization operations
        • Changes to index allocation and API
  • Cloud release notes
    • Elastic Cloud Enterprise
      • Known issues
      • Breaking changes
      • Deprecations
    • Elastic Cloud Hosted
      • Known issues
      • Breaking changes
      • Deprecations
Elastic logo

© 2026 Elasticsearch B.V. All Rights Reserved.

  • Terms of Use
  • Privacy