Skip to content

Commit 518dd03

Browse files
author
cibot
committed
Definitions Update assets_query
1 parent e76b0d3 commit 518dd03

File tree

2 files changed

+43
-14
lines changed

2 files changed

+43
-14
lines changed

alsdkdefs/apis/assets_query/examples.yaml

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3512,33 +3512,42 @@ FullAssetGroupTopologyPreviewExample:
35123512
- 814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1
35133513
- 814C2911-09BB-1005-9916-7831C1BAC182:/aws/us-west-2/image/ami-2
35143514
data:
3515+
814C2911-09BB-1005-9916-7831C1BAC182:deployment:/al/19000001/deployment/aws/814C2911-09BB-1005-9916-7831C1BAC182:
3516+
created_on: 1427317669928
3517+
deployment_id: 814C2911-09BB-1005-9916-7831C1BAC182
3518+
deployment_name: Production
3519+
group_membership: EXPLICIT_IN
3520+
key: "/al/19000001/deployment/aws/814C2911-09BB-1005-9916-7831C1BAC182"
3521+
threat_level: 2
3522+
threatiness: 48
3523+
type: deployment
35153524
814C2911-09BB-1005-9916-7831C1BAC182:host:/aws/us-east-1/host/web-1a-1:
35163525
alertlogic_agent: false
35173526
alertlogic_appliance: true
35183527
created_on: 1427317669928
3519-
group_membership: IN
3528+
group_membership: INHERIT_IN
35203529
key: "/aws/us-east-1/host/web-1a-1"
35213530
state: running
35223531
threat_level: 2
35233532
threatiness: 2
35243533
type: host
35253534
814C2911-09BB-1005-9916-7831C1BAC182:image:/aws/us-east-1/image/ami-1:
35263535
created_on: 1427317669792
3527-
group_membership: IN
3536+
group_membership: INHERIT_IN
35283537
key: "/aws/us-east-1/image/ami-1"
35293538
threat_level: 3
35303539
threatiness: 14
35313540
type: image
35323541
814C2911-09BB-1005-9916-7831C1BAC182:image:/aws/us-west-2/image/ami-2:
35333542
created_on: 1427317669792
3534-
group_membership: IN
3543+
group_membership: INHERIT_IN
35353544
key: "/aws/us-west-2/image/ami-2"
35363545
threat_level: 3
35373546
threatiness: 14
35383547
type: image
35393548
814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1:
35403549
created_on: 1427317669194
3541-
group_membership: IN
3550+
group_membership: INHERIT_IN
35423551
key: "/aws/us-east-1"
35433552
membership_counts:
35443553
host:
@@ -3580,7 +3589,7 @@ FullAssetGroupTopologyPreviewExample:
35803589
type: region
35813590
814C2911-09BB-1005-9916-7831C1BAC182:subnet:/aws/us-east-1/subnet/subnet-1a-web:
35823591
created_on: 1427317669627
3583-
group_membership: IN
3592+
group_membership: INHERIT_IN
35843593
key: "/aws/us-east-1/subnet/subnet-1a-web"
35853594
membership_counts:
35863595
host:
@@ -3591,7 +3600,7 @@ FullAssetGroupTopologyPreviewExample:
35913600
type: subnet
35923601
814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1:
35933602
created_on: 1427317669270
3594-
group_membership: IN
3603+
group_membership: INHERIT_IN
35953604
key: "/aws/us-east-1/vpc/vpc-1"
35963605
membership_counts:
35973606
host:
@@ -3605,7 +3614,7 @@ FullAssetGroupTopologyPreviewExample:
36053614
type: vpc
36063615
814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/eu-west-1/vpc/vpc-2:
36073616
created_on: 1427317669270
3608-
group_membership: EXCLUDED
3617+
group_membership: EXPLICIT_EXCLUDED
36093618
key: "/aws/eu-west-1/vpc/vpc-2"
36103619
membership_counts: {}
36113620
threat_level: 3
@@ -3640,19 +3649,28 @@ HostAssetGroupTopologyPreviewExample:
36403649
- 814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1
36413650
- 814C2911-09BB-1005-9916-7831C1BAC182:host:/aws/us-east-1/host/web-1a-1
36423651
data:
3652+
814C2911-09BB-1005-9916-7831C1BAC182:deployment:/al/19000001/deployment/aws/814C2911-09BB-1005-9916-7831C1BAC182:
3653+
created_on: 1427317669928
3654+
deployment_id: 814C2911-09BB-1005-9916-7831C1BAC182
3655+
deployment_name: Production
3656+
group_membership: EXPLICIT_IN
3657+
key: "/al/19000001/deployment/aws/814C2911-09BB-1005-9916-7831C1BAC182"
3658+
threat_level: 2
3659+
threatiness: 48
3660+
type: deployment
36433661
814C2911-09BB-1005-9916-7831C1BAC182:host:/aws/us-east-1/host/web-1a-1:
36443662
alertlogic_agent: false
36453663
alertlogic_appliance: true
36463664
created_on: 1427317669928
3647-
group_membership: IN
3665+
group_membership: EXPLICIT_IN
36483666
key: "/aws/us-east-1/host/web-1a-1"
36493667
state: running
36503668
threat_level: 2
36513669
threatiness: 2
36523670
type: host
36533671
814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1:
36543672
created_on: 1427317669194
3655-
group_membership: IN
3673+
group_membership: EXPLICIT_IN
36563674
key: "/aws/us-east-1"
36573675
membership_counts:
36583676
host:
@@ -3688,7 +3706,7 @@ HostAssetGroupTopologyPreviewExample:
36883706
type: region
36893707
814C2911-09BB-1005-9916-7831C1BAC182:subnet:/aws/us-east-1/subnet/subnet-1a-web:
36903708
created_on: 1427317669627
3691-
group_membership: IN
3709+
group_membership: EXPLICIT_IN
36923710
key: "/aws/us-east-1/subnet/subnet-1a-web"
36933711
membership_counts:
36943712
host:
@@ -3699,7 +3717,7 @@ HostAssetGroupTopologyPreviewExample:
36993717
type: subnet
37003718
814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1:
37013719
created_on: 1427317669270
3702-
group_membership: IN
3720+
group_membership: EXPLICIT_IN
37033721
key: "/aws/us-east-1/vpc/vpc-1"
37043722
membership_counts:
37053723
host:
@@ -3713,7 +3731,7 @@ HostAssetGroupTopologyPreviewExample:
37133731
type: vpc
37143732
814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/eu-west-1/vpc/vpc-2:
37153733
created_on: 1427317669270
3716-
group_membership: EXCLUDED
3734+
group_membership: EXPLICIT_EXCLUDED
37173735
key: "/aws/eu-west-1/vpc/vpc-2"
37183736
threat_level: 3
37193737
threatiness: 22

