@@ -16042,6 +16042,212 @@ components:
16042
16042
type: string
16043
16043
x-enum-varnames:
16044
16044
- GCP_SERVICE_ACCOUNT
16045
+ GCPUsageCostConfig:
16046
+ description: GCP Usage Cost config.
16047
+ properties:
16048
+ attributes:
16049
+ $ref: '#/components/schemas/GCPUsageCostConfigAttributes'
16050
+ id:
16051
+ description: The ID of the GCP Usage Cost config.
16052
+ type: string
16053
+ type:
16054
+ $ref: '#/components/schemas/GCPUsageCostConfigType'
16055
+ required:
16056
+ - attributes
16057
+ - type
16058
+ type: object
16059
+ GCPUsageCostConfigAttributes:
16060
+ description: Attributes for a GCP Usage Cost config.
16061
+ properties:
16062
+ account_id:
16063
+ description: The GCP account ID.
16064
+ example: 123456_A123BC_12AB34
16065
+ type: string
16066
+ bucket_name:
16067
+ description: The GCP bucket name used to store the Usage Cost export.
16068
+ example: dd-cost-bucket
16069
+ type: string
16070
+ created_at:
16071
+ description: The timestamp when the GCP Usage Cost config was created.
16072
+ pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$
16073
+ type: string
16074
+ dataset:
16075
+ description: The export dataset name used for the GCP Usage Cost Report.
16076
+ example: billing
16077
+ type: string
16078
+ error_messages:
16079
+ description: The error messages for the GCP Usage Cost config.
16080
+ items:
16081
+ type: string
16082
+ nullable: true
16083
+ type: array
16084
+ export_prefix:
16085
+ description: The export prefix used for the GCP Usage Cost Report.
16086
+ example: datadog_cloud_cost_usage_export
16087
+ type: string
16088
+ export_project_name:
16089
+ description: The name of the GCP Usage Cost Report.
16090
+ example: dd-cloud-cost-report
16091
+ type: string
16092
+ months:
16093
+ deprecated: true
16094
+ description: The number of months the report has been backfilled.
16095
+ format: int32
16096
+ maximum: 36
16097
+ type: integer
16098
+ project_id:
16099
+ description: The `project_id` of the GCP Usage Cost report.
16100
+ example: my-project-123
16101
+ type: string
16102
+ service_account:
16103
+ description: The unique GCP service account email.
16104
+
16105
+ type: string
16106
+ status:
16107
+ description: The status of the GCP Usage Cost config.
16108
+ example: active
16109
+ type: string
16110
+ status_updated_at:
16111
+ description: The timestamp when the GCP Usage Cost config status was updated.
16112
+ pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$
16113
+ type: string
16114
+ updated_at:
16115
+ description: The timestamp when the GCP Usage Cost config status was updated.
16116
+ pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}$
16117
+ type: string
16118
+ required:
16119
+ - account_id
16120
+ - bucket_name
16121
+ - dataset
16122
+ - export_prefix
16123
+ - export_project_name
16124
+ - service_account
16125
+ - status
16126
+ type: object
16127
+ GCPUsageCostConfigPatchData:
16128
+ description: GCP Usage Cost config patch data.
16129
+ properties:
16130
+ attributes:
16131
+ $ref: '#/components/schemas/GCPUsageCostConfigPatchRequestAttributes'
16132
+ type:
16133
+ $ref: '#/components/schemas/GCPUsageCostConfigPatchRequestType'
16134
+ required:
16135
+ - attributes
16136
+ - type
16137
+ type: object
16138
+ GCPUsageCostConfigPatchRequest:
16139
+ description: GCP Usage Cost config patch request.
16140
+ properties:
16141
+ data:
16142
+ $ref: '#/components/schemas/GCPUsageCostConfigPatchData'
16143
+ required:
16144
+ - data
16145
+ type: object
16146
+ GCPUsageCostConfigPatchRequestAttributes:
16147
+ description: Attributes for GCP Usage Cost config patch request.
16148
+ properties:
16149
+ is_enabled:
16150
+ description: Whether or not the Cloud Cost Management account is enabled.
16151
+ example: true
16152
+ type: boolean
16153
+ required:
16154
+ - is_enabled
16155
+ type: object
16156
+ GCPUsageCostConfigPatchRequestType:
16157
+ default: gcp_uc_config_patch_request
16158
+ description: Type of GCP Usage Cost config patch request.
16159
+ enum:
16160
+ - gcp_uc_config_patch_request
16161
+ example: gcp_uc_config_patch_request
16162
+ type: string
16163
+ x-enum-varnames:
16164
+ - GCP_USAGE_COST_CONFIG_PATCH_REQUEST
16165
+ GCPUsageCostConfigPostData:
16166
+ description: GCP Usage Cost config post data.
16167
+ properties:
16168
+ attributes:
16169
+ $ref: '#/components/schemas/GCPUsageCostConfigPostRequestAttributes'
16170
+ type:
16171
+ $ref: '#/components/schemas/GCPUsageCostConfigPostRequestType'
16172
+ required:
16173
+ - attributes
16174
+ - type
16175
+ type: object
16176
+ GCPUsageCostConfigPostRequest:
16177
+ description: GCP Usage Cost config post request.
16178
+ properties:
16179
+ data:
16180
+ $ref: '#/components/schemas/GCPUsageCostConfigPostData'
16181
+ required:
16182
+ - data
16183
+ type: object
16184
+ GCPUsageCostConfigPostRequestAttributes:
16185
+ description: Attributes for GCP Usage Cost config post request.
16186
+ properties:
16187
+ billing_account_id:
16188
+ description: The GCP account ID.
16189
+ example: 123456_A123BC_12AB34
16190
+ type: string
16191
+ bucket_name:
16192
+ description: The GCP bucket name used to store the Usage Cost export.
16193
+ example: dd-cost-bucket
16194
+ type: string
16195
+ export_dataset_name:
16196
+ description: The export dataset name used for the GCP Usage Cost report.
16197
+ example: billing
16198
+ type: string
16199
+ export_prefix:
16200
+ description: The export prefix used for the GCP Usage Cost report.
16201
+ example: datadog_cloud_cost_usage_export
16202
+ type: string
16203
+ export_project_name:
16204
+ description: The name of the GCP Usage Cost report.
16205
+ example: dd-cloud-cost-report
16206
+ type: string
16207
+ service_account:
16208
+ description: The unique GCP service account email.
16209
+
16210
+ type: string
16211
+ required:
16212
+ - billing_account_id
16213
+ - bucket_name
16214
+ - export_project_name
16215
+ - export_dataset_name
16216
+ - service_account
16217
+ type: object
16218
+ GCPUsageCostConfigPostRequestType:
16219
+ default: gcp_uc_config_post_request
16220
+ description: Type of GCP Usage Cost config post request.
16221
+ enum:
16222
+ - gcp_uc_config_post_request
16223
+ example: gcp_usage_cost_config_post_request
16224
+ type: string
16225
+ x-enum-varnames:
16226
+ - GCP_USAGE_COST_CONFIG_POST_REQUEST
16227
+ GCPUsageCostConfigResponse:
16228
+ description: Response of GCP Usage Cost config.
16229
+ properties:
16230
+ data:
16231
+ $ref: '#/components/schemas/GCPUsageCostConfig'
16232
+ type: object
16233
+ GCPUsageCostConfigType:
16234
+ default: gcp_uc_config
16235
+ description: Type of GCP Usage Cost config.
16236
+ enum:
16237
+ - gcp_uc_config
16238
+ example: gcp_uc_config
16239
+ type: string
16240
+ x-enum-varnames:
16241
+ - GCP_UC_CONFIG
16242
+ GCPUsageCostConfigsResponse:
16243
+ description: List of GCP Usage Cost configs.
16244
+ properties:
16245
+ data:
16246
+ description: A GCP Usage Cost config.
16247
+ items:
16248
+ $ref: '#/components/schemas/GCPUsageCostConfig'
16249
+ type: array
16250
+ type: object
16045
16251
GetActionConnectionResponse:
16046
16252
description: The response for found connection
16047
16253
properties:
@@ -45605,6 +45811,152 @@ paths:
45605
45811
summary: Get Custom Costs file
45606
45812
tags:
45607
45813
- Cloud Cost Management
45814
+ /api/v2/cost/gcp_uc_config:
45815
+ get:
45816
+ description: List the GCP Usage Cost configs.
45817
+ operationId: ListCostGCPUsageCostConfigs
45818
+ responses:
45819
+ '200':
45820
+ content:
45821
+ application/json:
45822
+ schema:
45823
+ $ref: '#/components/schemas/GCPUsageCostConfigsResponse'
45824
+ description: OK
45825
+ '403':
45826
+ content:
45827
+ application/json:
45828
+ schema:
45829
+ $ref: '#/components/schemas/APIErrorResponse'
45830
+ description: Forbidden
45831
+ '429':
45832
+ $ref: '#/components/responses/TooManyRequestsResponse'
45833
+ security:
45834
+ - apiKeyAuth: []
45835
+ appKeyAuth: []
45836
+ - AuthZ:
45837
+ - cloud_cost_management_read
45838
+ summary: List Cloud Cost Management GCP Usage Cost configs
45839
+ tags:
45840
+ - Cloud Cost Management
45841
+ x-permission:
45842
+ operator: OR
45843
+ permissions:
45844
+ - cloud_cost_management_read
45845
+ post:
45846
+ description: Create a Cloud Cost Management account for an GCP Usage Cost config.
45847
+ operationId: CreateCostGCPUsageCostConfig
45848
+ requestBody:
45849
+ content:
45850
+ application/json:
45851
+ schema:
45852
+ $ref: '#/components/schemas/GCPUsageCostConfigPostRequest'
45853
+ required: true
45854
+ responses:
45855
+ '200':
45856
+ content:
45857
+ application/json:
45858
+ schema:
45859
+ $ref: '#/components/schemas/GCPUsageCostConfigResponse'
45860
+ description: OK
45861
+ '400':
45862
+ content:
45863
+ application/json:
45864
+ schema:
45865
+ $ref: '#/components/schemas/APIErrorResponse'
45866
+ description: Bad Request
45867
+ '403':
45868
+ content:
45869
+ application/json:
45870
+ schema:
45871
+ $ref: '#/components/schemas/APIErrorResponse'
45872
+ description: Forbidden
45873
+ '429':
45874
+ $ref: '#/components/responses/TooManyRequestsResponse'
45875
+ security:
45876
+ - apiKeyAuth: []
45877
+ appKeyAuth: []
45878
+ - AuthZ:
45879
+ - cloud_cost_management_write
45880
+ summary: Create Cloud Cost Management GCP Usage Cost config
45881
+ tags:
45882
+ - Cloud Cost Management
45883
+ x-permission:
45884
+ operator: OR
45885
+ permissions:
45886
+ - cloud_cost_management_write
45887
+ /api/v2/cost/gcp_uc_config/{cloud_account_id}:
45888
+ delete:
45889
+ description: Archive a Cloud Cost Management account.
45890
+ operationId: DeleteCostGCPUsageCostConfig
45891
+ parameters:
45892
+ - $ref: '#/components/parameters/CloudAccountID'
45893
+ responses:
45894
+ '204':
45895
+ description: No Content
45896
+ '400':
45897
+ content:
45898
+ application/json:
45899
+ schema:
45900
+ $ref: '#/components/schemas/APIErrorResponse'
45901
+ description: Bad Request
45902
+ '404':
45903
+ content:
45904
+ application/json:
45905
+ schema:
45906
+ $ref: '#/components/schemas/APIErrorResponse'
45907
+ description: Not Found
45908
+ '429':
45909
+ $ref: '#/components/responses/TooManyRequestsResponse'
45910
+ security:
45911
+ - apiKeyAuth: []
45912
+ appKeyAuth: []
45913
+ - AuthZ:
45914
+ - cloud_cost_management_write
45915
+ summary: Delete Cloud Cost Management GCP Usage Cost config
45916
+ tags:
45917
+ - Cloud Cost Management
45918
+ x-permission:
45919
+ operator: OR
45920
+ permissions:
45921
+ - cloud_cost_management_write
45922
+ patch:
45923
+ description: Update the status of an GCP Usage Cost config (active/archived).
45924
+ operationId: UpdateCostGCPUsageCostConfig
45925
+ parameters:
45926
+ - $ref: '#/components/parameters/CloudAccountID'
45927
+ requestBody:
45928
+ content:
45929
+ application/json:
45930
+ schema:
45931
+ $ref: '#/components/schemas/GCPUsageCostConfigPatchRequest'
45932
+ required: true
45933
+ responses:
45934
+ '200':
45935
+ content:
45936
+ application/json:
45937
+ schema:
45938
+ $ref: '#/components/schemas/GCPUsageCostConfigResponse'
45939
+ description: OK
45940
+ '403':
45941
+ content:
45942
+ application/json:
45943
+ schema:
45944
+ $ref: '#/components/schemas/APIErrorResponse'
45945
+ description: Forbidden
45946
+ '429':
45947
+ $ref: '#/components/responses/TooManyRequestsResponse'
45948
+ security:
45949
+ - apiKeyAuth: []
45950
+ appKeyAuth: []
45951
+ - AuthZ:
45952
+ - cloud_cost_management_write
45953
+ summary: Update Cloud Cost Management GCP Usage Cost config
45954
+ tags:
45955
+ - Cloud Cost Management
45956
+ x-permission:
45957
+ operator: OR
45958
+ permissions:
45959
+ - cloud_cost_management_write
45608
45960
/api/v2/cost_by_tag/active_billing_dimensions:
45609
45961
get:
45610
45962
description: Get active billing dimensions for cost attribution. Cost data for
@@ -63418,8 +63770,8 @@ tags:
63418
63770
for more information.
63419
63771
name: Case Management
63420
63772
- description: The Cloud Cost Management API allows you to set up, edit, and delete
63421
- Cloud Cost Management accounts for AWS and Azure . You can query your cost data
63422
- by using the [Metrics endpoint](https://docs.datadoghq.com/api/latest/metrics/#query-timeseries-data-across-multiple-products)
63773
+ Cloud Cost Management accounts for AWS, Azure, and GCP . You can query your cost
63774
+ data by using the [Metrics endpoint](https://docs.datadoghq.com/api/latest/metrics/#query-timeseries-data-across-multiple-products)
63423
63775
and the `cloud_cost` data source. For more information, see the [Cloud Cost Management
63424
63776
documentation](https://docs.datadoghq.com/cloud_cost_management/).
63425
63777
name: Cloud Cost Management
0 commit comments