Skip to content

Destroy environment or container

Alex O. Karasulu edited this page Mar 9, 2018 · 2 revisions
swagger: '2.0'
info:
  title: Console API
  description: Subutai Console API
  version: "1.0.0"
host: localhost:9999
schemes:
  - https
basePath: /rest/v1/environments
paths:
  /{env-id}:
    delete:
      summary: Destroy environment
      description:
        The endpoint allows to destroy environment
      tags:
        - Environment
      parameters:
        - name: env-id
          in: path
          description: id of environment
          required: true
          type: string

      responses:
        202:
          description: Http ACCEPTED status is returned in case environment destruction started successfully
        default:
          description: Unexpected error
          schema:
            $ref: '#/definitions/Error'
            
  /containers/{cont-id}:
    delete:
      summary: Destroy container
      description:
        The endpoint allows to destroy container
      tags:
        - Environment
        - Container
      parameters:
        - name: cont-id
          in: path
          description: id of container
          required: true
          type: string 

      responses:
        202:
          description: Http ACCEPTED status is returned in case container destruction started successfully
        default:
          description: Unexpected error
          schema:
            $ref: '#/definitions/Error'          

definitions:

  Error:
    type: object
    properties:
      error:
        type: string