Skip to content

Commit

Permalink
ECS detachInstances endpoint (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantin-lysenko-netapp authored Jan 24, 2024
1 parent 19fa526 commit 62bdf0b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions api/services/ocean/ecs/paths/detachInstances.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
put:
summary: "Detach Instances"
description: >
Detach instances from your Ocean cluster.
operationId: "oceanEcsDetachInstance"
tags:
- "Ocean ECS"
parameters:
- $ref: "../../../../commons/parameters/accountId.yaml"
- $ref: "../../commons/parameters/oceanId.yaml"
requestBody:
required: true
content:
application/json:
schema:
allOf:
- $ref: "../../aws/schemas/detachInstancesRequest.yaml"
responses:
200:
$ref: "../responses/detachInstancesResponse.yaml"
400:
description: "Bad Request"

15 changes: 15 additions & 0 deletions api/services/ocean/ecs/responses/detachInstancesResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: Detach Instances Response
content:
application/json:
schema:
allOf:
- $ref: "../../../../commons/schemas/responseWrapper.yaml"
- type: object
properties:
request:
type: object
properties:
url:
example: "/ocean/aws/ecs/cluster/o-abcd1234/detachInstances"
method:
example: "PUT"
2 changes: 2 additions & 0 deletions api/spot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ paths:
$ref: services/ocean/ecs/paths/cluster-roll.yaml
/ocean/aws/ecs/cluster/{oceanClusterId}/containerInstances:
$ref: services/ocean/ecs/paths/cluster-container-instances.yaml
/ocean/aws/ecs/cluster/{oceanClusterId}/detachInstances:
$ref: services/ocean/ecs/paths/detachInstances.yaml
/ocean/aws/ecs/launchSpec:
$ref: services/ocean/ecs/paths/cluster-launchSpecs.yaml
/ocean/aws/ecs/launchSpec/{oceanLaunchSpecId}:
Expand Down

0 comments on commit 62bdf0b

Please sign in to comment.