Skip to content

Commit 4757f87

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

7 files changed

+110
-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:52:21.968"
2+
"spec_repo_commit": "1e6c346",
3+
"generated": "2025-08-25 18:50:36.085"
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,39 @@
1+
{
2+
"http_interactions": [
3+
{
4+
"request": {
5+
"body": {
6+
"string": "{\"data\":{\"attributes\":{\"is_enabled\":true},\"type\":\"aws_cur_config_patch_request\"}}",
7+
"encoding": null
8+
},
9+
"headers": {
10+
"Accept": [
11+
"application/json"
12+
],
13+
"Content-Type": [
14+
"application/json"
15+
]
16+
},
17+
"method": "patch",
18+
"uri": "https://api.datadoghq.com/api/v2/cost/aws_cur_config/12345678"
19+
},
20+
"response": {
21+
"body": {
22+
"string": "{\"errors\":[{\"status\":\"404\",\"title\":\"Cloud account not found\",\"detail\":\"Cloud account with ID 12345678 was not found\"}]}",
23+
"encoding": null
24+
},
25+
"headers": {
26+
"Content-Type": [
27+
"application/vnd.api+json"
28+
]
29+
},
30+
"status": {
31+
"code": 404,
32+
"message": "Not Found"
33+
}
34+
},
35+
"recorded_at": "Mon, 25 Aug 2025 15:10:14 GMT"
36+
}
37+
],
38+
"recorded_with": "VCR 6.0.0"
39+
}
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,39 @@
1+
{
2+
"http_interactions": [
3+
{
4+
"request": {
5+
"body": {
6+
"string": "{\"data\":{\"attributes\":{\"is_enabled\":true},\"type\":\"azure_uc_config_patch_request\"}}",
7+
"encoding": null
8+
},
9+
"headers": {
10+
"Accept": [
11+
"application/json"
12+
],
13+
"Content-Type": [
14+
"application/json"
15+
]
16+
},
17+
"method": "patch",
18+
"uri": "https://api.datadoghq.com/api/v2/cost/azure_uc_config/12345678"
19+
},
20+
"response": {
21+
"body": {
22+
"string": "{\"errors\":[{\"status\":\"404\",\"title\":\"Cloud account not found\",\"detail\":\"Cloud account with ID 12345678 was not found\"}]}",
23+
"encoding": null
24+
},
25+
"headers": {
26+
"Content-Type": [
27+
"application/vnd.api+json"
28+
]
29+
},
30+
"status": {
31+
"code": 404,
32+
"message": "Not Found"
33+
}
34+
},
35+
"recorded_at": "Mon, 25 Aug 2025 15:10:28 GMT"
36+
}
37+
],
38+
"recorded_with": "VCR 6.0.0"
39+
}

tests/scenarios/features/v2/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)