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 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
location
|
path | True |
string |
支援的 Azure 區域名稱。 |
offer
|
path | True |
string |
有效的映像發行者供應專案。 |
publisher
|
path | True |
string |
有效的映像發行者。 |
subscription
|
path | True |
string |
可唯一識別 Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶識別碼會構成每個服務呼叫 URI 的一部分。 |
api-version
|
query | True |
string |
用戶端 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
確定 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
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"
}
]
定義
名稱 | Description |
---|---|
Api |
API 錯誤。 |
Api |
API 錯誤基底。 |
Cloud |
來自計算服務的錯誤回應。 |
Extended |
擴充位置的複雜類型。 |
Extended |
擴充位置的類型。 |
Inner |
內部錯誤詳細數據。 |
Virtual |
虛擬機映像資源資訊。 |
ApiError
API 錯誤。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
details |
API 錯誤詳細數據 |
|
innererror |
Api 內部錯誤 |
|
message |
string |
錯誤訊息。 |
target |
string |
特定錯誤的目標。 |
ApiErrorBase
API 錯誤基底。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
message |
string |
錯誤訊息。 |
target |
string |
特定錯誤的目標。 |
CloudError
來自計算服務的錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
API 錯誤。 |
ExtendedLocation
擴充位置的複雜類型。
名稱 | 類型 | Description |
---|---|---|
name |
string |
擴充位置的名稱。 |
type |
擴充位置的類型。 |
ExtendedLocationTypes
擴充位置的類型。
名稱 | 類型 | Description |
---|---|---|
EdgeZone |
string |
InnerError
內部錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
errordetail |
string |
內部錯誤訊息或例外狀況傾印。 |
exceptiontype |
string |
例外狀況型別。 |
VirtualMachineImageResource
虛擬機映像資源資訊。
名稱 | 類型 | Description |
---|---|---|
extendedLocation |
虛擬機的擴充位置。 |
|
id |
string |
資源標識碼 |
location |
string |
支援的 Azure 資源位置。 |
name |
string |
資源名稱。 |
tags |
object |
指定指派給虛擬機的標記。 如需使用標籤的詳細資訊,請參閱 使用標籤來組織您的 Azure 資源。 |