---
type: api
title: Shutdown Deployment Stateless Resource
description: Shut down Stateless Resource belonging to a given Deployment.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/v4/operation/operation-shutdown-deployment-stateless-resource
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/v4/operation/operation-shutdown-deployment-stateless-resource
products:
  - Elastic Cloud Enterprise
---

# Shutdown Deployment Stateless Resource

## Paths

- `POST` `/deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown`

#### Path parameters

- `deployment_id` (string) — required
  Identifier for the Deployment.
- `stateless_resource_kind` (enum) — required
  The kind of stateless resource
  Values: `kibana`, `apm`, `appsearch`, `enterprise_search`, `integrations_server`
- `ref_id` (string) — required
  User-specified RefId for the Resource (or '_main' if there is only one).

## Description

Shut down Stateless Resource belonging to a given Deployment.
Kibana cannot be shut down on Elasticsearch Service as it is required for Elasticsearch administrative functions, such as Snapshot Lifecycle Management and version upgrades.

## Authentication

- Basic: `Authorization: Basic <credentials>`
- Api key: `Authorization: <value>`

## Query string parameters

- `hide` (boolean) — optional
  Hide cluster on shutdown. Hidden clusters are not listed by default. Only applicable for Platform administrators.
- `skip_snapshot` (boolean · default: false) — optional
  If true, will skip taking a snapshot of the cluster before shutting the cluster down (if even possible)

## Responses

#### `200`

Standard response

`application/json`

- `warnings` (object[])
  List of warnings generated from validating command
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the warning that occurred
#### `400`

Parameter is restricted and can only be set by a Platform administrator. (code: `deployments.restricted_parameter`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

#### `404`

* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)
* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

#### `500`

We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code examples

#### curl

```curl
curl -X POST "${API_URL}/deployments/${DEPLOYMENT_ID}/kibana/${REF_ID}/_shutdown" \
  -u "${USERNAME}:${PASSWORD}"
```

