SubscriptionDiagnosticSettingsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:subscription_diagnostic_settings> attribute.
- Inheritance
-
builtins.objectSubscriptionDiagnosticSettingsOperations
Constructor
SubscriptionDiagnosticSettingsOperations(*args, **kwargs)
Methods
create_or_update |
Creates or updates subscription diagnostic settings for the specified resource. |
delete |
Deletes existing subscription diagnostic settings for the specified resource. |
get |
Gets the active subscription diagnostic settings for the specified resource. |
list |
Gets the active subscription diagnostic settings list for the specified subscriptionId. |
create_or_update
Creates or updates subscription diagnostic settings for the specified resource.
create_or_update(name: str, parameters: _models.SubscriptionDiagnosticSettingsResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.SubscriptionDiagnosticSettingsResource
Parameters
Name | Description |
---|---|
name
Required
|
The name of the diagnostic setting. Required. |
parameters
Required
|
Parameters supplied to the operation. Is either a SubscriptionDiagnosticSettingsResource 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 |
---|---|
SubscriptionDiagnosticSettingsResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Deletes existing subscription diagnostic settings for the specified resource.
delete(name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
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 subscription diagnostic settings for the specified resource.
get(name: str, **kwargs: Any) -> SubscriptionDiagnosticSettingsResource
Parameters
Name | Description |
---|---|
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 |
---|---|
SubscriptionDiagnosticSettingsResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets the active subscription diagnostic settings list for the specified subscriptionId.
list(**kwargs: Any) -> Iterable[SubscriptionDiagnosticSettingsResource]
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 SubscriptionDiagnosticSettingsResource 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