IotHubClient Class
Use this API to manage the IoT hubs in your Azure subscription.
Constructor
IotHubClient(credential: TokenCredential, subscription_id: str, base_url: str = 'https://management.azure.com', **kwargs: Any)
Parameters
| Name | Description |
|---|---|
|
credential
Required
|
Credential needed for the client to connect to Azure. Required. |
|
subscription_id
Required
|
The subscription identifier. Required. |
|
base_url
|
Service URL. Default value is " Default value: https://management.azure.com
|
Keyword-Only Parameters
| Name | Description |
|---|---|
|
api_version
|
Api Version. Default value is "2019-07-01-preview". Note that overriding this default value may result in unsupported behavior. |
|
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Variables
| Name | Description |
|---|---|
|
operations
|
Operations operations |
|
iot_hub_resource
|
IotHubResourceOperations operations |
|
resource_provider_common
|
ResourceProviderCommonOperations operations |
|
certificates
|
CertificatesOperations operations |
|
iot_hub
|
IotHubOperations operations |
Methods
| close |
close
close() -> None