WorkspacePurgeOperations Class
WorkspacePurgeOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectWorkspacePurgeOperations
Constructor
WorkspacePurgeOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| get_purge_status |
Gets status of an ongoing purge operation. |
| purge |
Purges data in an Log Analytics workspace by a set of user-defined filters. In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected. |
get_purge_status
Gets status of an ongoing purge operation.
async get_purge_status(resource_group_name: str, workspace_name: str, purge_id: str, **kwargs: Any) -> azure.mgmt.loganalytics.models._models_py3.WorkspacePurgeStatusResponse
Parameters
- purge_id
- str
In a purge status request, this is the Id of the operation the status of which is returned.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
WorkspacePurgeStatusResponse, or the result of cls(response)
Return type
Exceptions
purge
Purges data in an Log Analytics workspace by a set of user-defined filters.
In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.
async purge(resource_group_name: str, workspace_name: str, body: azure.mgmt.loganalytics.models._models_py3.WorkspacePurgeBody, **kwargs: Any) -> azure.mgmt.loganalytics.models._models_py3.WorkspacePurgeResponse
Parameters
- body
- WorkspacePurgeBody
Describes the body of a request to purge data in a single table of an Log Analytics Workspace.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
WorkspacePurgeResponse, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.loganalytics.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\loganalytics\\models\\__init__.py'>
Feedback
Submit and view feedback for