你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IotHubClient 类

使用此 API 管理 Azure 订阅中的 IoT 中心。

继承
builtins.object
IotHubClient

构造函数

IotHubClient(credential: TokenCredential, subscription_id: str, base_url: str = 'https://management.azure.com', **kwargs: Any)

参数

credential
TokenCredential
必需

客户端连接到 Azure 所需的凭据。 必需。

subscription_id
str
必需

订阅标识符。 必需。

base_url
str
默认值: https://management.azure.com

服务 URL。 默认值为“https://management.azure.com”。

api_version
str

Api 版本。 默认值为“2021-07-02”。 请注意,重写此默认值可能会导致行为不受支持。

polling_interval
int

如果没有Retry-After标头,则 LRO 操作的两次轮询之间的默认等待时间。

变量

operations
Operations

操作操作

iot_hub_resource
IotHubResourceOperations

IotHubResourceOperations 操作

resource_provider_common
ResourceProviderCommonOperations

ResourceProviderCommonOperations 操作

certificates
CertificatesOperations

CertificatesOperations 操作

iot_hub
IotHubOperations

IotHubOperations 操作

private_link_resources
PrivateLinkResourcesOperations

PrivateLinkResourcesOperations 操作

private_endpoint_connections
PrivateEndpointConnectionsOperations

PrivateEndpointConnectionsOperations 操作

方法

close

close

close() -> None