openapi: 3.0.1 info: x-logo: url: https://www.gridgain.com/assets/web/images/gridgain-logo-2021.svg backgroundColor: '#FFFFFF' altText: Example logo title: GridGain REST module authentication clusterManagement API contact: email: user@ignite.apache.org license: name: Apache 2.0 url: https://ignite.apache.org version: 9.1.22 servers: - url: http://localhost:10300 description: Default GridGain 9 management API - url: http://localhost:8080/ignite description: GridGain 8 / Ignite REST API security: - bearerToken: [] - basicAuth: [] tags: - name: clusterManagement paths: /management/v1/cluster/init: post: tags: - clusterManagement summary: Initialize cluster description: Initialize a new cluster. operationId: init requestBody: content: application/json: schema: $ref: '#/components/schemas/InitCommand' required: true responses: '200': description: Cluster initialized. '500': description: Internal error. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' '400': description: Incorrect configuration. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' /management/v1/cluster/rename: post: tags: - clusterManagement summary: Rename cluster description: Assigns a new name to the cluster. operationId: rename requestBody: description: the new name of the cluster. content: text/plain: schema: type: string required: true responses: '200': description: Cluster renamed. content: application/json: schema: $ref: '#/components/schemas/ClusterTag' application/problem+json: schema: $ref: '#/components/schemas/ClusterTag' '500': description: Internal error. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' '400': description: Invalid name. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' /management/v1/cluster/state: get: tags: - clusterManagement summary: Get cluster state description: Returns current cluster status. operationId: clusterState responses: '200': description: Cluster status returned. content: application/json: schema: $ref: '#/components/schemas/ClusterState' '404': description: Cluster status not found. Most likely, the cluster is not initialized. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' '500': description: Internal error. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' components: schemas: 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. ClusterState: type: object properties: cmgNodes: type: array description: List of cluster management group nodes. These nodes are responsible for maintaining RAFT cluster topology. items: type: string msNodes: type: array description: List of metastorage nodes. These nodes are responsible for storing RAFT cluster metadata. items: type: string igniteVersion: type: string description: Version of Apache Ignite that the cluster was created on. clusterTag: allOf: - $ref: '#/components/schemas/ClusterTag' - description: Unique tag that identifies the cluster. formerClusterIds: type: array description: IDs the cluster had before. nullable: true items: type: string format: uuid description: Information about current cluster state. 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. InitCommand: required: - license type: object properties: metaStorageNodes: type: array description: A list of RAFT metastorage nodes. items: type: string cmgNodes: type: array description: A list of RAFT cluster management nodes. items: type: string clusterName: type: string description: The name of the cluster. clusterConfiguration: type: string description: Cluster configuration in HOCON format. license: type: string description: Cluster license. description: Cluster initialization configuration. ClusterTag: type: object properties: clusterId: type: string description: Unique cluster UUID. Generated automatically. format: uuid clusterName: type: string description: Unique cluster name. description: Unique tag that identifies the cluster. securitySchemes: basicAuth: type: http scheme: basic bearerToken: type: http scheme: bearer