# setup

Initial setup of croit.
Set management node URL:

# POST /setup/main-ip

# Parameters

  • bodyobject-
    • interfaceNamestring-
    • ipstring-

# Endpoint

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

# Example body

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

# POST /setup/import-cluster

# Parameters

  • bodyobject-
    • adminKeystring-
    • monsarray-

# Endpoint

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

# Example body

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

# POST /setup/restore-backup

# Parameters

  • bodyobject-
    • encryptionKeystring-
    • croitApiTokenstring-
    • backupUuidstring-

# Endpoint

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

# Example body

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

# Response 200

  • statusCodeinteger-
  • idinteger-
  • startedBystring-
  • startedAtinteger-
  • doneboolean-
  • namestring-
  • statestring[WAITING, RUNNING, FINISHED, FAILED, CANCELED]
  • objectstring-
  • outputstring-

# 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

  • ipsarray-
    • interfaceNamestring-
    • ipstring-
    • netmaskinteger-
  • interfacesarray-
  • currentInterfacestring-
  • currentIpstring-

# Example response

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