Image - Get Metadata

获取指定 Image 的元数据。

GET https://prod.core.sphere.azure.net/v2/tenants/{tenantId}/images/{imageId}/metadata

URI 参数

名称 必需 类型 说明
imageId
path True

string

uuid

映像 ID。

tenantId
path True

string

uuid

Azure Sphere 租户 ID。

响应

名称 类型 说明
200 OK

ImageMetadata

成功。

示例

Get an image's metadata

Sample Request

GET https://prod.core.sphere.azure.net/v2/tenants/768c2cd6-1bf0-4521-9f53-084a331d81cb/images/985453bb-eb5c-4ff2-8e06-aef4786ac445/metadata

Sample Response

{
  "Id": "985453bb-eb5c-4ff2-8e06-aef4786ac445",
  "Name": "DishwasherHighLevelApp",
  "ComponentId": "45f4d635-1ac8-4fc3-b386-ffb74f13331f",
  "Description": null,
  "ImageType": 10,
  "Type": 10
}

定义

ImageMetadata

名称 类型 说明
ComponentId

string

获取或设置组件标识符。

Description

string

获取或设置描述图像的信息。

Id

string

获取或设置图像标识符。

ImageType

integer

此属性已弃用。 请使用 ImageMetadata.Type

Name

string

获取或设置映像的名称。

Type enum:
  • 0 - InvalidImageType
  • 1 - OneBl
  • 10 - Applications
  • 13 - FwConfig
  • 16 - BootManifest
  • 17 - Nwfs
  • 19 - TrustedKeystore
  • 2 - PlutonRuntime
  • 20 - Policy
  • 21 - CustomerBoardConfig
  • 22 - UpdateCertStore
  • 23 - BaseSystemUpdateManifest
  • 24 - FirmwareUpdateManifest
  • 25 - CustomerUpdateManifest
  • 26 - RecoveryManifest
  • 27 - ManifestSet
  • 28 - Other
  • 3 - WifiFirmware
  • 4 - SecurityMonitor
  • 5 - NormalWorldLoader
  • 6 - NormalWorldDtb
  • 7 - NormalWorldKernel
  • 8 - RootFs
  • 9 - Services

获取或设置图像的类型。