Products - Get
依標識碼取得產品。 只有合約類型為 Microsoft 客戶合約的計費帳戶才支援此作業。
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products/{productName}?api-version=2020-05-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
billing
|
path | True |
string |
可唯一識別計費帳戶的標識碼。 |
product
|
path | True |
string |
可唯一識別產品的標識碼。 |
api-version
|
query | True |
string |
要與用戶端要求搭配使用的 API 版本。 目前的版本為 2020-05-01。 |
回應
名稱 | 類型 | 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 | 模擬您的用戶帳戶 |
範例
Product
Sample Request
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products/{productName}?api-version=2020-05-01
Sample Response
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/{productName}",
"name": "{productName}",
"type": "Microsoft.Billing/billingAccounts/products",
"properties": {
"autoRenew": "On",
"productTypeId": "A12345",
"productType": "Subscription",
"displayName": "AIP Dev",
"status": "Active",
"purchaseDate": "2018-05-01T17:32:28Z",
"lastCharge": {
"currency": "USD",
"value": 5000
},
"lastChargeDate": "2018-06-15T17:32:28Z",
"billingFrequency": "Monthly",
"quantity": 4,
"skuId": "0001",
"skuDescription": "Enterprise Agreement Development",
"tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
"availabilityId": "AvailabilityId1",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
"invoiceSectionDisplayName": "Contoso operations invoiceSection",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
"billingProfileDisplayName": "Contoso operations billing"
}
}
定義
名稱 | Description |
---|---|
Amount |
數量。 |
Auto |
指出產品是否開啟或關閉自動更新。 |
Billing |
產品的計費頻率。 |
Error |
錯誤的詳細數據。 |
Error |
錯誤回應表示服務無法處理傳入要求。 錯誤訊息中會提供原因。 |
Error |
|
Product |
產品。 |
Product |
產品的目前狀態。 |
Reseller |
轉銷商的詳細數據。 |
Amount
數量。
名稱 | 類型 | Description |
---|---|---|
currency |
string |
金額值的貨幣。 |
value |
number |
金額值。 |
AutoRenew
指出產品是否開啟或關閉自動更新。
名稱 | 類型 | Description |
---|---|---|
Off |
string |
|
On |
string |
BillingFrequency
產品的計費頻率。
名稱 | 類型 | Description |
---|---|---|
Monthly |
string |
|
OneTime |
string |
|
UsageBased |
string |
ErrorDetails
錯誤的詳細數據。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
details |
錯誤的子詳細數據。 |
|
message |
string |
錯誤訊息,指出作業失敗的原因。 |
target |
string |
特定錯誤的目標。 |
ErrorResponse
錯誤回應表示服務無法處理傳入要求。 錯誤訊息中會提供原因。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤的詳細數據。 |
ErrorSubDetails
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
message |
string |
錯誤訊息,指出作業失敗的原因。 |
target |
string |
特定錯誤的目標。 |
Product
產品。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼。 |
name |
string |
資源名稱。 |
properties.autoRenew |
指出產品是否開啟或關閉自動更新。 |
|
properties.availabilityId |
string |
產品的可用性。 |
properties.billingFrequency |
產品的計費頻率。 |
|
properties.billingProfileDisplayName |
string |
計費產品的帳單配置檔名稱。 |
properties.billingProfileId |
string |
計費產品的帳單配置檔標識碼。 |
properties.customerDisplayName |
string |
購買產品的客戶名稱。 欄位僅適用於 Microsoft 合作夥伴合約 計費帳戶。 |
properties.customerId |
string |
購買產品之客戶的標識碼。 欄位僅適用於 Microsoft 合作夥伴合約 計費帳戶。 |
properties.displayName |
string |
產品的顯示名稱。 |
properties.endDate |
string |
產品將會更新或取消的日期。 |
properties.invoiceSectionDisplayName |
string |
要向產品計費的發票區段名稱。 |
properties.invoiceSectionId |
string |
要向產品計費之發票區段的標識碼。 |
properties.lastCharge |
上個月的費用。 |
|
properties.lastChargeDate |
string |
上次收費的日期。 |
properties.productType |
string |
產品類型的描述。 |
properties.productTypeId |
string |
產品類型的標識碼。 |
properties.purchaseDate |
string |
購買產品的日期。 |
properties.quantity |
number |
為產品購買的數量。 |
properties.reseller |
此產品的轉銷商。 |
|
properties.skuDescription |
string |
產品的 SKU 描述。 |
properties.skuId |
string |
產品的 SKU 識別碼。 |
properties.status |
產品的目前狀態。 |
|
properties.tenantId |
string |
使用產品之租用戶的標識碼。 |
type |
string |
資源類型。 |
ProductStatusType
產品的目前狀態。
名稱 | 類型 | Description |
---|---|---|
Active |
string |
|
AutoRenew |
string |
|
Cancelled |
string |
|
Disabled |
string |
|
Expired |
string |
|
Expiring |
string |
|
Inactive |
string |
|
PastDue |
string |
Reseller
轉銷商的詳細數據。
名稱 | 類型 | Description |
---|---|---|
description |
string |
轉銷商的名稱。 |
resellerId |
string |
轉銷商的 MPN 識別碼。 |