All URIs are relative to //localhost/
Method | HTTP request | Description |
---|---|---|
assign_entity_view_to_customer_using_post | POST /api/customer/{customerId}/entityView/{entityViewId} | assignEntityViewToCustomer |
assign_entity_view_to_public_customer_using_post | POST /api/customer/public/entityView/{entityViewId} | assignEntityViewToPublicCustomer |
delete_entity_view_using_delete | DELETE /api/entityView/{entityViewId} | deleteEntityView |
find_by_query_using_post3 | POST /api/entityViews | findByQuery |
get_customer_entity_views_using_get | GET /api/customer/{customerId}/entityViews | getCustomerEntityViews |
get_entity_view_by_id_using_get | GET /api/entityView/{entityViewId} | getEntityViewById |
get_entity_view_types_using_get | GET /api/entityView/types | getEntityViewTypes |
get_tenant_entity_views_using_get | GET /api/tenant/entityViews | getTenantEntityViews |
save_entity_view_using_post | POST /api/entityView | saveEntityView |
unassign_entity_view_from_customer_using_delete | DELETE /api/customer/entityView/{entityViewId} | unassignEntityViewFromCustomer |
EntityView assign_entity_view_to_customer_using_post(customer_id, entity_view_id)
assignEntityViewToCustomer
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
customer_id = 'customer_id_example' # str | customerId
entity_view_id = 'entity_view_id_example' # str | entityViewId
try:
# assignEntityViewToCustomer
api_response = api_instance.assign_entity_view_to_customer_using_post(customer_id, entity_view_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->assign_entity_view_to_customer_using_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | customerId | |
entity_view_id | str | entityViewId |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EntityView assign_entity_view_to_public_customer_using_post(entity_view_id)
assignEntityViewToPublicCustomer
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
entity_view_id = 'entity_view_id_example' # str | entityViewId
try:
# assignEntityViewToPublicCustomer
api_response = api_instance.assign_entity_view_to_public_customer_using_post(entity_view_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->assign_entity_view_to_public_customer_using_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
entity_view_id | str | entityViewId |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_entity_view_using_delete(entity_view_id)
deleteEntityView
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
entity_view_id = 'entity_view_id_example' # str | entityViewId
try:
# deleteEntityView
api_instance.delete_entity_view_using_delete(entity_view_id)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->delete_entity_view_using_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
entity_view_id | str | entityViewId |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[EntityView] find_by_query_using_post3(body)
findByQuery
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
body = thingsboard_client.EntityViewSearchQuery() # EntityViewSearchQuery | query
try:
# findByQuery
api_response = api_instance.find_by_query_using_post3(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->find_by_query_using_post3: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EntityViewSearchQuery | query |
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TextPageDataEntityView get_customer_entity_views_using_get(customer_id, limit, type=type, text_search=text_search, id_offset=id_offset, text_offset=text_offset)
getCustomerEntityViews
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
customer_id = 'customer_id_example' # str | customerId
limit = 'limit_example' # str | limit
type = 'type_example' # str | type (optional)
text_search = 'text_search_example' # str | textSearch (optional)
id_offset = 'id_offset_example' # str | idOffset (optional)
text_offset = 'text_offset_example' # str | textOffset (optional)
try:
# getCustomerEntityViews
api_response = api_instance.get_customer_entity_views_using_get(customer_id, limit, type=type, text_search=text_search, id_offset=id_offset, text_offset=text_offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->get_customer_entity_views_using_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | customerId | |
limit | str | limit | |
type | str | type | [optional] |
text_search | str | textSearch | [optional] |
id_offset | str | idOffset | [optional] |
text_offset | str | textOffset | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EntityView get_entity_view_by_id_using_get(entity_view_id)
getEntityViewById
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
entity_view_id = 'entity_view_id_example' # str | entityViewId
try:
# getEntityViewById
api_response = api_instance.get_entity_view_by_id_using_get(entity_view_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->get_entity_view_by_id_using_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
entity_view_id | str | entityViewId |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[EntitySubtype] get_entity_view_types_using_get()
getEntityViewTypes
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
try:
# getEntityViewTypes
api_response = api_instance.get_entity_view_types_using_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->get_entity_view_types_using_get: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TextPageDataEntityView get_tenant_entity_views_using_get(limit, type=type, text_search=text_search, id_offset=id_offset, text_offset=text_offset)
getTenantEntityViews
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
limit = 'limit_example' # str | limit
type = 'type_example' # str | type (optional)
text_search = 'text_search_example' # str | textSearch (optional)
id_offset = 'id_offset_example' # str | idOffset (optional)
text_offset = 'text_offset_example' # str | textOffset (optional)
try:
# getTenantEntityViews
api_response = api_instance.get_tenant_entity_views_using_get(limit, type=type, text_search=text_search, id_offset=id_offset, text_offset=text_offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->get_tenant_entity_views_using_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
limit | str | limit | |
type | str | type | [optional] |
text_search | str | textSearch | [optional] |
id_offset | str | idOffset | [optional] |
text_offset | str | textOffset | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EntityView save_entity_view_using_post(body)
saveEntityView
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
body = thingsboard_client.EntityView() # EntityView | entityView
try:
# saveEntityView
api_response = api_instance.save_entity_view_using_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->save_entity_view_using_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | EntityView | entityView |
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EntityView unassign_entity_view_from_customer_using_delete(entity_view_id)
unassignEntityViewFromCustomer
from __future__ import print_function
import time
import thingsboard_client
from thingsboard_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-Authorization
configuration = thingsboard_client.Configuration()
configuration.api_key['X-Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thingsboard_client.EntityViewControllerApi(thingsboard_client.ApiClient(configuration))
entity_view_id = 'entity_view_id_example' # str | entityViewId
try:
# unassignEntityViewFromCustomer
api_response = api_instance.unassign_entity_view_from_customer_using_delete(entity_view_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EntityViewControllerApi->unassign_entity_view_from_customer_using_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
entity_view_id | str | entityViewId |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]