FOCUS Ingress End Points
End Points
POST v3/vendors/byod/accounts
This API is used for creating a new Databricks credential
Example Request for AWS
{
"vendorAccountId": "145609766421",
"type": "aws_byod_role",
"byodVendor": "GitHub",
"byodCostReportSpec": {
"rootDir": "byodbucket",
"subDirs": "subFolder",
"manifestPrefix": "cost-and-usage"
}
}
Example Response for AWS
"result": {
"id": "byod_145609766421_GitHub",
"vendorAccountName": "byod_145609766421_GitHub",
"vendorAccountId": "byod_145609766421_GitHub",
"vendorKey": "byod",
"verification": {
"state": "unverified"
},
"authorization": {
"type": "aws_byod_role",
"roleName": "CloudabilityBYODRole",
"externalId": "aa625912-a33b-4e64-85a4-81349d8d6ea1",
"rootDir": "byodbucket",
"subDirs": "subFolder",
"manifestPrefix": "cost-and-usage"
},
"createdAt": "2024-06-13T12:37:43+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
}
Example Request for Azure
{
"vendorAccountId": "5466010",
"type": "azure_byod",
"byodVendor": "GitHub",
"tenantId": "cf2c724d-8bfd-4b66-813d-e6f9df4f3021",
"byodAzureCostReportSpec": {
"subscriptionGuid": "d4a2cad5-2384-4090-8c3c-7c01b6a417d1",
"resourceGroupName": "billingexportresourcegroup",
"storageAccountName": "billingexportstorageacct",
"rootDir": "focuspricesheetcontainer",
"subDirs": "focuspricesheetdir",
"manifestPrefix": "FocusTest"
}
Example Response for Azure
{
"result": {
"id": "byod_5466011_GitHub",
"vendorAccountName": "byod_5466011_GitHub",
"vendorAccountId": "byod_5466011_GitHub",
"vendorKey": "byod",
"verification": {
"state": "unverified"
},
"authorization": {
"type": "azure_byod",
"tenantId": "cf2c724d-8bfd-4b66-813d-e6f9df4f3021",
"subscriptionGuid": "d4a2cad5-2384-4090-8c3c-7c01b6a417d1",
"resourceGroupName": "billingexportresourcegroup",
"storageAccountName": "billingexportstorageacct",
"tenancyId": "cf2c724d-8bfd-4b66-813d-e6f9df4f3021",
"rootDir": "focuspricesheetcontainer",
"subDirs": "focuspricesheetdir",
"manifestPrefix": "FocusTest"
},
"createdAt": "2024-06-13T12:22:02+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
}
Example Request for GCP
{
"vendorAccountId": "01A4DD-D4F7E3-MJUYHN",
"type": "gcp_byod_role",
"byodVendor": "GitHub",
"projectId": "project",
"byodCostReportSpec": {
"rootDir": "gcs_bucket",
"subDirs": "my/sub/dirs",
"manifestPrefix": "cost-and-usage"
}
}
Example Response for GCP
"result": {
"result": {
"id": "byod_01A4DD-D4F7E3-MJUYHN_GitHub",
"vendorAccountName": "byod_01A4DD-D4F7E3-MJUYHN_GitHub",
"vendorAccountId": "byod_01A4DD-D4F7E3-MJUYHN_GitHub",
"vendorKey": "byod",
"verification": {
"state": "unverified"
},
"authorization": {
"type": "gcp_byod_role",
"rootDir": "gcs_bucket",
"subDirs": "my/sub/dirs",
"manifestPrefix": "cost-and-usage"
},
"createdAt": "2024-06-13T12:29:45+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
}
PUT v3/vendors/byod/accounts/<accountId>
This API is used for updating the credential with the given ID
Example Request for AWS
{
"vendorAccountId": "byod_111111111111_zoomnew",
"type": "aws_byod_role",
"byodVendor": "zoomnew",
"byodCostReportSpec": {
"rootDir": "byodbucket",
"subDirs": "subFolder1",
"manifestPrefix": "cost-and-usage"
}
}
Example Response for AWS
{
"result": {
"id": "byod_111111111111_zoomnew",
"vendorAccountName": "byod_111111111111_zoomnew",
"vendorAccountId": "byod_111111111111_zoomnew",
"vendorKey": "byod",
"verification": {
"state": "unverified"
},
"authorization": {
"type": "aws_byod_role",
"roleName": "CloudabilityBYODRole",
"externalId": "f1cf6025-a2e5-4252-b3bd-0580b384c1fa",
"rootDir": "byodbucket",
"subDirs": "subFolder1",
"manifestPrefix": "cost-and-usage"
},
"createdAt": "2024-06-17T14:54:27+05:30",
"consumerOrgId": "",
"byodVendor": "zoomnew"
}
}
GET /v3/vendors/byod/accounts/<accountID>
This API is used for returning byod credentials for the given account.
Example Response for AWS
{
"result": {
"id": "byod_425355872505_GitHub",
"vendorAccountName": "byod_425355872505_GitHub",
"vendorAccountId": "byod_425355872505_GitHub",
"vendorKey": "byod",
"verification": {
"state": "unverified"
},
"authorization": {
"type": "aws_byod_role",
"roleName": "CloudabilityBYODRole",
"externalId": "8e68ee11-8685-414b-982c-32871d62b322",
"rootDir": "s3byodbucket",
"subDirs": "subFolders",
"manifestPrefix": "cost-and-usage"
},
"createdAt": "2024-06-12T11:27:55+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
}
Example Response for Azure
{
"result": {
"id": "byod_5466088_GitHub",
"vendorAccountName": "byod_5466088_GitHub",
"vendorAccountId": "byod_5466088_GitHub",
"vendorKey": "byod",
"verification": {
"state": "verified",
"lastVerificationAttemptedAt": "2024-06-17T09:19:53+05:30"
},
"authorization": {
"type": "azure_byod",
"tenantId": "cf2c724d-8bfd-4b66-813d-e6f9df4f3022",
"tenancyId": "cf2c724d-8bfd-4b66-813d-e6f9df4f3022"
},
"createdAt": "2024-06-13T12:01:46+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
}
Example Response for GCP
{
"result": {
"id": "byod_01E091-D83A6B-1F55DD_GitHub",
"vendorAccountName": "byod_01E091-D83A6B-1F55DD_GitHub",
"vendorAccountId": "byod_01E091-D83A6B-1F55DD_GitHub",
"vendorKey": "byod",
"verification": {
"state": "verified",
"lastVerificationAttemptedAt": "2024-06-17T09:13:14+05:30"
},
"authorization": {
"type": "gcp_byod_role",
"rootDir": "staging-rightsizing-test",
"subDirs": "byod_data",
"manifestPrefix": "cost-and-usage"
},
"createdAt": "2024-06-13T12:52:44+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
}
GET v3/vendors/byod/accounts
This API is used for returning all byod credentials for given org.
Example Response
{
"result": [
{
"id": "byod_520789954727_GitHub",
"vendorAccountName": "byod_520789954727_GitHub",
"vendorAccountId": "byod_520789954727_GitHub",
"vendorKey": "byod",
"verification": {
"state": "verified",
"lastVerificationAttemptedAt": "2024-06-11T17:44:01+05:30"
},
"authorization": {
"type": "aws_byod_role",
"roleName": "CloudabilityByodRole",
"externalId": "11111111-2222-3333-4444-555555555555",
"region": "us-west-2",
"rootDir": "s3byodbucket",
"subDirs": "subFolder",
"manifestPrefix": "cost-and-usage"
},
"createdAt": "2024-06-11T17:42:31+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
},
{
"id": "byod_425355872505_GitHub",
"vendorAccountName": "byod_425355872505_GitHub",
"vendorAccountId": "byod_425355872505_GitHub",
"vendorKey": "byod",
"verification": {
"state": "unverified"
},
"authorization": {
"type": "aws_byod_role",
"roleName": "CloudabilityBYODRole",
"externalId": "8e68ee11-8685-414b-982c-32871d62b322",
"rootDir": "s3byodbucket",
"subDirs": "subFolder",
"manifestPrefix": "cost-and-usage"
},
"createdAt": "2024-06-12T11:27:55+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
]
}
DELETE v3/vendors/byod/accounts/:accountId
This API is used for deleting the credential with the given ID.
Example Response
{
"result": {
"message": "Successfully deleted",
"vendorKey": "byod",
"vendorAccountId": "425355872505"
}
}
DELETE v3/vendors/byod/accounts/:accountId
This API is used for deleting the credential with the given ID.
Example Response
{
"result": {
"message": "Successfully deleted",
"vendorKey": "byod",
"vendorAccountId": "425355872505"
}
}
POST v3/vendors/byod/accounts/:accountId/verification
This API is used for verifying the credential with the given ID.
Example Response for AWS
{
"result": {
"id": "byod_520789954727_GitHub",
"vendorAccountName": "byod_520789954727_GitHub",
"vendorAccountId": "byod_520789954727_GitHub",
"vendorKey": "byod",
"verification": {
"state": "verified",
"lastVerificationAttemptedAt": "2024-06-17T09:08:58+05:30"
},
"authorization": {
"type": "aws_byod_role",
"roleName": "CloudabilityByodRole",
"externalId": "11111111-2222-3333-4444-555555555555",
"region": "us-west-2",
"rootDir": "s3byodbucket",
"subDirs": "subFolder",
"manifestPrefix": "cost-and-usage"
},
"createdAt": "2024-06-11T17:42:31+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
}
Example Response for Azure
{
"result": {
"id": "byod_5466088_GitHub",
"vendorAccountName": "byod_5466088_GitHub",
"vendorAccountId": "byod_5466088_GitHub",
"vendorKey": "byod",
"verification": {
"state": "verified",
"lastVerificationAttemptedAt": "2024-06-17T09:19:53+05:30"
},
"authorization": {
"type": "azure_byod",
"tenantId": "cf2c724d-8bfd-4b66-813d-e6f9df4f3022",
"tenancyId": "cf2c724d-8bfd-4b66-813d-e6f9df4f3022"
},
"createdAt": "2024-06-13T12:01:46+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
}
Example Response for GCP
{
"result": {
"id": "byod_01E091-D83A6B-1F55DD_GitHub",
"vendorAccountName": "byod_01E091-D83A6B-1F55DD_GitHub",
"vendorAccountId": "byod_01E091-D83A6B-1F55DD_GitHub",
"vendorKey": "byod",
"verification": {
"state": "verified",
"lastVerificationAttemptedAt": "2024-06-17T09:13:14+05:30"
},
"authorization": {
"type": "gcp_byod_role",
"rootDir": "staging-rightsizing-test",
"subDirs": "byod_data",
"manifestPrefix": "cost-and-usage"
},
"createdAt": "2024-06-13T12:52:44+05:30",
"consumerOrgId": "",
"byodVendor": "GitHub"
}
}
POST v3/vendors/databricks/accounts/:accountId/archive
This API is used for archiving the credential with the given ID.
Example Response for AWS
{
"result": {
"id": "byod_999999999933_GitHub",
"vendorAccountName": "byod_999999999933_GitHub",
"vendorAccountId": "byod_999999999933_GitHub",
"vendorKey": "byod",
"verification": {
"state": "archived"
},
"meta": {},
"consumerOrgId": ""
}
}