...
Code Block |
---|
curl -X POST 'https:///prod-horizon.appspot.com//public/v2/iac_scans' \
--header 'Authorization: Session ABCACBA=' \
response:
class IacScansResponse(BasePaginatedResponse):
iac_scans: List[IacScanSummaryField]
class IacScanSummaryField:
id: UUID
date_created: datetime
status: IacScanStatusEnum
scan_type: IacScanTypeEnum
scanned_files_name: List[str]
issue_count: int |
...
Code Block |
---|
pipelines:
tags:
'*':
- step:
script:
- |
curl -X POST 'https://api.securetheorem.com/apis/devops/v1/iac_scans' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: APIKey $DATATHEOREM_API_RESULT_API_KEY' \
--form 'file=@"terraform_example_configuration:file.tf"' \
--form 'scan_type="TERRAFORM"' |
...