Budget Groups
Manage Budget Groups and receive alerts when your costs exceed (or are forecasted to exceed) your configured budget group.
Fetch details of a Budget group for the given Budget group ID.
Unique identifier for the budget
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Get a Budget group by it's identifier
GET /gateway/ccm/api/budgetGroups/{id}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Update an existing Budget group for the given Budget group ID.
Unique identifier for the budget group
Account Identifier for the Entity.
The Cloud Cost Budget Group definition
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns a generic string message when the operation is successful
PUT /gateway/ccm/api/budgetGroups/{id}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 1068
{
"uuid": "text",
"accountId": "text",
"name": "text",
"budgetGroupMonthlyBreakdown": {
"budgetBreakdown": "YEARLY",
"budgetMonthlyAmount": [
{
"time": 1,
"value": 1
}
],
"actualMonthlyCost": [
1
],
"forecastMonthlyCost": [
1
],
"yearlyLastPeriodCost": [
1
],
"forecastCostConfigured": true
},
"period": "DAILY",
"budgetGroupAmount": 1,
"customAlertMessage": "text",
"actualCost": 1,
"forecastCost": 1,
"lastMonthCost": 1,
"alertThresholds": [
{
"percentage": 1,
"basedOn": "ACTUAL_COST",
"emailAddresses": [
"text"
],
"userGroupIds": [
"text"
],
"slackWebhooks": [
"text"
],
"alertsSent": 1,
"crossedAt": 1
}
],
"childEntities": [
{
"id": "text",
"proportion": 1,
"isBudgetGroup": true,
"budgetGroup": true
}
],
"parentBudgetGroupId": "text",
"cascadeType": "EQUAL",
"startTime": 1,
"endTime": 1,
"budgetGroupHistory": {
"ANY_ADDITIONAL_PROPERTY": {
"time": 1,
"endTime": 1,
"actualCost": 1,
"forecastCost": 1,
"budgeted": 1,
"budgetVariance": 1,
"budgetVariancePercentage": 1
}
},
"createdAt": 1,
"lastUpdatedAt": 1,
"createdBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
},
"lastUpdatedBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Delete a Budget group for the given Budget group ID.
Unique identifier for the budget
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns a boolean whether the operation was successful
DELETE /gateway/ccm/api/budgetGroups/{id}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns a hierarchical list of budget groups based on the filter criteria.
Account Identifier for the Entity.
Field to sort results by
Sort order (ASCENDING or DESCENDING)
Filter properties for budget listing
Filter by budget period
Filter by multiple creator user IDs
Filter by multiple perspective names
Minimum budget amount
Maximum budget amount
Start time for last modified filter (timestamp in milliseconds)
End time for last modified filter (timestamp in milliseconds)
Number of results to skip
Maximum number of results to return
Filter by multiple folder IDs
Search text to filter budgets by name (case-insensitive)
Filter by budget scope type (PERSPECTIVE, COST_BUCKET)
Filter by cost category names
Filter by cost bucket names
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns a hierarchical list of budget group summaries where child entities are nested within parent budget groups
POST /gateway/ccm/api/budgetGroups/v2/list?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 386
{
"period": "DAILY",
"createdBy": [
"text"
],
"perspectiveNames": [
"text"
],
"minBudgetAmount": 1,
"maxBudgetAmount": 1,
"lastModifiedStartTime": 1,
"lastModifiedEndTime": 1,
"offset": 1,
"limit": 1,
"folderIds": [
"text"
],
"searchKey": "text",
"budgetStatus": [
"ON_TRACK"
],
"scopeType": "text",
"costCategoryNames": [
"text"
],
"costBucketNames": [
"text"
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns list of value dataPoints specifying aggregated amount
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns list of value dataPoints specifying aggregated amount
POST /gateway/ccm/api/budgetGroups/aggregatedAmount?accountIdentifier=text&areChildEntitiesBudgets=true HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 8
[
"text"
]{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns list of budgetSummary
Account Identifier for the Entity.
Budget Group List Sort Type
Budget Group List Sort Order
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns list of value dataPoints specifying cost
GET /gateway/ccm/api/budgetGroups/summary?accountIdentifier=text&showAllEntities=true HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}List all the Budget Groups for an account.
Account Identifier for the Entity.
Budget Group List Sort Type
Budget Group List Sort Order
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of all Budget groups
GET /gateway/ccm/api/budgetGroups?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Create a Budget group to set and receive alerts when your costs exceed (or are forecasted to exceed) your budget group amount.
Account Identifier for the Entity.
The Cloud Cost Budget Group definition
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the ID string of the new Budget group created
POST /gateway/ccm/api/budgetGroups?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 1068
{
"uuid": "text",
"accountId": "text",
"name": "text",
"budgetGroupMonthlyBreakdown": {
"budgetBreakdown": "YEARLY",
"budgetMonthlyAmount": [
{
"time": 1,
"value": 1
}
],
"actualMonthlyCost": [
1
],
"forecastMonthlyCost": [
1
],
"yearlyLastPeriodCost": [
1
],
"forecastCostConfigured": true
},
"period": "DAILY",
"budgetGroupAmount": 1,
"customAlertMessage": "text",
"actualCost": 1,
"forecastCost": 1,
"lastMonthCost": 1,
"alertThresholds": [
{
"percentage": 1,
"basedOn": "ACTUAL_COST",
"emailAddresses": [
"text"
],
"userGroupIds": [
"text"
],
"slackWebhooks": [
"text"
],
"alertsSent": 1,
"crossedAt": 1
}
],
"childEntities": [
{
"id": "text",
"proportion": 1,
"isBudgetGroup": true,
"budgetGroup": true
}
],
"parentBudgetGroupId": "text",
"cascadeType": "EQUAL",
"startTime": 1,
"endTime": 1,
"budgetGroupHistory": {
"ANY_ADDITIONAL_PROPERTY": {
"time": 1,
"endTime": 1,
"actualCost": 1,
"forecastCost": 1,
"budgeted": 1,
"budgetVariance": 1,
"budgetVariancePercentage": 1
}
},
"createdAt": 1,
"lastUpdatedAt": 1,
"createdBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
},
"lastUpdatedBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?