cloudPcDeviceImage 资源类型
命名空间:microsoft.graph
重要
Microsoft Graph版本下的 /beta API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
表示云电脑上的图像资源。
Methods
| 方法 | 返回类型 | 说明 |
|---|---|---|
| 列出 deviceImages | cloudPcDeviceImage 集合 | 列出 cloudPcDeviceImage 对象的属性和 关系。 |
| 获取 cloudPcDeviceImage | cloudPcDeviceImage | 读取 cloudPcDeviceImage 对象的属性和 关系。 |
| 创建 cloudPcDeviceImage | cloudPcDeviceImage | 创建新的 cloudPcDeviceImage 对象。 |
| 删除 cloudPcDeviceImage | 无 | 删除 cloudPcDeviceImage 对象。 |
| getSourceImages | cloudPcSourceDeviceImage 集合 | 获取 cloudPcSourceDeviceImage 对象。 |
| 重新加载 cloudPcDeviceImage | 无 | 重新加载 无法上载的 cloudPcDeviceImage 对象。 |
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| displayName | String | 图像显示名称。 |
| expirationDate | 日期 | 图像不可用的日期。 |
| id | String | 云电脑上的图像资源的唯一标识符。 只读。 |
| lastModifiedDateTime | DateTimeOffset | 上次修改图像的数据和时间。 时间以 ISO 8601 格式显示,协调世界时 (UTC) 时间。 例如,2014 年 1 月 1 日午夜 UTC 显示为"2014-01-01T00:00:00Z"。 |
| operatingSystem | String | 映像的操作系统。 例如:Windows 10 企业版。 |
| osBuildNumber | String | 映像的操作系统生成版本。 例如:1909。 |
| osStatus | cloudPcDeviceImageOsStatus | 此映像的操作系统状态。 可取值为:supported、supportedWithWarning、unknownFutureValue。 |
| sourceImageResourceId | String | Azure 上的源图像资源的 ID。 所需格式:"/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}"。 |
| 状态 | cloudPcDeviceImageStatus | 云电脑上映像的状态。 可取值为:pending、ready、failed。 |
| statusDetails | cloudPcDeviceImageStatusDetails | 图像状态的详细信息,指示上传失败的原因(如果适用)。 可能的值是 internalServerError sourceImageNotFound osVersionNotSupported :、、、 sourceImageInvalid 和 sourceImageNotGeneralized 。 |
| version | String | 图像版本。 例如:0.0.1、1.5.13。 |
cloudPcDeviceImageStatus 值
| 成员 | 说明 |
|---|---|
| pending | 图像上载正在进行中。 |
| ready | 该映像已准备好在云 PC 上使用。 |
| failed | 无法上载图像。 |
cloudPcDeviceImageStatusDetails 值
| 成员 | 说明 |
|---|---|
| internalServerError | 处理映像时出现内部服务器错误。 |
| sourceImageNotFound | 无法访问或找不到源图像。 |
| osVersionNotSupported | 不支持操作系统版本。 |
| sourceImageInvalid | 源映像用于无效一个Windows VM。 |
| sourceImageNotGeneralized | 上载的图像尚未通用化。 运行 sysprep/generalize 命令后重新加载映像。 若要了解详细信息,请参阅在创建映像之前通过通用 化 VM 删除计算机特定信息。 |
| unknownFutureValue | 可发展枚举 sentinel 值。 请勿使用。 |
cloudPcDeviceImageOsStatus 值
| 成员 | 说明 |
|---|---|
| 支持 | 设备映像处于活动状态,并准备用于预配。 |
| supportedWithWarning | 设备映像已过期,但云电脑将继续提供支持。 如果用户继续使用,他们可能无法获取安全更新。 |
| unknownFutureValue | 可发展枚举 sentinel 值。 请勿使用。 |
关系
无。
JSON 表示形式
下面是资源的 JSON 表示形式。
{
"@odata.type": "#microsoft.graph.cloudPcDeviceImage",
"id": "String (identifier)",
"displayName": "String",
"operatingSystem": "String",
"osBuildNumber": "String",
"version": "String",
"lastModifiedDateTime": "String (timestamp)",
"status": "String",
"statusDetails": "String",
"sourceImageResourceId": "String",
"expirationDate":"String (timestamp)",
"osStatus":"String"
}
反馈
提交和查看相关反馈