# setup

Initial setup of croit.
Set management node URL:

# POST /setup/main-ip

# Parameters

  • bodyobjectoptional-
    • interfaceNamestringoptional-
    • ipstringoptional-

# Endpoint

curl -X POST http://mgmt-node:8080/api/setup/main-ip

# Example body

{
  "interfaceName": "string",
  "ip": "string"
}

# POST /setup/import-cluster

# Parameters

  • bodyobjectoptional-
    • adminKeystringoptional-
    • monsarrayoptional-

# Endpoint

curl -X POST http://mgmt-node:8080/api/setup/import-cluster

# Example body

{
  "adminKey": "string",
  "mons": [
    "string"
  ]
}

# POST /setup/restore-backup

# Parameters

  • bodyobjectoptional-
    • encryptionKeystringoptional-
    • croitApiTokenstringoptional-
    • backupUuidstringoptional-

# Endpoint

curl -X POST http://mgmt-node:8080/api/setup/restore-backup

# Example body

{
  "encryptionKey": "string",
  "croitApiToken": "string",
  "backupUuid": "string"
}

# Response 200

  • statusCodeintegeroptional-
  • idintegeroptional-
  • startedBystringoptional-
  • startedAtintegeroptional-
  • donebooleanoptional-
  • namestringoptional-
  • statestringoptional[WAITING, RUNNING, FINISHED, FAILED, CANCELED]
  • objectstringoptional-
  • outputstringoptional-

# Example response

{
  "statusCode": 0,
  "id": 0,
  "startedBy": "string",
  "startedAt": 0,
  "done": true,
  "name": "string",
  "state": "WAITING",
  "object": "string",
  "output": "string"
}

# GET /setup/list-interfaces

# Parameters

  • No parameters...

# Endpoint

curl -X GET http://mgmt-node:8080/api/setup/list-interfaces

# Response 200

  • ipsarrayoptional-
    • interfaceNamestringoptional-
    • ipstringoptional-
    • netmaskintegeroptional-
  • interfacesarrayoptional-
  • currentInterfacestringoptional-
  • currentIpstringoptional-

# Example response

{
  "ips": [
    {
      "interfaceName": "string",
      "ip": "string",
      "netmask": 0
    }
  ],
  "interfaces": [
    "string"
  ],
  "currentInterface": "string",
  "currentIp": "string"
}