openapi: 3.0.1
info:
title: Apache Ignite REST module clusterConfiguration system API
contact:
email: user@ignite.apache.org
license:
name: Apache 2.0
url: https://ignite.apache.org
version: 3.1.0
servers:
- url: http://localhost:10300
security:
- basicAuth: []
tags:
- name: system
paths:
/management/v1/recovery/cluster/migrate:
post:
tags:
- system
description: Migrates nodes from old cluster to new (repaired) cluster.
operationId: migrate
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MigrateRequest'
examples:
migrateRequestExample:
summary: Default migrate request
x-microcks-default: true
value:
cmgNodes: []
metaStorageNodes: []
version: example-value
clusterId: item-5239
clusterName: example-name
formerClusterIds: []
required: true
responses:
'200':
description: Migration initiated.
'500':
description: Internal error.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'400':
description: Bad request.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/management/v1/recovery/cluster/reset:
post:
tags:
- system
description: Initiates cluster reset to repair CMG/Metastorage group/both.
operationId: resetCluster
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ResetClusterRequest'
examples:
resetClusterRequestExample:
summary: Default resetCluster request
x-microcks-default: true
value:
cmgNodeNames: []
metastorageReplicationFactor: 50
required: true
responses:
'200':
description: Cluster reset initiated.
'500':
description: Internal error.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'400':
description: Bad request.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
components:
schemas:
Problem:
type: object
properties:
title:
type: string
description: Short summary of the issue.
status:
type: integer
description: Returned HTTP status code.
format: int32
code:
type: string
description: Ignite 3 error code.
type:
type: string
description: URI to documentation regarding the issue.
detail:
type: string
description: Extended explanation of the issue.
node:
type: string
description: Name of the node the issue happened on.
traceId:
type: string
description: Unique issue identifier. This identifier can be used to find logs related to the issue.
format: uuid
invalidParams:
type: array
description: A list of parameters that did not pass validation and the reason for it.
items:
$ref: '#/components/schemas/InvalidParam'
description: Extended description of the problem with the request.
MigrateRequest:
type: object
properties:
cmgNodes:
type: array
description: Names of the CMG node names.
items:
type: string
metaStorageNodes:
type: array
description: Names of the Metastorage node names.
items:
type: string
version:
type: string
description: Ignite version.
clusterId:
type: string
description: ID of the cluster.
format: uuid
clusterName:
type: string
description: Name of the cluster.
formerClusterIds:
type: array
description: IDs the cluster had before. If CMG/Metastorage group were never repaired, this is null.
nullable: true
items:
type: string
format: uuid
description: Migrate nodes to new cluster.
InvalidParam:
type: object
properties:
name:
type: string
description: Parameter name.
reason:
type: string
description: The issue with the parameter.
description: Information about invalid request parameter.
ResetClusterRequest:
type: object
properties:
cmgNodeNames:
type: array
description: Names of the proposed CMG nodes. Optional if the MG group is being repaired. If not specified, the current CMG nodes are used.
nullable: true
items:
type: string
metastorageReplicationFactor:
type: integer
description: Number of nodes in the voting member set of the Metastorage RAFT group.
format: int32
nullable: true
description: Reset cluster.
securitySchemes:
basicAuth:
type: http
scheme: basic