All URIs are relative to https://localhost/api/v40
Method | HTTP request | Description |
---|---|---|
activate_command | POST /clusters/{clusterName}/parcels/products/{product}/versions/{version}/commands/activate | A synchronous command that activates the parcel on the cluster. |
cancel_distribution_command | POST /clusters/{clusterName}/parcels/products/{product}/versions/{version}/commands/cancelDistribution | A synchronous command that cancels the parcel distribution. |
cancel_download_command | POST /clusters/{clusterName}/parcels/products/{product}/versions/{version}/commands/cancelDownload | A synchronous command that cancels the parcel download. |
deactivate_command | POST /clusters/{clusterName}/parcels/products/{product}/versions/{version}/commands/deactivate | A synchronous command that deactivates the parcel on the cluster. |
read_parcel | GET /clusters/{clusterName}/parcels/products/{product}/versions/{version} | Retrieves detailed information about a parcel. |
remove_download_command | POST /clusters/{clusterName}/parcels/products/{product}/versions/{version}/commands/removeDownload | A synchronous command that removes the downloaded parcel. |
start_distribution_command | POST /clusters/{clusterName}/parcels/products/{product}/versions/{version}/commands/startDistribution | A synchronous command that starts the distribution of the parcel to the cluster. |
start_download_command | POST /clusters/{clusterName}/parcels/products/{product}/versions/{version}/commands/startDownload | A synchronous command that starts the parcel download. |
start_removal_of_distribution_command | POST /clusters/{clusterName}/parcels/products/{product}/versions/{version}/commands/startRemovalOfDistribution | A synchronous command that removes the distribution from the hosts in the cluster. |
ApiCommand activate_command(cluster_name, product, version)
A synchronous command that activates the parcel on the cluster.
A synchronous command that activates the parcel on the cluster.
Since it is synchronous, the result is known immediately upon return.
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.ParcelResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
product = 'product_example' # str | the product
version = 'version_example' # str | the version
try:
# A synchronous command that activates the parcel on the cluster.
api_response = api_instance.activate_command(cluster_name, product, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelResourceApi->activate_command: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
product | str | the product | |
version | str | the version |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand cancel_distribution_command(cluster_name, product, version)
A synchronous command that cancels the parcel distribution.
A synchronous command that cancels the parcel distribution.
Since it is synchronous, the result is known immediately upon return.
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.ParcelResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
product = 'product_example' # str | the product
version = 'version_example' # str | the version
try:
# A synchronous command that cancels the parcel distribution.
api_response = api_instance.cancel_distribution_command(cluster_name, product, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelResourceApi->cancel_distribution_command: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
product | str | the product | |
version | str | the version |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand cancel_download_command(cluster_name, product, version)
A synchronous command that cancels the parcel download.
A synchronous command that cancels the parcel download.
Since it is synchronous, the result is known immediately upon return.
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.ParcelResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
product = 'product_example' # str | the product
version = 'version_example' # str | the version
try:
# A synchronous command that cancels the parcel download.
api_response = api_instance.cancel_download_command(cluster_name, product, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelResourceApi->cancel_download_command: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
product | str | the product | |
version | str | the version |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand deactivate_command(cluster_name, product, version)
A synchronous command that deactivates the parcel on the cluster.
A synchronous command that deactivates the parcel on the cluster.
Since it is synchronous, the result is known immediately upon return.
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.ParcelResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
product = 'product_example' # str | the product
version = 'version_example' # str | the version
try:
# A synchronous command that deactivates the parcel on the cluster.
api_response = api_instance.deactivate_command(cluster_name, product, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelResourceApi->deactivate_command: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
product | str | the product | |
version | str | the version |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiParcel read_parcel(cluster_name, product, version)
Retrieves detailed information about a parcel.
Retrieves detailed information about a parcel.
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.ParcelResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
product = 'product_example' # str | the product
version = 'version_example' # str | the version
try:
# Retrieves detailed information about a parcel.
api_response = api_instance.read_parcel(cluster_name, product, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelResourceApi->read_parcel: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
product | str | the product | |
version | str | the version |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand remove_download_command(cluster_name, product, version)
A synchronous command that removes the downloaded parcel.
A synchronous command that removes the downloaded parcel.
Since it is synchronous, the result is known immediately upon return.
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.ParcelResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
product = 'product_example' # str | the product
version = 'version_example' # str | the version
try:
# A synchronous command that removes the downloaded parcel.
api_response = api_instance.remove_download_command(cluster_name, product, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelResourceApi->remove_download_command: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
product | str | the product | |
version | str | the version |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand start_distribution_command(cluster_name, product, version)
A synchronous command that starts the distribution of the parcel to the cluster.
A synchronous command that starts the distribution of the parcel to the cluster.
Since it is synchronous, the result is known immediately upon return. In order to see the progress of the distribution, a call to ParcelResource#readParcel() needs to be made.
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.ParcelResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
product = 'product_example' # str | the product
version = 'version_example' # str | the version
try:
# A synchronous command that starts the distribution of the parcel to the cluster.
api_response = api_instance.start_distribution_command(cluster_name, product, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelResourceApi->start_distribution_command: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
product | str | the product | |
version | str | the version |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand start_download_command(cluster_name, product, version)
A synchronous command that starts the parcel download.
A synchronous command that starts the parcel download.
Since it is synchronous, the result is known immediately upon return. In order to see the progress of the download, a call to ParcelResource#readParcel() needs to be made.
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.ParcelResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
product = 'product_example' # str | the product
version = 'version_example' # str | the version
try:
# A synchronous command that starts the parcel download.
api_response = api_instance.start_download_command(cluster_name, product, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelResourceApi->start_download_command: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
product | str | the product | |
version | str | the version |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand start_removal_of_distribution_command(cluster_name, product, version)
A synchronous command that removes the distribution from the hosts in the cluster.
A synchronous command that removes the distribution from the hosts in the cluster.
Since it is synchronous, the result is known immediately upon return. In order to see the progress of the removal, a call to ParcelResource#readParcel() needs to be made.
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.ParcelResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
product = 'product_example' # str | the product
version = 'version_example' # str | the version
try:
# A synchronous command that removes the distribution from the hosts in the cluster.
api_response = api_instance.start_removal_of_distribution_command(cluster_name, product, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelResourceApi->start_removal_of_distribution_command: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
product | str | the product | |
version | str | the version |
[Back to top] [Back to API list] [Back to Model list] [Back to README]