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

DeviceManagementOperations interface

表示设备管理操作的接口。

属性

createOrUpdateDeployment

创建或更新部署。

deleteDeployment

删除部署。

deleteDeploymentForDeviceClassSubgroup

删除设备类子组部署。

deleteDeviceClass

删除设备类。 当启用了设备更新的设备连接到中心但不会自动清理设备类时,设备类会自动创建,因为它们由 DeviceClassSubgroups 引用。 如果用户删除了设备类的所有 DeviceClassSubgroup,他们还可以删除设备类以从系统中删除记录,并停止检查此设备类与新更新的兼容性。 如果设备曾经为此设备类重新连接,则会重新创建该设备。

deleteDeviceClassSubgroup

删除设备类子组。 当启用了设备更新的设备连接到中心并报告其属性时,将自动创建此子组。 组、子组和部署不会自动清理,但出于历史记录目的保留。 如果用户不需要保留子组的任何历史记录,并且不再需要该子组,则可以调用此方法来删除子组。 如果删除子组后,此子组再次连接设备,则会自动重新创建,但不会有历史记录。

deleteGroup

删除设备组。 当启用了设备更新的设备连接到中心并报告其属性时,将自动创建此组。 组、子组和部署不会自动清理,但出于历史记录目的保留。 如果用户不需要保留组的任何历史记录,并且不再需要该组,则可以调用此方法来删除组。 如果设备在删除组后再次为此组连接,则会自动重新创建该设备,但不会有历史记录。

getBestUpdatesForDeviceClassSubgroup

获取设备类子组的最佳可用更新,以及需要此更新的设备数的计数。

getDeployment

获取部署属性。

getDeploymentForDeviceClassSubgroup

获取部署属性。

getDeploymentStatus

获取部署的状态,包括部署中有多少设备正在进行、已完成或失败的细分。

getDevice

获取连接到 IoT 中心设备更新的设备的设备属性和最新部署状态。

getDeviceClass

获取设备类的属性。

getDeviceClassSubgroup

获取设备类子组详细信息。 设备类子组是共享同一设备类的组中的设备集。 同一设备类中的所有设备都与相同的更新兼容。

getDeviceClassSubgroupDeploymentStatus

获取部署的状态,包括部署中有多少设备正在进行、已完成或失败的细分。

getDeviceClassSubgroupUpdateCompliance

获取设备类子组更新符合性信息,例如最新更新中的设备数、需要多少新更新,以及接收新更新时正在进行多少个设备。

getDeviceModule

获取连接到 IoT 中心设备更新的设备模块的设备模块属性和最新部署状态。

getGroup

获取设备组属性。

getLogCollection

获取设备诊断日志收集

getLogCollectionDetailedStatus

获取具有详细状态的日志收集

getOperationStatus

检索作状态。

getUpdateCompliance

获取最新更新、有可用新更新或正在进行接收新更新的设备数的细分。

getUpdateComplianceForGroup

获取设备组更新符合性信息,例如最新更新中的设备数、需要多少新更新,以及接收新更新时正在进行多少个更新。

importDevices

从 IoT 中心导入现有设备。 这是长时间运行的作;使用 Operation-Location 响应标头值检查作状态。

listBestUpdatesForGroup

获取设备组的最佳可用更新,以及每个更新需要多少台设备的计数。

listDeploymentsForDeviceClassSubgroup

获取设备类子组的部署列表。

listDeploymentsForGroup

获取设备组的部署列表。

listDeviceClasses

获取连接到 IoT 中心设备更新的所有设备的所有设备(基于设备更新 PnP 接口中报告的模型 ID 和兼容性属性)的所有设备类的列表。

listDeviceClassSubgroupsForGroup

获取组的设备类子组。 设备类子组是共享同一设备类的组中的设备集。 同一设备类中的所有设备都与相同的更新兼容。

listDevices

获取连接到 IoT 中心设备更新的设备的列表。

listDeviceStatesForDeviceClassSubgroupDeployment

获取部署中的设备及其状态的列表。 可用于获取失败的设备列表。

listGroups

获取所有设备组的列表。 $default组将始终首先返回。

listHealthOfDevices

获取设备运行状况列表

listInstallableUpdatesForDeviceClass

获取设备类的可安装更新的列表。

listLogCollections

获取所有设备诊断日志集合

listOperationStatuses

获取所有设备导入作的列表。 自动删除之前,已完成的作将保留 7 天。

