@@ -477,6 +477,31 @@ components:
477
477
schema:
478
478
$ref: '#/components/schemas/APIErrorResponse'
479
479
description: Conflict
480
+ FindingsBadRequestResponse:
481
+ content:
482
+ application/json:
483
+ schema:
484
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
485
+ description: 'Bad Request: The server cannot process the request due to invalid
486
+ syntax in the request.'
487
+ FindingsForbiddenResponse:
488
+ content:
489
+ application/json:
490
+ schema:
491
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
492
+ description: 'Forbidden: Access denied'
493
+ FindingsNotFoundResponse:
494
+ content:
495
+ application/json:
496
+ schema:
497
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
498
+ description: 'Not Found: The requested finding cannot be found.'
499
+ FindingsTooManyRequestsResponse:
500
+ content:
501
+ application/json:
502
+ schema:
503
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
504
+ description: 'Too many requests: The rate limit set by the API has been exceeded.'
480
505
ForbiddenResponse:
481
506
content:
482
507
application/json:
@@ -4520,34 +4545,6 @@ components:
4520
4545
type: string
4521
4546
x-enum-varnames:
4522
4547
- FINDING
4523
- FindingsErrorItem:
4524
- description: API error response body
4525
- properties:
4526
- detail:
4527
- description: A human-readable explanation specific to this occurrence of
4528
- the error.
4529
- example: attribute "muted" is required
4530
- type: string
4531
- status:
4532
- description: Status code of the response.
4533
- example: '400'
4534
- type: string
4535
- title:
4536
- description: Short human-readable summary of the error.
4537
- example: Bad Request
4538
- type: string
4539
- type: object
4540
- FindingsErrorResponse:
4541
- description: API error response.
4542
- properties:
4543
- errors:
4544
- description: A list of errors.
4545
- items:
4546
- $ref: '#/components/schemas/FindingsErrorItem'
4547
- type: array
4548
- required:
4549
- - errors
4550
- type: object
4551
4548
FormulaLimit:
4552
4549
description: Message for specifying limits to the number of values returned
4553
4550
by a query.
@@ -6839,6 +6836,34 @@ components:
6839
6836
type: string
6840
6837
type: array
6841
6838
type: object
6839
+ JSONAPIErrorItem:
6840
+ description: API error response body
6841
+ properties:
6842
+ detail:
6843
+ description: A human-readable explanation specific to this occurrence of
6844
+ the error.
6845
+ example: Missing required attribute in body
6846
+ type: string
6847
+ status:
6848
+ description: Status code of the response.
6849
+ example: '400'
6850
+ type: string
6851
+ title:
6852
+ description: Short human-readable summary of the error.
6853
+ example: Bad Request
6854
+ type: string
6855
+ type: object
6856
+ JSONAPIErrorResponse:
6857
+ description: API error response.
6858
+ properties:
6859
+ errors:
6860
+ description: A list of errors.
6861
+ items:
6862
+ $ref: '#/components/schemas/JSONAPIErrorItem'
6863
+ type: array
6864
+ required:
6865
+ - errors
6866
+ type: object
6842
6867
JiraIntegrationMetadata:
6843
6868
description: Incident integration metadata for the Jira integration.
6844
6869
properties:
@@ -20715,13 +20740,16 @@ paths:
20715
20740
can also use the negation operator on strings. For example, use `filter[resource_type]=-aws*`
20716
20741
to filter for any non-AWS resources.\n\nThe operator must come after the equal
20717
20742
sign. For example, to filter with the `>=` operator, add the operator after
20718
- the equal sign: `filter[evaluation_changed_at]=>=1678809373257`.\n\n### Response\n\nThe
20719
- response includes an array of finding objects, pagination metadata, and a
20720
- count of items that match the query.\n\nEach finding object contains the following:\n\n-
20721
- The finding ID that can be used in a `GetFinding` request to retrieve the
20722
- full finding details.\n- Core attributes, including status, evaluation, high-level
20723
- resource details, muted state, and rule details.\n- `evaluation_changed_at`
20724
- and `resource_discovery_date` time stamps.\n- An array of associated tags.\n"
20743
+ the equal sign: `filter[evaluation_changed_at]=>=1678809373257`.\n\nQuery
20744
+ parameters must be only among the documented ones and with values of correct
20745
+ types. Duplicated query parameters (e.g. `filter[status]=low&filter[status]=info`)
20746
+ are not allowed.\n\n### Response\n\nThe response includes an array of finding
20747
+ objects, pagination metadata, and a count of items that match the query.\n\nEach
20748
+ finding object contains the following:\n\n- The finding ID that can be used
20749
+ in a `GetFinding` request to retrieve the full finding details.\n- Core attributes,
20750
+ including status, evaluation, high-level resource details, muted state, and
20751
+ rule details.\n- `evaluation_changed_at` and `resource_discovery_date` time
20752
+ stamps.\n- An array of associated tags.\n"
20725
20753
operationId: ListFindings
20726
20754
parameters:
20727
20755
- description: Limit the number of findings returned. Must be <= 1000.
@@ -20821,17 +20849,13 @@ paths:
20821
20849
$ref: '#/components/schemas/ListFindingsResponse'
20822
20850
description: OK
20823
20851
'400':
20824
- content:
20825
- application/json:
20826
- schema:
20827
- $ref: '#/components/schemas/APIErrorResponse'
20828
- description: Bad Request
20852
+ $ref: '#/components/responses/FindingsBadRequestResponse'
20829
20853
'403':
20830
- $ref: '#/components/responses/ForbiddenResponse '
20854
+ $ref: '#/components/responses/FindingsForbiddenResponse '
20831
20855
'404':
20832
- $ref: '#/components/responses/NotFoundResponse '
20856
+ $ref: '#/components/responses/FindingsNotFoundResponse '
20833
20857
'429':
20834
- $ref: '#/components/responses/TooManyRequestsResponse '
20858
+ $ref: '#/components/responses/FindingsTooManyRequestsResponse '
20835
20859
security:
20836
20860
- apiKeyAuth: []
20837
20861
appKeyAuth: []
@@ -20876,17 +20900,13 @@ paths:
20876
20900
$ref: '#/components/schemas/GetFindingResponse'
20877
20901
description: OK
20878
20902
'400':
20879
- content:
20880
- application/json:
20881
- schema:
20882
- $ref: '#/components/schemas/APIErrorResponse'
20883
- description: Bad Request
20903
+ $ref: '#/components/responses/FindingsBadRequestResponse'
20884
20904
'403':
20885
- $ref: '#/components/responses/ForbiddenResponse '
20905
+ $ref: '#/components/responses/FindingsForbiddenResponse '
20886
20906
'404':
20887
- $ref: '#/components/responses/NotFoundResponse '
20907
+ $ref: '#/components/responses/FindingsNotFoundResponse '
20888
20908
'429':
20889
- $ref: '#/components/responses/TooManyRequestsResponse '
20909
+ $ref: '#/components/responses/FindingsTooManyRequestsResponse '
20890
20910
security:
20891
20911
- apiKeyAuth: []
20892
20912
appKeyAuth: []
@@ -20934,39 +20954,27 @@ paths:
20934
20954
$ref: '#/components/schemas/MuteFindingResponse'
20935
20955
description: OK
20936
20956
'400':
20937
- content:
20938
- application/json:
20939
- schema:
20940
- $ref: '#/components/schemas/FindingsErrorResponse'
20941
- description: 'Bad Request: The server cannot process the request due to
20942
- invalid syntax in the request.'
20957
+ $ref: '#/components/responses/FindingsBadRequestResponse'
20958
+ '403':
20959
+ $ref: '#/components/responses/FindingsForbiddenResponse'
20943
20960
'404':
20944
- content:
20945
- application/json:
20946
- schema:
20947
- $ref: '#/components/schemas/FindingsErrorResponse'
20948
- description: 'Not Found: The requested finding cannot be found.'
20961
+ $ref: '#/components/responses/FindingsNotFoundResponse'
20949
20962
'409':
20950
20963
content:
20951
20964
application/json:
20952
20965
schema:
20953
- $ref: '#/components/schemas/FindingsErrorResponse '
20966
+ $ref: '#/components/schemas/JSONAPIErrorResponse '
20954
20967
description: 'Resource Conflict: The finding has already been muted or unmuted
20955
20968
within the last 60 seconds.'
20956
20969
'422':
20957
20970
content:
20958
20971
application/json:
20959
20972
schema:
20960
- $ref: '#/components/schemas/FindingsErrorResponse '
20973
+ $ref: '#/components/schemas/JSONAPIErrorResponse '
20961
20974
description: 'Invalid Request: The server understands the request syntax
20962
20975
but cannot process it due to invalid data.'
20963
20976
'429':
20964
- content:
20965
- application/json:
20966
- schema:
20967
- $ref: '#/components/schemas/FindingsErrorResponse'
20968
- description: 'Too many requests: The rate limit set by the API has been
20969
- exceeded.'
20977
+ $ref: '#/components/responses/FindingsTooManyRequestsResponse'
20970
20978
security:
20971
20979
- apiKeyAuth: []
20972
20980
appKeyAuth: []
0 commit comments