IotAlertsOperations Class
IotAlertsOperations 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.objectIotAlertsOperations
Constructor
IotAlertsOperations(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 |
Get IoT alert. |
| get_at_scope |
Get IoT alert. |
| list |
List IoT alerts. |
| list_at_scope |
List IoT alerts. |
get
Get IoT alert.
async get(resource_group_name: str, solution_name: str, iot_alert_id: str, **kwargs) -> azure.mgmt.security.models._models_py3.IotAlert
Parameters
- resource_group_name
- str
The name of the resource group within the user's subscription. The name is case insensitive.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
IotAlert, or the result of cls(response)
Return type
Exceptions
get_at_scope
Get IoT alert.
async get_at_scope(scope: str, iot_alert_id: str, **kwargs) -> azure.mgmt.security.models._models_py3.IotAlertModel
Parameters
- scope
- str
Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
IotAlertModel, or the result of cls(response)
Return type
Exceptions
list
List IoT alerts.
list(resource_group_name: str, solution_name: str, min_start_time_utc: Optional[str] = None, max_start_time_utc: Optional[str] = None, alert_type: Optional[str] = None, compromised_entity: Optional[str] = None, limit: Optional[int] = None, skip_token: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.IotAlertList]
Parameters
- resource_group_name
- str
The name of the resource group within the user's subscription. 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 IotAlertList or the result of cls(response)
Return type
Exceptions
list_at_scope
List IoT alerts.
list_at_scope(scope: str, min_start_time_utc: Optional[str] = None, max_start_time_utc: Optional[str] = None, alert_type: Optional[str] = None, device_management_type: Optional[Union[str, azure.mgmt.security.models._security_center_enums.ManagementState]] = None, compromised_entity: Optional[str] = None, limit: Optional[int] = None, skip_token: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.IotAlertListModel]
Parameters
- scope
- str
Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- device_management_type
- str or ManagementState
Get devices only from specific type, Managed or Unmanaged.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either IotAlertListModel or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.security.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\security\\models\\__init__.py'>
Feedback
Submit and view feedback for