File tree Expand file tree Collapse file tree 4 files changed +81
-2
lines changed
alsdkdefs/apis/assets_query Expand file tree Collapse file tree 4 files changed +81
-2
lines changed Original file line number Diff line number Diff line change @@ -408,6 +408,29 @@ paths:
408408 $ref : ' responses.yaml#/UnavailableError'
409409 security :
410410 - x-aims-auth-token : []
411+ put :
412+ operationId : asset_group
413+ summary : Asset Group (Delete)
414+ description : |-
415+ ### Delete Asset Group (operation:delete_asset_group)
416+ Delete an existing `asset-group` asset.
417+ tags :
418+ - Asset Groups
419+ requestBody :
420+ content :
421+ application/json :
422+ schema :
423+ $ref : ' schemas.yaml#/DeleteAssetGroupRequestBody'
424+ examples :
425+ Delete Asset Group Request Body Example :
426+ $ref : ' examples.yaml#/DeleteAssetGroupRequestBodyExample'
427+ responses :
428+ " 204 " :
429+ description : No Content (Delete Asset Group successful response)
430+ " 400 " :
431+ $ref : ' responses.yaml#/AssetGroupsBadRequest'
432+ " 404 " :
433+ $ref : ' responses.yaml#/NotFound'
411434 /assets_query/v1/{account_id}/deployments/{deployment_id}/assets :
412435 parameters :
413436 - $ref : ' parameters.yaml#/UrlParamAccountId'
Original file line number Diff line number Diff line change @@ -4798,3 +4798,8 @@ AssetTypeSchemaResponseExample:
47984798 topological_successors_list : [ ]
47994799 unscoped_properties : [ ]
48004800 vulnerable : true
4801+ DeleteAssetGroupRequestBodyExample :
4802+ value :
4803+ operation : delete_asset_group
4804+ scope : user
4805+ name : PCI Assets
Original file line number Diff line number Diff line change @@ -148,3 +148,26 @@ AssetDetailsConflict:
148148 value :
149149 error_type : conflict
150150 message : Multiple assets match
151+ AssetGroupsBadRequest :
152+ description : ' Asset Groups `Bad Request`'
153+ content :
154+ application/json :
155+ schema :
156+ type : object
157+ properties :
158+ error_type :
159+ type : string
160+ message :
161+ type : string
162+ required :
163+ - error_type
164+ - message
165+ examples :
166+ InvalidOperation :
167+ value :
168+ error_type : bad_request
169+ message : invalid operation
170+ ExistingReference :
171+ value :
172+ error_type : bad_request
173+ message : Asset Group is still reference in these groups
Original file line number Diff line number Diff line change @@ -16,12 +16,25 @@ AssetName:
1616Filters :
1717 type : array
1818 description : Filters
19+ GroupName :
20+ type : string
21+ description : |-
22+ The unique name for the `asset-group` asset, such as `my-group`. This will be the same
23+ as the asset `key`.
1924ItemId :
2025 type : string
2126 description : Item ID
2227RemediationId :
2328 type : string
2429 description : Remediation ID
30+ Scope :
31+ type : string
32+ description : |-
33+ The declaring software's authority or area of function. For example, the scan subsystem
34+ declaring vulnerabilities passes scope `"scan"`, and the UI declaring a credential for
35+ an asset passes scope `"config"`. `cloud_explorer`, responsible for discovering
36+ deployments (environments), passes `"aws"`. The scope must match the regex pattern
37+ `[0-9A-Za-z-]`.
2538State :
2639 type : string
2740 description : The remediation-item state.
@@ -705,8 +718,23 @@ AssetTypesSchemaResponse:
705718 - type : object
706719 count :
707720 type : number
708-
709721AssetTypeSchemaResponse :
710722 title : Asset Type Schema Response
711723 type : object
712-
724+ DeleteAssetGroupRequestBody :
725+ title : Delete Asset Group Request Body
726+ type : object
727+ properties :
728+ operation :
729+ type : string
730+ description : This must be `delete_asset_group`.
731+ enum :
732+ - delete_asset_group
733+ name :
734+ $ref : ' #/GroupName'
735+ scope :
736+ $ref : ' #/Scope'
737+ required :
738+ - operation
739+ - name
740+ - scope
You can’t perform that action at this time.
0 commit comments