responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfClusterInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfClusterInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
description: This API is used to create cluster
operationId: createk8sCluster
requestBody:
- $ref: '#/components/requestBodies/CreateCluster'
+ $ref: '#/components/requestBodies/CreateClusterInfo'
responses:
'201':
description: Created
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ClusterInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
responses:
'200':
description: OK
+ 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}/get_creds_file/{operation_id}':
+ parameters:
+ - name: cluster_id
+ in: path
+ required: true
+ description: cluster_id
+ schema:
+ type: string
+ - name: operation_id
+ in: path
+ required: true
+ description: operation_id
+ schema:
+ type: string
+ get:
+ tags:
+ - "K8s Cluster"
+ summary: Get Credentials of the cluster in file format
+ description: This API is used to obtain a kube_config file of a specified cluster.
+ operationId: getCredsfile
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ClusterCreds'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ClusterCreds'
'400':
$ref: '#/components/responses/BadRequest'
'401':
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':
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':
description: This API is used to create App-profiles
operationId: createAppProfile
requestBody:
- $ref: '#/components/requestBodies/ProfileInfo'
+ $ref: '#/components/requestBodies/CreateProfileInfo'
responses:
'201':
description: Created
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
description: This API is used to patch specific App-profile
operationId: patchAppProfile
requestBody:
- $ref: '#/components/requestBodies/ProfileInfo'
+ $ref: '#/components/requestBodies/PatchProfileInfo'
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':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
description: This API is used to create Infra controllerprofiles
operationId: createInfraControllerProfile
requestBody:
- $ref: '#/components/requestBodies/ProfileInfo'
+ $ref: '#/components/requestBodies/CreateProfileInfo'
responses:
'201':
description: Created
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
description: This API is used to patch specific Infra controller profile
operationId: patchInfraControllerProfile
requestBody:
- $ref: '#/components/requestBodies/ProfileInfo'
+ $ref: '#/components/requestBodies/PatchProfileInfo'
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':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
description: This API is used to create Infra config profiles
operationId: createInfraConfigProfile
requestBody:
- $ref: '#/components/requestBodies/ProfileInfo'
+ $ref: '#/components/requestBodies/CreateProfileInfo'
responses:
'201':
description: Created
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
description: This API is used to patch specific Infra config profile
operationId: patchInfraConfigProfile
requestBody:
- $ref: '#/components/requestBodies/ProfileInfo'
+ $ref: '#/components/requestBodies/PatchProfileInfo'
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':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
description: This API is used to create resource profiles
operationId: createResourceProfile
requestBody:
- $ref: '#/components/requestBodies/ProfileInfo'
+ $ref: '#/components/requestBodies/CreateProfileInfo'
responses:
'201':
description: Created
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
description: This API is used to patch specific resource profile
operationId: patchResourceProfile
requestBody:
- $ref: '#/components/requestBodies/ProfileInfo'
+ $ref: '#/components/requestBodies/PatchProfileInfo'
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':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfProfileInfo'
'400':
$ref: '#/components/responses/BadRequest'
'401':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ArrayOfOkaPackage'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/ArrayOfOkaPackage'
'400':
$ref: '#/components/responses/BadRequest'
'401':
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/OkaPackageList'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/OkaPackageList'
'400':
$ref: '#/components/responses/BadRequest'
'401':
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':
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':
description: This API is used to Add KSU
operationId: addKSU
requestBody:
- $ref: '#/components/requestBodies/MultipleKsu'
+ $ref: '#/components/requestBodies/ArrayOfKsu'
responses:
'201':
description: Created
responses:
'200':
description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/KsuList'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/KsuList'
'400':
$ref: '#/components/responses/BadRequest'
'401':
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':
description: This API is used to Update multiple KSU
operationId: updateMultipleKSU
requestBody:
- $ref: '#/components/requestBodies/MultipleKsu'
+ $ref: '#/components/requestBodies/ArrayOfKsu'
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':
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':
content:
application/json:
schema:
- $ref: '#/components/schemas/ObjectId'
+ $ref: '#/components/schemas/OpId'
application/yaml:
schema:
- $ref: '#/components/schemas/ObjectId'
+ $ref: '#/components/schemas/OpId'
'400':
$ref: '#/components/responses/BadRequest'
'401':
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':
enum:
- GRACEFUL
- FORCEFUL
- CreateClusterInfo:
+ operationHistory:
+ type: array
+ items:
+ type: object
+ properties:
+ operationType:
+ type: string
+ gitOperationInfo:
+ type: string
+ op_id:
+ type: integer
+ result:
+ type: string
+ workflowState:
+ type: string
+ resourceState:
+ type: string
+ operationState:
+ type: string
+ creationDate:
+ type: string
+ endDate:
+ type: string
+ operationParams:
+ type: object
+ ArrayOfClusterInfo:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterInfo'
+ ClusterInfo:
type: object
properties:
+ _id:
+ type: integer
name:
type: string
vim_account:
node_size:
type: string
node_count:
+ type: integer
+ description:
+ type: string
+ region_name:
+ type: string
+ resource_group:
+ type: string
+ infra_controller_profiles:
+ type: array
+ items:
+ type: integer
+ infra_config_profiles:
+ type: array
+ items:
+ type: integer
+ resource_profiles:
+ type: array
+ items:
+ type: integer
+ app_profiles:
+ type: array
+ items:
+ type: integer
+ credentials:
+ type: object
+ git_name:
+ type: string
+ age_privkey:
+ type: string
+ age_pubkey:
+ type: string
+ operationHistory:
+ $ref: '#/components/schemas/operationHistory'
+ current_operation:
+ type: integer
+ state:
+ type: string
+ operatingState:
+ type: string
+ resourceState:
+ type: string
+ created:
+ type: boolean
+ bootstrap:
+ type: boolean
+ CreateClusterInfo:
+ type: object
+ properties:
+ name:
+ type: string
+ vim_account:
+ type: string
+ location:
+ type: string
+ k8s_version:
type: string
+ node_size:
+ type: string
+ node_count:
+ type: integer
description:
type: string
region_name:
infra_controller_profiles:
type: array
items:
- type: string
+ type: integer
infra_config_profiles:
type: array
items:
- type: string
+ type: integer
resource_profiles:
type: array
items:
- type: string
+ type: integer
app_profiles:
type: array
items:
- type: string
+ type: integer
+ ClusterCreds:
+ type: string
+ format: yaml|json
ScaleNodeInfo:
type: object
properties:
node_count:
type: integer
+ CreateProfileInfo:
+ type: object
+ properties:
+ name:
+ type: string
+ description:
+ type: string
+ ArrayOfProfileInfo:
+ type: array
+ items:
+ $ref: '#/components/schemas/ProfileInfo'
ProfileInfo:
type: object
properties:
+ _id:
+ type: integer
name:
type: string
description:
type: string
+ default:
+ type: string
+ git_name:
+ type: string
+ state:
+ type: string
+ operatingState:
+ type: string
+ resourceState:
+ type: string
+ current_operation:
+ type: integer
+ operationHistory:
+ $ref: '#/components/schemas/operationHistory'
UpgradeClusterInfo:
type: object
properties:
properties:
_id:
type: string
+ OkaPackageList:
+ type: object
+ properties:
+ _id:
+ type: integer
+ name:
+ type: string
+ description:
+ type: string
+ git_name:
+ type: string
+ state:
+ type: string
+ operatingState:
+ type: string
+ resourceState:
+ type: string
+ current_operation:
+ type: integer
+ operationHistory:
+ $ref: '#/components/schemas/operationHistory'
+ ArrayOfOkaPackage:
+ type: array
+ items:
+ $ref: '#/components/schemas/OkaPackageList'
OkaPackage:
type: object
properties:
package:
type: string
format: binary
- MultipleKsu:
+ Ksu:
type: object
properties:
- ksus:
+ name:
+ type: string
+ description:
+ type: string
+ profile:
+ type: object
+ properties:
+ id:
+ type: string
+ profile_type:
+ type: string
+ oka:
type: array
items:
type: object
properties:
- name:
+ _id:
type: string
- profile:
- type: object
- properties:
- _id:
- type: string
- profile_type:
- type: string
- oka:
- type: array
- items:
- type: object
- properties:
- _id:
- type: string
- sw_catalog_path:
- type: string
- transformation:
- type: object
- description:
+ sw_catalog_path:
type: string
- Ksu:
+ transformation:
+ type: object
+ ArrayOfKsu:
+ type: object
+ properties:
+ ksus:
+ type: array
+ items:
+ $ref: '#/components/schemas/Ksu'
+ KsuList:
type: object
properties:
+ _id:
+ type: integer
name:
type: string
description:
type: string
transformation:
type: object
+ git_name:
+ type: string
+ state:
+ type: string
+ operatingState:
+ type: string
+ resourceState:
+ type: string
+ current_operation:
+ type: integer
+ operationHistory:
+ $ref: '#/components/schemas/operationHistory'
+ ArrayOfKsuList:
+ type: array
+ items:
+ $ref: '#/components/schemas/KsuList'
DeleteMultipleKsu:
type: object
properties:
application/yaml:
schema:
$ref: '#/components/schemas/CancelNSLCMOpOccRequest'
- CreateCluster:
+ CreateClusterInfo:
content:
application/json:
schema:
application/yaml:
schema:
$ref: '#/components/schemas/UpgradeClusterInfo'
- ProfileInfo:
+ CreateProfileInfo:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateProfileInfo'
+ application/yaml:
+ schema:
+ $ref: '#/components/schemas/CreateProfileInfo'
+ PatchProfileInfo:
content:
application/json:
schema:
- $ref: '#/components/schemas/ProfileInfo'
+ $ref: '#/components/schemas/CreateProfileInfo'
application/yaml:
schema:
- $ref: '#/components/schemas/ProfileInfo'
+ $ref: '#/components/schemas/CreateProfileInfo'
AttachDetachProfile:
content:
application/json:
application/yaml:
schema:
$ref: '#/components/schemas/AttachDetachProfile'
- MultipleKsu:
+ ArrayOfKsu:
content:
application/json:
schema:
- $ref: '#/components/schemas/MultipleKsu'
+ $ref: '#/components/schemas/ArrayOfKsu'
application/yaml:
schema:
- $ref: '#/components/schemas/MultipleKsu'
+ $ref: '#/components/schemas/ArrayOfKsu'
Ksu:
content:
application/json: