IotHubClient 類別
使用此 API 來管理 Azure 訂用帳戶中的 IoT 中樞。
此就緒包含多個 API 版本,可協助您處理 Azure Stack、Azure Government、Azure China ) 等所有 Azure 雲端 (。 根據預設,它會使用公用 Azure 上可用的最新 API 版本。 針對生產環境,您應該繼續使用特定的 API 版本和/或設定檔。 設定檔會設定作業群組與其 API 版本之間的對應。 如果設定檔中未描述作業群組,api-version 參數會設定預設 API 版本。
- 繼承
-
IotHubClientazure.mgmt.iothub.aio._iot_hub_client._SDKClientIotHubClient
建構函式
IotHubClient(credential: AsyncTokenCredential, subscription_id: str, api_version: str | None = None, base_url: str = 'https://management.azure.com', profile: KnownProfiles = KnownProfiles.default, **kwargs: Any)
參數
- polling_interval
- int
如果沒有 Retry-After 標頭,則為 LRO 作業的兩個輪詢之間的預設等候時間。
方法
close | |
models |
模組取決於 API 版本:
|
close
async close()
models
模組取決於 API 版本:
2016-02-03: models
2017-01-19: models
2017-07-01: models
2018-01-22: models
2018-04-01: models
2019-03-22: models
2019-07-01-preview: models
2019-11-04: models
2020-03-01: models
2021-03-03-preview: models
2021-03-31: models
2021-07-01: models
2021-07-02: models
2022-04-30-preview: models
2022-11-15-preview: models
2023-06-30: models
2023-06-30-preview: models
models(api_version='2023-06-30')
參數
- api_version
屬性
certificates
實例取決於 API 版本:
2017-07-01: CertificatesOperations
2018-01-22: CertificatesOperations
2018-04-01: CertificatesOperations
2019-03-22: CertificatesOperations
2019-07-01-preview: CertificatesOperations
2019-11-04: CertificatesOperations
2020-03-01: CertificatesOperations
2021-03-03-preview: CertificatesOperations
2021-03-31: CertificatesOperations
2021-07-01: CertificatesOperations
2021-07-02: CertificatesOperations
2022-04-30-preview: CertificatesOperations
2022-11-15-preview: CertificatesOperations
2023-06-30: CertificatesOperations
2023-06-30-preview: CertificatesOperations
iot_hub
實例取決於 API 版本:
2019-03-22: IotHubOperations
2019-07-01-preview: IotHubOperations
2019-11-04: IotHubOperations
2020-03-01: IotHubOperations
2021-03-03-preview: IotHubOperations
2021-03-31: IotHubOperations
2021-07-01: IotHubOperations
2021-07-02: IotHubOperations
2022-04-30-preview: IotHubOperations
2022-11-15-preview: IotHubOperations
2023-06-30: IotHubOperations
2023-06-30-preview: IotHubOperations
iot_hub_resource
實例取決於 API 版本:
2016-02-03: IotHubResourceOperations
2017-01-19: IotHubResourceOperations
2017-07-01: IotHubResourceOperations
2018-01-22: IotHubResourceOperations
2018-04-01: IotHubResourceOperations
2019-03-22: IotHubResourceOperations
2019-07-01-preview: IotHubResourceOperations
2019-11-04: IotHubResourceOperations
2020-03-01: IotHubResourceOperations
2021-03-03-preview: IotHubResourceOperations
2021-03-31: IotHubResourceOperations
2021-07-01: IotHubResourceOperations
2021-07-02: IotHubResourceOperations
2022-04-30-preview: IotHubResourceOperations
2022-11-15-preview: IotHubResourceOperations
2023-06-30: IotHubResourceOperations
2023-06-30-preview: IotHubResourceOperations
operations
實例取決於 API 版本:
2017-07-01: Operations
2018-01-22: Operations
2018-04-01: Operations
2019-03-22: Operations
2019-07-01-preview: Operations
2019-11-04: Operations
2020-03-01: Operations
2021-03-03-preview: Operations
2021-03-31: Operations
2021-07-01: Operations
2021-07-02: Operations
2022-04-30-preview: Operations
2022-11-15-preview: Operations
2023-06-30: Operations
2023-06-30-preview: Operations
private_endpoint_connections
實例取決於 API 版本:
2020-03-01: PrivateEndpointConnectionsOperations
2021-03-03-preview: PrivateEndpointConnectionsOperations
2021-03-31: PrivateEndpointConnectionsOperations
2021-07-01: PrivateEndpointConnectionsOperations
2021-07-02: PrivateEndpointConnectionsOperations
2022-04-30-preview: PrivateEndpointConnectionsOperations
2022-11-15-preview: PrivateEndpointConnectionsOperations
2023-06-30: PrivateEndpointConnectionsOperations
2023-06-30-preview: PrivateEndpointConnectionsOperations
private_link_resources
實例取決於 API 版本:
2020-03-01: PrivateLinkResourcesOperations
2021-03-03-preview: PrivateLinkResourcesOperations
2021-03-31: PrivateLinkResourcesOperations
2021-07-01: PrivateLinkResourcesOperations
2021-07-02: PrivateLinkResourcesOperations
2022-04-30-preview: PrivateLinkResourcesOperations
2022-11-15-preview: PrivateLinkResourcesOperations
2023-06-30: PrivateLinkResourcesOperations
2023-06-30-preview: PrivateLinkResourcesOperations
resource_provider_common
實例取決於 API 版本:
2018-04-01: ResourceProviderCommonOperations
2019-03-22: ResourceProviderCommonOperations
2019-07-01-preview: ResourceProviderCommonOperations
2019-11-04: ResourceProviderCommonOperations
2020-03-01: ResourceProviderCommonOperations
2021-03-03-preview: ResourceProviderCommonOperations
2021-03-31: ResourceProviderCommonOperations
2021-07-01: ResourceProviderCommonOperations
2021-07-02: ResourceProviderCommonOperations
2022-04-30-preview: ResourceProviderCommonOperations
2022-11-15-preview: ResourceProviderCommonOperations
2023-06-30: ResourceProviderCommonOperations
2023-06-30-preview: ResourceProviderCommonOperations
DEFAULT_API_VERSION
DEFAULT_API_VERSION = '2023-06-30'
LATEST_PROFILE
LATEST_PROFILE = azure.mgmt.iothub.IotHubClient latest