retryDeployment

重试具有失败设备的部署。

startLogCollection

在指定的设备上启动设备诊断日志收集。

stopDeployment

停止部署。

updateDeviceClass

更新设备类详细信息。

属性详细信息

createOrUpdateDeployment

创建或更新部署。

createOrUpdateDeployment: (groupId: string, deploymentId: string, deployment: Deployment, options?: DeviceManagementCreateOrUpdateDeploymentOptionalParams) => Promise<Deployment>

属性值

(groupId: string, deploymentId: string, deployment: Deployment, options?: DeviceManagementCreateOrUpdateDeploymentOptionalParams) => Promise<Deployment>

deleteDeployment

删除部署。

deleteDeployment: (groupId: string, deploymentId: string, options?: DeviceManagementDeleteDeploymentOptionalParams) => Promise<void>

属性值

(groupId: string, deploymentId: string, options?: DeviceManagementDeleteDeploymentOptionalParams) => Promise<void>

deleteDeploymentForDeviceClassSubgroup

删除设备类子组部署。

deleteDeploymentForDeviceClassSubgroup: (groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementDeleteDeploymentForDeviceClassSubgroupOptionalParams) => Promise<void>

属性值

(groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementDeleteDeploymentForDeviceClassSubgroupOptionalParams) => Promise<void>

deleteDeviceClass

删除设备类。 当启用了设备更新的设备连接到中心但不会自动清理设备类时,设备类会自动创建,因为它们由 DeviceClassSubgroups 引用。 如果用户删除了设备类的所有 DeviceClassSubgroup,他们还可以删除设备类以从系统中删除记录,并停止检查此设备类与新更新的兼容性。 如果设备曾经为此设备类重新连接,则会重新创建该设备。

deleteDeviceClass: (deviceClassId: string, options?: DeviceManagementDeleteDeviceClassOptionalParams) => Promise<void>

属性值

(deviceClassId: string, options?: DeviceManagementDeleteDeviceClassOptionalParams) => Promise<void>

deleteDeviceClassSubgroup

删除设备类子组。 当启用了设备更新的设备连接到中心并报告其属性时,将自动创建此子组。 组、子组和部署不会自动清理,但出于历史记录目的保留。 如果用户不需要保留子组的任何历史记录,并且不再需要该子组,则可以调用此方法来删除子组。 如果删除子组后,此子组再次连接设备,则会自动重新创建,但不会有历史记录。

deleteDeviceClassSubgroup: (groupId: string, deviceClassId: string, options?: DeviceManagementDeleteDeviceClassSubgroupOptionalParams) => Promise<void>

属性值

(groupId: string, deviceClassId: string, options?: DeviceManagementDeleteDeviceClassSubgroupOptionalParams) => Promise<void>

deleteGroup

删除设备组。 当启用了设备更新的设备连接到中心并报告其属性时,将自动创建此组。 组、子组和部署不会自动清理,但出于历史记录目的保留。 如果用户不需要保留组的任何历史记录,并且不再需要该组,则可以调用此方法来删除组。 如果设备在删除组后再次为此组连接,则会自动重新创建该设备,但不会有历史记录。

deleteGroup: (groupId: string, options?: DeviceManagementDeleteGroupOptionalParams) => Promise<void>

属性值

(groupId: string, options?: DeviceManagementDeleteGroupOptionalParams) => Promise<void>

getBestUpdatesForDeviceClassSubgroup

获取设备类子组的最佳可用更新,以及需要此更新的设备数的计数。

getBestUpdatesForDeviceClassSubgroup: (groupId: string, deviceClassId: string, options?: DeviceManagementGetBestUpdatesForDeviceClassSubgroupOptionalParams) => Promise<DeviceClassSubgroupUpdatableDevices>

属性值

(groupId: string, deviceClassId: string, options?: DeviceManagementGetBestUpdatesForDeviceClassSubgroupOptionalParams) => Promise<DeviceClassSubgroupUpdatableDevices>

getDeployment

获取部署属性。

getDeployment: (groupId: string, deploymentId: string, options?: DeviceManagementGetDeploymentOptionalParams) => Promise<Deployment>

属性值

(groupId: string, deploymentId: string, options?: DeviceManagementGetDeploymentOptionalParams) => Promise<Deployment>

getDeploymentForDeviceClassSubgroup

获取部署属性。

getDeploymentForDeviceClassSubgroup: (groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementGetDeploymentForDeviceClassSubgroupOptionalParams) => Promise<Deployment>

属性值

(groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementGetDeploymentForDeviceClassSubgroupOptionalParams) => Promise<Deployment>

getDeploymentStatus

获取部署的状态,包括部署中有多少设备正在进行、已完成或失败的细分。

getDeploymentStatus: (groupId: string, deploymentId: string, options?: DeviceManagementGetDeploymentStatusOptionalParams) => Promise<DeploymentStatus>

属性值

(groupId: string, deploymentId: string, options?: DeviceManagementGetDeploymentStatusOptionalParams) => Promise<DeploymentStatus>

getDevice

获取连接到 IoT 中心设备更新的设备的设备属性和最新部署状态。

getDevice: (deviceId: string, options?: DeviceManagementGetDeviceOptionalParams) => Promise<Device>

属性值

(deviceId: string, options?: DeviceManagementGetDeviceOptionalParams) => Promise<Device>

getDeviceClass

获取设备类的属性。

getDeviceClass: (deviceClassId: string, options?: DeviceManagementGetDeviceClassOptionalParams) => Promise<DeviceClass>

属性值

(deviceClassId: string, options?: DeviceManagementGetDeviceClassOptionalParams) => Promise<DeviceClass>

getDeviceClassSubgroup

获取设备类子组详细信息。 设备类子组是共享同一设备类的组中的设备集。 同一设备类中的所有设备都与相同的更新兼容。

getDeviceClassSubgroup: (groupId: string, deviceClassId: string, options?: DeviceManagementGetDeviceClassSubgroupOptionalParams) => Promise<DeviceClassSubgroup>

属性值

(groupId: string, deviceClassId: string, options?: DeviceManagementGetDeviceClassSubgroupOptionalParams) => Promise<DeviceClassSubgroup>

getDeviceClassSubgroupDeploymentStatus

获取部署的状态,包括部署中有多少设备正在进行、已完成或失败的细分。

getDeviceClassSubgroupDeploymentStatus: (groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementGetDeviceClassSubgroupDeploymentStatusOptionalParams) => Promise<DeviceClassSubgroupDeploymentStatus>

属性值

(groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementGetDeviceClassSubgroupDeploymentStatusOptionalParams) => Promise<DeviceClassSubgroupDeploymentStatus>

getDeviceClassSubgroupUpdateCompliance

获取设备类子组更新符合性信息,例如最新更新中的设备数、需要多少新更新,以及接收新更新时正在进行多少个设备。

getDeviceClassSubgroupUpdateCompliance: (groupId: string, deviceClassId: string, options?: DeviceManagementGetDeviceClassSubgroupUpdateComplianceOptionalParams) => Promise<UpdateCompliance>

属性值

(groupId: string, deviceClassId: string, options?: DeviceManagementGetDeviceClassSubgroupUpdateComplianceOptionalParams) => Promise<UpdateCompliance>

getDeviceModule

获取连接到 IoT 中心设备更新的设备模块的设备模块属性和最新部署状态。

getDeviceModule: (deviceId: string, moduleId: string, options?: DeviceManagementGetDeviceModuleOptionalParams) => Promise<Device>

属性值

(deviceId: string, moduleId: string, options?: DeviceManagementGetDeviceModuleOptionalParams) => Promise<Device>

getGroup

获取设备组属性。

getGroup: (groupId: string, options?: DeviceManagementGetGroupOptionalParams) => Promise<Group>

属性值

(groupId: string, options?: DeviceManagementGetGroupOptionalParams) => Promise<Group>

getLogCollection

获取设备诊断日志收集

getLogCollection: (logCollectionId: string, options?: DeviceManagementGetLogCollectionOptionalParams) => Promise<LogCollection>

属性值

(logCollectionId: string, options?: DeviceManagementGetLogCollectionOptionalParams) => Promise<LogCollection>

getLogCollectionDetailedStatus

获取具有详细状态的日志收集

getLogCollectionDetailedStatus: (logCollectionId: string, options?: DeviceManagementGetLogCollectionDetailedStatusOptionalParams) => Promise<LogCollectionOperationDetailedStatus>

属性值

(logCollectionId: string, options?: DeviceManagementGetLogCollectionDetailedStatusOptionalParams) => Promise<LogCollectionOperationDetailedStatus>

getOperationStatus

检索作状态。

