diff --git a/api/services/ocean/aws/paths/amiAutoUpdate.yaml b/api/services/ocean/aws/paths/amiAutoUpdate.yaml new file mode 100644 index 000000000..01d439909 --- /dev/null +++ b/api/services/ocean/aws/paths/amiAutoUpdate.yaml @@ -0,0 +1,22 @@ +post: + summary: "Ami Auto Update" + description: > + Updates Cluster's VNG's AMI to the latest version available under to the cluster's and VNGs restrictions. + operationId: "oceanAwsAmiAutoUpdate" + tags: + - "Ocean AWS" + parameters: + - $ref: "../../commons/parameters/oceanClusterId.yaml" + - $ref: "../../../../commons/parameters/accountId.yaml" + requestBody: + required: false + content: + application/json: + schema: + allOf: + - $ref: "../schemas/AmiAutoUpdate.yaml" + responses: + 200: + $ref: "../responses/filteredInstanceTypes.yaml" + 400: + description: "Bad Request" diff --git a/api/services/ocean/aws/schemas/AmiAutoUpdate.yaml b/api/services/ocean/aws/schemas/AmiAutoUpdate.yaml new file mode 100644 index 000000000..f7473758f --- /dev/null +++ b/api/services/ocean/aws/schemas/AmiAutoUpdate.yaml @@ -0,0 +1,27 @@ +type: object +description: > + The object specifying the request to trigger an AMI auto update operation +title: AMI Auto Update +required: +properties: + patch: + type: boolean + description: > + enable updating AMI after new patch. + default: false + example: true + minorVersion: + type: boolean + description: > + enable updating AMI when a later AMI's minor version is available. + default: false + example: true + applyRoll: + type: boolean + description: > + enable cluster roll after an AMI was updated + default: false + example: true + clusterRoll: + $ref: "../schemas/ocean-strategy.yaml" +