All URIs are relative to https://localhost/api/v52
Method | HTTP request | Description |
---|---|---|
create_environment_command | POST /cdp/createEnvironment | Create an environment in ECS. |
get_remote_context | GET /cdp/remoteContext/byContext/{dataContextName} | Get a JSON for creating a remote data context in a Workload cluster. |
get_remote_context_by_cluster | GET /cdp/remoteContext/byCluster/{clusterName} | Get a JSON for creating a remote data context in a Workload cluster. |
post_remote_context | POST /cdp/remoteContext | Create or update the remote data context in the Workload cluster. |
ApiCommand create_environment_command(service_name=service_name, body=body)
Create an environment in ECS.
Create an environment in ECS
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.CdpResourceApi(cm_client.ApiClient(configuration))
service_name = 'service_name_example' # str | (optional)
body = cm_client.ApiCreateEnvironment() # ApiCreateEnvironment | (optional)
try:
# Create an environment in ECS.
api_response = api_instance.create_environment_command(service_name=service_name, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CdpResourceApi->create_environment_command: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
service_name | str | [optional] | |
body | ApiCreateEnvironment | [optional] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiRemoteDataContext get_remote_context(data_context_name)
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.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.CdpResourceApi(cm_client.ApiClient(configuration))
data_context_name = 'data_context_name_example' # str | The name of the DataContext.
try:
# Get a JSON for creating a remote data context in a Workload cluster.
api_response = api_instance.get_remote_context(data_context_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling CdpResourceApi->get_remote_context: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
data_context_name | str | The name of the DataContext. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiRemoteDataContext get_remote_context_by_cluster(cluster_name)
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.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.CdpResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str | The name of the DataContext.
try:
# Get a JSON for creating a remote data context in a Workload cluster.
api_response = api_instance.get_remote_context_by_cluster(cluster_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling CdpResourceApi->get_remote_context_by_cluster: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | The name of the DataContext. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiRemoteDataContext post_remote_context(body=body)
Create or update the remote data context in the Workload cluster.
Create or update the remote data context in the Workload cluster.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.CdpResourceApi(cm_client.ApiClient(configuration))
body = cm_client.ApiRemoteDataContext() # ApiRemoteDataContext | (optional)
try:
# Create or update the remote data context in the Workload cluster.
api_response = api_instance.post_remote_context(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CdpResourceApi->post_remote_context: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | ApiRemoteDataContext | [optional] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]