getOperationStatus: (operationId: string, options?: DeviceManagementGetOperationStatusOptionalParams) => Promise<DeviceOperation>

属性值

(operationId: string, options?: DeviceManagementGetOperationStatusOptionalParams) => Promise<DeviceOperation>

getUpdateCompliance

获取最新更新、有可用新更新或正在进行接收新更新的设备数的细分。

getUpdateCompliance: (options?: DeviceManagementGetUpdateComplianceOptionalParams) => Promise<UpdateCompliance>

属性值

(options?: DeviceManagementGetUpdateComplianceOptionalParams) => Promise<UpdateCompliance>

getUpdateComplianceForGroup

获取设备组更新符合性信息,例如最新更新中的设备数、需要多少新更新,以及接收新更新时正在进行多少个更新。

getUpdateComplianceForGroup: (groupId: string, options?: DeviceManagementGetUpdateComplianceForGroupOptionalParams) => Promise<UpdateCompliance>

属性值

(groupId: string, options?: DeviceManagementGetUpdateComplianceForGroupOptionalParams) => Promise<UpdateCompliance>

importDevices

从 IoT 中心导入现有设备。 这是长时间运行的作;使用 Operation-Location 响应标头值检查作状态。

importDevices: (importType: ImportType, options?: DeviceManagementImportDevicesOptionalParams) => PollerLike<OperationState<void>, void>

属性值

(importType: ImportType, options?: DeviceManagementImportDevicesOptionalParams) => PollerLike<OperationState<void>, void>

listBestUpdatesForGroup

获取设备组的最佳可用更新,以及每个更新需要多少台设备的计数。

listBestUpdatesForGroup: (groupId: string, options?: DeviceManagementListBestUpdatesForGroupOptionalParams) => PagedAsyncIterableIterator<DeviceClassSubgroupUpdatableDevices, DeviceClassSubgroupUpdatableDevices[], PageSettings>

属性值

(groupId: string, options?: DeviceManagementListBestUpdatesForGroupOptionalParams) => PagedAsyncIterableIterator<DeviceClassSubgroupUpdatableDevices, DeviceClassSubgroupUpdatableDevices[], PageSettings>

listDeploymentsForDeviceClassSubgroup

获取设备类子组的部署列表。

listDeploymentsForDeviceClassSubgroup: (groupId: string, deviceClassId: string, options?: DeviceManagementListDeploymentsForDeviceClassSubgroupOptionalParams) => PagedAsyncIterableIterator<Deployment, Deployment[], PageSettings>

属性值

(groupId: string, deviceClassId: string, options?: DeviceManagementListDeploymentsForDeviceClassSubgroupOptionalParams) => PagedAsyncIterableIterator<Deployment, Deployment[], PageSettings>

listDeploymentsForGroup

获取设备组的部署列表。

listDeploymentsForGroup: (groupId: string, options?: DeviceManagementListDeploymentsForGroupOptionalParams) => PagedAsyncIterableIterator<Deployment, Deployment[], PageSettings>

属性值

(groupId: string, options?: DeviceManagementListDeploymentsForGroupOptionalParams) => PagedAsyncIterableIterator<Deployment, Deployment[], PageSettings>

listDeviceClasses

获取连接到 IoT 中心设备更新的所有设备的所有设备(基于设备更新 PnP 接口中报告的模型 ID 和兼容性属性)的所有设备类的列表。

listDeviceClasses: (options?: DeviceManagementListDeviceClassesOptionalParams) => PagedAsyncIterableIterator<DeviceClass, DeviceClass[], PageSettings>

属性值

(options?: DeviceManagementListDeviceClassesOptionalParams) => PagedAsyncIterableIterator<DeviceClass, DeviceClass[], PageSettings>

listDeviceClassSubgroupsForGroup

获取组的设备类子组。 设备类子组是共享同一设备类的组中的设备集。 同一设备类中的所有设备都与相同的更新兼容。

listDeviceClassSubgroupsForGroup: (groupId: string, options?: DeviceManagementListDeviceClassSubgroupsForGroupOptionalParams) => PagedAsyncIterableIterator<DeviceClassSubgroup, DeviceClassSubgroup[], PageSettings>

属性值

(groupId: string, options?: DeviceManagementListDeviceClassSubgroupsForGroupOptionalParams) => PagedAsyncIterableIterator<DeviceClassSubgroup, DeviceClassSubgroup[], PageSettings>

