CdpResourceApi

All URIs are relative to /api/v57

Method HTTP request Description
createEnvironmentCommand POST /cdp/createEnvironment Create an environment in ECS.
getRemoteContext GET /cdp/remoteContext/byContext/{dataContextName} Get a JSON for creating a remote data context in a Workload cluster.
getRemoteContextByCluster GET /cdp/remoteContext/byCluster/{clusterName} Get a JSON for creating a remote data context in a Workload cluster.
postRemoteContext POST /cdp/remoteContext Create or update the remote data context in the Workload cluster.

createEnvironmentCommand

ApiCommand createEnvironmentCommand(body, serviceName)

Create an environment in ECS.

Create an environment in ECS

Example

// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.CdpResourceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");

CdpResourceApi apiInstance = new CdpResourceApi();
ApiCreateEnvironment body = new ApiCreateEnvironment(); // ApiCreateEnvironment | 
String serviceName = "serviceName_example"; // String | 
try {
    ApiCommand result = apiInstance.createEnvironmentCommand(body, serviceName);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling CdpResourceApi#createEnvironmentCommand");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body ApiCreateEnvironment [optional]
serviceName String [optional]

Return type

ApiCommand

Authorization

basic

HTTP request headers

getRemoteContext

ApiRemoteDataContext getRemoteContext(dataContextName)

Get a JSON for creating a remote data context in a Workload cluster.

Get a JSON for creating a remote data context in a Workload cluster.

Example

// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.CdpResourceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");

CdpResourceApi apiInstance = new CdpResourceApi();
String dataContextName = "dataContextName_example"; // String | The name of the DataContext.
try {
    ApiRemoteDataContext result = apiInstance.getRemoteContext(dataContextName);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling CdpResourceApi#getRemoteContext");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
dataContextName String The name of the DataContext.

Return type

ApiRemoteDataContext

Authorization

basic

HTTP request headers

getRemoteContextByCluster

ApiRemoteDataContext getRemoteContextByCluster(clusterName)

Get a JSON for creating a remote data context in a Workload cluster.

Get a JSON for creating a remote data context in a Workload cluster.

Example

// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.CdpResourceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");

CdpResourceApi apiInstance = new CdpResourceApi();
String clusterName = "clusterName_example"; // String | The name of the DataContext.
try {
    ApiRemoteDataContext result = apiInstance.getRemoteContextByCluster(clusterName);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling CdpResourceApi#getRemoteContextByCluster");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
clusterName String The name of the DataContext.

Return type

ApiRemoteDataContext

Authorization

basic

HTTP request headers

postRemoteContext

ApiRemoteDataContext postRemoteContext(body)

Create or update the remote data context in the Workload cluster.

Create or update the remote data context in the Workload cluster.

Example

// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.CdpResourceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");

CdpResourceApi apiInstance = new CdpResourceApi();
ApiRemoteDataContext body = new ApiRemoteDataContext(); // ApiRemoteDataContext | 
try {
    ApiRemoteDataContext result = apiInstance.postRemoteContext(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling CdpResourceApi#postRemoteContext");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body ApiRemoteDataContext [optional]

Return type

ApiRemoteDataContext

Authorization

basic

HTTP request headers