Skip to content

Commit d2b0590

Browse files
author
cibot
committed
Definitions Update aemanual
1 parent 03085c5 commit d2b0590

File tree

1 file changed

+156
-0
lines changed

1 file changed

+156
-0
lines changed
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
openapi: 3.0.2
2+
info:
3+
title: aemanual
4+
version: '1.0'
5+
description: AEMANUAL
6+
contact:
7+
8+
servers:
9+
- url: 'https://aemanual.mdr.global.alertlogic.com'
10+
x-alertlogic-global-endpoint: production
11+
description: production
12+
- url: 'https://aemanual.mdr.product.dev.alertlogic.com'
13+
x-alertlogic-global-endpoint: integration
14+
description: integration
15+
paths:
16+
/healthcheck:
17+
get:
18+
summary: Your GET endpoint
19+
tags:
20+
- healthcheck
21+
responses:
22+
'200':
23+
description: OK
24+
operationId: get_healthcheck
25+
description: Check health status of the service.
26+
x-amazon-apigateway-integration:
27+
uri:
28+
'Fn::Sub': 'arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${AEManualGetHealthcheckFunction.Arn}/invocations'
29+
'/aemanual/v1/{account_id}/create':
30+
post:
31+
summary: Post a manual incident
32+
operationId: create_observation
33+
responses:
34+
'200':
35+
description: OK
36+
content:
37+
application/json:
38+
schema:
39+
type: object
40+
properties:
41+
status:
42+
type: string
43+
message:
44+
type: string
45+
tags:
46+
- aemanual
47+
description: POSTS an observable to AEPUBLISH to have it create a manual incident for the SoC
48+
x-amazon-apigateway-integration:
49+
uri:
50+
'Fn::Sub': 'arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${AEManualCreateObservationFunction.Arn}/invocations'
51+
security:
52+
- aims_request_authorizer: []
53+
requestBody:
54+
content:
55+
application/json:
56+
schema:
57+
type: object
58+
properties:
59+
customer_id:
60+
type: integer
61+
description: The Account (customer) Id
62+
summary:
63+
type: string
64+
description: The Incident Summary
65+
description:
66+
type: string
67+
description: The Incident Description
68+
classification:
69+
type: string
70+
description: The Incident Classification
71+
time_frame:
72+
type: integer
73+
description: The duration (in minutes)
74+
facts:
75+
type: array
76+
description: A list of message_id and type (associated events or logs)
77+
items:
78+
$ref: '#/components/schemas/FactModel'
79+
correlation:
80+
type: array
81+
description: Only for MANI
82+
items:
83+
type: string
84+
datacenter:
85+
type: string
86+
description: 'The datacenter that facts are coming from (Ashburn, Denver, Integration, Newport, etc)'
87+
sources:
88+
type: array
89+
description: 'The Incident Source (MANL for log, MANI for IDS)'
90+
items:
91+
type: string
92+
enum:
93+
- MANL
94+
- MANI
95+
keyedon_value:
96+
type: string
97+
description: The base_incident_keyedon_value
98+
gen_type:
99+
type: string
100+
description: 'The generator type (analytic, guardduty, log_correlation, etc)'
101+
threat_rating:
102+
type: string
103+
description: 'The threat rating for the incident (Low, Medium, High, Critical)'
104+
enum:
105+
- Low
106+
- Medium
107+
- Hihg
108+
- Critical
109+
required:
110+
- customer_id
111+
- summary
112+
- description
113+
- classification
114+
- time_frame
115+
- facts
116+
- correlation
117+
- datacenter
118+
parameters:
119+
- schema:
120+
type: string
121+
name: account_id
122+
in: path
123+
description: AIMS Account ID
124+
required: true
125+
components:
126+
securitySchemes:
127+
aims_request_authorizer:
128+
type: apiKey
129+
name: X-AIMS-Auth-Token
130+
in: header
131+
x-amazon-apigateway-authtype: custom
132+
x-amazon-apigateway-authorizer:
133+
authorizerUri:
134+
'Fn::Sub': 'arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${AIMSTokenAuthorizerFunction.Arn}/invocations'
135+
authorizerResultTtlInSeconds: 300
136+
identitySource: 'method.request.header.X-AIMS-Auth-Token, context.path'
137+
type: request
138+
schemas:
139+
FactModel:
140+
title: FactModel
141+
type: object
142+
properties:
143+
message:
144+
type: array
145+
items:
146+
type: object
147+
properties:
148+
id:
149+
type: string
150+
type:
151+
type: string
152+
tags:
153+
- name: aemanual
154+
description: aemanual operations
155+
- name: healthcheck
156+
description: healthcheck operations

0 commit comments

Comments
 (0)