@@ -15880,6 +15880,212 @@ components:
15880
15880
type: string
15881
15881
x-enum-varnames:
15882
15882
- GCP_SERVICE_ACCOUNT
15883
+ GCPUsageCostConfig:
15884
+ description: GCP Usage Cost config.
15885
+ properties:
15886
+ attributes:
15887
+ $ref: '#/components/schemas/GCPUsageCostConfigAttributes'
15888
+ id:
15889
+ description: The ID of the GCP Usage Cost config.
15890
+ type: string
15891
+ type:
15892
+ $ref: '#/components/schemas/GCPUsageCostConfigType'
15893
+ required:
15894
+ - attributes
15895
+ - type
15896
+ type: object
15897
+ GCPUsageCostConfigAttributes:
15898
+ description: Attributes for a GCP Usage Cost config.
15899
+ properties:
15900
+ account_id:
15901
+ description: The GCP account ID.
15902
+ example: 123456_A123BC_12AB34
15903
+ type: string
15904
+ bucket_name:
15905
+ description: The GCP bucket name used to store the Usage Cost export.
15906
+ example: dd-cost-bucket
15907
+ type: string
15908
+ created_at:
15909
+ description: The timestamp when the GCP Usage Cost config was created.
15910
+ pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$
15911
+ type: string
15912
+ dataset:
15913
+ description: The export dataset name used for the GCP Usage Cost Report.
15914
+ example: billing
15915
+ type: string
15916
+ error_messages:
15917
+ description: The error messages for the GCP Usage Cost config.
15918
+ items:
15919
+ type: string
15920
+ nullable: true
15921
+ type: array
15922
+ export_prefix:
15923
+ description: The export prefix used for the GCP Usage Cost Report.
15924
+ example: datadog_cloud_cost_usage_export
15925
+ type: string
15926
+ export_project_name:
15927
+ description: The name of the GCP Usage Cost Report.
15928
+ example: dd-cloud-cost-report
15929
+ type: string
15930
+ months:
15931
+ deprecated: true
15932
+ description: The number of months the report has been backfilled.
15933
+ format: int32
15934
+ maximum: 36
15935
+ type: integer
15936
+ project_id:
15937
+ description: The `project_id` of the GCP Usage Cost report.
15938
+ example: my-project-123
15939
+ type: string
15940
+ service_account:
15941
+ description: The unique GCP service account email.
15942
+
15943
+ type: string
15944
+ status:
15945
+ description: The status of the GCP Usage Cost config.
15946
+ example: active
15947
+ type: string
15948
+ status_updated_at:
15949
+ description: The timestamp when the GCP Usage Cost config status was updated.
15950
+ pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$
15951
+ type: string
15952
+ updated_at:
15953
+ description: The timestamp when the GCP Usage Cost config status was updated.
15954
+ pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$
15955
+ type: string
15956
+ required:
15957
+ - account_id
15958
+ - bucket_name
15959
+ - dataset
15960
+ - export_prefix
15961
+ - export_project_name
15962
+ - service_account
15963
+ - status
15964
+ type: object
15965
+ GCPUsageCostConfigPatchData:
15966
+ description: GCP Usage Cost config patch data.
15967
+ properties:
15968
+ attributes:
15969
+ $ref: '#/components/schemas/GCPUsageCostConfigPatchRequestAttributes'
15970
+ type:
15971
+ $ref: '#/components/schemas/GCPUsageCostConfigPatchRequestType'
15972
+ required:
15973
+ - attributes
15974
+ - type
15975
+ type: object
15976
+ GCPUsageCostConfigPatchRequest:
15977
+ description: GCP Usage Cost config patch request.
15978
+ properties:
15979
+ data:
15980
+ $ref: '#/components/schemas/GCPUsageCostConfigPatchData'
15981
+ required:
15982
+ - data
15983
+ type: object
15984
+ GCPUsageCostConfigPatchRequestAttributes:
15985
+ description: Attributes for GCP Usage Cost config patch request.
15986
+ properties:
15987
+ is_enabled:
15988
+ description: Whether or not the Cloud Cost Management account is enabled.
15989
+ example: true
15990
+ type: boolean
15991
+ required:
15992
+ - is_enabled
15993
+ type: object
15994
+ GCPUsageCostConfigPatchRequestType:
15995
+ default: gcp_uc_config_patch_request
15996
+ description: Type of GCP Usage Cost config patch request.
15997
+ enum:
15998
+ - gcp_uc_config_patch_request
15999
+ example: gcp_uc_config_patch_request
16000
+ type: string
16001
+ x-enum-varnames:
16002
+ - GCP_USAGE_COST_CONFIG_PATCH_REQUEST
16003
+ GCPUsageCostConfigPostData:
16004
+ description: GCP Usage Cost config post data.
16005
+ properties:
16006
+ attributes:
16007
+ $ref: '#/components/schemas/GCPUsageCostConfigPostRequestAttributes'
16008
+ type:
16009
+ $ref: '#/components/schemas/GCPUsageCostConfigPostRequestType'
16010
+ required:
16011
+ - attributes
16012
+ - type
16013
+ type: object
16014
+ GCPUsageCostConfigPostRequest:
16015
+ description: GCP Usage Cost config post request.
16016
+ properties:
16017
+ data:
16018
+ $ref: '#/components/schemas/GCPUsageCostConfigPostData'
16019
+ required:
16020
+ - data
16021
+ type: object
16022
+ GCPUsageCostConfigPostRequestAttributes:
16023
+ description: Attributes for GCP Usage Cost config post request.
16024
+ properties:
16025
+ billing_account_id:
16026
+ description: The GCP account ID.
16027
+ example: 123456_A123BC_12AB34
16028
+ type: string
16029
+ bucket_name:
16030
+ description: The GCP bucket name used to store the Usage Cost export.
16031
+ example: dd-cost-bucket
16032
+ type: string
16033
+ export_dataset_name:
16034
+ description: The export dataset name used for the GCP Usage Cost report.
16035
+ example: billing
16036
+ type: string
16037
+ export_prefix:
16038
+ description: The export prefix used for the GCP Usage Cost report.
16039
+ example: datadog_cloud_cost_usage_export
16040
+ type: string
16041
+ export_project_name:
16042
+ description: The name of the GCP Usage Cost report.
16043
+ example: dd-cloud-cost-report
16044
+ type: string
16045
+ service_account:
16046
+ description: The unique GCP service account email.
16047
+
16048
+ type: string
16049
+ required:
16050
+ - billing_account_id
16051
+ - bucket_name
16052
+ - export_project_name
16053
+ - export_dataset_name
16054
+ - service_account
16055
+ type: object
16056
+ GCPUsageCostConfigPostRequestType:
16057
+ default: gcp_uc_config_post_request
16058
+ description: Type of GCP Usage Cost config post request.
16059
+ enum:
16060
+ - gcp_uc_config_post_request
16061
+ example: gcp_usage_cost_config_post_request
16062
+ type: string
16063
+ x-enum-varnames:
16064
+ - GCP_USAGE_COST_CONFIG_POST_REQUEST
16065
+ GCPUsageCostConfigResponse:
16066
+ description: Response of GCP Usage Cost config.
16067
+ properties:
16068
+ data:
16069
+ $ref: '#/components/schemas/GCPUsageCostConfig'
16070
+ type: object
16071
+ GCPUsageCostConfigType:
16072
+ default: gcp_uc_config
16073
+ description: Type of GCP Usage Cost config.
16074
+ enum:
16075
+ - gcp_uc_config
16076
+ example: gcp_uc_config
16077
+ type: string
16078
+ x-enum-varnames:
16079
+ - GCP_UC_CONFIG
16080
+ GCPUsageCostConfigsResponse:
16081
+ description: List of GCP Usage Cost configs.
16082
+ properties:
16083
+ data:
16084
+ description: A GCP Usage Cost config.
16085
+ items:
16086
+ $ref: '#/components/schemas/GCPUsageCostConfig'
16087
+ type: array
16088
+ type: object
15883
16089
GetActionConnectionResponse:
15884
16090
description: The response for found connection
15885
16091
properties:
@@ -45374,6 +45580,152 @@ paths:
45374
45580
summary: Get Custom Costs file
45375
45581
tags:
45376
45582
- Cloud Cost Management
45583
+ /api/v2/cost/gcp_uc_config:
45584
+ get:
45585
+ description: List the GCP Usage Cost configs.
45586
+ operationId: ListCostGCPUsageCostConfigs
45587
+ responses:
45588
+ '200':
45589
+ content:
45590
+ application/json:
45591
+ schema:
45592
+ $ref: '#/components/schemas/GCPUsageCostConfigsResponse'
45593
+ description: OK
45594
+ '403':
45595
+ content:
45596
+ application/json:
45597
+ schema:
45598
+ $ref: '#/components/schemas/APIErrorResponse'
45599
+ description: Forbidden
45600
+ '429':
45601
+ $ref: '#/components/responses/TooManyRequestsResponse'
45602
+ security:
45603
+ - apiKeyAuth: []
45604
+ appKeyAuth: []
45605
+ - AuthZ:
45606
+ - cloud_cost_management_read
45607
+ summary: List Cloud Cost Management GCP Usage Cost configs
45608
+ tags:
45609
+ - Cloud Cost Management
45610
+ x-permission:
45611
+ operator: OR
45612
+ permissions:
45613
+ - cloud_cost_management_read
45614
+ post:
45615
+ description: Create a Cloud Cost Management account for an GCP Usage Cost config.
45616
+ operationId: CreateCostGCPUsageCostConfig
45617
+ requestBody:
45618
+ content:
45619
+ application/json:
45620
+ schema:
45621
+ $ref: '#/components/schemas/GCPUsageCostConfigPostRequest'
45622
+ required: true
45623
+ responses:
45624
+ '200':
45625
+ content:
45626
+ application/json:
45627
+ schema:
45628
+ $ref: '#/components/schemas/GCPUsageCostConfigResponse'
45629
+ description: OK
45630
+ '400':
45631
+ content:
45632
+ application/json:
45633
+ schema:
45634
+ $ref: '#/components/schemas/APIErrorResponse'
45635
+ description: Bad Request
45636
+ '403':
45637
+ content:
45638
+ application/json:
45639
+ schema:
45640
+ $ref: '#/components/schemas/APIErrorResponse'
45641
+ description: Forbidden
45642
+ '429':
45643
+ $ref: '#/components/responses/TooManyRequestsResponse'
45644
+ security:
45645
+ - apiKeyAuth: []
45646
+ appKeyAuth: []
45647
+ - AuthZ:
45648
+ - cloud_cost_management_write
45649
+ summary: Create Cloud Cost Management GCP Usage Cost config
45650
+ tags:
45651
+ - Cloud Cost Management
45652
+ x-permission:
45653
+ operator: OR
45654
+ permissions:
45655
+ - cloud_cost_management_write
45656
+ /api/v2/cost/gcp_uc_config/{cloud_account_id}:
45657
+ delete:
45658
+ description: Archive a Cloud Cost Management account.
45659
+ operationId: DeleteCostGCPUsageCostConfig
45660
+ parameters:
45661
+ - $ref: '#/components/parameters/CloudAccountID'
45662
+ responses:
45663
+ '204':
45664
+ description: No Content
45665
+ '400':
45666
+ content:
45667
+ application/json:
45668
+ schema:
45669
+ $ref: '#/components/schemas/APIErrorResponse'
45670
+ description: Bad Request
45671
+ '404':
45672
+ content:
45673
+ application/json:
45674
+ schema:
45675
+ $ref: '#/components/schemas/APIErrorResponse'
45676
+ description: Not Found
45677
+ '429':
45678
+ $ref: '#/components/responses/TooManyRequestsResponse'
45679
+ security:
45680
+ - apiKeyAuth: []
45681
+ appKeyAuth: []
45682
+ - AuthZ:
45683
+ - cloud_cost_management_write
45684
+ summary: Delete Cloud Cost Management GCP Usage Cost config
45685
+ tags:
45686
+ - Cloud Cost Management
45687
+ x-permission:
45688
+ operator: OR
45689
+ permissions:
45690
+ - cloud_cost_management_write
45691
+ patch:
45692
+ description: Update the status of an GCP Usage Cost config (active/archived).
45693
+ operationId: UpdateCostGCPUsageCostConfig
45694
+ parameters:
45695
+ - $ref: '#/components/parameters/CloudAccountID'
45696
+ requestBody:
45697
+ content:
45698
+ application/json:
45699
+ schema:
45700
+ $ref: '#/components/schemas/GCPUsageCostConfigPatchRequest'
45701
+ required: true
45702
+ responses:
45703
+ '200':
45704
+ content:
45705
+ application/json:
45706
+ schema:
45707
+ $ref: '#/components/schemas/GCPUsageCostConfigResponse'
45708
+ description: OK
45709
+ '403':
45710
+ content:
45711
+ application/json:
45712
+ schema:
45713
+ $ref: '#/components/schemas/APIErrorResponse'
45714
+ description: Forbidden
45715
+ '429':
45716
+ $ref: '#/components/responses/TooManyRequestsResponse'
45717
+ security:
45718
+ - apiKeyAuth: []
45719
+ appKeyAuth: []
45720
+ - AuthZ:
45721
+ - cloud_cost_management_write
45722
+ summary: Update Cloud Cost Management GCP Usage Cost config
45723
+ tags:
45724
+ - Cloud Cost Management
45725
+ x-permission:
45726
+ operator: OR
45727
+ permissions:
45728
+ - cloud_cost_management_write
45377
45729
/api/v2/cost_by_tag/active_billing_dimensions:
45378
45730
get:
45379
45731
description: Get active billing dimensions for cost attribution. Cost data for
@@ -63147,8 +63499,8 @@ tags:
63147
63499
for more information.
63148
63500
name: Case Management
63149
63501
- description: The Cloud Cost Management API allows you to set up, edit, and delete
63150
- Cloud Cost Management accounts for AWS and Azure . You can query your cost data
63151
- by using the [Metrics endpoint](https://docs.datadoghq.com/api/latest/metrics/#query-timeseries-data-across-multiple-products)
63502
+ Cloud Cost Management accounts for AWS, Azure, and GCP . You can query your cost
63503
+ data by using the [Metrics endpoint](https://docs.datadoghq.com/api/latest/metrics/#query-timeseries-data-across-multiple-products)
63152
63504
and the `cloud_cost` data source. For more information, see the [Cloud Cost Management
63153
63505
documentation](https://docs.datadoghq.com/cloud_cost_management/).
63154
63506
name: Cloud Cost Management
0 commit comments