Skip to content

Commit

Permalink
Definitions Update assets_query
Browse files Browse the repository at this point in the history
  • Loading branch information
cibot committed Mar 23, 2023
1 parent 3c39592 commit d01b411
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions alsdkdefs/apis/assets_query/assets_query.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ paths:
- lang: Shell
label: Get all assets for an account ID with pagination (continue)
source: |-
curl "https://api.cloudinsight.alertlogic.com/assets_query/v1/12345678/assets?continue=EEBBD0DF-B927-411B-B771-247D4C96F9AC" \
curl "https://api.cloudinsight.alertlogic.com/assets_query/v1/12345678/assets?continue=g2gDZAAXcGFnaW5hdGlvbl9jb250aW51YXRpb25sAAAABGgCbQAAABdsYXN0X2V2YWx1YXRlZF92ZXJ0aWNlc2wAAAABaANtAAAAJDdENUU2NkJFLTk4QzYtNDBBMi04QjA5LTVEQzRDMEZFRTY3N20AAAAEaG9zdG0AAAAnL2F3cy91cy13ZXN0LTIvaG9zdC9pLTA0N2FmMjAzYmZkMDY2ZTI4amgCbQAAAAp0b3BvX2NoYWlubQAAAAVmYWxzZWgCbQAAAAthc3NldF90eXBlc20AAAAEaG9zdGgCbQAAAAlwYWdlX3NpemVtAAAAAzIwMGpsAAAAAWgDbQAAACQ5OTY5RUM5OC1GM0RELTQwNDAtODZDNS02QTkwMTlFMkYwN0VtAAAABGhvc3RtAAAAJy9hd3MvdXMtZWFzdC0xL2hvc3QvaS0wZTNkMzkwYWM4YjYxZGNjYWo" \
-H "x-aims-auth-token: $TOKEN" -H "accept: application/json"
responses:
"200":
Expand Down Expand Up @@ -511,7 +511,7 @@ paths:
$ref: 'examples.yaml#/QueryAssetsTopoChainFalseExample'
asset_types=any & page_size=5:
$ref: 'examples.yaml#/QueryAssetsAssetTypesAnyWithPagination'
asset_types=any & continue=EEBBD0DF-B927-411B-B771-247D4C96F9AC:
asset_types=any & continue=g2gDZAAXcGFnaW5hdGlvbl9jb250aW51YXRpb25sAAAABGgCbQAAABdsYXN0X2V2YWx1YXRlZF92ZXJ0aWNlc2wAAAABaANtAAAAJDdENUU2NkJFLTk4QzYtNDBBMi04QjA5LTVEQzRDMEZFRTY3N20AAAAEaG9zdG0AAAAnL2F3cy91cy13ZXN0LTIvaG9zdC9pLTA0N2FmMjAzYmZkMDY2ZTI4amgCbQAAAAp0b3BvX2NoYWlubQAAAAVmYWxzZWgCbQAAAAthc3NldF90eXBlc20AAAAEaG9zdGgCbQAAAAlwYWdlX3NpemVtAAAAAzIwMGpsAAAAAWgDbQAAACQ5OTY5RUM5OC1GM0RELTQwNDAtODZDNS02QTkwMTlFMkYwN0VtAAAABGhvc3RtAAAAJy9hd3MvdXMtZWFzdC0xL2hvc3QvaS0wZTNkMzkwYWM4YjYxZGNjYWo:
$ref: 'examples.yaml#/QueryAssetsAssetTypesAnyWithPaginationContinue'
"400":
$ref: 'responses.yaml#/QueryAssetsBadRequestError'
Expand Down
4 changes: 2 additions & 2 deletions alsdkdefs/apis/assets_query/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ QueryAssetsAssetTypesAnyWithPagination:
key: /aws/us-east-1/subnet/subnet-01020304
account_id: "12345678"
rows: 5
continue: EEBBD0DF-B927-411B-B771-247D4C96F9AC
continue: g2gDZAAXcGFnaW5hdGlvbl9jb250aW51YXRpb25sAAAABGgCbQAAABdsYXN0X2V2YWx1YXRlZF92ZXJ0aWNlc2wAAAABaANtAAAAJDdENUU2NkJFLTk4QzYtNDBBMi04QjA5LTVEQzRDMEZFRTY3N20AAAAEaG9zdG0AAAAnL2F3cy91cy13ZXN0LTIvaG9zdC9pLTA0N2FmMjAzYmZkMDY2ZTI4amgCbQAAAAp0b3BvX2NoYWlubQAAAAVmYWxzZWgCbQAAAAthc3NldF90eXBlc20AAAAEaG9zdGgCbQAAAAlwYWdlX3NpemVtAAAAAzIwMGpsAAAAAWgDbQAAACQ5OTY5RUM5OC1GM0RELTQwNDAtODZDNS02QTkwMTlFMkYwN0VtAAAABGhvc3RtAAAAJy9hd3MvdXMtZWFzdC0xL2hvc3QvaS0wZTNkMzkwYWM4YjYxZGNjYWo
total_assets: 14
QueryAssetsAssetTypesAnyWithPaginationContinue:
value:
Expand All @@ -364,7 +364,7 @@ QueryAssetsAssetTypesAnyWithPaginationContinue:
key: /aws/us-east-1/subnet/subnet-01020304
account_id: "12345678"
rows: 5
continue: C446F70F-3E5F-465D-B743-69C28D06EF90
continue: g2gDZAAXcGFnaW5hdGlvbl9jb250aW51YXRpb25sAAAABGgCbQAAABdsYXN0X2V2YWx1YXRlZF92ZXJ0aWNlc2wAAAABaANtAAAAJDdENUU2NkJFLTk4QzYtNDBBMi04QjA5LTVEQzRDMEZFRTY3N20AAAAEaG9zdG0AAAAnL2F3cy91cy13ZXN0LTIvaG9zdC9pLTA0N2FmMjAzYmZkMDY2ZTI4amgCbQAAAAp0b3BvX2NoYWlubQAAAAVmYWxzZWgCbQAAAAthc3NldF90eXBlc20AAAAEaG9zdGgCbQAAAAlwYWdlX3NpemVtAAAAAzIwMGpsAAAAAWgDbQAAACQ5OTY5RUM5OC1GM0RELTQwNDAtODZDNS02QTkwMTlFMkYwN0VtAAAABGhvc3RtAAAAJy9hd3MvdXMtZWFzdC0xL2hvc3QvaS0wZTNkMzkwYWM4YjYxZGNjYWo
total_assets: 14
FindAssetAgentByUuidExample:
value:
Expand Down
6 changes: 3 additions & 3 deletions alsdkdefs/apis/assets_query/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,9 @@ ParamContinue:
in: query
name: continue
description: |-
A UUID returned from a previous call to GET assets. When provided to subsequent
GET assets calls, the next set of results and a new `continue` UUID will be
returned.
A continuation token returned from a previous call to GET assets.
When provided to subsequent GET assets calls, the next set of results and a new
`continue` token will be returned.
ParamPageSize:
schema:
type: integer
Expand Down
5 changes: 3 additions & 2 deletions alsdkdefs/apis/assets_query/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ QueryAssetsResponse:
continue:
type: string
title: |-
A UUID to be used for subsequent GET assets calls to get the next set of results.
Only present when there are more rows to paginate through.
A continuation token returned from a previous call to GET assets.
When provided to subsequent GET assets calls, the next set of results and a new
`continue` token will be returned.
total_assets:
type: integer
title: |-
Expand Down

0 comments on commit d01b411

Please sign in to comment.