Skip to content

Commit 85f09b7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add docs for 404 not found error in cost-onboarding-api (#2772)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b93b38b commit 85f09b7

7 files changed

+74
-2
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "e22129c",
3-
"generated": "2025-08-25 17:47:43.193"
2+
"spec_repo_commit": "1e6c346",
3+
"generated": "2025-08-25 18:45:46.784"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49699,6 +49699,12 @@ paths:
4969949699
schema:
4970049700
$ref: '#/components/schemas/APIErrorResponse'
4970149701
description: Forbidden
49702+
'404':
49703+
content:
49704+
application/json:
49705+
schema:
49706+
$ref: '#/components/schemas/APIErrorResponse'
49707+
description: Not Found
4970249708
'429':
4970349709
$ref: '#/components/responses/TooManyRequestsResponse'
4970449710
security:
@@ -49851,6 +49857,12 @@ paths:
4985149857
schema:
4985249858
$ref: '#/components/schemas/APIErrorResponse'
4985349859
description: Forbidden
49860+
'404':
49861+
content:
49862+
application/json:
49863+
schema:
49864+
$ref: '#/components/schemas/APIErrorResponse'
49865+
description: Not Found
4985449866
'429':
4985549867
$ref: '#/components/responses/TooManyRequestsResponse'
4985649868
security:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-08-25T15:10:14.494Z
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
interactions:
2+
- request:
3+
body: '{"data":{"attributes":{"is_enabled":true},"type":"aws_cur_config_patch_request"}}'
4+
headers:
5+
accept:
6+
- application/json
7+
content-type:
8+
- application/json
9+
method: PATCH
10+
uri: https://api.datadoghq.com/api/v2/cost/aws_cur_config/12345678
11+
response:
12+
body:
13+
string: '{"errors":[{"status":"404","title":"Cloud account not found","detail":"Cloud
14+
account with ID 12345678 was not found"}]}'
15+
headers:
16+
content-type:
17+
- application/vnd.api+json
18+
status:
19+
code: 404
20+
message: Not Found
21+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-08-25T15:10:28.926Z
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
interactions:
2+
- request:
3+
body: '{"data":{"attributes":{"is_enabled":true},"type":"azure_uc_config_patch_request"}}'
4+
headers:
5+
accept:
6+
- application/json
7+
content-type:
8+
- application/json
9+
method: PATCH
10+
uri: https://api.datadoghq.com/api/v2/cost/azure_uc_config/12345678
11+
response:
12+
body:
13+
string: '{"errors":[{"status":"404","title":"Cloud account not found","detail":"Cloud
14+
account with ID 12345678 was not found"}]}'
15+
headers:
16+
content-type:
17+
- application/vnd.api+json
18+
status:
19+
code: 404
20+
message: Not Found
21+
version: 1

tests/v2/features/cloud_cost_management.feature

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,14 @@ Feature: Cloud Cost Management
267267
When the request is sent
268268
Then the response status is 200 OK
269269

270+
@team:Datadog/cloud-cost-management
271+
Scenario: Update Cloud Cost Management AWS CUR config returns "Not Found" response
272+
Given new "UpdateCostAWSCURConfig" request
273+
And request contains "cloud_account_id" parameter with value 12345678
274+
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "aws_cur_config_patch_request"}}
275+
When the request is sent
276+
Then the response status is 404 Not Found
277+
270278
@replay-only @team:Datadog/cloud-cost-management
271279
Scenario: Update Cloud Cost Management AWS CUR config returns "OK" response
272280
Given new "UpdateCostAWSCURConfig" request
@@ -284,6 +292,14 @@ Feature: Cloud Cost Management
284292
When the request is sent
285293
Then the response status is 400 Bad Request
286294

295+
@team:Datadog/cloud-cost-management
296+
Scenario: Update Cloud Cost Management Azure config returns "Not Found" response
297+
Given new "UpdateCostAzureUCConfigs" request
298+
And request contains "cloud_account_id" parameter with value 12345678
299+
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "azure_uc_config_patch_request"}}
300+
When the request is sent
301+
Then the response status is 404 Not Found
302+
287303
@replay-only @team:Datadog/cloud-cost-management
288304
Scenario: Update Cloud Cost Management Azure config returns "OK" response
289305
Given new "UpdateCostAzureUCConfigs" request

0 commit comments

Comments
 (0)