Offers - List
取得資源群組底下的供應項目清單。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/offers?api-version=2015-11-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
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 流程
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Get the list of offers under a resource group.
Sample Request
GET https://management.azure.com/subscriptions/0af9c33b-f7ac-4161-add5-17b2f0b6a669/resourceGroups/RG1/providers/Microsoft.Subscriptions.Admin/offers?api-version=2015-11-01
Sample Response
{
"value": [
{
"id": "/subscriptions/0af9c33b-f7ac-4161-add5-17b2f0b6a669/resourceGroups/RG1/providers/Microsoft.Subscriptions.Admin/offers/sampleoffer1",
"name": "sampleoffer1",
"type": "Microsoft.Subscriptions.Admin/offers",
"location": "local",
"properties": {
"name": "sampleoffer1",
"displayName": "SampleOffer1",
"description": "",
"externalReferenceId": "",
"state": "Public",
"subscriptionCount": 1,
"maxSubscriptionsPerAccount": 0,
"basePlanIds": [
"/subscriptions/0af9c33b-f7ac-4161-add5-17b2f0b6a669/resourceGroups/RG1/providers/Microsoft.Subscriptions.Admin/plans/sampleplan1"
]
}
},
{
"id": "/subscriptions/0af9c33b-f7ac-4161-add5-17b2f0b6a669/resourceGroups/ascansubscrrg479/providers/Microsoft.Subscriptions.Admin/offers/sampleoffer2",
"name": "sampleoffer2",
"type": "Microsoft.Subscriptions.Admin/offers",
"location": "local",
"tags": {},
"properties": {
"name": "sampleoffer2",
"displayName": "sampleoffer2",
"state": "Public",
"subscriptionCount": 0,
"maxSubscriptionsPerAccount": 0,
"basePlanIds": [
"/subscriptions/0af9c33b-f7ac-4161-add5-17b2f0b6a669/resourceGroups/ascansubscrrg479/providers/Microsoft.Subscriptions.Admin/plans/sampleoffer2"
]
}
}
]
}
定義
名稱 | Description |
---|---|
Accessibility |
代表供應項目的狀態 |
Addon |
包含要連結或取消連結供應專案之所需計劃的名稱。 |
Error |
錯誤回應。 |
Error |
錯誤定義。 |
Offer |
代表可建立訂用帳戶的服務供應專案。 |
Offer |
供應項目清單。 |
AccessibilityState
代表供應項目的狀態
名稱 | 類型 | Description |
---|---|---|
Decommissioned |
string |
供應專案或方案已解除委任。 目前的訂用帳戶仍可取用,但新的訂用帳戶無法取用。 |
Private |
string |
供應專案或方案是私人的。 只有 管理員 可以看到和管理它。 |
Public |
string |
供應專案或方案是公開的。 用戶可以查看並自行訂閱。 |
AddonPlanDefinition
包含要連結或取消連結供應專案之所需計劃的名稱。
名稱 | 類型 | Description |
---|---|---|
maxAcquisitionCount |
integer |
單一訂用帳戶可以取得的實例數目上限。 如果未指定,則假設值為 1。 |
planId |
string |
計劃標識碼。 |
Error
錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤詳細資料。 |
ErrorDefinition
錯誤定義。
名稱 | 類型 | Description |
---|---|---|
code |
string |
服務特定的錯誤碼,可作為 HTTP 錯誤碼的子狀態。 |
details |
內部錯誤詳細數據。 |
|
message |
string |
錯誤的描述。 |
Offer
代表可建立訂用帳戶的服務供應專案。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源的 URI。 |
location |
string |
資源的位置 |
name |
string |
資源名稱。 |
properties.addonPlans |
租用戶選擇性取得作為供應專案一部分的附加方案參考。 |
|
properties.basePlanIds |
string[] |
租使用者訂閱供應專案時,立即可供租使用者使用之基底方案的標識符。 |
properties.description |
string |
供應專案的描述。 |
properties.displayName |
string |
供應項目的顯示名稱。 |
properties.externalReferenceId |
string |
外部參考標識碼。 |
properties.maxSubscriptionsPerAccount |
integer |
每個帳戶的訂用帳戶上限。 |
properties.name |
string |
供應項目的名稱。 |
properties.state |
提供輔助功能狀態。 |
|
properties.subscriptionCount |
integer |
目前的訂用帳戶計數。 |
tags |
object |
索引鍵/值組的清單。 |
type |
string |
資源類型。 |
OfferList
供應項目清單。
名稱 | 類型 | Description |
---|---|---|
nextLink |
string |
下一頁的 URI。 |
value |
Offer[] |
供應項目清單。 |