ManagementGroupDiagnosticSettingsOperations Class
ManagementGroupDiagnosticSettingsOperations 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.objectManagementGroupDiagnosticSettingsOperations
Constructor
ManagementGroupDiagnosticSettingsOperations(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_or_update |
Creates or updates management group diagnostic settings for the specified resource. |
| delete |
Deletes existing management group diagnostic settings for the specified resource. |
| get |
Gets the active management group diagnostic settings for the specified resource. |
| list |
Gets the active management group diagnostic settings list for the specified management group. |
create_or_update
Creates or updates management group diagnostic settings for the specified resource.
async create_or_update(management_group_id: str, name: str, parameters: azure.mgmt.monitor.v2020_01_01_preview.models._models_py3.ManagementGroupDiagnosticSettingsResource, **kwargs: Any) -> azure.mgmt.monitor.v2020_01_01_preview.models._models_py3.ManagementGroupDiagnosticSettingsResource
Parameters
- parameters
- <xref:$>(<xref:python-base-namespace>)ManagementGroupDiagnosticSettingsResource
Parameters supplied to the operation.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ManagementGroupDiagnosticSettingsResource, or the result of cls(response)
Return type
Exceptions
delete
Deletes existing management group diagnostic settings for the specified resource.
async delete(management_group_id: str, 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
Gets the active management group diagnostic settings for the specified resource.
async get(management_group_id: str, name: str, **kwargs: Any) -> azure.mgmt.monitor.v2020_01_01_preview.models._models_py3.ManagementGroupDiagnosticSettingsResource
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ManagementGroupDiagnosticSettingsResource, or the result of cls(response)
Return type
Exceptions
list
Gets the active management group diagnostic settings list for the specified management group.
list(management_group_id: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2020_01_01_preview.models._models_py3.ManagementGroupDiagnosticSettingsResourceCollection]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ManagementGroupDiagnosticSettingsResourceCollection or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.monitor.v2020_01_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2020_01_01_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for