Device Group - Get In Product

获取具有指定名称的产品中具有指定名称的 DeviceGroup。

GET https://prod.core.sphere.azure.net/v2/tenants/{tenantId}/products/name/{productName}/deviceGroups/name/{deviceGroupName}

URI 参数

名称 必需 类型 说明
deviceGroupName
path True

string

DeviceGroup 的名称。

productName
path True

string

设备组所在的产品的名称。

tenantId
path True

string

uuid

Azure Sphere 租户 ID。

响应

名称 类型 说明
200 OK

DeviceGroupV2

成功。

示例

Get device group in product

示例请求

GET https://prod.core.sphere.azure.net/v2/tenants/768c2cd6-1bf0-4521-9f53-084a331d81cb/products/name/Dishwasher/deviceGroups/name/US region

示例响应

{
  "Id": "c4b1067f-10be-479a-85e9-d062dae189e1",
  "TenantId": "768c2cd6-1bf0-4521-9f53-084a331d81cb",
  "OsFeedType": 0,
  "ProductId": "b0ba65bc-648f-4213-a910-cbeb6024c744",
  "Name": "US region",
  "Description": "United States marketing region",
  "CurrentDeployment": null,
  "UpdatePolicy": 0,
  "AllowCrashDumpsCollection": false
}

定义

名称 说明
Deployment
DeviceGroupV2

Deployment

名称 类型 说明
DeployedImages

string[]

当前在此部署中的映像 ID。

DeploymentDateUtc

string

部署创建的 DateTime。

Id

string

部署的唯一 ID。

TenantId

string

拥有部署的租户的唯一 ID。

DeviceGroupV2

名称 类型 说明
AllowCrashDumpsCollection

boolean

为给定设备组启用故障转储收集

CurrentDeployment

Deployment

Description

string

设备组的说明。

Id

string

设备组的唯一 ID。

Name

string

设备组的名称。

OsFeedType enum:
  • 0 - Retail
  • 1 - RetailEval

此设备组用于 OS 更新的 osfeed 类型。

ProductId

string

此设备组所属的产品的唯一 ID。

TenantId

string

拥有设备组的租户的唯一 ID。

UpdatePolicy enum:
  • 0 - UpdateAll
  • 1 - No3rdPartyAppUpdates

确定要更新的软件的更新策略。