External Data Provider
This contains APIs related to External Data Provider Support for CACM
Add a new external data file metadata
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns newly added external data file metadata information
POST /gateway/ccm/api/externaldata/filesinfo?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 538
{
"externalDataFiles": {
"uuid": "text",
"accountId": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"providerName": "text",
"name": "text",
"uploadStatus": "INPROGRESS",
"invoiceMonth": "text",
"ingestionStatus": "text",
"description": "text",
"md5": "text",
"signedUrlUsed": true,
"cloudStoragePath": "text",
"fileExtension": "CSV",
"providerId": "text",
"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"
}
]
}Create External Data Provider
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns created External Data Provider
POST /gateway/ccm/api/externaldata/provider?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 541
{
"externalDataProvider": {
"uuid": "text",
"accountId": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"providerType": "SNOWFLAKE",
"name": "text",
"providerName": "text",
"status": {
"ANY_ADDITIONAL_PROPERTY": {
"status": "text",
"message": "text",
"lastSyncedAt": 1
}
},
"fileExists": true,
"invoicePeriod": "MONTHLY",
"description": "text",
"lastSyncedAt": 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"
}
]
}Trigger data ingestion
Account Identifier for the Entity.
This has the query to list Enforcement Count
accountId
providerId
invoicePeriod
Bad Request
This is Failure entity as defied in Harness
Internal server error
Data ingestion submission response
POST /gateway/ccm/api/externaldata/dataingestion?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"accountId": "text",
"providerId": "text",
"invoicePeriod": [
"text"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Delete a external data provider given a idD.
Unique identifier for the rule
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
A boolean whether the delete was successful or not
DELETE /gateway/ccm/api/externaldata/provider/{providerId}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Update file metadata
Unique identifier for the rule
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Updated Rule.
PUT /gateway/ccm/api/externaldata/filesinfo/{fileId}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 538
{
"externalDataFiles": {
"uuid": "text",
"accountId": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"providerName": "text",
"name": "text",
"uploadStatus": "INPROGRESS",
"invoiceMonth": "text",
"ingestionStatus": "text",
"description": "text",
"md5": "text",
"signedUrlUsed": true,
"cloudStoragePath": "text",
"fileExtension": "CSV",
"providerId": "text",
"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 data file and related metadata given an id.
Unique identifier for the data file
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
A boolean whether the delete was successful or not
DELETE /gateway/ccm/api/externaldata/filesinfo/{fileId}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Get a signed url to upload external cost data.
Account Identifier
Unique identifier for the provider
Invoice period in format YYYYMMDD-YYYYMMDD
Name of the object to upload
Bad Request
This is Failure entity as defied in Harness
Internal server error
Successful retrieval of signed URL
GET /gateway/ccm/api/externaldata/signedurl?accountIdentifier=text&providerId=text&invoicePeriod=text&objectName=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}get providers
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns List of external data providers
POST /gateway/ccm/api/externaldata/provider/list?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}listProvidersFileInfo
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns all files info for list of providers
POST /gateway/ccm/api/externaldata/provider/filesinfo?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"providerList": [
"text"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?