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 区域的名称。 |
|
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
|
api-version
|
query | True |
string minLength: 1 |
要用于此操作的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
好的 |
|
| Other Status Codes |
描述操作失败的原因的错误响应。 |
安全性
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"
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
cached |
缓存的映像和作系统类型。 |
|
Cached |
包含缓存图像的响应。 |
|
Cloud |
容器实例服务的错误响应。 |
|
Cloud |
容器实例服务的错误响应。 |
cachedImages
缓存的映像和作系统类型。
| 名称 | 类型 | 说明 |
|---|---|---|
| image |
string |
缓存的映像名称。 |
| osType |
string |
缓存映像的作系统类型。 |
CachedImagesListResult
包含缓存图像的响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
用于获取缓存图像的下一页的 URI。 |
| value |
缓存图像的列表。 |
CloudError
容器实例服务的错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
容器实例服务的错误响应。 |
CloudErrorBody
容器实例服务的错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
| details |
有关错误的其他详细信息的列表。 |
|
| message |
string |
描述错误的消息,旨在适合在用户界面中显示。 |
| target |
string |
特定错误的目标。 例如,错误属性的名称。 |