Cloud Cost Perspective Reports

This resource contains the APIs Reports created on Perspectives

Get Reports by Report identifier or by Perspective identifier

Get Reports by Report identifier or by Perspective identifier

Request
Security:
ApiKey (readwrite)
path Parameters
accountIdentifier
required
string

Account Identifier for the entity

query Parameters
perspectiveId
string

The identifier of the Perspective

reportId
string

The identifier of the Report

Responses
400

Bad Request

500

Internal server error

default

Returns a list of Report Schedules

get/ccm/api/perspectiveReport/{accountIdentifier}
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ccm/api/perspectiveReport/:accountIdentifier?perspectiveId=string&reportId=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Update perspective reports

Update perspective reports by sending CEReportSchedule as request body

Request
Security:
ApiKey (readwrite)
path Parameters
accountIdentifier
required
string

Account Identifier for the entity

Request Body schema: application/json

CEReportSchedule object to be updated

uuid
string
name
string [ 1 .. 32 ] characters
enabled
boolean
description
string [ 0 .. 100 ] characters
viewsId
required
Array of strings 1 items
userCron
string
recipients
Array of strings [ 0 .. 50 ] items
accountId
string
createdAt
integer <int64>
lastUpdatedAt
integer <int64>
userCronTimeZone
string
object (EmbeddedUser)
object (EmbeddedUser)
nextExecution
string <date-time>
Responses
400

Bad Request

500

Internal server error

default

Returns a list of Report Schedules

put/ccm/api/perspectiveReport/{accountIdentifier}
Request samples
application/json
{
  • "uuid": "string",
  • "name": "string",
  • "enabled": true,
  • "description": "string",
  • "viewsId": [
    ],
  • "userCron": "string",
  • "recipients": [
    ],
  • "accountId": "string",
  • "createdAt": 0,
  • "lastUpdatedAt": 0,
  • "userCronTimeZone": "string",
  • "createdBy": {
    },
  • "lastUpdatedBy": {
    },
  • "nextExecution": "2019-08-24T14:15:22Z"
}
Response samples
application/json
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Create Report Setting

Create setting by Report identifier or by Perspective identifier, by sending CEReportSchedule as request body

Request
Security:
ApiKey (readwrite)
path Parameters
accountIdentifier
required
string

Account Identifier for the entity

Request Body schema: application/json

CEReportSchedule object to be saved

uuid
string
name
string [ 1 .. 32 ] characters
enabled
boolean
description
string [ 0 .. 100 ] characters
viewsId
required
Array of strings 1 items
userCron
string
recipients
Array of strings [ 0 .. 50 ] items
accountId
string
createdAt
integer <int64>
lastUpdatedAt
integer <int64>
userCronTimeZone
string
object (EmbeddedUser)
object (EmbeddedUser)
nextExecution
string <date-time>
Responses
400

Bad Request

500

Internal server error

default

Returns a list of Report Schedules

post/ccm/api/perspectiveReport/{accountIdentifier}
Request samples
application/json
{
  • "uuid": "string",
  • "name": "string",
  • "enabled": true,
  • "description": "string",
  • "viewsId": [
    ],
  • "userCron": "string",
  • "recipients": [
    ],
  • "accountId": "string",
  • "createdAt": 0,
  • "lastUpdatedAt": 0,
  • "userCronTimeZone": "string",
  • "createdBy": {
    },
  • "lastUpdatedBy": {
    },
  • "nextExecution": "2019-08-24T14:15:22Z"
}
Response samples
application/json
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Delete setting by Report identifier or by Perspective identifier

Delete setting by Report identifier or by Perspective identifier

Request
Security:
ApiKey (readwrite)
path Parameters
accountIdentifier
required
string

Account Identifier for the entity

query Parameters
reportId
string

The Report Identifier

perspectiveId
string

The Perspective Identifier

Responses
400

Bad Request

500

Internal server error

default

Returns a generic string message when the operation is successful

delete/ccm/api/perspectiveReport/{accountIdentifier}
Request samples
curl -i -X DELETE \
  'https://app.harness.io/gateway/ccm/api/perspectiveReport/:accountIdentifier?reportId=string&perspectiveId=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}