IotHubResourceOperations interface

介面代表 IotHubResource 操作。

屬性

beginCreateOrUpdate
beginCreateOrUpdateAndWait
beginDelete
beginDeleteAndWait
beginUpdate
beginUpdateAndWait
checkNameAvailability

檢查 IoT 中樞名稱是否可用。

createEventHubConsumerGroup

將取用者群組新增至 IoT 中樞中與事件中樞相容的端點。

createOrUpdate

建立或更新 IoT 中樞的中繼資料。 修改屬性的一般模式是擷取 IoT 中樞中繼資料和安全性中繼資料,然後將它們與新本文中的修改值結合,以更新 IoT 中樞。

delete

刪除一個 IoT hub。

deleteEventHubConsumerGroup

從 IoT 中樞中與事件中樞相容的端點刪除取用者群組。

exportDevices

將 IoT 中樞身分識別登錄中的所有裝置身分識別匯出至 Azure 儲存體 Blob 容器。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities。

get

取得 IoT 中樞的非安全性相關中繼資料。

getEventHubConsumerGroup

從 IoT 中樞的事件中樞相容裝置對雲端端點取得取用者群組。

getJob

從 IoT 中樞取得作業的詳細數據。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry。

getKeysForKeyName

從 IoT 中樞依名稱取得共用存取原則。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security。

getStats

從 IoT 中樞取得統計資料。

importDevices

從 Blob 匯入、更新或刪除 IoT 中樞身分識別登錄中的裝置身分識別。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities。

listByResourceGroup

取得資源群組中的所有 IoT 中樞。

listBySubscription

取得訂用帳戶中的所有 IoT 中樞。

listEndpointHealth

取得路由端點的健康情況。

listEventHubConsumerGroups

取得 IoT 中樞中與事件中樞相容的裝置對雲端端點中的取用者群組清單。

listJobs

取得 IoT 中樞中所有作業的清單。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry。

listKeys

取得 IoT 中樞的安全性中繼資料。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security。

listQuotaMetrics

取得 IoT hub 的配額指標。

listValidSkus

取得 IoT 中樞的有效 SKU 清單。

testAllRoutes

測試此 IoT 中樞中設定的所有路由

testRoute

測試此 IoT 中樞的新路由

update

更新現有的 IoT 中樞標籤。 若要更新其他欄位,請使用 CreateOrUpdate 方法

屬性詳細資料

beginCreateOrUpdate

警告

此 API 現已淘汰。

use createOrUpdate instead