listDevices

获取连接到 IoT 中心设备更新的设备的列表。

listDevices: (options?: DeviceManagementListDevicesOptionalParams) => PagedAsyncIterableIterator<Device, Device[], PageSettings>

属性值

(options?: DeviceManagementListDevicesOptionalParams) => PagedAsyncIterableIterator<Device, Device[], PageSettings>

listDeviceStatesForDeviceClassSubgroupDeployment

获取部署中的设备及其状态的列表。 可用于获取失败的设备列表。

listDeviceStatesForDeviceClassSubgroupDeployment: (groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentOptionalParams) => PagedAsyncIterableIterator<DeploymentDeviceState, DeploymentDeviceState[], PageSettings>

属性值

(groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentOptionalParams) => PagedAsyncIterableIterator<DeploymentDeviceState, DeploymentDeviceState[], PageSettings>

listGroups

获取所有设备组的列表。 $default组将始终首先返回。

listGroups: (options?: DeviceManagementListGroupsOptionalParams) => PagedAsyncIterableIterator<Group, Group[], PageSettings>

属性值

(options?: DeviceManagementListGroupsOptionalParams) => PagedAsyncIterableIterator<Group, Group[], PageSettings>

listHealthOfDevices

获取设备运行状况列表

listHealthOfDevices: (filter: string, options?: DeviceManagementListHealthOfDevicesOptionalParams) => PagedAsyncIterableIterator<DeviceHealth, DeviceHealth[], PageSettings>

属性值

(filter: string, options?: DeviceManagementListHealthOfDevicesOptionalParams) => PagedAsyncIterableIterator<DeviceHealth, DeviceHealth[], PageSettings>

listInstallableUpdatesForDeviceClass

获取设备类的可安装更新的列表。

listInstallableUpdatesForDeviceClass: (deviceClassId: string, options?: DeviceManagementListInstallableUpdatesForDeviceClassOptionalParams) => PagedAsyncIterableIterator<UpdateInfo, UpdateInfo[], PageSettings>

属性值

(deviceClassId: string, options?: DeviceManagementListInstallableUpdatesForDeviceClassOptionalParams) => PagedAsyncIterableIterator<UpdateInfo, UpdateInfo[], PageSettings>

listLogCollections

获取所有设备诊断日志集合

listLogCollections: (options?: DeviceManagementListLogCollectionsOptionalParams) => PagedAsyncIterableIterator<LogCollection, LogCollection[], PageSettings>

属性值

(options?: DeviceManagementListLogCollectionsOptionalParams) => PagedAsyncIterableIterator<LogCollection, LogCollection[], PageSettings>

listOperationStatuses

获取所有设备导入作的列表。 自动删除之前,已完成的作将保留 7 天。

listOperationStatuses: (options?: DeviceManagementListOperationStatusesOptionalParams) => PagedAsyncIterableIterator<DeviceOperation, DeviceOperation[], PageSettings>

属性值

(options?: DeviceManagementListOperationStatusesOptionalParams) => PagedAsyncIterableIterator<DeviceOperation, DeviceOperation[], PageSettings>

retryDeployment

重试具有失败设备的部署。

retryDeployment: (groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementRetryDeploymentOptionalParams) => Promise<Deployment>

属性值

(groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementRetryDeploymentOptionalParams) => Promise<Deployment>

startLogCollection

在指定的设备上启动设备诊断日志收集。

startLogCollection: (logCollectionId: string, logCollection: LogCollection, options?: DeviceManagementStartLogCollectionOptionalParams) => Promise<LogCollection>

属性值

(logCollectionId: string, logCollection: LogCollection, options?: DeviceManagementStartLogCollectionOptionalParams) => Promise<LogCollection>

stopDeployment

停止部署。

stopDeployment: (groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementStopDeploymentOptionalParams) => Promise<Deployment>

属性值

(groupId: string, deviceClassId: string, deploymentId: string, options?: DeviceManagementStopDeploymentOptionalParams) => Promise<Deployment>

updateDeviceClass

更新设备类详细信息。

updateDeviceClass: (deviceClassId: string, deviceClassPatch: PatchBody, options?: DeviceManagementUpdateDeviceClassOptionalParams) => Promise<DeviceClass>

属性值

(deviceClassId: string, deviceClassPatch: PatchBody, options?: DeviceManagementUpdateDeviceClassOptionalParams) => Promise<DeviceClass>