All URIs are relative to http://localhost
Method | Description |
---|---|
add_tenant_policy_exclusions | Add tenant policy exclusions. |
disable_tenant_policy | disable a policy for a tenant in the tenant DB. |
enable_all_policies | enables all policies for a tenant. |
enable_tenant_policy | enables a policy for a tenant in the tenant DB. |
get_tenant_policies | Retrieves all tenant policies, optionally filtered by the parameters in the request. |
get_tenant_policies_with_settings | Retrieves all tenant policies, optionally filtered by the parameters in the request. |
get_tenant_policy_by_id | Retrieves a tenant policy by its id. |
get_tenant_policy_settings | Retrieves all tenant policy settings, optionally filtered by the parameters in the request. |
get_tenant_policy_stats | Get Tenant Policy Stats |
get_tenant_policy_with_summary | Retrieves a tenant policy with corresponding recommendations, by its id. |
override_tenant_policy_config | Override the tenant policy config with the provided config. |
override_tenant_policy_exclusions | Override tenant policy exclusions. |
update_tenant_policy_settings_last_run_at | Update the last run at timestamp of the policy setting. |
AddTenantPolicyExclusionsResponse add_tenant_policy_exclusions(add_tenant_policy_exclusions_request)
Add tenant policy exclusions.
import onelens_backend_client
from onelens_backend_client.models.add_tenant_policy_exclusions_request import AddTenantPolicyExclusionsRequest
from onelens_backend_client.models.add_tenant_policy_exclusions_response import AddTenantPolicyExclusionsResponse
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.TenantPolicyServiceApi(api_client)
add_tenant_policy_exclusions_request = onelens_backend_client.AddTenantPolicyExclusionsRequest() # AddTenantPolicyExclusionsRequest |
try:
# Add tenant policy exclusions.
api_response = api_instance.add_tenant_policy_exclusions(add_tenant_policy_exclusions_request)
print("The response of TenantPolicyServiceApi->add_tenant_policy_exclusions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->add_tenant_policy_exclusions: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
add_tenant_policy_exclusions_request | AddTenantPolicyExclusionsRequest |
AddTenantPolicyExclusionsResponse
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 disable_tenant_policy(disable_tenant_policy_request)
disable a policy for a tenant in the tenant DB.
import onelens_backend_client
from onelens_backend_client.models.disable_tenant_policy_request import DisableTenantPolicyRequest
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.TenantPolicyServiceApi(api_client)
disable_tenant_policy_request = onelens_backend_client.DisableTenantPolicyRequest() # DisableTenantPolicyRequest |
try:
# disable a policy for a tenant in the tenant DB.
api_response = api_instance.disable_tenant_policy(disable_tenant_policy_request)
print("The response of TenantPolicyServiceApi->disable_tenant_policy:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->disable_tenant_policy: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
disable_tenant_policy_request | DisableTenantPolicyRequest |
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 enable_all_policies(enable_all_policies_request)
enables all policies for a tenant.
import onelens_backend_client
from onelens_backend_client.models.enable_all_policies_request import EnableAllPoliciesRequest
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.TenantPolicyServiceApi(api_client)
enable_all_policies_request = onelens_backend_client.EnableAllPoliciesRequest() # EnableAllPoliciesRequest |
try:
# enables all policies for a tenant.
api_response = api_instance.enable_all_policies(enable_all_policies_request)
print("The response of TenantPolicyServiceApi->enable_all_policies:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->enable_all_policies: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
enable_all_policies_request | EnableAllPoliciesRequest |
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 enable_tenant_policy(enable_tenant_policy_request)
enables a policy for a tenant in the tenant DB.
import onelens_backend_client
from onelens_backend_client.models.enable_tenant_policy_request import EnableTenantPolicyRequest
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.TenantPolicyServiceApi(api_client)
enable_tenant_policy_request = onelens_backend_client.EnableTenantPolicyRequest() # EnableTenantPolicyRequest |
try:
# enables a policy for a tenant in the tenant DB.
api_response = api_instance.enable_tenant_policy(enable_tenant_policy_request)
print("The response of TenantPolicyServiceApi->enable_tenant_policy:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->enable_tenant_policy: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
enable_tenant_policy_request | EnableTenantPolicyRequest |
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]
GetTenantPoliciesResponse get_tenant_policies(get_tenant_policies_request)
Retrieves all tenant policies, optionally filtered by the parameters in the request.
import onelens_backend_client
from onelens_backend_client.models.get_tenant_policies_request import GetTenantPoliciesRequest
from onelens_backend_client.models.get_tenant_policies_response import GetTenantPoliciesResponse
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.TenantPolicyServiceApi(api_client)
get_tenant_policies_request = onelens_backend_client.GetTenantPoliciesRequest() # GetTenantPoliciesRequest |
try:
# Retrieves all tenant policies, optionally filtered by the parameters in the request.
api_response = api_instance.get_tenant_policies(get_tenant_policies_request)
print("The response of TenantPolicyServiceApi->get_tenant_policies:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->get_tenant_policies: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_tenant_policies_request | GetTenantPoliciesRequest |
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]
GetTenantPoliciesWithSettingsResponse get_tenant_policies_with_settings(get_tenant_policies_with_settings_request)
Retrieves all tenant policies, optionally filtered by the parameters in the request.
import onelens_backend_client
from onelens_backend_client.models.get_tenant_policies_with_settings_request import GetTenantPoliciesWithSettingsRequest
from onelens_backend_client.models.get_tenant_policies_with_settings_response import GetTenantPoliciesWithSettingsResponse
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.TenantPolicyServiceApi(api_client)
get_tenant_policies_with_settings_request = onelens_backend_client.GetTenantPoliciesWithSettingsRequest() # GetTenantPoliciesWithSettingsRequest |
try:
# Retrieves all tenant policies, optionally filtered by the parameters in the request.
api_response = api_instance.get_tenant_policies_with_settings(get_tenant_policies_with_settings_request)
print("The response of TenantPolicyServiceApi->get_tenant_policies_with_settings:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->get_tenant_policies_with_settings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_tenant_policies_with_settings_request | GetTenantPoliciesWithSettingsRequest |
GetTenantPoliciesWithSettingsResponse
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]
GetTenantPolicyByIdResponse get_tenant_policy_by_id(get_tenant_policy_by_id_request)
Retrieves a tenant policy by its id.
import onelens_backend_client
from onelens_backend_client.models.get_tenant_policy_by_id_request import GetTenantPolicyByIdRequest
from onelens_backend_client.models.get_tenant_policy_by_id_response import GetTenantPolicyByIdResponse
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.TenantPolicyServiceApi(api_client)
get_tenant_policy_by_id_request = onelens_backend_client.GetTenantPolicyByIdRequest() # GetTenantPolicyByIdRequest |
try:
# Retrieves a tenant policy by its id.
api_response = api_instance.get_tenant_policy_by_id(get_tenant_policy_by_id_request)
print("The response of TenantPolicyServiceApi->get_tenant_policy_by_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->get_tenant_policy_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_tenant_policy_by_id_request | GetTenantPolicyByIdRequest |
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]
GetTenantPolicySettingsResponse get_tenant_policy_settings(get_tenant_policy_settings_request)
Retrieves all tenant policy settings, optionally filtered by the parameters in the request.
import onelens_backend_client
from onelens_backend_client.models.get_tenant_policy_settings_request import GetTenantPolicySettingsRequest
from onelens_backend_client.models.get_tenant_policy_settings_response import GetTenantPolicySettingsResponse
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.TenantPolicyServiceApi(api_client)
get_tenant_policy_settings_request = onelens_backend_client.GetTenantPolicySettingsRequest() # GetTenantPolicySettingsRequest |
try:
# Retrieves all tenant policy settings, optionally filtered by the parameters in the request.
api_response = api_instance.get_tenant_policy_settings(get_tenant_policy_settings_request)
print("The response of TenantPolicyServiceApi->get_tenant_policy_settings:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->get_tenant_policy_settings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_tenant_policy_settings_request | GetTenantPolicySettingsRequest |
GetTenantPolicySettingsResponse
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]
GetTenantPolicyStatsResponse get_tenant_policy_stats(get_tenant_policy_stats_request)
Get Tenant Policy Stats
import onelens_backend_client
from onelens_backend_client.models.get_tenant_policy_stats_request import GetTenantPolicyStatsRequest
from onelens_backend_client.models.get_tenant_policy_stats_response import GetTenantPolicyStatsResponse
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.TenantPolicyServiceApi(api_client)
get_tenant_policy_stats_request = onelens_backend_client.GetTenantPolicyStatsRequest() # GetTenantPolicyStatsRequest |
try:
# Get Tenant Policy Stats
api_response = api_instance.get_tenant_policy_stats(get_tenant_policy_stats_request)
print("The response of TenantPolicyServiceApi->get_tenant_policy_stats:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->get_tenant_policy_stats: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_tenant_policy_stats_request | GetTenantPolicyStatsRequest |
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]
GetTenantPolicyWithSummaryResponse get_tenant_policy_with_summary(get_tenant_policy_with_summary_request)
Retrieves a tenant policy with corresponding recommendations, by its id.
import onelens_backend_client
from onelens_backend_client.models.get_tenant_policy_with_summary_request import GetTenantPolicyWithSummaryRequest
from onelens_backend_client.models.get_tenant_policy_with_summary_response import GetTenantPolicyWithSummaryResponse
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.TenantPolicyServiceApi(api_client)
get_tenant_policy_with_summary_request = onelens_backend_client.GetTenantPolicyWithSummaryRequest() # GetTenantPolicyWithSummaryRequest |
try:
# Retrieves a tenant policy with corresponding recommendations, by its id.
api_response = api_instance.get_tenant_policy_with_summary(get_tenant_policy_with_summary_request)
print("The response of TenantPolicyServiceApi->get_tenant_policy_with_summary:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->get_tenant_policy_with_summary: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_tenant_policy_with_summary_request | GetTenantPolicyWithSummaryRequest |
GetTenantPolicyWithSummaryResponse
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]
OverrideTenantPolicyConfigResponse override_tenant_policy_config(override_tenant_policy_config_request)
Override the tenant policy config with the provided config.
import onelens_backend_client
from onelens_backend_client.models.override_tenant_policy_config_request import OverrideTenantPolicyConfigRequest
from onelens_backend_client.models.override_tenant_policy_config_response import OverrideTenantPolicyConfigResponse
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.TenantPolicyServiceApi(api_client)
override_tenant_policy_config_request = onelens_backend_client.OverrideTenantPolicyConfigRequest() # OverrideTenantPolicyConfigRequest |
try:
# Override the tenant policy config with the provided config.
api_response = api_instance.override_tenant_policy_config(override_tenant_policy_config_request)
print("The response of TenantPolicyServiceApi->override_tenant_policy_config:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->override_tenant_policy_config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
override_tenant_policy_config_request | OverrideTenantPolicyConfigRequest |
OverrideTenantPolicyConfigResponse
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]
OverrideTenantPolicyExclusionsResponse override_tenant_policy_exclusions(override_tenant_policy_exclusions_request)
Override tenant policy exclusions.
import onelens_backend_client
from onelens_backend_client.models.override_tenant_policy_exclusions_request import OverrideTenantPolicyExclusionsRequest
from onelens_backend_client.models.override_tenant_policy_exclusions_response import OverrideTenantPolicyExclusionsResponse
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.TenantPolicyServiceApi(api_client)
override_tenant_policy_exclusions_request = onelens_backend_client.OverrideTenantPolicyExclusionsRequest() # OverrideTenantPolicyExclusionsRequest |
try:
# Override tenant policy exclusions.
api_response = api_instance.override_tenant_policy_exclusions(override_tenant_policy_exclusions_request)
print("The response of TenantPolicyServiceApi->override_tenant_policy_exclusions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->override_tenant_policy_exclusions: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
override_tenant_policy_exclusions_request | OverrideTenantPolicyExclusionsRequest |
OverrideTenantPolicyExclusionsResponse
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_policy_settings_last_run_at(update_tenant_policy_setting_last_run_at_request)
Update the last run at timestamp of the policy setting.
import onelens_backend_client
from onelens_backend_client.models.update_tenant_policy_setting_last_run_at_request import UpdateTenantPolicySettingLastRunAtRequest
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.TenantPolicyServiceApi(api_client)
update_tenant_policy_setting_last_run_at_request = onelens_backend_client.UpdateTenantPolicySettingLastRunAtRequest() # UpdateTenantPolicySettingLastRunAtRequest |
try:
# Update the last run at timestamp of the policy setting.
api_response = api_instance.update_tenant_policy_settings_last_run_at(update_tenant_policy_setting_last_run_at_request)
print("The response of TenantPolicyServiceApi->update_tenant_policy_settings_last_run_at:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantPolicyServiceApi->update_tenant_policy_settings_last_run_at: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
update_tenant_policy_setting_last_run_at_request | UpdateTenantPolicySettingLastRunAtRequest |
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]