ManagementGroupDiagnosticSettingsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:management_group_diagnostic_settings> attribute.
- Inheritance
-
builtins.objectManagementGroupDiagnosticSettingsOperations
Constructor
ManagementGroupDiagnosticSettingsOperations(*args, **kwargs)
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.
create_or_update(management_group_id: str, name: str, parameters: _models.ManagementGroupDiagnosticSettingsResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ManagementGroupDiagnosticSettingsResource
Parameters
Name | Description |
---|---|
management_group_id
Required
|
The management group id. Required. |
name
Required
|
The name of the diagnostic setting. Required. |
parameters
Required
|
Parameters supplied to the operation. Is either a ManagementGroupDiagnosticSettingsResource type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
ManagementGroupDiagnosticSettingsResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Deletes existing management group diagnostic settings for the specified resource.
delete(management_group_id: str, name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
management_group_id
Required
|
The management group id. Required. |
name
Required
|
The name of the diagnostic setting. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets the active management group diagnostic settings for the specified resource.
get(management_group_id: str, name: str, **kwargs: Any) -> ManagementGroupDiagnosticSettingsResource
Parameters
Name | Description |
---|---|
management_group_id
Required
|
The management group id. Required. |
name
Required
|
The name of the diagnostic setting. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
ManagementGroupDiagnosticSettingsResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets the active management group diagnostic settings list for the specified management group.
list(management_group_id: str, **kwargs: Any) -> Iterable[ManagementGroupDiagnosticSettingsResource]
Parameters
Name | Description |
---|---|
management_group_id
Required
|
The management group id. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either ManagementGroupDiagnosticSettingsResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.monitor.v2021_05_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\monitor\\v2021_05_01_preview\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for