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

Location - List Cached Images

获取区域中订阅的特定 OS 类型上的缓存映像列表。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages?api-version=2025-09-01

URI 参数

名称 必需 类型 说明
location
path True

string

minLength: 1

Azure 区域的名称。

subscriptionId
path True

string (uuid)

目标订阅的 ID。 该值必须是 UUID。

api-version
query True

string

minLength: 1

要用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

CachedImagesListResult

好的

Other Status Codes

CloudError

描述操作失败的原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

CachedImages

示例请求

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance/locations/westcentralus/cachedImages?api-version=2025-09-01

示例响应

{
  "value": [
    {
      "osType": "Linux",
      "image": "ubuntu:16.04"
    },
    {
      "osType": "Linux",
      "image": "alpine:3.6"
    },
    {
      "osType": "Windows",
      "image": "microsoft/nanoserver:10.0.14393.2485"
    }
  ]
}

定义

名称 说明
cachedImages

缓存的映像和作系统类型。

CachedImagesListResult

包含缓存图像的响应。

CloudError

容器实例服务的错误响应。

CloudErrorBody

容器实例服务的错误响应。

cachedImages

缓存的映像和作系统类型。

名称 类型 说明
image

string

缓存的映像名称。

osType

string

缓存映像的作系统类型。

CachedImagesListResult

包含缓存图像的响应。

名称 类型 说明
nextLink

string

用于获取缓存图像的下一页的 URI。

value

cachedImages[]

缓存图像的列表。

CloudError

容器实例服务的错误响应。

名称 类型 说明
error

CloudErrorBody

容器实例服务的错误响应。

CloudErrorBody

容器实例服务的错误响应。

名称 类型 说明
code

string

错误的标识符。 代码是固定的,旨在以编程方式使用。

details

CloudErrorBody[]

有关错误的其他详细信息的列表。

message

string

描述错误的消息,旨在适合在用户界面中显示。

target

string

特定错误的目标。 例如,错误属性的名称。