Savings Plans - List By Billing Account
課金アカウント別に節約プランを一覧表示します。
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlans?api-version=2024-04-01
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlans?api-version=2024-04-01&filter={filter}&orderBy={orderBy}&skiptoken={skiptoken}&take={take}&selectedState={selectedState}&refreshSummary={refreshSummary}
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
billing
|
path | True |
string pattern: ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$ |
課金アカウントを一意に識別する ID。 |
api-version
|
query | True |
string |
クライアント要求で使用する API のバージョン。 現在のバージョンは 2024-04-01 です。 |
filter
|
query |
string |
フィルター クエリ オプションを使用すると、クライアントは要求 URL でアドレス指定されたリソースのコレクションをフィルター処理できます。 |
|
order
|
query |
string |
orderby クエリ オプションを使用すると、クライアントは特定の順序でリソースを要求できます。 |
|
refresh
|
query |
string |
プロビジョニングの状態によって節約計画グループのロールアップ数を更新するかどうかを示すには |
|
selected
|
query |
string |
選択したプロビジョニング状態 |
|
skiptoken
|
query |
number |
結果を返す前にリストからスキップする節約計画の数 |
|
take
|
query |
number |
返される節約計画の数 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
要求が完了しました。 |
|
Other Status Codes |
予期しないエラー。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー。
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントを偽装する |
例
SavingsPlansList
要求のサンプル
応答のサンプル
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000",
"name": "30000000-0000-0000-0000-000000000000",
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans",
"sku": {
"name": "Compute_Savings_Plan"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"properties": {
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD",
"billingPlan": "P1M",
"productCode": "20000000-0000-0000-0000-000000000005",
"commitment": {
"grain": "Hourly",
"currencyCode": "USD",
"amount": 10
},
"renew": false,
"appliedScopeType": "Shared",
"displayName": "SP1",
"provisioningState": "Succeeded",
"term": "P1Y",
"displayProvisioningState": "Succeeded",
"userFriendlyAppliedScopeType": "Shared",
"expiryDateTime": "2023-12-16T02:17:03.7396152Z",
"purchaseDateTime": "2022-12-16T02:14:58.2304134Z",
"benefitStartTime": "2022-12-16T02:17:03.7396152Z",
"effectiveDateTime": "2022-12-16T02:17:04.9896661Z",
"utilization": {
"trend": "SAME",
"aggregates": [
{
"grain": 1,
"grainUnit": "days",
"value": 0,
"valueUnit": "percentage"
},
{
"grain": 7,
"grainUnit": "days",
"value": 0,
"valueUnit": "percentage"
},
{
"grain": 30,
"grainUnit": "days",
"value": 0,
"valueUnit": "percentage"
}
]
}
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000001/savingsPlans/30000000-0000-0000-0000-000000000001",
"name": "30000000-0000-0000-0000-000000000001",
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans",
"sku": {
"name": "Compute_Savings_Plan"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"properties": {
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD",
"billingPlan": "P1M",
"productCode": "20000000-0000-0000-0000-000000000005",
"appliedScopeProperties": {
"tenantId": "50000000-0000-0000-0000-000000000000",
"managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg",
"displayName": "TestRg"
},
"commitment": {
"grain": "Hourly",
"currencyCode": "USD",
"amount": 10
},
"renew": false,
"appliedScopeType": "ManagementGroup",
"displayName": "SP2",
"provisioningState": "Succeeded",
"term": "P1Y",
"displayProvisioningState": "Succeeded",
"userFriendlyAppliedScopeType": "ManagementGroup",
"expiryDateTime": "2023-12-16T02:22:22.7254795Z",
"purchaseDateTime": "2022-12-16T02:20:23.4733076Z",
"benefitStartTime": "2022-12-16T02:22:22.7254795Z",
"effectiveDateTime": "2022-12-16T02:22:24.5536191Z",
"utilization": {
"trend": "SAME",
"aggregates": [
{
"grain": 1,
"grainUnit": "days",
"value": 0,
"valueUnit": "percentage"
},
{
"grain": 7,
"grainUnit": "days",
"value": 0,
"valueUnit": "percentage"
},
{
"grain": 30,
"grainUnit": "days",
"value": 0,
"valueUnit": "percentage"
}
]
}
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000002/savingsPlans/30000000-0000-0000-0000-000000000002",
"name": "30000000-0000-0000-0000-000000000002",
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans",
"sku": {
"name": "Compute_Savings_Plan"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"properties": {
"billingScopeId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingSubscriptions/10000000-0000-0000-0000-000000000000",
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD",
"billingPlan": "P1M",
"productCode": "20000000-0000-0000-0000-000000000005",
"appliedScopeProperties": {
"subscriptionId": "/subscriptions/10000000-0000-0000-0000-000000000000",
"displayName": "Azure subscription 1"
},
"commitment": {
"grain": "Hourly",
"currencyCode": "USD",
"amount": 0.025
},
"renew": true,
"appliedScopeType": "Single",
"displayName": "SP3",
"provisioningState": "Succeeded",
"term": "P3Y",
"displayProvisioningState": "Succeeded",
"userFriendlyAppliedScopeType": "Single",
"expiryDateTime": "2025-10-14T21:18:55.2960613Z",
"purchaseDateTime": "2022-10-14T21:16:57.2347688Z",
"benefitStartTime": "2022-10-14T21:18:55.2960613Z",
"effectiveDateTime": "2022-11-07T23:54:43.8233243Z",
"utilization": {
"trend": "SAME",
"aggregates": [
{
"grain": 1,
"grainUnit": "days",
"value": 66,
"valueUnit": "percentage"
},
{
"grain": 7,
"grainUnit": "days",
"value": 66,
"valueUnit": "percentage"
},
{
"grain": 30,
"grainUnit": "days",
"value": 65.52,
"valueUnit": "percentage"
}
]
}
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000003/savingsPlans/30000000-0000-0000-0000-000000000003",
"name": "30000000-0000-0000-0000-000000000003",
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans",
"sku": {
"name": "Compute_Savings_Plan"
},
"tags": {
"key1": "value1",
"key2": "value2"
},
"properties": {
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD",
"billingPlan": "P1M",
"productCode": "20000000-0000-0000-0000-000000000005",
"appliedScopeProperties": {
"resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourcegroups/testRG",
"displayName": "testRG"
},
"commitment": {
"grain": "Hourly",
"currencyCode": "USD",
"amount": 0.001
},
"renew": false,
"appliedScopeType": "Single",
"displayName": "SP4",
"provisioningState": "Succeeded",
"term": "P3Y",
"displayProvisioningState": "Succeeded",
"userFriendlyAppliedScopeType": "ResourceGroup",
"expiryDateTime": "2025-11-08T00:00:06.3636747Z",
"purchaseDateTime": "2022-11-07T23:57:58.2428677Z",
"benefitStartTime": "2022-11-08T00:00:06.3636747Z",
"effectiveDateTime": "2022-11-30T21:18:12.1967323Z",
"utilization": {
"trend": "SAME",
"aggregates": [
{
"grain": 1,
"grainUnit": "days",
"value": 100,
"valueUnit": "percentage"
},
{
"grain": 7,
"grainUnit": "days",
"value": 100,
"valueUnit": "percentage"
},
{
"grain": 30,
"grainUnit": "days",
"value": 100,
"valueUnit": "percentage"
}
]
}
}
}
],
"summary": {
"noBenefitCount": 0,
"warningCount": 0,
"succeededCount": 3,
"failedCount": 0,
"expiringCount": 0,
"expiredCount": 0,
"pendingCount": 0,
"cancelledCount": 0,
"processingCount": 0
}
}
定義
名前 | 説明 |
---|---|
Applied |
適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 |
Applied |
適用されたスコープの種類。 |
Billing |
ISO 8601 形式の課金プランを表します。 毎月の購入にのみ必要です。 |
Commitment |
特典に対するコミットメント。 |
Commitment |
コミットメント グレイン。 |
created |
リソースを作成した ID の種類。 |
Error |
リソース管理エラーの追加情報。 |
Error |
エラーの詳細。 |
Error |
エラー応答 |
Extended |
拡張状態情報 |
Provisioning |
プロビジョニングの状態 |
Purchase |
購入要求。 |
Renew |
更新に固有のプロパティ。 |
Savings |
節約プラン |
Savings |
節約計画の一覧 |
Savings |
各状態の節約計画のロールアップ数の概要 |
Savings |
ISO 8601 形式の Savings プランの用語を表します。 |
Sku |
このリソースに適用される SKU |
system |
リソースの作成と最後の変更に関連するメタデータ。 |
Utilization |
節約プランの使用率 |
Utilization |
節約計画の使用率の集計値 |
AppliedScopeProperties
適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。
名前 | 型 | 説明 |
---|---|---|
displayName |
string |
表示名 |
managementGroupId |
string |
特典が適用される管理グループの完全修飾識別子。 |
resourceGroupId |
string |
特典が適用されるリソース グループの完全修飾識別子。 |
subscriptionId |
string |
特典が適用されるサブスクリプションの完全修飾識別子。 |
tenantId |
string |
特典が適用される節約計画のテナント ID。 |
AppliedScopeType
適用されたスコープの種類。
値 | 説明 |
---|---|
ManagementGroup | |
Shared | |
Single |
BillingPlan
ISO 8601 形式の課金プランを表します。 毎月の購入にのみ必要です。
値 | 説明 |
---|---|
P1M |
Commitment
特典に対するコミットメント。
名前 | 型 | 説明 |
---|---|---|
amount |
number (double) |
|
currencyCode |
string |
この購入レコードで使用される通貨の ISO 4217 3 文字の通貨コード。 |
grain |
コミットメント グレイン。 |
CommitmentGrain
コミットメント グレイン。
値 | 説明 |
---|---|
Hourly |
createdByType
リソースを作成した ID の種類。
値 | 説明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
名前 | 型 | 説明 |
---|---|---|
info |
object |
追加情報。 |
type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
名前 | 型 | 説明 |
---|---|---|
additionalInfo |
エラーの追加情報。 |
|
code |
string |
エラー コード。 |
details |
エラーの詳細。 |
|
message |
string |
エラー メッセージ。 |
target |
string |
エラーターゲット。 |
ErrorResponse
エラー応答
名前 | 型 | 説明 |
---|---|---|
error |
エラー オブジェクト。 |
ExtendedStatusInfo
拡張状態情報
名前 | 型 | 説明 |
---|---|---|
message |
string |
状態コードに関する詳細情報を示すメッセージ。 |
properties.subscriptionId |
string |
与信ライン チェックに失敗したサブスクリプション。 |
statusCode |
string |
追加情報を提供する状態コード。 |
ProvisioningState
プロビジョニングの状態
値 | 説明 |
---|---|
Canceled | |
ConfirmedBilling | |
Created | |
Creating | |
Expired | |
Failed | |
PendingBilling | |
Succeeded |
PurchaseRequest
購入要求。
名前 | 型 | 規定値 | 説明 |
---|---|---|---|
properties.appliedScopeProperties |
適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 |
||
properties.appliedScopeType |
適用されたスコープの種類。 |
||
properties.billingPlan |
ISO 8601 形式の課金プランを表します。 毎月の購入にのみ必要です。 |
||
properties.billingScopeId |
string |
SavingsPlan の購入に対して課金されるサブスクリプション |
|
properties.commitment |
特典に対するコミットメント。 |
||
properties.displayName |
string |
節約計画のフレンドリ名 |
|
properties.renew |
boolean |
False |
これを true に設定すると、有効期限の日時に新しい特典が自動的に購入されます。 |
properties.term |
ISO 8601 形式の Savings プランの用語を表します。 |
||
sku |
このリソースに適用される SKU |
RenewProperties
更新に固有のプロパティ。
名前 | 型 | 説明 |
---|---|---|
purchaseProperties |
購入要求。 |
SavingsPlanModel
節約プラン
名前 | 型 | 規定値 | 説明 |
---|---|---|---|
id |
string (arm-id) |
リソースの完全修飾リソース ID。 例: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
|
name |
string |
リソースの名前 |
|
properties.appliedScopeProperties |
適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 |
||
properties.appliedScopeType |
適用されたスコープの種類。 |
||
properties.benefitStartTime |
string (date-time) |
これは、節約計画の特典が開始されたときの DateTime です。 |
|
properties.billingAccountId |
string |
節約プランが適用される課金アカウントの完全修飾識別子。 |
|
properties.billingPlan |
ISO 8601 形式の課金プランを表します。 毎月の購入にのみ必要です。 |
||
properties.billingProfileId |
string |
節約プランが適用される課金プロファイルの完全修飾識別子。 フィールド主導または顧客主導のお客様にのみ表示されます。 |
|
properties.billingScopeId |
string |
SavingsPlan の購入に対して課金されるサブスクリプション |
|
properties.commitment |
特典に対するコミットメント。 |
||
properties.customerId |
string |
節約プランが適用される顧客の完全修飾識別子。 パートナー主導のお客様にのみ表示されます。 |
|
properties.displayName |
string |
表示名 |
|
properties.displayProvisioningState |
string |
表示用の節約計画のプロビジョニング状態 (成功など) |
|
properties.effectiveDateTime |
string (date-time) |
このバージョンが有効になったときから始まる節約計画の DateTime。 |
|
properties.expiryDateTime |
string (date-time) |
これは、節約プランの有効期限が切れる日時です。 |
|
properties.extendedStatusInfo |
拡張状態情報 |
||
properties.productCode |
string |
UPN を表します |
|
properties.provisioningState |
プロビジョニングの状態 |
||
properties.purchaseDateTime |
string (date-time) |
節約計画が購入された日時。 |
|
properties.renew |
boolean |
False |
これを true に設定すると、有効期限の日時に新しい特典が自動的に購入されます。 |
properties.renewDestination |
string |
更新のために購入された SavingsPlan の SavingsPlan ID。 |
|
properties.renewProperties |
更新に固有のプロパティ。 |
||
properties.renewSource |
string |
この SavingsPlan の更新元となる SavingsPlan の SavingsPlan ID。 |
|
properties.term |
ISO 8601 形式の Savings プランの用語を表します。 |
||
properties.userFriendlyAppliedScopeType |
string |
表示する節約計画の適用スコープの種類 (共有など) |
|
properties.utilization |
節約プランの使用率 |
||
sku |
節約プラン SKU |
||
systemData |
createdBy と modifiedBy 情報を含む Azure Resource Manager メタデータ。 |
||
tags |
object |
リソースに関連付けられているメタデータのディクショナリ。 リソースの種類によっては設定されない場合があります。 キー/値の最大長は 256 文字でサポートされます。 キー/値は、値を空にしたり、null にしたりしないでください。 キーは <> % &\ を含むできませんか? / |
|
type |
string |
リソースの種類。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts" |
SavingsPlanModelListResult
節約計画の一覧
名前 | 型 | 説明 |
---|---|---|
nextLink |
string |
次のページを取得する URL。 |
summary |
節約計画のロールアウトカウントの概要 |
|
value |
節約プラン |
SavingsPlanSummaryCount
各状態の節約計画のロールアップ数の概要
名前 | 型 | 説明 |
---|---|---|
cancelledCount |
number |
取り消された状態の節約計画の数 |
expiredCount |
number |
有効期限が切れた状態の節約プランの数 |
expiringCount |
number |
有効期限が切れている状態の節約プランの数 |
failedCount |
number |
失敗状態の節約プランの数 |
noBenefitCount |
number |
特典なし状態の節約計画の数 |
pendingCount |
number |
保留中の状態の節約プランの数 |
processingCount |
number |
処理状態の節約プランの数 |
succeededCount |
number |
成功状態の節約プランの数 |
warningCount |
number |
警告状態の節約計画の数 |
SavingsPlanTerm
ISO 8601 形式の Savings プランの用語を表します。
値 | 説明 |
---|---|
P1Y | |
P3Y | |
P5Y |
Sku
このリソースに適用される SKU
名前 | 型 | 説明 |
---|---|---|
name |
string |
適用する SKU の名前 |
systemData
リソースの作成と最後の変更に関連するメタデータ。
名前 | 型 | 説明 |
---|---|---|
createdAt |
string (date-time) |
リソース作成のタイムスタンプ (UTC)。 |
createdBy |
string |
リソースを作成した ID。 |
createdByType |
リソースを作成した ID の種類。 |
|
lastModifiedAt |
string (date-time) |
リソースの最終変更のタイムスタンプ (UTC) |
lastModifiedBy |
string |
リソースを最後に変更した ID。 |
lastModifiedByType |
リソースを最後に変更した ID の種類。 |
Utilization
節約プランの使用率
名前 | 型 | 説明 |
---|---|---|
aggregates |
節約計画の使用率の集計の配列 |
|
trend |
string |
節約計画の使用率の傾向 |
UtilizationAggregates
節約計画の使用率の集計値
名前 | 型 | 説明 |
---|---|---|
grain |
number |
集計のグレイン |
grainUnit |
string |
集計のグレイン単位 |
value |
number |
集計値 |
valueUnit |
string |
集計値の単位 |