@@ -216,6 +216,13 @@ components:
216
216
required: true
217
217
schema:
218
218
type: string
219
+ FileID:
220
+ description: File id.
221
+ in: path
222
+ name: file_id
223
+ required: true
224
+ schema:
225
+ type: string
219
226
GCPSTSServiceAccountID:
220
227
description: Your GCP STS enabled service account's unique ID.
221
228
in: path
@@ -5516,6 +5523,199 @@ components:
5516
5523
nullable: true
5517
5524
type: string
5518
5525
type: object
5526
+ CustomCostsFileGetResponse:
5527
+ description: Response for Get Custom Costs Files.
5528
+ properties:
5529
+ attributes:
5530
+ $ref: '#/components/schemas/CustomCostsFileMetadataWithContent'
5531
+ id:
5532
+ description: ID of the Custom Costs file.
5533
+ type: string
5534
+ type:
5535
+ description: Type of the Custom Costs file.
5536
+ type: string
5537
+ CustomCostsFileLineItem:
5538
+ description: Line item details from a Custom Costs file.
5539
+ properties:
5540
+ BilledCost:
5541
+ description: Total cost in the cost file.
5542
+ example: 100.5
5543
+ format: double
5544
+ type: number
5545
+ BillingCurrency:
5546
+ description: Currency used in the Custom Costs file.
5547
+ example: USD
5548
+ type: string
5549
+ ChargeDescription:
5550
+ description: Description for the line item cost.
5551
+ example: monthly usage charge for my service
5552
+ type: string
5553
+ ChargePeriodEnd:
5554
+ description: End date of the usage charge.
5555
+ example: '2023-02-28'
5556
+ pattern: ^\d{4}-\d{2}-\d{2}$
5557
+ type: string
5558
+ ChargePeriodStart:
5559
+ description: Start date of the usage charge.
5560
+ example: '2023-02-01'
5561
+ pattern: ^\d{4}-\d{2}-\d{2}$
5562
+ type: string
5563
+ ProviderName:
5564
+ description: Name of the provider for the line item.
5565
+ type: string
5566
+ Tags:
5567
+ additionalProperties:
5568
+ type: string
5569
+ description: Additional tags for the line item.
5570
+ type: object
5571
+ type: object
5572
+ CustomCostsFileListResponse:
5573
+ description: Response for List Custom Costs Files.
5574
+ properties:
5575
+ data:
5576
+ description: List of Custom Costs Files.
5577
+ items:
5578
+ $ref: '#/components/schemas/CustomCostsFileMetadataHighLevel'
5579
+ type: array
5580
+ CustomCostsFileMetadata:
5581
+ description: Schema of a Custom Costs metadata.
5582
+ properties:
5583
+ billed_cost:
5584
+ description: Total cost in the cost file.
5585
+ example: 100.5
5586
+ format: double
5587
+ type: number
5588
+ billing_currency:
5589
+ description: Currency used in the Custom Costs file.
5590
+ example: USD
5591
+ type: string
5592
+ charge_period:
5593
+ $ref: '#/components/schemas/CustomCostsFileUsageChargePeriod'
5594
+ name:
5595
+ description: Name of the Custom Costs file.
5596
+ example: my_file.json
5597
+ type: string
5598
+ provider_names:
5599
+ description: Providers contains in the Custom Costs file.
5600
+ items:
5601
+ description: Name of a provider.
5602
+ example: my_provider
5603
+ type: string
5604
+ type: array
5605
+ status:
5606
+ description: Status of the Custom Costs file.
5607
+ example: active
5608
+ type: string
5609
+ uploaded_at:
5610
+ description: Timestamp in millisecond of the upload time of the Custom Costs
5611
+ file.
5612
+ example: 1704067200000
5613
+ format: double
5614
+ type: number
5615
+ uploaded_by:
5616
+ $ref: '#/components/schemas/CustomCostsUser'
5617
+ type: object
5618
+ CustomCostsFileMetadataHighLevel:
5619
+ description: JSON API format of for a Custom Costs file.
5620
+ properties:
5621
+ attributes:
5622
+ $ref: '#/components/schemas/CustomCostsFileMetadata'
5623
+ id:
5624
+ description: ID of the Custom Costs metadata.
5625
+ type: string
5626
+ type:
5627
+ description: Type of the Custom Costs file metadata.
5628
+ type: string
5629
+ type: object
5630
+ CustomCostsFileMetadataWithContent:
5631
+ description: Schema of a cost file metadata.
5632
+ properties:
5633
+ billed_cost:
5634
+ description: Total cost in the cost file.
5635
+ example: 100.5
5636
+ format: double
5637
+ type: number
5638
+ billing_currency:
5639
+ description: Currency used in the Custom Costs file.
5640
+ example: USD
5641
+ type: string
5642
+ charge_period:
5643
+ $ref: '#/components/schemas/CustomCostsFileUsageChargePeriod'
5644
+ content:
5645
+ description: Detail of the line items from the Custom Costs file.
5646
+ items:
5647
+ $ref: '#/components/schemas/CustomCostsFileLineItem'
5648
+ type: array
5649
+ name:
5650
+ description: Name of the Custom Costs file.
5651
+ example: my_file.json
5652
+ type: string
5653
+ provider_names:
5654
+ description: Providers contains in the Custom Costs file.
5655
+ items:
5656
+ description: Name of a provider.
5657
+ example: my_provider
5658
+ type: string
5659
+ type: array
5660
+ status:
5661
+ description: Status of the Custom Costs file.
5662
+ example: active
5663
+ type: string
5664
+ uploaded_at:
5665
+ description: Timestamp in millisecond of the upload time of the Custom Costs
5666
+ file.
5667
+ example: 1704067200000
5668
+ format: double
5669
+ type: number
5670
+ uploaded_by:
5671
+ $ref: '#/components/schemas/CustomCostsUser'
5672
+ type: object
5673
+ CustomCostsFileUploadRequest:
5674
+ description: Request for uploading a Custom Costs file.
5675
+ items:
5676
+ $ref: '#/components/schemas/CustomCostsFileLineItem'
5677
+ type: array
5678
+ CustomCostsFileUploadResponse:
5679
+ description: Response for Uploaded Custom Costs Files.
5680
+ properties:
5681
+ attributes:
5682
+ $ref: '#/components/schemas/CustomCostsFileMetadata'
5683
+ id:
5684
+ description: ID of the Custom Costs file.
5685
+ type: string
5686
+ type:
5687
+ description: Type of the Custom Costs file.
5688
+ type: string
5689
+ CustomCostsFileUsageChargePeriod:
5690
+ description: Usage charge period of a Custom Costs file.
5691
+ properties:
5692
+ end:
5693
+ description: End of the usage of the Custom Costs file.
5694
+ example: 1706745600000
5695
+ format: double
5696
+ type: number
5697
+ start:
5698
+ description: Start of the usage of the Custom Costs file.
5699
+ example: 1704067200000
5700
+ format: double
5701
+ type: number
5702
+ type: object
5703
+ CustomCostsUser:
5704
+ description: Metadata of the user that has uploaded the Custom Costs file.
5705
+ properties:
5706
+ email:
5707
+ description: The name of the Custom Costs file.
5708
+
5709
+ type: string
5710
+ icon:
5711
+ description: The name of the Custom Costs file.
5712
+ example: icon.png
5713
+ type: string
5714
+ name:
5715
+ description: Name of the user.
5716
+ example: Test User
5717
+ type: string
5718
+ type: object
5519
5719
CustomDestinationAttributeTagsRestrictionListType:
5520
5720
default: ALLOW_LIST
5521
5721
description: 'How `forward_tags_restriction_list` parameter should be interpreted.
@@ -26218,6 +26418,118 @@ paths:
26218
26418
summary: Update Cloud Cost Management Azure config
26219
26419
tags:
26220
26420
- Cloud Cost Management
26421
+ /api/v2/cost/custom_costs:
26422
+ get:
26423
+ description: List the Custom Costs files.
26424
+ operationId: ListCustomCostsFiles
26425
+ responses:
26426
+ '200':
26427
+ content:
26428
+ application/json:
26429
+ schema:
26430
+ $ref: '#/components/schemas/CustomCostsFileListResponse'
26431
+ description: OK
26432
+ '403':
26433
+ content:
26434
+ application/json:
26435
+ schema:
26436
+ $ref: '#/components/schemas/APIErrorResponse'
26437
+ description: Forbidden
26438
+ '429':
26439
+ $ref: '#/components/responses/TooManyRequestsResponse'
26440
+ security:
26441
+ - apiKeyAuth: []
26442
+ appKeyAuth: []
26443
+ - AuthZ:
26444
+ - cloud_cost_management_read
26445
+ summary: List Custom Costs Files
26446
+ tags:
26447
+ - Cloud Cost Management
26448
+ put:
26449
+ description: Upload a Custom Costs file.
26450
+ operationId: UploadCustomCostsFile
26451
+ requestBody:
26452
+ content:
26453
+ application/json:
26454
+ schema:
26455
+ $ref: '#/components/schemas/CustomCostsFileUploadRequest'
26456
+ required: true
26457
+ responses:
26458
+ '202':
26459
+ content:
26460
+ application/json:
26461
+ schema:
26462
+ $ref: '#/components/schemas/CustomCostsFileUploadResponse'
26463
+ description: Accepted
26464
+ '403':
26465
+ content:
26466
+ application/json:
26467
+ schema:
26468
+ $ref: '#/components/schemas/APIErrorResponse'
26469
+ description: Forbidden
26470
+ '429':
26471
+ $ref: '#/components/responses/TooManyRequestsResponse'
26472
+ security:
26473
+ - apiKeyAuth: []
26474
+ appKeyAuth: []
26475
+ - AuthZ:
26476
+ - cloud_cost_management_write
26477
+ summary: Upload Custom Costs File
26478
+ tags:
26479
+ - Cloud Cost Management
26480
+ /api/v2/cost/custom_costs/{file_id}:
26481
+ delete:
26482
+ description: Delete the specified Custom Costs file.
26483
+ operationId: DeleteCustomCostsFile
26484
+ parameters:
26485
+ - $ref: '#/components/parameters/FileID'
26486
+ responses:
26487
+ '204':
26488
+ description: No Content
26489
+ '403':
26490
+ content:
26491
+ application/json:
26492
+ schema:
26493
+ $ref: '#/components/schemas/APIErrorResponse'
26494
+ description: Forbidden
26495
+ '429':
26496
+ $ref: '#/components/responses/TooManyRequestsResponse'
26497
+ security:
26498
+ - apiKeyAuth: []
26499
+ appKeyAuth: []
26500
+ - AuthZ:
26501
+ - cloud_cost_management_write
26502
+ summary: Delete Custom Costs File
26503
+ tags:
26504
+ - Cloud Cost Management
26505
+ get:
26506
+ description: Fetch the specified Custom Costs file.
26507
+ operationId: GetCustomCostsFile
26508
+ parameters:
26509
+ - $ref: '#/components/parameters/FileID'
26510
+ responses:
26511
+ '200':
26512
+ content:
26513
+ application/json:
26514
+ schema:
26515
+ $ref: '#/components/schemas/CustomCostsFileGetResponse'
26516
+ description: OK
26517
+ '403':
26518
+ content:
26519
+ application/json:
26520
+ schema:
26521
+ $ref: '#/components/schemas/APIErrorResponse'
26522
+ description: Forbidden
26523
+ '429':
26524
+ $ref: '#/components/responses/TooManyRequestsResponse'
26525
+ security:
26526
+ - apiKeyAuth: []
26527
+ appKeyAuth: []
26528
+ - AuthZ:
26529
+ - cloud_cost_management_read
26530
+ summary: Get Custom Costs File
26531
+ tags:
26532
+ - Cloud Cost Management
26221
26533
/api/v2/cost/enabled:
26222
26534
get:
26223
26535
description: Get the Cloud Cost Management activity.
0 commit comments