DataCollectionRuleAssociationsOperations Class
DataCollectionRuleAssociationsOperations 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.objectDataCollectionRuleAssociationsOperations
Constructor
DataCollectionRuleAssociationsOperations(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
| create |
Creates or updates an association. Creates or updates an association. |
| delete |
Deletes an association. Deletes an association. |
| get |
Returns the specified association. Returns the specified association. |
| list_by_data_collection_endpoint |
Lists associations for the specified data collection endpoint. Lists associations for the specified data collection endpoint. |
| list_by_resource |
Lists associations for the specified resource. Lists associations for the specified resource. |
| list_by_rule |
Lists associations for the specified data collection rule. Lists associations for the specified data collection rule. |
create
Creates or updates an association.
Creates or updates an association.
async create(resource_uri: str, association_name: str, body: Optional[azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResource] = None, **kwargs: Any) -> azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResource
Parameters
- body
- <xref:$>(<xref:python-base-namespace>)DataCollectionRuleAssociationProxyOnlyResource
The payload.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)
Return type
Exceptions
delete
Deletes an association.
Deletes an association.
async delete(resource_uri: str, association_name: str, **kwargs: Any) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Returns the specified association.
Returns the specified association.
async get(resource_uri: str, association_name: str, **kwargs: Any) -> azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResource
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)
Return type
Exceptions
list_by_data_collection_endpoint
Lists associations for the specified data collection endpoint.
Lists associations for the specified data collection endpoint.
list_by_data_collection_endpoint(resource_group_name: str, data_collection_endpoint_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResourceListResult]
Parameters
- data_collection_endpoint_name
- str
The name of the data collection endpoint. The name is case insensitive.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
Return type
Exceptions
list_by_resource
Lists associations for the specified resource.
Lists associations for the specified resource.
list_by_resource(resource_uri: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResourceListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
Return type
Exceptions
list_by_rule
Lists associations for the specified data collection rule.
Lists associations for the specified data collection rule.
list_by_rule(resource_group_name: str, data_collection_rule_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResourceListResult]
Parameters
- data_collection_rule_name
- str
The name of the data collection rule. The name is case insensitive.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.monitor.v2022_02_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2022_02_01_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for