public class HostsResourceApi extends Object
Constructor and Description |
---|
HostsResourceApi() |
HostsResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
List<ApiEntityTag> |
addTags(String hostname,
List<ApiEntityTag> body)
Attach tags to the host.
|
com.squareup.okhttp.Call |
addTagsAsync(String hostname,
List<ApiEntityTag> body,
ApiCallback<List<ApiEntityTag>> callback)
Attach tags to the host.
|
com.squareup.okhttp.Call |
addTagsCall(String hostname,
List<ApiEntityTag> body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for addTags
|
ApiResponse<List<ApiEntityTag>> |
addTagsWithHttpInfo(String hostname,
List<ApiEntityTag> body)
Attach tags to the host.
|
ApiHostList |
createHosts(ApiHostList body)
.
|
com.squareup.okhttp.Call |
createHostsAsync(ApiHostList body,
ApiCallback<ApiHostList> callback)
.
|
com.squareup.okhttp.Call |
createHostsCall(ApiHostList body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createHosts
|
ApiResponse<ApiHostList> |
createHostsWithHttpInfo(ApiHostList body)
.
|
ApiHostList |
deleteAllHosts()
Delete all hosts in the system.
|
com.squareup.okhttp.Call |
deleteAllHostsAsync(ApiCallback<ApiHostList> callback)
Delete all hosts in the system.
|
com.squareup.okhttp.Call |
deleteAllHostsCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteAllHosts
|
ApiResponse<ApiHostList> |
deleteAllHostsWithHttpInfo()
Delete all hosts in the system.
|
ApiHost |
deleteHost(String hostId)
Delete a host from the system.
|
com.squareup.okhttp.Call |
deleteHostAsync(String hostId,
ApiCallback<ApiHost> callback)
Delete a host from the system.
|
com.squareup.okhttp.Call |
deleteHostCall(String hostId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteHost
|
ApiResponse<ApiHost> |
deleteHostWithHttpInfo(String hostId)
Delete a host from the system.
|
List<ApiEntityTag> |
deleteTags(String hostname,
List<ApiEntityTag> body)
Remove the tags associated with the host.
|
com.squareup.okhttp.Call |
deleteTagsAsync(String hostname,
List<ApiEntityTag> body,
ApiCallback<List<ApiEntityTag>> callback)
Remove the tags associated with the host.
|
com.squareup.okhttp.Call |
deleteTagsCall(String hostname,
List<ApiEntityTag> body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteTags
|
ApiResponse<List<ApiEntityTag>> |
deleteTagsWithHttpInfo(String hostname,
List<ApiEntityTag> body)
Remove the tags associated with the host.
|
ApiCommand |
enterMaintenanceMode(String hostId)
Put the host into maintenance mode.
|
com.squareup.okhttp.Call |
enterMaintenanceModeAsync(String hostId,
ApiCallback<ApiCommand> callback)
Put the host into maintenance mode.
|
com.squareup.okhttp.Call |
enterMaintenanceModeCall(String hostId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for enterMaintenanceMode
|
ApiResponse<ApiCommand> |
enterMaintenanceModeWithHttpInfo(String hostId)
Put the host into maintenance mode.
|
ApiCommand |
exitMaintenanceMode(String hostId)
Take the host out of maintenance mode.
|
com.squareup.okhttp.Call |
exitMaintenanceModeAsync(String hostId,
ApiCallback<ApiCommand> callback)
Take the host out of maintenance mode.
|
com.squareup.okhttp.Call |
exitMaintenanceModeCall(String hostId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for exitMaintenanceMode
|
ApiResponse<ApiCommand> |
exitMaintenanceModeWithHttpInfo(String hostId)
Take the host out of maintenance mode.
|
ApiCommand |
generateHostCerts(String hostId,
ApiGenerateHostCertsArguments body)
Generates (or regenerates) a key and certificate for this host if Auto-TLS is enabled.
|
com.squareup.okhttp.Call |
generateHostCertsAsync(String hostId,
ApiGenerateHostCertsArguments body,
ApiCallback<ApiCommand> callback)
Generates (or regenerates) a key and certificate for this host if Auto-TLS is enabled.
|
com.squareup.okhttp.Call |
generateHostCertsCall(String hostId,
ApiGenerateHostCertsArguments body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for generateHostCerts
|
ApiResponse<ApiCommand> |
generateHostCertsWithHttpInfo(String hostId,
ApiGenerateHostCertsArguments body)
Generates (or regenerates) a key and certificate for this host if Auto-TLS is enabled.
|
ApiClient |
getApiClient() |
ApiMetricList |
getMetrics(String hostId,
String from,
List<String> ifs,
List<String> metrics,
Boolean queryNw,
Boolean queryStorage,
List<String> storageIds,
String to,
String view)
Fetch metric readings for a host.
|
com.squareup.okhttp.Call |
getMetricsAsync(String hostId,
String from,
List<String> ifs,
List<String> metrics,
Boolean queryNw,
Boolean queryStorage,
List<String> storageIds,
String to,
String view,
ApiCallback<ApiMetricList> callback)
Fetch metric readings for a host.
|
com.squareup.okhttp.Call |
getMetricsCall(String hostId,
String from,
List<String> ifs,
List<String> metrics,
Boolean queryNw,
Boolean queryStorage,
List<String> storageIds,
String to,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getMetrics
|
ApiResponse<ApiMetricList> |
getMetricsWithHttpInfo(String hostId,
String from,
List<String> ifs,
List<String> metrics,
Boolean queryNw,
Boolean queryStorage,
List<String> storageIds,
String to,
String view)
Fetch metric readings for a host.
|
ApiCommand |
migrateRoles(String hostId,
ApiMigrateRolesArguments body)
Migrate roles to a different host.
|
com.squareup.okhttp.Call |
migrateRolesAsync(String hostId,
ApiMigrateRolesArguments body,
ApiCallback<ApiCommand> callback)
Migrate roles to a different host.
|
com.squareup.okhttp.Call |
migrateRolesCall(String hostId,
ApiMigrateRolesArguments body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for migrateRoles
|
ApiResponse<ApiCommand> |
migrateRolesWithHttpInfo(String hostId,
ApiMigrateRolesArguments body)
Migrate roles to a different host.
|
ApiHost |
readHost(String hostId,
String view)
Returns a specific Host in the system.
|
com.squareup.okhttp.Call |
readHostAsync(String hostId,
String view,
ApiCallback<ApiHost> callback)
Returns a specific Host in the system.
|
com.squareup.okhttp.Call |
readHostCall(String hostId,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHost
|
ApiConfigList |
readHostConfig(String hostId,
String view)
Retrieves the configuration of a specific host.
|
com.squareup.okhttp.Call |
readHostConfigAsync(String hostId,
String view,
ApiCallback<ApiConfigList> callback)
Retrieves the configuration of a specific host.
|
com.squareup.okhttp.Call |
readHostConfigCall(String hostId,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHostConfig
|
ApiResponse<ApiConfigList> |
readHostConfigWithHttpInfo(String hostId,
String view)
Retrieves the configuration of a specific host.
|
ApiHostList |
readHosts(String configName,
String configValue,
String view)
Returns hosts in the system filtered by optional host configuration parameters, if specified.
|
com.squareup.okhttp.Call |
readHostsAsync(String configName,
String configValue,
String view,
ApiCallback<ApiHostList> callback)
Returns hosts in the system filtered by optional host configuration parameters, if specified.
|
com.squareup.okhttp.Call |
readHostsCall(String configName,
String configValue,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHosts
|
ApiResponse<ApiHostList> |
readHostsWithHttpInfo(String configName,
String configValue,
String view)
Returns hosts in the system filtered by optional host configuration parameters, if specified.
|
ApiResponse<ApiHost> |
readHostWithHttpInfo(String hostId,
String view)
Returns a specific Host in the system.
|
List<ApiEntityTag> |
readTags(String hostname,
Integer limit,
Integer offset)
Returns the tags associated with this host.
|
com.squareup.okhttp.Call |
readTagsAsync(String hostname,
Integer limit,
Integer offset,
ApiCallback<List<ApiEntityTag>> callback)
Returns the tags associated with this host.
|
com.squareup.okhttp.Call |
readTagsCall(String hostname,
Integer limit,
Integer offset,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readTags
|
ApiResponse<List<ApiEntityTag>> |
readTagsWithHttpInfo(String hostname,
Integer limit,
Integer offset)
Returns the tags associated with this host.
|
ApiCommand |
resetHostId(String hostId,
String newHostId)
Forces agent on specified host to switch to reporting a different host id.
|
com.squareup.okhttp.Call |
resetHostIdAsync(String hostId,
String newHostId,
ApiCallback<ApiCommand> callback)
Forces agent on specified host to switch to reporting a different host id.
|
com.squareup.okhttp.Call |
resetHostIdCall(String hostId,
String newHostId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for resetHostId
|
ApiResponse<ApiCommand> |
resetHostIdWithHttpInfo(String hostId,
String newHostId)
Forces agent on specified host to switch to reporting a different host id.
|
void |
setApiClient(ApiClient apiClient) |
ApiHost |
updateHost(String hostId,
ApiHost body)
.
|
com.squareup.okhttp.Call |
updateHostAsync(String hostId,
ApiHost body,
ApiCallback<ApiHost> callback)
.
|
com.squareup.okhttp.Call |
updateHostCall(String hostId,
ApiHost body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateHost
|
ApiConfigList |
updateHostConfig(String hostId,
String message,
ApiConfigList body)
Updates the host configuration with the given values.
|
com.squareup.okhttp.Call |
updateHostConfigAsync(String hostId,
String message,
ApiConfigList body,
ApiCallback<ApiConfigList> callback)
Updates the host configuration with the given values.
|
com.squareup.okhttp.Call |
updateHostConfigCall(String hostId,
String message,
ApiConfigList body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateHostConfig
|
ApiResponse<ApiConfigList> |
updateHostConfigWithHttpInfo(String hostId,
String message,
ApiConfigList body)
Updates the host configuration with the given values.
|
ApiResponse<ApiHost> |
updateHostWithHttpInfo(String hostId,
ApiHost body)
.
|
public HostsResourceApi()
public HostsResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call addTagsCall(String hostname, List<ApiEntityTag> body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostname
- Name of the host (required)body
- List of tags to add to the host (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic List<ApiEntityTag> addTags(String hostname, List<ApiEntityTag> body) throws ApiException
hostname
- Name of the host (required)body
- List of tags to add to the host (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<ApiEntityTag>> addTagsWithHttpInfo(String hostname, List<ApiEntityTag> body) throws ApiException
hostname
- Name of the host (required)body
- List of tags to add to the host (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call addTagsAsync(String hostname, List<ApiEntityTag> body, ApiCallback<List<ApiEntityTag>> callback) throws ApiException
hostname
- Name of the host (required)body
- List of tags to add to the host (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call createHostsCall(ApiHostList body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body
- The list of hosts to create (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostList createHosts(ApiHostList body) throws ApiException
body
- The list of hosts to create (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostList> createHostsWithHttpInfo(ApiHostList body) throws ApiException
body
- The list of hosts to create (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createHostsAsync(ApiHostList body, ApiCallback<ApiHostList> callback) throws ApiException
body
- The list of hosts to create (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteAllHostsCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostList deleteAllHosts() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostList> deleteAllHostsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteAllHostsAsync(ApiCallback<ApiHostList> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteHostCall(String hostId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host to remove (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHost deleteHost(String hostId) throws ApiException
hostId
- The ID of the host to remove (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHost> deleteHostWithHttpInfo(String hostId) throws ApiException
hostId
- The ID of the host to remove (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteHostAsync(String hostId, ApiCallback<ApiHost> callback) throws ApiException
hostId
- The ID of the host to remove (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteTagsCall(String hostname, List<ApiEntityTag> body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostname
- Name of the host to remove tags from (required)body
- List of tags to remove from the host (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic List<ApiEntityTag> deleteTags(String hostname, List<ApiEntityTag> body) throws ApiException
hostname
- Name of the host to remove tags from (required)body
- List of tags to remove from the host (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<ApiEntityTag>> deleteTagsWithHttpInfo(String hostname, List<ApiEntityTag> body) throws ApiException
hostname
- Name of the host to remove tags from (required)body
- List of tags to remove from the host (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteTagsAsync(String hostname, List<ApiEntityTag> body, ApiCallback<List<ApiEntityTag>> callback) throws ApiException
hostname
- Name of the host to remove tags from (required)body
- List of tags to remove from the host (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call enterMaintenanceModeCall(String hostId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand enterMaintenanceMode(String hostId) throws ApiException
hostId
- The ID of the host (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> enterMaintenanceModeWithHttpInfo(String hostId) throws ApiException
hostId
- The ID of the host (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call enterMaintenanceModeAsync(String hostId, ApiCallback<ApiCommand> callback) throws ApiException
hostId
- The ID of the host (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call exitMaintenanceModeCall(String hostId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand exitMaintenanceMode(String hostId) throws ApiException
hostId
- The ID of the host (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> exitMaintenanceModeWithHttpInfo(String hostId) throws ApiException
hostId
- The ID of the host (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call exitMaintenanceModeAsync(String hostId, ApiCallback<ApiCommand> callback) throws ApiException
hostId
- The ID of the host (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call generateHostCertsCall(String hostId, ApiGenerateHostCertsArguments body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host to generate a certificate for. (required)body
- (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand generateHostCerts(String hostId, ApiGenerateHostCertsArguments body) throws ApiException
hostId
- The ID of the host to generate a certificate for. (required)body
- (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> generateHostCertsWithHttpInfo(String hostId, ApiGenerateHostCertsArguments body) throws ApiException
hostId
- The ID of the host to generate a certificate for. (required)body
- (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call generateHostCertsAsync(String hostId, ApiGenerateHostCertsArguments body, ApiCallback<ApiCommand> callback) throws ApiException
hostId
- The ID of the host to generate a certificate for. (required)body
- (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getMetricsCall(String hostId, String from, List<String> ifs, List<String> metrics, Boolean queryNw, Boolean queryStorage, List<String> storageIds, String to, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The host's ID. (required)from
- Start of the period to query. (optional)ifs
- Network interfaces to query for metrics (default = all). (optional)metrics
- Filter for which metrics to query. (optional)queryNw
- Whether to query for network interface metrics. (optional, default to true)queryStorage
- Whether to query for storage metrics. (optional, default to true)storageIds
- Storage context IDs to query for metrics (default = all). (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiMetricList getMetrics(String hostId, String from, List<String> ifs, List<String> metrics, Boolean queryNw, Boolean queryStorage, List<String> storageIds, String to, String view) throws ApiException
hostId
- The host's ID. (required)from
- Start of the period to query. (optional)ifs
- Network interfaces to query for metrics (default = all). (optional)metrics
- Filter for which metrics to query. (optional)queryNw
- Whether to query for network interface metrics. (optional, default to true)queryStorage
- Whether to query for storage metrics. (optional, default to true)storageIds
- Storage context IDs to query for metrics (default = all). (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiMetricList> getMetricsWithHttpInfo(String hostId, String from, List<String> ifs, List<String> metrics, Boolean queryNw, Boolean queryStorage, List<String> storageIds, String to, String view) throws ApiException
hostId
- The host's ID. (required)from
- Start of the period to query. (optional)ifs
- Network interfaces to query for metrics (default = all). (optional)metrics
- Filter for which metrics to query. (optional)queryNw
- Whether to query for network interface metrics. (optional, default to true)queryStorage
- Whether to query for storage metrics. (optional, default to true)storageIds
- Storage context IDs to query for metrics (default = all). (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getMetricsAsync(String hostId, String from, List<String> ifs, List<String> metrics, Boolean queryNw, Boolean queryStorage, List<String> storageIds, String to, String view, ApiCallback<ApiMetricList> callback) throws ApiException
hostId
- The host's ID. (required)from
- Start of the period to query. (optional)ifs
- Network interfaces to query for metrics (default = all). (optional)metrics
- Filter for which metrics to query. (optional)queryNw
- Whether to query for network interface metrics. (optional, default to true)queryStorage
- Whether to query for storage metrics. (optional, default to true)storageIds
- Storage context IDs to query for metrics (default = all). (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call migrateRolesCall(String hostId, ApiMigrateRolesArguments body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host on which the roles to migrate currently reside (required)body
- Arguments for the command. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand migrateRoles(String hostId, ApiMigrateRolesArguments body) throws ApiException
hostId
- The ID of the host on which the roles to migrate currently reside (required)body
- Arguments for the command. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> migrateRolesWithHttpInfo(String hostId, ApiMigrateRolesArguments body) throws ApiException
hostId
- The ID of the host on which the roles to migrate currently reside (required)body
- Arguments for the command. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call migrateRolesAsync(String hostId, ApiMigrateRolesArguments body, ApiCallback<ApiCommand> callback) throws ApiException
hostId
- The ID of the host on which the roles to migrate currently reside (required)body
- Arguments for the command. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readHostCall(String hostId, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host to read. (required)view
- The view to materialize. Defaults to 'full'. (optional, default to full)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHost readHost(String hostId, String view) throws ApiException
hostId
- The ID of the host to read. (required)view
- The view to materialize. Defaults to 'full'. (optional, default to full)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHost> readHostWithHttpInfo(String hostId, String view) throws ApiException
hostId
- The ID of the host to read. (required)view
- The view to materialize. Defaults to 'full'. (optional, default to full)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readHostAsync(String hostId, String view, ApiCallback<ApiHost> callback) throws ApiException
hostId
- The ID of the host to read. (required)view
- The view to materialize. Defaults to 'full'. (optional, default to full)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readHostConfigCall(String hostId, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host. (required)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiConfigList readHostConfig(String hostId, String view) throws ApiException
hostId
- The ID of the host. (required)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiConfigList> readHostConfigWithHttpInfo(String hostId, String view) throws ApiException
hostId
- The ID of the host. (required)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readHostConfigAsync(String hostId, String view, ApiCallback<ApiConfigList> callback) throws ApiException
hostId
- The ID of the host. (required)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readHostsCall(String configName, String configValue, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
configName
- Optional host config name to filter hosts by. Available from v40. (optional)configValue
- host config value associated with config name. Available from v40. (optional)view
- The view to materialize (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHostList readHosts(String configName, String configValue, String view) throws ApiException
configName
- Optional host config name to filter hosts by. Available from v40. (optional)configValue
- host config value associated with config name. Available from v40. (optional)view
- The view to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHostList> readHostsWithHttpInfo(String configName, String configValue, String view) throws ApiException
configName
- Optional host config name to filter hosts by. Available from v40. (optional)configValue
- host config value associated with config name. Available from v40. (optional)view
- The view to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readHostsAsync(String configName, String configValue, String view, ApiCallback<ApiHostList> callback) throws ApiException
configName
- Optional host config name to filter hosts by. Available from v40. (optional)configValue
- host config value associated with config name. Available from v40. (optional)view
- The view to materialize (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readTagsCall(String hostname, Integer limit, Integer offset, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostname
- The name of the host (required)limit
- Number of tags (optional, default to 10)offset
- Index of the first tag to retrieve (optional, default to 0)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic List<ApiEntityTag> readTags(String hostname, Integer limit, Integer offset) throws ApiException
hostname
- The name of the host (required)limit
- Number of tags (optional, default to 10)offset
- Index of the first tag to retrieve (optional, default to 0)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<ApiEntityTag>> readTagsWithHttpInfo(String hostname, Integer limit, Integer offset) throws ApiException
hostname
- The name of the host (required)limit
- Number of tags (optional, default to 10)offset
- Index of the first tag to retrieve (optional, default to 0)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readTagsAsync(String hostname, Integer limit, Integer offset, ApiCallback<List<ApiEntityTag>> callback) throws ApiException
hostname
- The name of the host (required)limit
- Number of tags (optional, default to 10)offset
- Index of the first tag to retrieve (optional, default to 0)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call resetHostIdCall(String hostId, String newHostId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host that should be affected. (required)newHostId
- New ID the the host should report. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand resetHostId(String hostId, String newHostId) throws ApiException
hostId
- The ID of the host that should be affected. (required)newHostId
- New ID the the host should report. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> resetHostIdWithHttpInfo(String hostId, String newHostId) throws ApiException
hostId
- The ID of the host that should be affected. (required)newHostId
- New ID the the host should report. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call resetHostIdAsync(String hostId, String newHostId, ApiCallback<ApiCommand> callback) throws ApiException
hostId
- The ID of the host that should be affected. (required)newHostId
- New ID the the host should report. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call updateHostCall(String hostId, ApiHost body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The hostId to update (required)body
- The updated host object. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiHost updateHost(String hostId, ApiHost body) throws ApiException
hostId
- The hostId to update (required)body
- The updated host object. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiHost> updateHostWithHttpInfo(String hostId, ApiHost body) throws ApiException
hostId
- The hostId to update (required)body
- The updated host object. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateHostAsync(String hostId, ApiHost body, ApiCallback<ApiHost> callback) throws ApiException
hostId
- The hostId to update (required)body
- The updated host object. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call updateHostConfigCall(String hostId, String message, ApiConfigList body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
hostId
- The ID of the host. (required)message
- Optional message describing the changes. (optional)body
- Configuration changes. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiConfigList updateHostConfig(String hostId, String message, ApiConfigList body) throws ApiException
hostId
- The ID of the host. (required)message
- Optional message describing the changes. (optional)body
- Configuration changes. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiConfigList> updateHostConfigWithHttpInfo(String hostId, String message, ApiConfigList body) throws ApiException
hostId
- The ID of the host. (required)message
- Optional message describing the changes. (optional)body
- Configuration changes. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateHostConfigAsync(String hostId, String message, ApiConfigList body, ApiCallback<ApiConfigList> callback) throws ApiException
hostId
- The ID of the host. (required)message
- Optional message describing the changes. (optional)body
- Configuration changes. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2020. All rights reserved.