Skip to content

Commit

Permalink
Delete api/v2/cost/aws_related_accounts from spec (#25996)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Oct 31, 2024
1 parent 0db7a8d commit 3e343bc
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 793 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-31 16:05:23.299053",
"spec_repo_commit": "a11da7b5"
"regenerated": "2024-10-31 16:43:05.483809",
"spec_repo_commit": "63c441b2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-31 16:05:31.171392",
"spec_repo_commit": "a11da7b5"
"regenerated": "2024-10-31 16:43:13.281471",
"spec_repo_commit": "63c441b2"
}
}
}
12 changes: 0 additions & 12 deletions config/_default/menus/api.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4992,18 +4992,6 @@ menu:
- ListCostAzureUCConfigs
unstable: []
order: 6
- name: List related AWS accounts
url: '#list-related-aws-accounts'
identifier: cloud-cost-management-list-related-aws-accounts
parent: cloud-cost-management
generated: true
params:
versions:
- v2
operationids:
- ListAWSRelatedAccounts
unstable: []
order: 5
- name: Update Cloud Cost Management AWS CUR config
url: '#update-cloud-cost-management-aws-cur-config'
identifier: cloud-cost-management-update-cloud-cost-management-aws-cur-config
Expand Down
48 changes: 0 additions & 48 deletions content/en/api/v2/cloud-cost-management/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,54 +222,6 @@
"html": "<div class=\"\"><div class=\"row hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> data&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>AWS CUR config Patch data.</p></div>\n </div>\n <div class=\"row isNested d-none hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> attributes&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>Attributes for AWS CUR config Patch Request.</p></div>\n </div>\n <div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">is_enabled&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>boolean</p></div>\n <div class=\"col-6 column\"><p>Whether or not the Cloud Cost Management account is enabled.</p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">type&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>enum</p></div>\n <div class=\"col-6 column\"><p>Type of AWS CUR config Patch Request. \nAllowed enum values: <code>aws_cur_config_patch_request</code></p><p>default: <code>aws_cur_config_patch_request</code></p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div></div>"
}
},
"ListAWSRelatedAccounts": {
"responses": {
"200": {
"json": {
"data": [
{
"attributes": {
"has_datadog_integration": false,
"name": "string"
},
"id": "123456789123",
"type": "aws_account"
}
]
},
"html": "<div class=\"\"><div class=\"row hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> data</p>\n </div>\n <div class=\"col-2 column\"><p>[object]</p></div>\n <div class=\"col-6 column\"><p>An AWS related account.</p></div>\n </div>\n <div class=\"row isNested d-none hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> attributes</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>Attributes for an AWS related account.</p></div>\n </div>\n <div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">has_datadog_integration</p>\n </div>\n <div class=\"col-2 column\"><p>boolean</p></div>\n <div class=\"col-6 column\"><p>Whether or not the AWS account has a Datadog integration.</p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">name</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>The name of the AWS account.</p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">id&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>The AWS account ID.</p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">type&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>enum</p></div>\n <div class=\"col-6 column\"><p>Type of AWS related account. \nAllowed enum values: <code>aws_account</code></p><p>default: <code>aws_account</code></p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div></div>"
},
"400": {
"json": {
"errors": [
"Bad Request"
]
},
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">errors&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of errors.</p></div>\n </div>\n \n </div>\n </div></div>"
},
"403": {
"json": {
"errors": [
"Bad Request"
]
},
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">errors&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of errors.</p></div>\n </div>\n \n </div>\n </div></div>"
},
"429": {
"json": {
"errors": [
"Bad Request"
]
},
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">errors&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of errors.</p></div>\n </div>\n \n </div>\n </div></div>"
}
},
"request": {
"json_curl": {},
"json": {},
"html": ""
}
},
"ListCostAzureUCConfigs": {
"responses": {
"200": {
Expand Down
95 changes: 0 additions & 95 deletions data/api/v2/full_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,51 +1017,6 @@ components:
type: string
x-enum-varnames:
- API_KEYS
AWSRelatedAccount:
description: AWS related account.
properties:
attributes:
$ref: '#/components/schemas/AWSRelatedAccountAttributes'
id:
description: The AWS account ID.
example: '123456789123'
type: string
type:
$ref: '#/components/schemas/AWSRelatedAccountType'
required:
- id
- type
type: object
x-merge-override:
required: false
AWSRelatedAccountAttributes:
description: Attributes for an AWS related account.
properties:
has_datadog_integration:
description: Whether or not the AWS account has a Datadog integration.
type: boolean
name:
description: The name of the AWS account.
type: string
type: object
AWSRelatedAccountType:
default: aws_account
description: Type of AWS related account.
enum:
- aws_account
example: aws_account
type: string
x-enum-varnames:
- AWS_ACCOUNT
AWSRelatedAccountsResponse:
description: List of AWS related accounts.
properties:
data:
description: An AWS related account.
items:
$ref: '#/components/schemas/AWSRelatedAccount'
type: array
type: object
ActiveBillingDimensionsAttributes:
description: List of active billing dimensions.
properties:
Expand Down Expand Up @@ -29755,56 +29710,6 @@ paths:
- cloud_cost_management_write
x-undo:
type: idempotent
/api/v2/cost/aws_related_accounts:
get:
deprecated: true
description: List the AWS accounts in an organization by calling 'organizations:ListAccounts'
from the specified management account.
operationId: ListAWSRelatedAccounts
parameters:
- description: The ID of the management account to filter by.
example: '123456789123'
in: query
name: filter[management_account_id]
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AWSRelatedAccountsResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: List related AWS accounts
tags:
- Cloud Cost Management
x-menu-order: 5
x-permission:
operator: OR
permissions:
- cloud_cost_management_read
x-undo:
type: safe
/api/v2/cost/azure_uc_config:
get:
description: List the Azure configs.
Expand Down
Loading

0 comments on commit 3e343bc

Please sign in to comment.