Skip to content

Commit 065bfaf

Browse files
author
cibot
committed
Definitions Update remediations
1 parent bef4acc commit 065bfaf

File tree

2 files changed

+115
-2
lines changed

2 files changed

+115
-2
lines changed

alsdkdefs/apis/remediations/assets_query.v1.yaml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,6 +1683,15 @@ paths:
16831683
description: |-
16841684
A list of asset types that determines the assets included in the individual scope. If an asset would be included in
16851685
multiple scopes, the scopes' allowed asset types are unioned together.
1686+
return_asset_types:
1687+
type: array
1688+
description: |-
1689+
A list of groupable asset types that limits the exploration of the asset model. The types specified in
1690+
this list, as well as their topological ancestor types, are the only ones that will be returned in the
1691+
resulting topology.assets rows.
1692+
items:
1693+
type: string
1694+
minLength: 1
16861695
x-codeSamples:
16871696
- lang: Shell
16881697
label: Topology Preview
@@ -1696,6 +1705,26 @@ paths:
16961705
"deployment:any",
16971706
"region.name:!eu-west-1"
16981707
]
1708+
}
1709+
]
1710+
}
1711+
EOF
1712+
- lang: Shell
1713+
label: Topology Preview (return_asset_types=host)
1714+
source: |-
1715+
curl "https://api.cloudinsight.alertlogic.com/assets_query/v1/19000001/topology/asset_group" \
1716+
-X POST -H "x-aims-auth-token: $TOKEN" -H "accept: application/json" -d@- << EOF
1717+
{
1718+
"scopes": [
1719+
{
1720+
"include": [
1721+
"deployment:any",
1722+
"region.name:!eu-west-1"
1723+
]
1724+
}
1725+
],
1726+
"return_asset_types": [
1727+
"host"
16991728
]
17001729
}
17011730
EOF
@@ -1708,7 +1737,9 @@ paths:
17081737
$ref: 'schemas.yaml#/TopologyPreviewResponse'
17091738
examples:
17101739
Topology Preview Example:
1711-
$ref: 'examples.yaml#/TopologyPreviewExample'
1740+
$ref: 'examples.yaml#/FullAssetGroupTopologyPreviewExample'
1741+
'Topology Preview Example (return_asset_types=host)':
1742+
$ref: 'examples.yaml#/HostAssetGroupTopologyPreviewExample'
17121743
"401":
17131744
$ref: 'responses.yaml#/Unauthorized'
17141745
"403":

alsdkdefs/apis/remediations/examples.yaml

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3313,7 +3313,7 @@ QueryTopologyOverviewExample:
33133313
- - host:/aws/us-east-1/host/web-1a-1
33143314
- image:/aws/us-east-1/image/ami-1
33153315
rows: 3
3316-
TopologyPreviewExample:
3316+
FullAssetGroupTopologyPreviewExample:
33173317
value:
33183318
topology:
33193319
assets:
@@ -3414,6 +3414,88 @@ TopologyPreviewExample:
34143414
threatiness: 22
34153415
type: vpc
34163416
rows: 9
3417+
HostAssetGroupTopologyPreviewExample:
3418+
value:
3419+
topology:
3420+
assets:
3421+
- - 814C2911-09BB-1005-9916-7831C1BAC182:deployment:/al/19000001/aws/814C2911-09BB-1005-9916-7831C1BAC182
3422+
- 814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-west-2
3423+
- - 814C2911-09BB-1005-9916-7831C1BAC182:deployment:/al/19000001/aws/814C2911-09BB-1005-9916-7831C1BAC182
3424+
- 814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/eu-west-1
3425+
- - 814C2911-09BB-1005-9916-7831C1BAC182:deployment:/al/19000001/aws/814C2911-09BB-1005-9916-7831C1BAC182
3426+
- 814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1
3427+
- 814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1
3428+
- - 814C2911-09BB-1005-9916-7831C1BAC182:deployment:/al/19000001/aws/814C2911-09BB-1005-9916-7831C1BAC182
3429+
- 814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/eu-west-1
3430+
- 814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/eu-west-1/vpc/vpc-1
3431+
- - 814C2911-09BB-1005-9916-7831C1BAC182:deployment:/al/19000001/aws/814C2911-09BB-1005-9916-7831C1BAC182
3432+
- 814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1
3433+
- 814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1
3434+
- 814C2911-09BB-1005-9916-7831C1BAC182:subnet:/aws/us-east-1/subnet/subnet-1a-web
3435+
- - 814C2911-09BB-1005-9916-7831C1BAC182:deployment:/al/19000001/aws/814C2911-09BB-1005-9916-7831C1BAC182
3436+
- 814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1
3437+
- 814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1
3438+
- 814C2911-09BB-1005-9916-7831C1BAC182:subnet:/aws/us-east-1/subnet/subnet-1a-web
3439+
- 814C2911-09BB-1005-9916-7831C1BAC182:host:/aws/us-east-1/host/web-1a-1
3440+
- - 814C2911-09BB-1005-9916-7831C1BAC182:deployment:/al/19000001/aws/814C2911-09BB-1005-9916-7831C1BAC182
3441+
- 814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1
3442+
- 814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1
3443+
- 814C2911-09BB-1005-9916-7831C1BAC182:host:/aws/us-east-1/host/web-1a-1
3444+
data:
3445+
814C2911-09BB-1005-9916-7831C1BAC182:host:/aws/us-east-1/host/web-1a-1:
3446+
alertlogic_agent: false
3447+
alertlogic_appliance: true
3448+
created_on: 1427317669928
3449+
group_membership: IN
3450+
key: "/aws/us-east-1/host/web-1a-1"
3451+
state: running
3452+
threat_level: 2
3453+
threatiness: 2
3454+
type: host
3455+
814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1:
3456+
created_on: 1427317669194
3457+
group_membership: IN
3458+
key: "/aws/us-east-1"
3459+
threat_level: 3
3460+
threatiness: 22
3461+
type: region
3462+
814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-west-2:
3463+
created_on: 1589381951438
3464+
group_membership: NOT_IN
3465+
key: "/aws/us-west-2"
3466+
threat_level: 0
3467+
threatiness: 0
3468+
type: region
3469+
814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/eu-west-1:
3470+
created_on: 1589381951438
3471+
group_membership: EXCLUDED
3472+
key: "/aws/eu-west-1"
3473+
threat_level: 0
3474+
threatiness: 0
3475+
type: region
3476+
814C2911-09BB-1005-9916-7831C1BAC182:subnet:/aws/us-east-1/subnet/subnet-1a-web:
3477+
created_on: 1427317669627
3478+
group_membership: IN
3479+
key: "/aws/us-east-1/subnet/subnet-1a-web"
3480+
threat_level: 2
3481+
threatiness: 8
3482+
type: subnet
3483+
814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1:
3484+
created_on: 1427317669270
3485+
group_membership: IN
3486+
key: "/aws/us-east-1/vpc/vpc-1"
3487+
threat_level: 3
3488+
threatiness: 22
3489+
type: vpc
3490+
814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/eu-west-1/vpc/vpc-2:
3491+
created_on: 1427317669270
3492+
group_membership: EXCLUDED
3493+
key: "/aws/eu-west-1/vpc/vpc-2"
3494+
threat_level: 3
3495+
threatiness: 22
3496+
type: vpc
3497+
rows: 7
3498+
34173499
DisposeSingleRemediationExample:
34183500
value:
34193501
assets:

0 commit comments

Comments
 (0)