---
title: "POST /devops/services/{extension_id}/environments/{id}/stop"
method: POST
path: "/devops/services/{extension_id}/environments/{id}/stop"
tags: ["DevOps"]
---

# POST /devops/services/{extension_id}/environments/{id}/stop

`POST /devops/services/{extension_id}/environments/{id}/stop`

Stop all running Extension instances of an Environment
 given its `id` and `extension_id`. (`cloud` mode only).

## Path parameters

- `extension_id` string, required
- `id` string, required

## Response `200`

- EaasEnvironment — Extension Environment. Is used to represent a concrete environment for the Extension. `id` -- unique environment id on Connect. `type` -- type of the environment: `Test`, `Development` or `Production`. `runtime` -- type of the runtime: `Local` or `Cloud`. `external_id` -- id of the environment in external system (i.e. Container ID on Azure). `status` -- status of the environment. One of `Uninitialized`, `Deploying`, `Running`, `Stopping`, `Stopped`, `Uninitialized`, `Connected`, `Disconnected` or `Errored`. `git` -- in case if environment is of `Cloud` type, this property contains git details from where the extension code should be downloaded. `readme_url` -- local path on repository to README.md file. `changelog_url` -- local path on repository to CHANGELOG.md file. `configuration_changed` -- Flag that indicates that configuration has changed and need to be updated. `resources` -- hardware resources like cpu and memory. `configuration` -- specific configuration values. `jwt_secret` -- JWT token used for the authentication. `instances` -- instances associated to the given environment. `status` -- status of the environment. One of `Uninitialized`, `Deploying`, `Running`, `Stopping` or `Stopped`. `configuration_changed` -- Flag that indicates that configuration has changed and need to be updated. `ui_modules` -- JSON object of ui module configuration of concrete extension. `icon` -- icon of concrete environment for extension.
  - `id` string
  - `type` 'production' | 'test' | 'development'
  - `runtime` 'local' | 'cloud'
  - `external_id` string, uuid
  - `git` EaasGitInfo — Git Info. Is used to represent git repository information `auth` -- object containing `username` and `password` to git repository if required. `url` -- repository URL. `tag` -- tag to be used. Connect will checkout the code according to this tag. `commit` -- commit to be used. Connect will checkout the code according to this commit.
    - `url` string, uri, required
    - `tag` string, required
    - `commit` string, required
    - `auth` EaasGitCredentialsModel — Git Credentials. Is used to represent input object to request git tags. You need to provide `username` and `password` to your git repository as input data.
      - `username` string, nullable
      - `password` string, nullable
  - `readme_url` string, uri
  - `changelog_url` string, uri
  - `schedulables` object, nullable
  - `resources` EaasResource — Resources. Is used to represent the hardware resources like cpu and memory attached to an Environment
    - `cpu` integer, required
    - `memory` integer, required
  - `features` EaasFeatures
    - `event_processing_available` boolean
    - `custom_api_available` boolean
    - `web_app_available` string
    - `anvil_app_available` boolean
    - `transformation_app_available` boolean
  - `jwt_secret` string, nullable
  - `status` 'uninitialized' | 'building' | 'deploying' | 'standby' | 'running' | 'upgrading' | 'stopping' | 'stopped' | 'connected' | 'disconnected' | 'errored'
  - `log_level` 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR'
  - `anvil_callables` object, nullable
  - `hostname` string
  - `domain` string
  - `configuration` EaasVariableReference[]
    - `name` string, required
    - `value` string, nullable
  - `configuration_changed` boolean
  - `instances` EaasInstanceReference[]
    - `id` string
    - `container_id` string, nullable
    - `runtime` 'local' | 'cloud'
    - `status` 'connected' | 'disconnected' | 'decommissioned'
    - `events` object
      - `created` object
        - `at` string, datetime
        - `by` object
          - `id` string
          - `name` string
          - `icon` string
      - `stopped` object
        - `at` string, datetime
        - `by` object
          - `id` string
          - `name` string
          - `icon` string
      - `decommissioned` object
        - `at` string, datetime
        - `by` object
          - `id` string
          - `name` string
          - `icon` string
  - `extension` EaasExtensionReference, required
    - `id` string, required
    - `name` string
    - `owner` EaasAccountReference
      - `id` string
      - `name` string, required
      - `icon` string, nullable
      - `role` 'vendor' | 'distributor' | 'reseller'
    - `icon` string, binary, nullable
    - `extension_id` string
  - `icon` string, nullable
  - `ui_modules` string
  - `current_image` EaasContainerImage
    - `name` string, nullable
    - `base_image` string, required
    - `repository_url` string, required
    - `repository_tag` string, required
    - `repository_commit` string, required
    - `repository_username` string, nullable
    - `command` string, required
  - `target_image` EaasContainerImage
    - `name` string, nullable
    - `base_image` string, required
    - `repository_url` string, required
    - `repository_tag` string, required
    - `repository_commit` string, required
    - `repository_username` string, nullable
    - `command` string, required
  - `replicas` string
  - `base_image_override` string, nullable — Operator-only override of the eaas-runner base image to build this environment (wins over the API base_image_version). Empty = use the global CloudSettings image.

## Other responses

- `400`

---

[API](https://skmtc.net/cloudblue/apis/cloudblue-connect-api.md) · [All operations](https://skmtc.net/cloudblue/apis/cloudblue-connect-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudblue/cloudblue-connect-api/versions/54fef191d46c/schema)
