你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Virtual Machine Images - List Skus
获取指定位置、发布者和产品/服务的虚拟机映像 SKU 列表。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus?api-version=2024-03-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
location
|
path | True |
string |
受支持的 Azure 区域的名称。 |
offer
|
path | True |
string |
有效的映像发布者产品/服务。 |
publisher
|
path | True |
string |
有效的映像发布者。 |
subscription
|
path | True |
string |
唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Virtual |
Virtual |
VirtualMachineImage_ListSkus_MaximumSet_Gen
Sample Request
GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/aaaa/publishers/aaaaaaaaaaaaaaaaaaaaaaaaaaaa/artifacttypes/vmimage/offers/aaaaaaa/skus?api-version=2024-03-01
Sample Response
[
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa",
"tags": {
"key7868": "aaaaa"
},
"extendedLocation": {
"name": "aaaaaaaaaaaaaaaaaaaaa",
"type": "EdgeZone"
},
"id": "aaaaaaaaaaa"
}
]
VirtualMachineImage_ListSkus_MinimumSet_Gen
Sample Request
GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/aaaa/publishers/aaaaaaaaaaaaa/artifacttypes/vmimage/offers/aaaaaaa/skus?api-version=2024-03-01
Sample Response
[
{
"name": "aaaaaaaa",
"location": "aaaaaaaaaaaaaaaaaa",
"id": "aaaaaaaaaaa"
}
]
定义
名称 | 说明 |
---|---|
Api |
API 错误。 |
Api |
API 错误基。 |
Cloud |
来自计算服务的错误响应。 |
Extended |
扩展位置的复杂类型。 |
Extended |
扩展位置的类型。 |
Inner |
内部错误详细信息。 |
Virtual |
虚拟机映像资源信息。 |
ApiError
API 错误。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
details |
API 错误详细信息 |
|
innererror |
Api 内部错误 |
|
message |
string |
错误消息。 |
target |
string |
特定错误的目标。 |
ApiErrorBase
API 错误基。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
错误消息。 |
target |
string |
特定错误的目标。 |
CloudError
来自计算服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
API 错误。 |
ExtendedLocation
扩展位置的复杂类型。
名称 | 类型 | 说明 |
---|---|---|
name |
string |
扩展位置的名称。 |
type |
扩展位置的类型。 |
ExtendedLocationTypes
扩展位置的类型。
名称 | 类型 | 说明 |
---|---|---|
EdgeZone |
string |
InnerError
内部错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
errordetail |
string |
内部错误消息或异常转储。 |
exceptiontype |
string |
异常类型。 |
VirtualMachineImageResource
虚拟机映像资源信息。
名称 | 类型 | 说明 |
---|---|---|
extendedLocation |
虚拟机的扩展位置。 |
|
id |
string |
资源 ID |
location |
string |
支持的 Azure 资源位置。 |
name |
string |
资源的名称。 |
tags |
object |
指定分配给虚拟机的标记。 有关使用标记的详细信息,请参阅 使用标记来组织 Azure 资源。 |