Skip to content

Latest commit

 

History

History
77 lines (56 loc) · 2.31 KB

MiscApi.md

File metadata and controls

77 lines (56 loc) · 2.31 KB

MiscApi

All URIs are relative to http://localhost:9000

Method HTTP request Description
installTools POST /installer

installTools

installTools(installRequest)

Installs Cloudiator tools on provided node

Example

// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.MiscApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("http://localhost:9000");
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    MiscApi apiInstance = new MiscApi(defaultClient);
    InstallationRequest installRequest = new InstallationRequest(); // InstallationRequest | a request to install the cloudiator tools on a provided node
    try {
      apiInstance.installTools(installRequest);
    } catch (ApiException e) {
      System.err.println("Exception when calling MiscApi#installTools");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
installRequest InstallationRequest a request to install the cloudiator tools on a provided node

Return type

null (empty response body)

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 OK -