All URIs are relative to http://localhost
Method | Description |
---|---|
bulk_update_tenant_tickets | Bulk Update Tenant Tickets |
create_tenant_tickets | Create Tenant Tickets |
get_all_policy_violations | Get All Policy Violations |
get_policy_ticket_stats | Get Policy Ticket Stats |
get_policy_tickets_by_entity_id | Get Policy Tickets By Entity Id |
get_policy_tickets_by_policy_id | Get Policy Tickets By Policy Id |
get_tenant_ticket_by_id_with_policy | Get Tenant Ticket By Id With Policy |
get_tenant_tickets | Get Tenant Tickets |
update_tenant_ticket | Update Tenant Ticket |
update_tenant_tickets | Update Tenant Tickets |
ResponseBulkUpdateTenantTicketsAPIResponse bulk_update_tenant_tickets(bulk_update_tenant_tickets_api_request)
Bulk Update Tenant Tickets
import onelens_backend_client
from onelens_backend_client.models.bulk_update_tenant_tickets_api_request import BulkUpdateTenantTicketsAPIRequest
from onelens_backend_client.models.response_bulk_update_tenant_tickets_api_response import ResponseBulkUpdateTenantTicketsAPIResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
bulk_update_tenant_tickets_api_request = onelens_backend_client.BulkUpdateTenantTicketsAPIRequest() # BulkUpdateTenantTicketsAPIRequest |
try:
# Bulk Update Tenant Tickets
api_response = api_instance.bulk_update_tenant_tickets(bulk_update_tenant_tickets_api_request)
print("The response of TenantsTenantTicketsApi->bulk_update_tenant_tickets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->bulk_update_tenant_tickets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
bulk_update_tenant_tickets_api_request | BulkUpdateTenantTicketsAPIRequest |
ResponseBulkUpdateTenantTicketsAPIResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseCreateTenantTicketsResponse create_tenant_tickets(create_tenant_tickets_api_request)
Create Tenant Tickets
An API endpoint to create new tickets for a tenant in bulk
import onelens_backend_client
from onelens_backend_client.models.create_tenant_tickets_api_request import CreateTenantTicketsAPIRequest
from onelens_backend_client.models.response_create_tenant_tickets_response import ResponseCreateTenantTicketsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
create_tenant_tickets_api_request = onelens_backend_client.CreateTenantTicketsAPIRequest() # CreateTenantTicketsAPIRequest |
try:
# Create Tenant Tickets
api_response = api_instance.create_tenant_tickets(create_tenant_tickets_api_request)
print("The response of TenantsTenantTicketsApi->create_tenant_tickets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->create_tenant_tickets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
create_tenant_tickets_api_request | CreateTenantTicketsAPIRequest |
ResponseCreateTenantTicketsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseGetAllPolicyViolationsResponse get_all_policy_violations(get_all_policy_violations_api_request)
Get All Policy Violations
import onelens_backend_client
from onelens_backend_client.models.get_all_policy_violations_api_request import GetAllPolicyViolationsAPIRequest
from onelens_backend_client.models.response_get_all_policy_violations_response import ResponseGetAllPolicyViolationsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
get_all_policy_violations_api_request = onelens_backend_client.GetAllPolicyViolationsAPIRequest() # GetAllPolicyViolationsAPIRequest |
try:
# Get All Policy Violations
api_response = api_instance.get_all_policy_violations(get_all_policy_violations_api_request)
print("The response of TenantsTenantTicketsApi->get_all_policy_violations:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->get_all_policy_violations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_all_policy_violations_api_request | GetAllPolicyViolationsAPIRequest |
ResponseGetAllPolicyViolationsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseGetPolicyTicketStatsResponse get_policy_ticket_stats(get_policy_ticket_stats_api_request)
Get Policy Ticket Stats
import onelens_backend_client
from onelens_backend_client.models.get_policy_ticket_stats_api_request import GetPolicyTicketStatsAPIRequest
from onelens_backend_client.models.response_get_policy_ticket_stats_response import ResponseGetPolicyTicketStatsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
get_policy_ticket_stats_api_request = onelens_backend_client.GetPolicyTicketStatsAPIRequest() # GetPolicyTicketStatsAPIRequest |
try:
# Get Policy Ticket Stats
api_response = api_instance.get_policy_ticket_stats(get_policy_ticket_stats_api_request)
print("The response of TenantsTenantTicketsApi->get_policy_ticket_stats:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->get_policy_ticket_stats: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_policy_ticket_stats_api_request | GetPolicyTicketStatsAPIRequest |
ResponseGetPolicyTicketStatsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseGetPolicyTicketsByEntityIdResponse get_policy_tickets_by_entity_id(get_policy_tickets_by_entity_id_api_request)
Get Policy Tickets By Entity Id
import onelens_backend_client
from onelens_backend_client.models.get_policy_tickets_by_entity_id_api_request import GetPolicyTicketsByEntityIdAPIRequest
from onelens_backend_client.models.response_get_policy_tickets_by_entity_id_response import ResponseGetPolicyTicketsByEntityIdResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
get_policy_tickets_by_entity_id_api_request = onelens_backend_client.GetPolicyTicketsByEntityIdAPIRequest() # GetPolicyTicketsByEntityIdAPIRequest |
try:
# Get Policy Tickets By Entity Id
api_response = api_instance.get_policy_tickets_by_entity_id(get_policy_tickets_by_entity_id_api_request)
print("The response of TenantsTenantTicketsApi->get_policy_tickets_by_entity_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->get_policy_tickets_by_entity_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_policy_tickets_by_entity_id_api_request | GetPolicyTicketsByEntityIdAPIRequest |
ResponseGetPolicyTicketsByEntityIdResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseGetPolicyTicketsByPolicyIdResponse get_policy_tickets_by_policy_id(get_policy_tickets_by_policy_id_api_request)
Get Policy Tickets By Policy Id
import onelens_backend_client
from onelens_backend_client.models.get_policy_tickets_by_policy_id_api_request import GetPolicyTicketsByPolicyIdAPIRequest
from onelens_backend_client.models.response_get_policy_tickets_by_policy_id_response import ResponseGetPolicyTicketsByPolicyIdResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
get_policy_tickets_by_policy_id_api_request = onelens_backend_client.GetPolicyTicketsByPolicyIdAPIRequest() # GetPolicyTicketsByPolicyIdAPIRequest |
try:
# Get Policy Tickets By Policy Id
api_response = api_instance.get_policy_tickets_by_policy_id(get_policy_tickets_by_policy_id_api_request)
print("The response of TenantsTenantTicketsApi->get_policy_tickets_by_policy_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->get_policy_tickets_by_policy_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_policy_tickets_by_policy_id_api_request | GetPolicyTicketsByPolicyIdAPIRequest |
ResponseGetPolicyTicketsByPolicyIdResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseGetTicketByIdPolicyDetailsResponse get_tenant_ticket_by_id_with_policy(ticket_id)
Get Tenant Ticket By Id With Policy
An API endpoint to get the ticket with policy details
import onelens_backend_client
from onelens_backend_client.models.response_get_ticket_by_id_policy_details_response import ResponseGetTicketByIdPolicyDetailsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
ticket_id = 'ticket_id_example' # str |
try:
# Get Tenant Ticket By Id With Policy
api_response = api_instance.get_tenant_ticket_by_id_with_policy(ticket_id)
print("The response of TenantsTenantTicketsApi->get_tenant_ticket_by_id_with_policy:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->get_tenant_ticket_by_id_with_policy: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
ticket_id | str |
ResponseGetTicketByIdPolicyDetailsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseGetTenantTicketsResponse get_tenant_tickets(get_tenant_tickets_api_request)
Get Tenant Tickets
An API endpoint that retrieves active tickets for a tenant
import onelens_backend_client
from onelens_backend_client.models.get_tenant_tickets_api_request import GetTenantTicketsAPIRequest
from onelens_backend_client.models.response_get_tenant_tickets_response import ResponseGetTenantTicketsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
get_tenant_tickets_api_request = onelens_backend_client.GetTenantTicketsAPIRequest() # GetTenantTicketsAPIRequest |
try:
# Get Tenant Tickets
api_response = api_instance.get_tenant_tickets(get_tenant_tickets_api_request)
print("The response of TenantsTenantTicketsApi->get_tenant_tickets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->get_tenant_tickets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_tenant_tickets_api_request | GetTenantTicketsAPIRequest |
ResponseGetTenantTicketsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseUpdateTenantTicketResponse update_tenant_ticket(ticket_id, update_tenant_ticket_api_request)
Update Tenant Ticket
An API endpoint to update the user state of a ticket
import onelens_backend_client
from onelens_backend_client.models.response_update_tenant_ticket_response import ResponseUpdateTenantTicketResponse
from onelens_backend_client.models.update_tenant_ticket_api_request import UpdateTenantTicketAPIRequest
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
ticket_id = 'ticket_id_example' # str |
update_tenant_ticket_api_request = onelens_backend_client.UpdateTenantTicketAPIRequest() # UpdateTenantTicketAPIRequest |
try:
# Update Tenant Ticket
api_response = api_instance.update_tenant_ticket(ticket_id, update_tenant_ticket_api_request)
print("The response of TenantsTenantTicketsApi->update_tenant_ticket:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->update_tenant_ticket: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
ticket_id | str | ||
update_tenant_ticket_api_request | UpdateTenantTicketAPIRequest |
ResponseUpdateTenantTicketResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseUpdateTenantTicketsResponse update_tenant_tickets(update_tenant_tickets_api_request)
Update Tenant Tickets
An API endpoint to update tickets for a tenant in bulk
import onelens_backend_client
from onelens_backend_client.models.response_update_tenant_tickets_response import ResponseUpdateTenantTicketsResponse
from onelens_backend_client.models.update_tenant_tickets_api_request import UpdateTenantTicketsAPIRequest
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantsTenantTicketsApi(api_client)
update_tenant_tickets_api_request = onelens_backend_client.UpdateTenantTicketsAPIRequest() # UpdateTenantTicketsAPIRequest |
try:
# Update Tenant Tickets
api_response = api_instance.update_tenant_tickets(update_tenant_tickets_api_request)
print("The response of TenantsTenantTicketsApi->update_tenant_tickets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantsTenantTicketsApi->update_tenant_tickets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
update_tenant_tickets_api_request | UpdateTenantTicketsAPIRequest |
ResponseUpdateTenantTicketsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]