alsdkdefs/apis/assets_query/schemas.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,14 +472,25 @@ TopologyPreviewResponse:
472472
473473
1. A `group_membership` property that must be consulted to determine membership in the group. Possible values are described below:
474474
475-
`IN` - The asset is included in the group by scope definition.
475+
`EXPLICIT_IN` - The asset is included in the group by scope definition. This status is returned for the first assets
476+
in the asset topology that match all of the inclusion filters for scope in scoped groups, and the only `IN` membership type for
477+
groups with nested groups.
478+
479+
`INHERIT_IN` - The asset is included in the group by scope definition. This status is returned for any topological successor
480+
asset of an asset with the `EXPLICIT_IN` group membership that meets the exclusion criteria. This membership type is not
481+
returned for assets in a group with nested groups.
476482
477483
`CONTAINS` - The asset does not meet the full criteria for inclusion in the group, but contains at least one successor asset in the group.
478484
479485
`CAN_CONTAIN` - The asset does not meet the full criteria for inclusion in the group. The scope definition does allow this asset to
480486
potentially include future successors in the group.
481487
482-
`EXCLUDED` - The asset is excluded from the group by scope definition.
488+
`EXPLICIT_EXCLUDED` - The asset is excluded from the group by scope definition. This status is returned for the first assets in
489+
the asset topology that match any exclusion filters for scope in scoped groups.
490+
491+
`INHERIT_EXCLUDED` - The asset is excluded from the group by scope definition. This status is returned for any topological successor
492+
asset of an asset with the `EXPLICIT_EXCLUDED` group membership. This membership type is not returned for assets in a group with nested
493+
groups.
483494
484495
`NOT_IN` - The asset does not meet all criteria for inclusion in the group by scope definition, but is not explicitly excluded.
485496

0 commit comments

Comments
 (0)