IotHubClient Classe
Utilize esta API para gerir os hubs IoT na sua subscrição do Azure.
Esta opção pronta contém várias versões de API, para o ajudar a lidar com todas as clouds do Azure (Azure Stack, Azure Government, Azure China, etc.). Por predefinição, utiliza a versão mais recente da API disponível no Azure público. Para produção, deve manter um perfil e/ou versão de API específico. O perfil define um mapeamento entre um grupo de operações e a respetiva versão da API. O parâmetro api-version define a versão predefinida da API se o grupo de operações não estiver descrito no perfil.
- Herança
-
IotHubClientazure.mgmt.iothub._iot_hub_client._SDKClientIotHubClient
Construtor
IotHubClient(credential: TokenCredential, subscription_id: str, api_version: str | None = None, base_url: str = 'https://management.azure.com', profile: KnownProfiles = KnownProfiles.default, **kwargs: Any)
Parâmetros
- credential
- TokenCredential
Credenciais necessárias para que o cliente se ligue ao Azure. Obrigatório.
- api_version
- str
Versão da API a utilizar se não for fornecido nenhum perfil ou se estiver em falta no perfil.
- profile
- KnownProfiles
Uma definição de perfil, de KnownProfiles a dict.
- polling_interval
- int
Tempo de espera predefinido entre duas sondagens para operações LRO se não estiver presente nenhum cabeçalho de Retry-After.
Métodos
close | |
models |
O módulo depende da versão da API:
|
close
close()
models
O módulo depende da versão da 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
07-2019-01-preview: models
2019-11-04: models
2020-03-01: models
03-03-2021-pré-visualização: 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')
Parâmetros
- api_version
Atributos
certificates
A instância depende da versão da API:
2017-07-01: CertificatesOperations
2018-01-22: CertificatesOperations
2018-04-01: CertificatesOperations
2019-03-22: CertificatesOperations
07-2019-01-preview: CertificatesOperations
2019-11-04: CertificatesOperations
2020-03-01: CertificatesOperations
03-03-2021-pré-visualização: 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
A instância depende da versão da API:
2019-03-22: IotHubOperations
07-2019-01-preview: IotHubOperations
2019-11-04: IotHubOperations
2020-03-01: IotHubOperations
03-03-2021-pré-visualização: 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
A instância depende da versão da 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
07-2019-01-preview: IotHubResourceOperations
2019-11-04: IotHubResourceOperations
2020-03-01: IotHubResourceOperations
03-03-2021-pré-visualização: 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
A instância depende da versão da API:
2017-07-01: Operations
2018-01-22: Operations
2018-04-01: Operations
2019-03-22: Operations
07-2019-01-preview: Operations
2019-11-04: Operations
2020-03-01: Operations
03-03-2021-pré-visualização: 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
A instância depende da versão da API:
2020-03-01: PrivateEndpointConnectionsOperations
03-03-2021-pré-visualização: 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
A instância depende da versão da API:
2020-03-01: PrivateLinkResourcesOperations
03-03-2021-pré-visualização: 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
A instância depende da versão da API:
2018-04-01: ResourceProviderCommonOperations
2019-03-22: ResourceProviderCommonOperations
07-2019-01-preview: ResourceProviderCommonOperations
2019-11-04: ResourceProviderCommonOperations
2020-03-01: ResourceProviderCommonOperations
03-03-2021-pré-visualização: 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
Azure SDK for Python