beginCreateOrUpdate: (resourceGroupName: string, resourceName: string, iotHubDescription: IotHubDescription, options?: IotHubResourceCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<IotHubDescription>, IotHubDescription>>

屬性值

(resourceGroupName: string, resourceName: string, iotHubDescription: IotHubDescription, options?: IotHubResourceCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<IotHubDescription>, IotHubDescription>>

beginCreateOrUpdateAndWait

警告

此 API 現已淘汰。

use createOrUpdate instead

beginCreateOrUpdateAndWait: (resourceGroupName: string, resourceName: string, iotHubDescription: IotHubDescription, options?: IotHubResourceCreateOrUpdateOptionalParams) => Promise<IotHubDescription>

屬性值

(resourceGroupName: string, resourceName: string, iotHubDescription: IotHubDescription, options?: IotHubResourceCreateOrUpdateOptionalParams) => Promise<IotHubDescription>

beginDelete

警告

此 API 現已淘汰。

use delete instead

beginDelete: (resourceGroupName: string, resourceName: string, options?: IotHubResourceDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<IotHubDescription>, IotHubDescription>>

屬性值

(resourceGroupName: string, resourceName: string, options?: IotHubResourceDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<IotHubDescription>, IotHubDescription>>

beginDeleteAndWait

警告

此 API 現已淘汰。

use delete instead

beginDeleteAndWait: (resourceGroupName: string, resourceName: string, options?: IotHubResourceDeleteOptionalParams) => Promise<IotHubDescription>

屬性值

(resourceGroupName: string, resourceName: string, options?: IotHubResourceDeleteOptionalParams) => Promise<IotHubDescription>

beginUpdate

警告

此 API 現已淘汰。

use update instead

beginUpdate: (resourceGroupName: string, resourceName: string, iotHubTags: TagsResource, options?: IotHubResourceUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<IotHubDescription>, IotHubDescription>>

屬性值

(resourceGroupName: string, resourceName: string, iotHubTags: TagsResource, options?: IotHubResourceUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<IotHubDescription>, IotHubDescription>>

beginUpdateAndWait

警告

此 API 現已淘汰。

use update instead

beginUpdateAndWait: (resourceGroupName: string, resourceName: string, iotHubTags: TagsResource, options?: IotHubResourceUpdateOptionalParams) => Promise<IotHubDescription>

屬性值

(resourceGroupName: string, resourceName: string, iotHubTags: TagsResource, options?: IotHubResourceUpdateOptionalParams) => Promise<IotHubDescription>

checkNameAvailability

檢查 IoT 中樞名稱是否可用。

checkNameAvailability: (operationInputs: OperationInputs, options?: IotHubResourceCheckNameAvailabilityOptionalParams) => Promise<IotHubNameAvailabilityInfo>

屬性值

(operationInputs: OperationInputs, options?: IotHubResourceCheckNameAvailabilityOptionalParams) => Promise<IotHubNameAvailabilityInfo>

createEventHubConsumerGroup

將取用者群組新增至 IoT 中樞中與事件中樞相容的端點。

createEventHubConsumerGroup: (resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, consumerGroupBody: EventHubConsumerGroupBodyDescription, options?: IotHubResourceCreateEventHubConsumerGroupOptionalParams) => Promise<EventHubConsumerGroupInfo>

屬性值

(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, consumerGroupBody: EventHubConsumerGroupBodyDescription, options?: IotHubResourceCreateEventHubConsumerGroupOptionalParams) => Promise<EventHubConsumerGroupInfo>

createOrUpdate

建立或更新 IoT 中樞的中繼資料。 修改屬性的一般模式是擷取 IoT 中樞中繼資料和安全性中繼資料,然後將它們與新本文中的修改值結合,以更新 IoT 中樞。

createOrUpdate: (resourceGroupName: string, resourceName: string, iotHubDescription: IotHubDescription, options?: IotHubResourceCreateOrUpdateOptionalParams) => PollerLike<OperationState<IotHubDescription>, IotHubDescription>

屬性值

(resourceGroupName: string, resourceName: string, iotHubDescription: IotHubDescription, options?: IotHubResourceCreateOrUpdateOptionalParams) => PollerLike<OperationState<IotHubDescription>, IotHubDescription>

delete

刪除一個 IoT hub。

delete: (resourceGroupName: string, resourceName: string, options?: IotHubResourceDeleteOptionalParams) => PollerLike<OperationState<IotHubDescription>, IotHubDescription>

屬性值

(resourceGroupName: string, resourceName: string, options?: IotHubResourceDeleteOptionalParams) => PollerLike<OperationState<IotHubDescription>, IotHubDescription>

deleteEventHubConsumerGroup

從 IoT 中樞中與事件中樞相容的端點刪除取用者群組。

deleteEventHubConsumerGroup: (resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: IotHubResourceDeleteEventHubConsumerGroupOptionalParams) => Promise<void>

屬性值

(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: IotHubResourceDeleteEventHubConsumerGroupOptionalParams) => Promise<void>

exportDevices

將 IoT 中樞身分識別登錄中的所有裝置身分識別匯出至 Azure 儲存體 Blob 容器。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities。

exportDevices: (resourceGroupName: string, resourceName: string, exportDevicesParameters: ExportDevicesRequest, options?: IotHubResourceExportDevicesOptionalParams) => Promise<JobResponse>

屬性值

(resourceGroupName: string, resourceName: string, exportDevicesParameters: ExportDevicesRequest, options?: IotHubResourceExportDevicesOptionalParams) => Promise<JobResponse>

get

取得 IoT 中樞的非安全性相關中繼資料。

get: (resourceGroupName: string, resourceName: string, options?: IotHubResourceGetOptionalParams) => Promise<IotHubDescription>

屬性值

(resourceGroupName: string, resourceName: string, options?: IotHubResourceGetOptionalParams) => Promise<IotHubDescription>

getEventHubConsumerGroup

從 IoT 中樞的事件中樞相容裝置對雲端端點取得取用者群組。

getEventHubConsumerGroup: (resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: IotHubResourceGetEventHubConsumerGroupOptionalParams) => Promise<EventHubConsumerGroupInfo>

屬性值

(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: IotHubResourceGetEventHubConsumerGroupOptionalParams) => Promise<EventHubConsumerGroupInfo>

getJob

從 IoT 中樞取得作業的詳細數據。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry。

getJob: (resourceGroupName: string, resourceName: string, jobId: string, options?: IotHubResourceGetJobOptionalParams) => Promise<JobResponse>

屬性值

(resourceGroupName: string, resourceName: string, jobId: string, options?: IotHubResourceGetJobOptionalParams) => Promise<JobResponse>

getKeysForKeyName

從 IoT 中樞依名稱取得共用存取原則。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security。

getKeysForKeyName: (resourceGroupName: string, resourceName: string, keyName: string, options?: IotHubResourceGetKeysForKeyNameOptionalParams) => Promise<SharedAccessSignatureAuthorizationRule>

屬性值

(resourceGroupName: string, resourceName: string, keyName: string, options?: IotHubResourceGetKeysForKeyNameOptionalParams) => Promise<SharedAccessSignatureAuthorizationRule>

getStats

從 IoT 中樞取得統計資料。

getStats: (resourceGroupName: string, resourceName: string, options?: IotHubResourceGetStatsOptionalParams) => Promise<RegistryStatistics>

屬性值

(resourceGroupName: string, resourceName: string, options?: IotHubResourceGetStatsOptionalParams) => Promise<RegistryStatistics>

importDevices

從 Blob 匯入、更新或刪除 IoT 中樞身分識別登錄中的裝置身分識別。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities。

importDevices: (resourceGroupName: string, resourceName: string, importDevicesParameters: ImportDevicesRequest, options?: IotHubResourceImportDevicesOptionalParams) => Promise<JobResponse>

屬性值

(resourceGroupName: string, resourceName: string, importDevicesParameters: ImportDevicesRequest, options?: IotHubResourceImportDevicesOptionalParams) => Promise<JobResponse>

listByResourceGroup

取得資源群組中的所有 IoT 中樞。

listByResourceGroup: (resourceGroupName: string, options?: IotHubResourceListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<IotHubDescription, IotHubDescription[], PageSettings>

屬性值

(resourceGroupName: string, options?: IotHubResourceListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<IotHubDescription, IotHubDescription[], PageSettings>

listBySubscription

取得訂用帳戶中的所有 IoT 中樞。

listBySubscription: (options?: IotHubResourceListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<IotHubDescription, IotHubDescription[], PageSettings>

屬性值

(options?: IotHubResourceListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<IotHubDescription, IotHubDescription[], PageSettings>

listEndpointHealth

取得路由端點的健康情況。

listEndpointHealth: (resourceGroupName: string, iotHubName: string, options?: IotHubResourceListEndpointHealthOptionalParams) => PagedAsyncIterableIterator<EndpointHealthData, EndpointHealthData[], PageSettings>

屬性值

(resourceGroupName: string, iotHubName: string, options?: IotHubResourceListEndpointHealthOptionalParams) => PagedAsyncIterableIterator<EndpointHealthData, EndpointHealthData[], PageSettings>

listEventHubConsumerGroups

取得 IoT 中樞中與事件中樞相容的裝置對雲端端點中的取用者群組清單。

listEventHubConsumerGroups: (resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options?: IotHubResourceListEventHubConsumerGroupsOptionalParams) => PagedAsyncIterableIterator<EventHubConsumerGroupInfo, EventHubConsumerGroupInfo[], PageSettings>

屬性值

(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options?: IotHubResourceListEventHubConsumerGroupsOptionalParams) => PagedAsyncIterableIterator<EventHubConsumerGroupInfo, EventHubConsumerGroupInfo[], PageSettings>

listJobs

取得 IoT 中樞中所有作業的清單。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry。

listJobs: (resourceGroupName: string, resourceName: string, options?: IotHubResourceListJobsOptionalParams) => PagedAsyncIterableIterator<JobResponse, JobResponse[], PageSettings>

屬性值

(resourceGroupName: string, resourceName: string, options?: IotHubResourceListJobsOptionalParams) => PagedAsyncIterableIterator<JobResponse, JobResponse[], PageSettings>

listKeys

取得 IoT 中樞的安全性中繼資料。 欲了解更多資訊,請參閱: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security。

listKeys: (resourceGroupName: string, resourceName: string, options?: IotHubResourceListKeysOptionalParams) => PagedAsyncIterableIterator<SharedAccessSignatureAuthorizationRule, SharedAccessSignatureAuthorizationRule[], PageSettings>

屬性值

(resourceGroupName: string, resourceName: string, options?: IotHubResourceListKeysOptionalParams) => PagedAsyncIterableIterator<SharedAccessSignatureAuthorizationRule, SharedAccessSignatureAuthorizationRule[], PageSettings>

listQuotaMetrics

取得 IoT hub 的配額指標。

listQuotaMetrics: (resourceGroupName: string, resourceName: string, options?: IotHubResourceListQuotaMetricsOptionalParams) => PagedAsyncIterableIterator<IotHubQuotaMetricInfo, IotHubQuotaMetricInfo[], PageSettings>

屬性值

(resourceGroupName: string, resourceName: string, options?: IotHubResourceListQuotaMetricsOptionalParams) => PagedAsyncIterableIterator<IotHubQuotaMetricInfo, IotHubQuotaMetricInfo[], PageSettings>

listValidSkus

取得 IoT 中樞的有效 SKU 清單。

listValidSkus: (resourceGroupName: string, resourceName: string, options?: IotHubResourceListValidSkusOptionalParams) => PagedAsyncIterableIterator<IotHubSkuDescription, IotHubSkuDescription[], PageSettings>

屬性值

(resourceGroupName: string, resourceName: string, options?: IotHubResourceListValidSkusOptionalParams) => PagedAsyncIterableIterator<IotHubSkuDescription, IotHubSkuDescription[], PageSettings>

testAllRoutes

測試此 IoT 中樞中設定的所有路由

testAllRoutes: (iotHubName: string, resourceGroupName: string, input: TestAllRoutesInput, options?: IotHubResourceTestAllRoutesOptionalParams) => Promise<TestAllRoutesResult>

屬性值

(iotHubName: string, resourceGroupName: string, input: TestAllRoutesInput, options?: IotHubResourceTestAllRoutesOptionalParams) => Promise<TestAllRoutesResult>

testRoute

測試此 IoT 中樞的新路由

testRoute: (iotHubName: string, resourceGroupName: string, input: TestRouteInput, options?: IotHubResourceTestRouteOptionalParams) => Promise<TestRouteResult>

屬性值

(iotHubName: string, resourceGroupName: string, input: TestRouteInput, options?: IotHubResourceTestRouteOptionalParams) => Promise<TestRouteResult>

update

更新現有的 IoT 中樞標籤。 若要更新其他欄位,請使用 CreateOrUpdate 方法

update: (resourceGroupName: string, resourceName: string, iotHubTags: TagsResource, options?: IotHubResourceUpdateOptionalParams) => PollerLike<OperationState<IotHubDescription>, IotHubDescription>

屬性值

(resourceGroupName: string, resourceName: string, iotHubTags: TagsResource, options?: IotHubResourceUpdateOptionalParams) => PollerLike<OperationState<IotHubDescription>, IotHubDescription>