All URIs are relative to http://localhost
Method | Description |
---|---|
bulk_update_tenant_tickets | Bulk update tenant tickets |
create_tenant_tickets | Creates policy tickets in bulk |
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_details | Retrieves all active tickets of a tenant. |
get_tenant_tickets | Retrieves all active tickets of a tenant. |
update_tenant_ticket | Update tenant policy ticket user state |
update_tenant_tickets | Updates policy tickets in bulk |
BulkUpdateTenantTicketsResponse bulk_update_tenant_tickets(bulk_update_tenant_tickets_request)
Bulk update tenant tickets
import onelens_backend_client
from onelens_backend_client.models.bulk_update_tenant_tickets_request import BulkUpdateTenantTicketsRequest
from onelens_backend_client.models.bulk_update_tenant_tickets_response import BulkUpdateTenantTicketsResponse
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.TenantTicketServiceApi(api_client)
bulk_update_tenant_tickets_request = onelens_backend_client.BulkUpdateTenantTicketsRequest() # BulkUpdateTenantTicketsRequest |
try:
# Bulk update tenant tickets
api_response = api_instance.bulk_update_tenant_tickets(bulk_update_tenant_tickets_request)
print("The response of TenantTicketServiceApi->bulk_update_tenant_tickets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->bulk_update_tenant_tickets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
bulk_update_tenant_tickets_request | BulkUpdateTenantTicketsRequest |
BulkUpdateTenantTicketsResponse
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]
object create_tenant_tickets(create_tenant_tickets_request)
Creates policy tickets in bulk
import onelens_backend_client
from onelens_backend_client.models.create_tenant_tickets_request import CreateTenantTicketsRequest
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.TenantTicketServiceApi(api_client)
create_tenant_tickets_request = onelens_backend_client.CreateTenantTicketsRequest() # CreateTenantTicketsRequest |
try:
# Creates policy tickets in bulk
api_response = api_instance.create_tenant_tickets(create_tenant_tickets_request)
print("The response of TenantTicketServiceApi->create_tenant_tickets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->create_tenant_tickets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
create_tenant_tickets_request | CreateTenantTicketsRequest |
object
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]
GetAllPolicyViolationsResponse get_all_policy_violations(get_all_policy_violations_request)
Get All Policy Violations
import onelens_backend_client
from onelens_backend_client.models.get_all_policy_violations_request import GetAllPolicyViolationsRequest
from onelens_backend_client.models.get_all_policy_violations_response import GetAllPolicyViolationsResponse
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.TenantTicketServiceApi(api_client)
get_all_policy_violations_request = onelens_backend_client.GetAllPolicyViolationsRequest() # GetAllPolicyViolationsRequest |
try:
# Get All Policy Violations
api_response = api_instance.get_all_policy_violations(get_all_policy_violations_request)
print("The response of TenantTicketServiceApi->get_all_policy_violations:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->get_all_policy_violations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_all_policy_violations_request | GetAllPolicyViolationsRequest |
GetAllPolicyViolationsResponse
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]
GetPolicyTicketStatsResponse get_policy_ticket_stats(get_policy_ticket_stats_request)
Get Policy Ticket Stats
import onelens_backend_client
from onelens_backend_client.models.get_policy_ticket_stats_request import GetPolicyTicketStatsRequest
from onelens_backend_client.models.get_policy_ticket_stats_response import GetPolicyTicketStatsResponse
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.TenantTicketServiceApi(api_client)
get_policy_ticket_stats_request = onelens_backend_client.GetPolicyTicketStatsRequest() # GetPolicyTicketStatsRequest |
try:
# Get Policy Ticket Stats
api_response = api_instance.get_policy_ticket_stats(get_policy_ticket_stats_request)
print("The response of TenantTicketServiceApi->get_policy_ticket_stats:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->get_policy_ticket_stats: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_policy_ticket_stats_request | GetPolicyTicketStatsRequest |
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]
GetPolicyTicketsByEntityIdResponse get_policy_tickets_by_entity_id(get_policy_tickets_by_entity_id_request)
Get Policy Tickets By Entity Id
import onelens_backend_client
from onelens_backend_client.models.get_policy_tickets_by_entity_id_request import GetPolicyTicketsByEntityIdRequest
from onelens_backend_client.models.get_policy_tickets_by_entity_id_response import GetPolicyTicketsByEntityIdResponse
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.TenantTicketServiceApi(api_client)
get_policy_tickets_by_entity_id_request = onelens_backend_client.GetPolicyTicketsByEntityIdRequest() # GetPolicyTicketsByEntityIdRequest |
try:
# Get Policy Tickets By Entity Id
api_response = api_instance.get_policy_tickets_by_entity_id(get_policy_tickets_by_entity_id_request)
print("The response of TenantTicketServiceApi->get_policy_tickets_by_entity_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->get_policy_tickets_by_entity_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_policy_tickets_by_entity_id_request | GetPolicyTicketsByEntityIdRequest |
GetPolicyTicketsByEntityIdResponse
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]
GetPolicyTicketsByPolicyIdResponse get_policy_tickets_by_policy_id(get_policy_tickets_by_policy_id_request)
Get Policy Tickets By Policy Id
import onelens_backend_client
from onelens_backend_client.models.get_policy_tickets_by_policy_id_request import GetPolicyTicketsByPolicyIdRequest
from onelens_backend_client.models.get_policy_tickets_by_policy_id_response import GetPolicyTicketsByPolicyIdResponse
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.TenantTicketServiceApi(api_client)
get_policy_tickets_by_policy_id_request = onelens_backend_client.GetPolicyTicketsByPolicyIdRequest() # GetPolicyTicketsByPolicyIdRequest |
try:
# Get Policy Tickets By Policy Id
api_response = api_instance.get_policy_tickets_by_policy_id(get_policy_tickets_by_policy_id_request)
print("The response of TenantTicketServiceApi->get_policy_tickets_by_policy_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->get_policy_tickets_by_policy_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_policy_tickets_by_policy_id_request | GetPolicyTicketsByPolicyIdRequest |
GetPolicyTicketsByPolicyIdResponse
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]
GetTicketByIdPolicyDetailsResponse get_tenant_ticket_by_id_with_policy_details(get_ticket_by_id_policy_details_request)
Retrieves all active tickets of a tenant.
import onelens_backend_client
from onelens_backend_client.models.get_ticket_by_id_policy_details_request import GetTicketByIdPolicyDetailsRequest
from onelens_backend_client.models.get_ticket_by_id_policy_details_response import GetTicketByIdPolicyDetailsResponse
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.TenantTicketServiceApi(api_client)
get_ticket_by_id_policy_details_request = onelens_backend_client.GetTicketByIdPolicyDetailsRequest() # GetTicketByIdPolicyDetailsRequest |
try:
# Retrieves all active tickets of a tenant.
api_response = api_instance.get_tenant_ticket_by_id_with_policy_details(get_ticket_by_id_policy_details_request)
print("The response of TenantTicketServiceApi->get_tenant_ticket_by_id_with_policy_details:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->get_tenant_ticket_by_id_with_policy_details: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_ticket_by_id_policy_details_request | GetTicketByIdPolicyDetailsRequest |
GetTicketByIdPolicyDetailsResponse
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]
GetTenantTicketsResponse get_tenant_tickets(get_tenant_tickets_request)
Retrieves all active tickets of a tenant.
import onelens_backend_client
from onelens_backend_client.models.get_tenant_tickets_request import GetTenantTicketsRequest
from onelens_backend_client.models.get_tenant_tickets_response import GetTenantTicketsResponse
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.TenantTicketServiceApi(api_client)
get_tenant_tickets_request = onelens_backend_client.GetTenantTicketsRequest() # GetTenantTicketsRequest |
try:
# Retrieves all active tickets of a tenant.
api_response = api_instance.get_tenant_tickets(get_tenant_tickets_request)
print("The response of TenantTicketServiceApi->get_tenant_tickets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->get_tenant_tickets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_tenant_tickets_request | GetTenantTicketsRequest |
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]
object update_tenant_ticket(update_tenant_ticket_request)
Update tenant policy ticket user state
import onelens_backend_client
from onelens_backend_client.models.update_tenant_ticket_request import UpdateTenantTicketRequest
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.TenantTicketServiceApi(api_client)
update_tenant_ticket_request = onelens_backend_client.UpdateTenantTicketRequest() # UpdateTenantTicketRequest |
try:
# Update tenant policy ticket user state
api_response = api_instance.update_tenant_ticket(update_tenant_ticket_request)
print("The response of TenantTicketServiceApi->update_tenant_ticket:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->update_tenant_ticket: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
update_tenant_ticket_request | UpdateTenantTicketRequest |
object
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]
object update_tenant_tickets(update_tenant_tickets_request)
Updates policy tickets in bulk
import onelens_backend_client
from onelens_backend_client.models.update_tenant_tickets_request import UpdateTenantTicketsRequest
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.TenantTicketServiceApi(api_client)
update_tenant_tickets_request = onelens_backend_client.UpdateTenantTicketsRequest() # UpdateTenantTicketsRequest |
try:
# Updates policy tickets in bulk
api_response = api_instance.update_tenant_tickets(update_tenant_tickets_request)
print("The response of TenantTicketServiceApi->update_tenant_tickets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantTicketServiceApi->update_tenant_tickets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
update_tenant_tickets_request | UpdateTenantTicketsRequest |
object
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]