Skip to content

Commit 660de94

Browse files
author
CI bot
committed
Definitions Update remediations
2 parents c631778 + 2ba7cb9 commit 660de94

File tree

4 files changed

+98
-4
lines changed

4 files changed

+98
-4
lines changed

alsdkdefs/apis/remediations/assets_query.v1.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,6 +2996,63 @@ paths:
29962996
name: asset_type
29972997
in: path
29982998
required: true
2999+
'/assets_query/v1/incident_ids':
3000+
post:
3001+
summary: Get Incident IDs
3002+
tags:
3003+
- Queries
3004+
responses:
3005+
'200':
3006+
description: OK
3007+
content:
3008+
application/json:
3009+
schema:
3010+
$ref: schemas.yaml#/GetIncidentIdsResponse
3011+
examples:
3012+
Exposures Summary for Deployment Example:
3013+
$ref: examples.yaml#/GetIncidentIdsExample
3014+
'400':
3015+
$ref: responses.yaml#/AssetDetailsBadRequest
3016+
'401':
3017+
$ref: responses.yaml#/Unauthorized
3018+
'403':
3019+
$ref: responses.yaml#/Forbidden
3020+
'404':
3021+
$ref: responses.yaml#/NotFound
3022+
'503':
3023+
$ref: responses.yaml#/UnavailableError
3024+
operationId: get_incident_ids
3025+
description: Get lists of incident_ids for a given set of assets
3026+
requestBody:
3027+
content:
3028+
application/json:
3029+
schema:
3030+
type: object
3031+
properties:
3032+
assets:
3033+
type: array
3034+
description: |-
3035+
The list of request objects, each containing parameters of an
3036+
asset for which related Incident IDs are to be returned
3037+
items:
3038+
type: object
3039+
description: The keys of an asset (`deployment_id`, `key`, `type`)
3040+
properties:
3041+
deployment_id:
3042+
type: string
3043+
description: |-
3044+
The ID of the deployment source as represented in the
3045+
deployments service (uppercase UUID)
3046+
key:
3047+
type: string
3048+
description: The ID of the asset
3049+
type:
3050+
type: string
3051+
description: A valid asset type, e.g. `deployment`, `vpc`, `host`
3052+
required:
3053+
- deployment_id
3054+
- key
3055+
- type
29993056
components:
30003057
securitySchemes:
30013058
x-aims-auth-token:

alsdkdefs/apis/remediations/examples.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5101,4 +5101,12 @@ DeleteAssetGroupsResponse:
51015101
- code: 201
51025102
operation: update_asset_group
51035103
name: Parent of PCI Assets
5104-
5104+
GetIncidentIdsExample:
5105+
value:
5106+
D155C4AA-3292-4C6A-8958-DE5CF318BEC9:host:/aws/us-east-1/i-1234abcd1234abcd:
5107+
- B4E537C1-A639-46A9-B02E-33003977A268
5108+
EFB2E093-E421-4D03-A70F-451F937ADC69
5109+
C5E9DE7F-901F-4753-8D29-12ED8C138092
5110+
D155C4AA-3292-4C6A-8958-DE5CF318BEC9:host:/aws/us-east-1/i-c764bf1fc87783f33:
5111+
- 96F49CD6-E890-4FBC-96A5-5AB3CA9A9581
5112+
EEF9863D-0146-4B06-A050-6FF01ECFDD64

alsdkdefs/apis/remediations/responses.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,20 @@ AssetGroupsBadRequest:
232232
type: string
233233
message:
234234
type: string
235-
required:
236-
- error_type
237-
- message
235+
errorinfo:
236+
type: object
237+
properties:
238+
error_id:
239+
type: string
240+
details:
241+
type: object
242+
properties:
243+
Limit:
244+
type: integer
245+
description:
246+
type: string
247+
code:
248+
type: string
238249
examples:
239250
Invalid Operation:
240251
value:
@@ -260,3 +271,11 @@ AssetGroupsBadRequest:
260271
value:
261272
error_type: bad_request
262273
message: "'properties.groups_match' is not one of the following allowed values: 'any', 'all'"
274+
Asset Group Limit Exceeded:
275+
value:
276+
errorinfo:
277+
error_id: "BC7AFFFD-A03C-4CEF-98BA-0959242E763B"
278+
details:
279+
Limit: 40
280+
description: "Number of asset groups exceeded."
281+
code: "asset_group_limit_exceeded"

alsdkdefs/apis/remediations/schemas.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,3 +1011,13 @@ AssetGroupDeleteResponse:
10111011
type: string
10121012
dry_run:
10131013
type: boolean
1014+
GetIncidentIdsResponse:
1015+
title: Get Incident IDs response
1016+
type: object
1017+
properties:
1018+
'{key}':
1019+
type: array
1020+
title: The combination of `deployment_id`, `type`, and `key` separated by `:`
1021+
items:
1022+
type: string
1023+
description: The list of Incident IDs for the specified asset

0 commit comments

Comments
 (0)