Budgets - List
Mencantumkan semua anggaran untuk cakupan yang ditentukan.
GET https://management.azure.com/{scope}/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
GET https://management.azure.com/{scope}/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01&$filter={$filter}
Parameter URI
Nama | Dalam | Diperlukan | Jenis | Deskripsi |
---|---|---|---|---|
scope
|
path | True |
string |
Cakupan yang terkait dengan operasi anggaran. Cakupan yang didukung untuk CategoryType: Cost Cakupan RBAC Azure:
Cakupan EA (Perjanjian Enterprise):
Cakupan MCA (Perjanjian Pelanggan Modern):
Cakupan yang didukung untuk CategoryType: reservationUtilization Cakupan EA (Perjanjian Enterprise):
Cakupan MCA (Perjanjian Pelanggan Modern):
|
api-version
|
query | True |
string minLength: 1 |
Versi API yang akan digunakan untuk operasi ini. |
$filter
|
query |
string |
Opsi filter OData. Dapat digunakan untuk memfilter anggaran menurut properti/kategori. Filter hanya mendukung 'eq'. |
Respons
Nama | Jenis | Deskripsi |
---|---|---|
200 OK |
OKE. Permintaan telah berhasil. |
|
Other Status Codes |
Respons kesalahan yang menjelaskan mengapa operasi gagal. |
Keamanan
azure_auth
Alur OAuth2 Azure Active Directory.
Jenis:
oauth2
Alur:
implicit
URL Otorisasi:
https://login.microsoftonline.com/common/oauth2/authorize
Cakupan
Nama | Deskripsi |
---|---|
user_impersonation | meniru akun pengguna Anda |
Contoh
BillingAccountBudgetsList-EA
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget1",
"name": "TestBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157c\"",
"properties": {
"category": "Cost",
"amount": 10000,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 8000,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_80_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 80,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget2",
"name": "TestBudget2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157d\"",
"properties": {
"category": "Cost",
"amount": 15000,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 12000,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_70_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 70,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert",
"name": "TestRUAlert",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last7Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 99,
"frequency": "Weekly",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
}
]
}
BillingAccountBudgetsList-EA-CategoryTypeFilter
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01&$filter=properties/category eq 'ReservationUtilization'
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert",
"name": "TestRUAlert",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last7Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 99,
"frequency": "Weekly",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
}
]
}
BillingAccountBudgetsList-MCA
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget1",
"name": "TestBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157c\"",
"properties": {
"category": "Cost",
"amount": 10000,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 8000,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_80_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 80,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget2",
"name": "TestBudget2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157d\"",
"properties": {
"category": "Cost",
"amount": 15000,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 12000,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_70_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 70,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert",
"name": "TestRUAlert",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last30Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 99,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
}
]
}
BillingAccountBudgetsList-MCA-CategoryTypeFilter
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01&$filter=properties/category eq 'ReservationUtilization'
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert",
"name": "TestRUAlert",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last30Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 99,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
}
]
}
BillingProfileBudgetsList-MCA
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget1",
"name": "TestBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157c\"",
"properties": {
"category": "Cost",
"amount": 200,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 30,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_80_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 80,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget2",
"name": "TestBudget2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157d\"",
"properties": {
"category": "Cost",
"amount": 600,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 20,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_70_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 70,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1",
"name": "TestRUAlert1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last30Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 99,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2",
"name": "TestRUAlert2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last7Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {
"dimensions": {
"name": "ReservationId",
"operator": "In",
"values": [
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002"
]
}
},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 80,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
}
]
}
BillingProfileBudgetsList-MCA-CategoryTypeFilter
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01&$filter=properties/category eq 'ReservationUtilization'
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1",
"name": "TestRUAlert1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last30Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 99,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2",
"name": "TestRUAlert2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last7Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {
"dimensions": {
"name": "ReservationId",
"operator": "In",
"values": [
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002"
]
}
},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 80,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
}
]
}
CustomerBudgetsList-MCA-CSP
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444",
"name": "TestBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157c\"",
"properties": {
"category": "Cost",
"amount": 200,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 30,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_80_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 80,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestBudget2",
"name": "TestBudget2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157d\"",
"properties": {
"category": "Cost",
"amount": 600,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 20,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_70_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 70,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1",
"name": "TestRUAlert1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last30Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 99,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2",
"name": "TestRUAlert2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last7Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {
"dimensions": {
"name": "ReservationId",
"operator": "In",
"values": [
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002"
]
}
},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 80,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
}
]
}
CustomerBudgetsList-MCA-CSP-CategoryTypeFilter
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01&$filter=properties/category eq 'ReservationUtilization'
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1",
"name": "TestRUAlert1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last30Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 99,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2",
"name": "TestRUAlert2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "ReservationUtilization",
"timeGrain": "Last7Days",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2025-04-01T00:00:00Z"
},
"filter": {
"dimensions": {
"name": "ReservationId",
"operator": "In",
"values": [
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002"
]
}
},
"notifications": {
"Actual_LessThan_99_Percent": {
"enabled": true,
"operator": "LessThan",
"threshold": 80,
"frequency": "Daily",
"locale": "en-us",
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
]
}
}
}
}
]
}
DepartmentBudgetsList-EA
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget1",
"name": "DepartmentBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157e\"",
"properties": {
"category": "Cost",
"amount": 5000,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 3000,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_60_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 60,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget2",
"name": "DepartmentBudget2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 8000,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 6000,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_75_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 75,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
}
]
}
EnrollmentAccountBudgetsList-EA
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget1",
"name": "EnrollmentAccountBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157e\"",
"properties": {
"category": "Cost",
"amount": 5000,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 3000,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_60_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 60,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget2",
"name": "EnrollmentAccountBudget2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 8000,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 6000,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_75_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 75,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
}
]
}
InvoiceSectionBudgetsList-MCA
Permintaan sampel
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget1",
"name": "TestBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157c\"",
"properties": {
"category": "Cost",
"amount": 20,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 5,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_80_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 80,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget2",
"name": "TestBudget2",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157d\"",
"properties": {
"category": "Cost",
"amount": 60,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"currentSpend": {
"amount": 20,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_70_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 70,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"thresholdType": "Actual"
}
}
}
}
]
}
ManagementGroupBudgetsList
Permintaan sampel
GET https://management.azure.com/Microsoft.Management/managementGroups/MYDEVTESTMG/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "Microsoft.Management/managementGroups/MYDEVTESTMG/Microsoft.CostManagement/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 10000,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"filter": {},
"currentSpend": {
"amount": 8000.89,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_80_Percent": {
"enabled": true,
"operator": "GreaterThan",
"threshold": 80,
"contactEmails": [
"managers@contoso.com"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 600.65,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"filter": {},
"currentSpend": {
"amount": 120.89,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_60_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 60,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 100.65,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"filter": {
"and": [
{
"dimensions": {
"name": "ResourceId",
"operator": "In",
"values": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
]
}
},
{
"tags": {
"name": "category",
"operator": "In",
"values": [
"Dev",
"Prod"
]
}
},
{
"tags": {
"name": "department",
"operator": "In",
"values": [
"engineering",
"sales"
]
}
}
]
},
"currentSpend": {
"amount": 80.89,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThan_80_Percent": {
"enabled": true,
"operator": "GreaterThan",
"threshold": 80,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
]
},
"Actual_GreaterThanOrEqualTo_90_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 90,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1",
"name": "TestBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 200.65,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"filter": {},
"currentSpend": {
"amount": 120.89,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThan_40_Percent": {
"enabled": true,
"operator": "GreaterThan",
"threshold": 40,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
]
},
"Actual_GreaterThanOrEqualTo_60_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 60,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
],
"thresholdType": "Actual"
}
}
}
}
]
}
ResourceGroupBudgetsList
Permintaan sampel
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget0",
"name": "TestBudget0",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 100.65,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"filter": {
"and": [
{
"dimensions": {
"name": "ResourceId",
"operator": "In",
"values": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
]
}
},
{
"tags": {
"name": "category",
"operator": "In",
"values": [
"Dev",
"Prod"
]
}
},
{
"tags": {
"name": "department",
"operator": "In",
"values": [
"engineering",
"sales"
]
}
}
]
},
"currentSpend": {
"amount": 80.89,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThan_80_Percent": {
"enabled": true,
"operator": "GreaterThan",
"threshold": 80,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
]
},
"Actual_GreaterThanOrEqualTo_90_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 90,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1",
"name": "TestBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 200.65,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"filter": {},
"currentSpend": {
"amount": 120.89,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThan_40_Percent": {
"enabled": true,
"operator": "GreaterThan",
"threshold": 40,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
]
},
"Actual_GreaterThanOrEqualTo_60_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 60,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
],
"thresholdType": "Actual"
}
}
}
}
]
}
SubscriptionBudgetsList
Permintaan sampel
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets?api-version=2023-11-01
Respon sampel
{
"value": [
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 600.65,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"filter": {},
"currentSpend": {
"amount": 120.89,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThanOrEqualTo_60_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 60,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 100.65,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"filter": {
"and": [
{
"dimensions": {
"name": "ResourceId",
"operator": "In",
"values": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
]
}
},
{
"tags": {
"name": "category",
"operator": "In",
"values": [
"Dev",
"Prod"
]
}
},
{
"tags": {
"name": "department",
"operator": "In",
"values": [
"engineering",
"sales"
]
}
}
]
},
"currentSpend": {
"amount": 80.89,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThan_80_Percent": {
"enabled": true,
"operator": "GreaterThan",
"threshold": 80,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
]
},
"Actual_GreaterThanOrEqualTo_90_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 90,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
],
"thresholdType": "Actual"
}
}
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1",
"name": "TestBudget1",
"type": "Microsoft.CostManagement/budgets",
"eTag": "\"1d34d012214157f\"",
"properties": {
"category": "Cost",
"amount": 200.65,
"timeGrain": "Monthly",
"timePeriod": {
"startDate": "2023-04-01T00:00:00Z",
"endDate": "2024-10-31T00:00:00Z"
},
"filter": {},
"currentSpend": {
"amount": 120.89,
"unit": "USD"
},
"notifications": {
"Actual_GreaterThan_40_Percent": {
"enabled": true,
"operator": "GreaterThan",
"threshold": 40,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
]
},
"Actual_GreaterThanOrEqualTo_60_Percent": {
"enabled": true,
"operator": "GreaterThanOrEqualTo",
"threshold": 60,
"contactEmails": [
"johndoe@contoso.com",
"janesmith@contoso.com"
],
"contactRoles": [
"Contributor",
"Reader"
],
"contactGroups": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
],
"thresholdType": "Actual"
}
}
}
}
]
}
Definisi
Nama | Deskripsi |
---|---|
Budget |
Sumber daya anggaran. |
Budget |
Ekspresi perbandingan yang akan digunakan dalam anggaran. |
Budget |
Dapat digunakan untuk memfilter anggaran menurut dimensi dan/atau tag yang ditentukan pengguna. Didukung untuk CategoryType: Biaya, ReservationUtilization. |
Budget |
Dimensi atau Tag untuk memfilter anggaran. Didukung untuk CategoryType: Biaya, ReservationUtilization. |
Budget |
Operator perbandingan. Didukung untuk CategoryType: Biaya, ReservationUtilization. Operator yang didukung untuk CategoryType: Cost
Operator yang didukung untuk CategoryType: reservationUtilization
|
Budget |
Operator yang digunakan untuk perbandingan. |
Budgets |
Hasil daftar anggaran. Ini berisi daftar anggaran yang tersedia dalam cakupan yang disediakan. |
Budget |
Periode waktu yang menentukan periode aktif anggaran. Anggaran akan mengevaluasi data pada atau setelah startDate dan akan kedaluwarsa pada endDate. Didukung untuk CategoryType: Biaya, ReservationUtilization. Diperlukan untuk CategoryType: Biaya, ReservationUtilization. |
Category |
Kategori anggaran.
|
Culture |
Bahasa tempat penerima akan menerima pemberitahuan, Didukung untuk CategoryType: Biaya, ReservationUtilization. |
Current |
Jumlah biaya saat ini yang sedang dilacak untuk anggaran. Didukung untuk CategoryType: Biaya. |
Error |
Detail kesalahan. |
Error |
Respons kesalahan menunjukkan bahwa layanan tidak dapat memproses permintaan masuk. Alasannya disediakan dalam pesan kesalahan. Beberapa respons Kesalahan:
|
Forecast |
Perkiraan biaya yang sedang dilacak untuk anggaran. Didukung untuk CategoryType: Biaya. |
Frequency |
Frekuensi pemberitahuan. Mewakili berapa lama pemberitahuan akan diam setelah memicu pemberitahuan untuk pelanggaran ambang batas. Jika tidak ditentukan, frekuensi akan diatur secara default berdasarkan timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days). Didukung untuk CategoryType: ReservationUtilization. |
Notification |
Pemberitahuan yang terkait dengan anggaran. Didukung untuk CategoryType: Biaya, ReservationUtilization. |
Threshold |
Jenis ambang batas. Didukung untuk CategoryType: Biaya. |
Time |
Waktu yang dicakup oleh anggaran. Pelacakan jumlah akan diatur ulang berdasarkan butir waktu. Didukung untuk CategoryType: Biaya, ReservationUtilization. TimeGrainTypes yang didukung untuk CategoryType: Cost
TimeGrainTypes yang didukung untuk CategoryType: ReservationUtilization
Diperlukan untuk CategoryType: Biaya, ReservationUtilization. |
Budget
Sumber daya anggaran.
Nama | Jenis | Deskripsi |
---|---|---|
eTag |
string |
eTag sumber daya. Untuk menangani skenario pembaruan bersamaan, bidang ini akan digunakan untuk menentukan apakah pengguna memperbarui versi terbaru atau tidak. |
id |
string |
Id Sumber Daya. |
name |
string |
Nama sumber daya. |
properties.amount |
number |
Jumlah total biaya untuk dilacak dengan anggaran. Didukung untuk CategoryType: Biaya. Diperlukan untuk CategoryType: Biaya. |
properties.category |
Kategori anggaran.
|
|
properties.currentSpend |
Jumlah biaya saat ini yang sedang dilacak untuk anggaran. Didukung untuk CategoryType: Biaya. |
|
properties.filter |
Dapat digunakan untuk memfilter anggaran menurut dimensi dan/atau tag yang ditentukan pengguna. Didukung untuk CategoryType: Biaya, ReservationUtilization. |
|
properties.forecastSpend |
Perkiraan biaya yang sedang dilacak untuk anggaran. Didukung untuk CategoryType: Biaya. |
|
properties.notifications |
<string, Notification> |
Kamus pemberitahuan yang terkait dengan anggaran. Didukung untuk CategoryType: Biaya, ReservationUtilization.
|
properties.timeGrain |
Waktu yang dicakup oleh anggaran. Pelacakan jumlah akan diatur ulang berdasarkan butir waktu. Didukung untuk CategoryType: Biaya, ReservationUtilization. TimeGrainTypes yang didukung untuk CategoryType: Cost
TimeGrainTypes yang didukung untuk CategoryType: ReservationUtilization
Diperlukan untuk CategoryType: Biaya, ReservationUtilization. |
|
properties.timePeriod |
Periode waktu yang menentukan periode aktif anggaran. Anggaran akan mengevaluasi data pada atau setelah startDate dan akan kedaluwarsa pada endDate. Didukung untuk CategoryType: Biaya, ReservationUtilization. Diperlukan untuk CategoryType: Biaya, ReservationUtilization. |
|
type |
string |
Jenis sumber daya. |
BudgetComparisonExpression
Ekspresi perbandingan yang akan digunakan dalam anggaran.
Nama | Jenis | Deskripsi |
---|---|---|
name |
string |
Nama kolom yang akan digunakan sebagai perbandingan. |
operator |
Operator yang digunakan untuk perbandingan. |
|
values |
string[] |
Array nilai yang akan digunakan untuk perbandingan |
BudgetFilter
Dapat digunakan untuk memfilter anggaran menurut dimensi dan/atau tag yang ditentukan pengguna.
Didukung untuk CategoryType: Biaya, ReservationUtilization.
Nama | Jenis | Deskripsi |
---|---|---|
and |
Ekspresi "AND" logis. Harus memiliki setidaknya 2 item. Didukung untuk CategoryType: Biaya. |
|
dimensions |
Memiliki ekspresi perbandingan untuk dimensi. Didukung untuk CategoryType: Biaya, ReservationUtilization. Nama dimensi yang didukung untuk CategoryType: ReservationUtilization
|
|
tags |
Memiliki ekspresi perbandingan untuk tag. Didukung untuk CategoryType: Biaya. |
BudgetFilterProperties
Dimensi atau Tag untuk memfilter anggaran.
Didukung untuk CategoryType: Biaya, ReservationUtilization.
Nama | Jenis | Deskripsi |
---|---|---|
dimensions |
Memiliki ekspresi perbandingan untuk dimensi. Didukung untuk CategoryType: Biaya, ReservationUtilization. Nama dimensi yang didukung untuk CategoryType: ReservationUtilization
|
|
tags |
Memiliki ekspresi perbandingan untuk tag. Didukung untuk CategoryType: Biaya. |
BudgetNotificationOperatorType
Operator perbandingan.
Didukung untuk CategoryType: Biaya, ReservationUtilization.
Operator yang didukung untuk CategoryType: Cost
- GreaterThan
- GreaterThanOrEqualTo
Operator yang didukung untuk CategoryType: reservationUtilization
- LessThan
Nilai | Deskripsi |
---|---|
EqualTo |
Pemberitahuan akan dipicu jika biaya yang dievaluasi sama dengan nilai ambang batas. Catatan: Tidak disarankan untuk menggunakan OperatorType ini karena ada kemungkinan biaya yang rendah sama persis dengan nilai ambang batas, yang menyebabkan hilangnya pemberitahuan Anda. OperatorType ini akan ditolak di masa mendatang. Didukung untuk CategoryType: Biaya. |
GreaterThan |
Pemberitahuan akan dipicu jika biaya yang dievaluasi lebih besar dari nilai ambang batas. Catatan: Ini adalah OperatorType yang direkomendasikan saat mengonfigurasi Pemberitahuan Anggaran. Didukung untuk CategoryType: Biaya. |
GreaterThanOrEqualTo |
Pemberitahuan akan dipicu jika biaya yang dievaluasi lebih besar dari atau sama dengan nilai ambang batas. Didukung untuk CategoryType: Biaya. |
LessThan |
Pemberitahuan akan dipicu jika ada Reservasi dalam cakupan Aturan Pemberitahuan Pemanfaatan Reservasi yang memiliki pemanfaatan kurang dari persentase ambang batas. Didukung untuk CategoryType: ReservationUtilization. |
BudgetOperatorType
Operator yang digunakan untuk perbandingan.
Nilai | Deskripsi |
---|---|
In |
BudgetsListResult
Hasil daftar anggaran. Ini berisi daftar anggaran yang tersedia dalam cakupan yang disediakan.
Nama | Jenis | Deskripsi |
---|---|---|
nextLink |
string |
Tautan (url) ke halaman hasil berikutnya. Ini null untuk saat ini, ditambahkan untuk digunakan di masa mendatang. |
value |
Budget[] |
Daftar anggaran. |
BudgetTimePeriod
Periode waktu yang menentukan periode aktif anggaran. Anggaran akan mengevaluasi data pada atau setelah startDate dan akan kedaluwarsa pada endDate.
Didukung untuk CategoryType: Biaya, ReservationUtilization.
Diperlukan untuk CategoryType: Biaya, ReservationUtilization.
Nama | Jenis | Deskripsi |
---|---|---|
endDate |
string (date-time) |
Tanggal akhir untuk anggaran.
|
startDate |
string (date-time) |
Tanggal mulai untuk anggaran.
|
CategoryType
Kategori anggaran.
- 'Biaya' mendefinisikan Anggaran.
- 'ReservationUtilization' mendefinisikan Aturan Pemberitahuan Pemanfaatan Reservasi.
Nilai | Deskripsi |
---|---|
Cost |
Anggaran yang mengevaluasi biaya moneter sumber daya Azure terhadap jumlah, dan pemberitahuan berdasarkan ambang pemberitahuan yang dikonfigurasi. |
ReservationUtilization |
Aturan Pemberitahuan yang mengevaluasi persentase pemanfaatan Reservasi Azure, dan pemberitahuan berdasarkan ambang pemberitahuan yang dikonfigurasi. |
CultureCode
Bahasa tempat penerima akan menerima pemberitahuan,
Didukung untuk CategoryType: Biaya, ReservationUtilization.
Nilai | Deskripsi |
---|---|
cs-cz | |
da-dk | |
de-de | |
en-gb | |
en-us | |
es-es | |
fr-fr | |
hu-hu | |
it-it | |
ja-jp | |
ko-kr | |
nb-no | |
nl-nl | |
pl-pl | |
pt-br | |
pt-pt | |
ru-ru | |
sv-se | |
tr-tr | |
zh-cn | |
zh-tw |
CurrentSpend
Jumlah biaya saat ini yang sedang dilacak untuk anggaran.
Didukung untuk CategoryType: Biaya.
Nama | Jenis | Deskripsi |
---|---|---|
amount |
number |
Jumlah total biaya yang sedang dilacak oleh anggaran. |
unit |
string |
Satuan ukuran untuk jumlah anggaran. |
ErrorDetails
Detail kesalahan.
Nama | Jenis | Deskripsi |
---|---|---|
code |
string |
Kode kesalahan. |
message |
string |
Pesan kesalahan yang menunjukkan mengapa operasi gagal. |
ErrorResponse
Respons kesalahan menunjukkan bahwa layanan tidak dapat memproses permintaan masuk. Alasannya disediakan dalam pesan kesalahan.
Beberapa respons Kesalahan:
429 TooManyRequests - Permintaan dibatasi. Coba lagi setelah menunggu waktu yang ditentukan dalam header "x-ms-ratelimit-microsoft.consumption-retry-after".
503 ServiceUnavailable - Layanan sementara tidak tersedia. Coba lagi setelah menunggu waktu yang ditentukan di header "Coba Lagi-Setelah".
Nama | Jenis | Deskripsi |
---|---|---|
error |
Detail kesalahan. |
ForecastSpend
Perkiraan biaya yang sedang dilacak untuk anggaran.
Didukung untuk CategoryType: Biaya.
Nama | Jenis | Deskripsi |
---|---|---|
amount |
number |
Perkiraan biaya untuk total periode waktu yang sedang dilacak oleh anggaran. Nilai ini hanya disediakan jika anggaran berisi jenis pemberitahuan prakiraan. |
unit |
string |
Satuan ukuran untuk jumlah anggaran. |
Frequency
Frekuensi pemberitahuan. Mewakili berapa lama pemberitahuan akan diam setelah memicu pemberitahuan untuk pelanggaran ambang batas. Jika tidak ditentukan, frekuensi akan diatur secara default berdasarkan timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days).
Didukung untuk CategoryType: ReservationUtilization.
Nilai | Deskripsi |
---|---|
Daily |
Setelah pelanggaran ambang batas dan Pemberitahuan diaktifkan, tidak ada pemberitahuan lebih lanjut yang akan dikirim hingga hari kalender berikutnya. |
Monthly |
Setelah pelanggaran ambang batas dan Pemberitahuan diaktifkan, tidak ada pemberitahuan lebih lanjut yang akan dikirim selama 30 hari kalender. |
Weekly |
Setelah pelanggaran ambang batas dan Pemberitahuan diaktifkan, tidak ada pemberitahuan lebih lanjut yang akan dikirim selama 7 hari kalender. |
Notification
Pemberitahuan yang terkait dengan anggaran.
Didukung untuk CategoryType: Biaya, ReservationUtilization.
Nama | Jenis | Nilai default | Deskripsi |
---|---|---|---|
contactEmails |
string[] |
Alamat email untuk mengirim pemberitahuan ke saat ambang dilanggar. Harus memiliki setidaknya satu email kontak atau grup kontak yang ditentukan di cakupan Langganan atau Grup Sumber Daya. Semua cakupan lainnya harus memiliki setidaknya satu email kontak yang ditentukan. Didukung untuk CategoryType: Biaya, ReservationUtilization. |
|
contactGroups |
string[] |
Cakupan Grup Langganan atau Sumber Daya saja. Grup tindakan untuk mengirim pemberitahuan ke saat ambang batas terlampaui. Harus disediakan sebagai id sumber daya Azure yang sepenuhnya memenuhi syarat. Didukung untuk CategoryType: Biaya. |
|
contactRoles |
string[] |
Cakupan Grup Langganan atau Sumber Daya saja. Hubungi peran untuk mengirim pemberitahuan ke saat ambang dilanggar. Didukung untuk CategoryType: Biaya. |
|
enabled |
boolean |
Pemberitahuan diaktifkan atau tidak. Didukung untuk CategoryType: Biaya, ReservationUtilization. |
|
frequency |
Frekuensi pemberitahuan. Mewakili berapa lama pemberitahuan akan diam setelah memicu pemberitahuan untuk pelanggaran ambang batas. Jika tidak ditentukan, frekuensi akan diatur secara default berdasarkan timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days). Didukung untuk CategoryType: ReservationUtilization. |
||
locale |
Bahasa tempat penerima akan menerima pemberitahuan, Didukung untuk CategoryType: Biaya, ReservationUtilization. |
||
operator |
Operator perbandingan. Didukung untuk CategoryType: Biaya, ReservationUtilization. Operator yang didukung untuk CategoryType: Cost
Operator yang didukung untuk CategoryType: reservationUtilization
|
||
threshold |
number |
Nilai ambang yang terkait dengan pemberitahuan. Selalu persen dengan maksimum 2 tempat desimal. Didukung untuk CategoryType: Biaya, ReservationUtilization. CategoryType: Biaya - Harus antara 0 dan 1000. Pemberitahuan dikirim ketika biaya melebihi ambang batas. CategoryType: reservationUtilization - Harus antara 0 dan 100. Pemberitahuan dikirim ketika reservasi memiliki persentase pemanfaatan di bawah ambang batas. |
|
thresholdType | Actual |
Jenis ambang batas. Didukung untuk CategoryType: Biaya. |
ThresholdType
Jenis ambang batas.
Didukung untuk CategoryType: Biaya.
Nilai | Deskripsi |
---|---|
Actual |
Pemberitahuan anggaran biaya aktual memberi tahu ketika biaya akumulasi aktual melebihi anggaran yang dialokasikan. |
Forecasted |
Pemberitahuan anggaran biaya yang diperkirakan memberikan pemberitahuan lanjutan bahwa tren pengeluaran Anda kemungkinan melebihi anggaran yang dialokasikan, karena bergantung pada prediksi biaya yang diperkirakan. |
TimeGrainType
Waktu yang dicakup oleh anggaran. Pelacakan jumlah akan diatur ulang berdasarkan butir waktu.
Didukung untuk CategoryType: Biaya, ReservationUtilization.
TimeGrainTypes yang didukung untuk CategoryType: Cost
Bulanan
Triwulanan
Setiap tahunnya
BillingMonth*
BillingQuarter*
BillingAnnual*
*hanya didukung untuk pelanggan Web Direct.
TimeGrainTypes yang didukung untuk CategoryType: ReservationUtilization
- Last7Days
- Last30Days
Diperlukan untuk CategoryType: Biaya, ReservationUtilization.
Nilai | Deskripsi |
---|---|
Annually |
Anggaran akan melacak biaya pada tahun kalender saat ini terhadap jumlah. Didukung untuk CategoryType: Hanya biaya. |
BillingAnnual |
Anggaran akan melacak biaya pada tahun penagihan saat ini terhadap jumlahnya. Didukung untuk CategoryType: Pelanggan Biaya dan Web Direct saja. |
BillingMonth |
Anggaran akan melacak biaya pada bulan penagihan saat ini terhadap jumlah. Didukung untuk CategoryType: Pelanggan Biaya dan Web Direct saja. |
BillingQuarter |
Anggaran akan melacak biaya pada kuartal penagihan saat ini terhadap jumlah. Didukung untuk CategoryType: Pelanggan Biaya dan Web Direct saja. |
Last30Days |
Aturan Pemberitahuan Pemanfaatan Reservasi akan mengevaluasi reservasi berdasarkan persentase pemanfaatan 30 Hari mereka. Didukung untuk CategoryType: ReservationUtilization saja. |
Last7Days |
Aturan Pemberitahuan Pemanfaatan Reservasi akan mengevaluasi reservasi berdasarkan persentase pemanfaatan 7 Hari mereka. Didukung untuk CategoryType: ReservationUtilization saja. |
Monthly |
Anggaran akan melacak biaya di bulan kalender saat ini terhadap jumlah. Didukung untuk CategoryType: Hanya biaya. |
Quarterly |
Anggaran akan melacak biaya di kuartal kalender saat ini terhadap jumlah. Didukung untuk CategoryType: Hanya biaya. |