All URIs are relative to //api-us.cloudcheckr.com/
Method | HTTP request | Description |
---|---|---|
get_customer | GET /customer/v1/customers/{customerId} | Get an individual customer. |
list_customers | GET /customer/v1/customers | Get all customers. |
CustomerResponseModel get_customer(customer_id)
Get an individual customer.
from __future__ import print_function
import time
import cloudcheckr_cmx_client
from cloudcheckr_cmx_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = cloudcheckr_cmx_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = cloudcheckr_cmx_client.CustomersApi(cloudcheckr_cmx_client.ApiClient(configuration))
customer_id = 'customer_id_example' # str |
try:
# Get an individual customer.
api_response = api_instance.get_customer(customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginationWithCountResponseCustomerResponseModel list_customers(page_size=page_size, pagination_key=pagination_key, search=search, filter=filter, order_by=order_by)
Get all customers.
from __future__ import print_function
import time
import cloudcheckr_cmx_client
from cloudcheckr_cmx_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = cloudcheckr_cmx_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = cloudcheckr_cmx_client.CustomersApi(cloudcheckr_cmx_client.ApiClient(configuration))
page_size = 56 # int | number of items to include in the response (optional)
pagination_key = 'pagination_key_example' # str | key used to fetch the next page of items (optional)
search = 'search_example' # str | finds all resources that match the specified value (optional)
filter = 'filter_example' # str | filters the result by the conditions (optional)
order_by = 'order_by_example' # str | orders a given property (optional)
try:
# Get all customers.
api_response = api_instance.list_customers(page_size=page_size, pagination_key=pagination_key, search=search, filter=filter, order_by=order_by)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->list_customers: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page_size | int | number of items to include in the response | [optional] |
pagination_key | str | key used to fetch the next page of items | [optional] |
search | str | finds all resources that match the specified value | [optional] |
filter | str | filters the result by the conditions | [optional] |
order_by | str | orders a given property | [optional] |
PaginationWithCountResponseCustomerResponseModel
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]