All URIs are relative to https://localhost/api/v41
Method | HTTP request | Description |
---|---|---|
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. |
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.
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
dataContextName | String | The name of the DataContext. |
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.
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
clusterName | String | The name of the DataContext. |
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.
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiRemoteDataContext | [optional] |