All URIs are relative to https://localhost/api/v33
Method | HTTP request | Description |
---|---|---|
get_parcel_usage | GET /clusters/{clusterName}/parcels/usage | Retrieve details parcel usage information for the cluster. |
read_parcels | GET /clusters/{clusterName}/parcels | Lists all parcels that the cluster has access to. |
ApiParcelUsage get_parcel_usage(cluster_name)
Retrieve details parcel usage information for the cluster.
Retrieve details parcel usage information for the cluster. This describes which processes, roles and hosts are using which parcels.
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.ParcelsResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
try:
# Retrieve details parcel usage information for the cluster.
api_response = api_instance.get_parcel_usage(cluster_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelsResourceApi->get_parcel_usage: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiParcelList read_parcels(cluster_name, view=view)
Lists all parcels that the cluster has access to.
Lists all parcels that the cluster has access to.
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.ParcelsResourceApi(cm_client.ApiClient(configuration))
cluster_name = 'cluster_name_example' # str |
view = 'summary' # str | (optional) (default to summary)
try:
# Lists all parcels that the cluster has access to.
api_response = api_instance.read_parcels(cluster_name, view=view)
pprint(api_response)
except ApiException as e:
print("Exception when calling ParcelsResourceApi->read_parcels: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
cluster_name | str | ||
view | str | [optional] [default to summary] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]