$ref: '#/components/responses/UnexpectedError'
default:
$ref: '#/components/responses/UnexpectedError'
- '/k8scluster/v1/clusters/{cluster_id}/update':
- parameters:
- - name: cluster_id
- in: path
- required: true
- description: cluster_id
- schema:
- type: string
- post:
- tags:
- - "K8s Cluster"
- summary: Update a Cluster
- description: This API is used to Update k8s_version, node_count and node_size of a Cluster
- operationId: updateCluster
- requestBody:
- $ref: '#/components/requestBodies/UpdateClusterRequest'
- responses:
- '202':
- description: Accepted
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OpId'
- application/yaml:
- schema:
- $ref: '#/components/schemas/OpId'
- '400':
- $ref: '#/components/responses/BadRequest'
- '401':
- $ref: '#/components/responses/Unauthorized'
- '403':
- $ref: '#/components/responses/Forbidden'
- '404':
- $ref: '#/components/responses/NotFound'
- '405':
- $ref: '#/components/responses/MethodNotAllowed'
- '406':
- $ref: '#/components/responses/NotAcceptable'
- '409':
- $ref: '#/components/responses/Conflict'
- '422':
- $ref: '#/components/responses/UnprocessableEntity'
- '500':
- $ref: '#/components/responses/InternalServerError'
- '503':
- $ref: '#/components/responses/ServiceUnavailable'
- '5XX':
- $ref: '#/components/responses/UnexpectedError'
- default:
- $ref: '#/components/responses/UnexpectedError'
'/k8scluster/v1/app_profiles':
post:
tags:
$ref: '#/components/responses/UnexpectedError'
default:
$ref: '#/components/responses/UnexpectedError'
+ '/k8scluster/v1/clusters/{cluster_id}/nodegroup':
+ parameters:
+ - name: cluster_id
+ in: path
+ required: true
+ description: cluster_id
+ schema:
+ type: string
+ get:
+ tags:
+ - "K8s Cluster"
+ summary: Getting NodeGroups in cluster
+ description: This API is used to get nodegroups in specified cluster
+ operationId: getNodeGroup
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfNodeGroupInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfNodeGroupInfo'
+ '400':
+ $ref: '#/components/responses/BadRequest'
+ '401':
+ $ref: '#/components/responses/Unauthorized'
+ '403':
+ $ref: '#/components/responses/Forbidden'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '405':
+ $ref: '#/components/responses/MethodNotAllowed'
+ '406':
+ $ref: '#/components/responses/NotAcceptable'
+ '409':
+ $ref: '#/components/responses/Conflict'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+ '500':
+ $ref: '#/components/responses/InternalServerError'
+ '503':
+ $ref: '#/components/responses/ServiceUnavailable'
+ '5XX':
+ $ref: '#/components/responses/UnexpectedError'
+ default:
+ $ref: '#/components/responses/UnexpectedError'
+ post:
+ tags:
+ - "K8s Cluster"
+ summary: Creating NodeGroups in cluster
+ description: This API is used to create NodeGroup in cluster
+ operationId: createNodeGroup
+ requestBody:
+ $ref: '#/components/requestBodies/CreateNodeGroupRequest'
+ responses:
+ '201':
+ description: Created
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ObjectId'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ObjectId'
+ '400':
+ $ref: '#/components/responses/BadRequest'
+ '401':
+ $ref: '#/components/responses/Unauthorized'
+ '403':
+ $ref: '#/components/responses/Forbidden'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '405':
+ $ref: '#/components/responses/MethodNotAllowed'
+ '406':
+ $ref: '#/components/responses/NotAcceptable'
+ '409':
+ $ref: '#/components/responses/Conflict'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+ '500':
+ $ref: '#/components/responses/InternalServerError'
+ '503':
+ $ref: '#/components/responses/ServiceUnavailable'
+ '5XX':
+ $ref: '#/components/responses/UnexpectedError'
+ default:
+ $ref: '#/components/responses/UnexpectedError'
+ '/k8scluster/v1/clusters/{cluster_id}/nodegroup/{nodegroup_id}':
+ parameters:
+ - name: cluster_id
+ in: path
+ required: true
+ description: cluster_id
+ schema:
+ type: string
+ - name: nodegroup_id
+ in: path
+ required: true
+ description: nodegroup_id
+ schema:
+ type: string
+ get:
+ tags:
+ - "K8s Cluster"
+ summary: Reading NodeGroups in cluster
+ description: This API is used to reading specific NodeGroups in cluster
+ operationId: readNodeGroups
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NodeGroupInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/NodeGroupInfo'
+ '400':
+ $ref: '#/components/responses/BadRequest'
+ '401':
+ $ref: '#/components/responses/Unauthorized'
+ '403':
+ $ref: '#/components/responses/Forbidden'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '405':
+ $ref: '#/components/responses/MethodNotAllowed'
+ '406':
+ $ref: '#/components/responses/NotAcceptable'
+ '409':
+ $ref: '#/components/responses/Conflict'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+ '500':
+ $ref: '#/components/responses/InternalServerError'
+ '503':
+ $ref: '#/components/responses/ServiceUnavailable'
+ '5XX':
+ $ref: '#/components/responses/UnexpectedError'
+ default:
+ $ref: '#/components/responses/UnexpectedError'
+ patch:
+ tags:
+ - "K8s Cluster"
+ summary: Patching NodeGroups in cluster
+ description: This API is used to edit name and description of the NodeGroup
+ operationId: patchNodeGroup
+ requestBody:
+ $ref: '#/components/requestBodies/ClusterEditRequest'
+ responses:
+ '202':
+ description: Accepted
+ '400':
+ $ref: '#/components/responses/BadRequest'
+ '401':
+ $ref: '#/components/responses/Unauthorized'
+ '403':
+ $ref: '#/components/responses/Forbidden'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '405':
+ $ref: '#/components/responses/MethodNotAllowed'
+ '406':
+ $ref: '#/components/responses/NotAcceptable'
+ '409':
+ $ref: '#/components/responses/Conflict'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+ '500':
+ $ref: '#/components/responses/InternalServerError'
+ '503':
+ $ref: '#/components/responses/ServiceUnavailable'
+ '5XX':
+ $ref: '#/components/responses/UnexpectedError'
+ default:
+ $ref: '#/components/responses/UnexpectedError'
+ delete:
+ tags:
+ - "K8s Cluster"
+ summary: Deleting a NodeGroup
+ description: This API is used to delete a specified nodegroup in specified cluster.
+ operationId: deleteNodeGroup
+ responses:
+ '202':
+ description: Accepted
+ '400':
+ $ref: '#/components/responses/BadRequest'
+ '401':
+ $ref: '#/components/responses/Unauthorized'
+ '403':
+ $ref: '#/components/responses/Forbidden'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '405':
+ $ref: '#/components/responses/MethodNotAllowed'
+ '406':
+ $ref: '#/components/responses/NotAcceptable'
+ '409':
+ $ref: '#/components/responses/Conflict'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+ '500':
+ $ref: '#/components/responses/InternalServerError'
+ '503':
+ $ref: '#/components/responses/ServiceUnavailable'
+ '5XX':
+ $ref: '#/components/responses/UnexpectedError'
+ default:
+ $ref: '#/components/responses/UnexpectedError'
+ '/k8scluster/v1/clusters/{cluster_id}/nodegroup/{nodegroup_id}/scale':
+ parameters:
+ - name: cluster_id
+ in: path
+ required: true
+ description: cluster_id
+ schema:
+ type: string
+ - name: nodegroup_id
+ in: path
+ required: true
+ description: nodegroup_id
+ schema:
+ type: string
+ post:
+ tags:
+ - "K8s Cluster"
+ summary: Scaling NodeGroup
+ description: This API is used to scale the nodes of a specified nodegroup
+ operationId: nodeGroupScaling
+ requestBody:
+ $ref: '#/components/requestBodies/ScaleNode'
+ responses:
+ '202':
+ description: Accepted
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/OpId'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/OpId'
+ '400':
+ $ref: '#/components/responses/BadRequest'
+ '401':
+ $ref: '#/components/responses/Unauthorized'
+ '403':
+ $ref: '#/components/responses/Forbidden'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '405':
+ $ref: '#/components/responses/MethodNotAllowed'
+ '406':
+ $ref: '#/components/responses/NotAcceptable'
+ '409':
+ $ref: '#/components/responses/Conflict'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+ '500':
+ $ref: '#/components/responses/InternalServerError'
+ '503':
+ $ref: '#/components/responses/ServiceUnavailable'
+ '5XX':
+ $ref: '#/components/responses/UnexpectedError'
+ default:
+ $ref: '#/components/responses/UnexpectedError'
+ '/k8scluster/v1/clusters/{cluster_id}/ksus':
+ parameters:
+ - name: cluster_id
+ in: path
+ required: true
+ description: cluster_id
+ schema:
+ type: string
+ get:
+ tags:
+ - "K8s Cluster"
+ summary: Listing ksus in cluster
+ description: This API is used to list ksus in specified cluster
+ operationId: listKsus
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfKsuList'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfKsuList'
+ '400':
+ $ref: '#/components/responses/BadRequest'
+ '401':
+ $ref: '#/components/responses/Unauthorized'
+ '403':
+ $ref: '#/components/responses/Forbidden'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '405':
+ $ref: '#/components/responses/MethodNotAllowed'
+ '406':
+ $ref: '#/components/responses/NotAcceptable'
+ '409':
+ $ref: '#/components/responses/Conflict'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+ '500':
+ $ref: '#/components/responses/InternalServerError'
+ '503':
+ $ref: '#/components/responses/ServiceUnavailable'
+ '5XX':
+ $ref: '#/components/responses/UnexpectedError'
+ default:
+ $ref: '#/components/responses/UnexpectedError'
#END k8s Cluster
# BEGIN OKA packages
type: string
resource_group:
type: string
- infra_controller_profiles:
+ private_subnet:
type: array
items:
- type: integer
- infra_config_profiles:
- type: array
- items:
- type: integer
- resource_profiles:
- type: array
- items:
- type: integer
- app_profiles:
+ type: string
+ public_subnet:
type: array
items:
- type: integer
+ type: string
+ iam_role:
+ type: string
RegisterClusterInfo:
type: object
properties:
type: string
description:
type: string
- UpdateClusterRequest:
- type: object
- properties:
- k8s_version:
- type: string
- node_count:
- type: integer
- node_size:
- type: string
ScaleNodeInfo:
type: object
properties:
properties:
k8s_version:
type: string
+ NodeGroupInfo:
+ type: object
+ properties:
+ _id:
+ type: integer
+ cluster_id:
+ type: integer
+ name:
+ type: string
+ description:
+ type: string
+ node_count:
+ type: integer
+ node_size:
+ type: string
+ private_subnet:
+ type: array
+ items:
+ type: string
+ public_subnet:
+ type: array
+ items:
+ type: string
+ iam_role:
+ type: string
+ git_name:
+ type: string
+ state:
+ type: string
+ operatingState:
+ type: string
+ resourceState:
+ type: string
+ current_operation:
+ type: integer
+ operationHistory:
+ $ref: '#/components/schemas/operationHistory'
+ ArrayOfNodeGroupInfo:
+ type: array
+ items:
+ $ref: '#/components/schemas/NodeGroupInfo'
+ CreateNodeGroupRequest:
+ type: object
+ properties:
+ name:
+ type: string
+ description:
+ type: string
+ node_count:
+ type: integer
+ node_size:
+ type: string
+ private_subnet:
+ type: array
+ items:
+ type: string
+ public_subnet:
+ type: array
+ items:
+ type: string
+ iam_role:
+ type: string
+ required:
+ - name
+ - node_count
+ - node_size
+ - private_subnet
+ - public_subnet
+ additionalProperties: false
AttachDetachProfile:
type: object
properties:
application/yaml:
schema:
$ref: '#/components/schemas/ClusterEditRequest'
- UpdateClusterRequest:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/UpdateClusterRequest'
- application/yaml:
- schema:
- $ref: '#/components/schemas/UpdateClusterRequest'
ScaleNode:
content:
application/json:
application/yaml:
schema:
$ref: '#/components/schemas/UpgradeClusterInfo'
+ CreateNodeGroupRequest:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateNodeGroupRequest'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/CreateNodeGroupRequest'
CreateProfileInfo:
content:
application/json: