API Examples - List ASM Projects using PowerShell and cURL

The following two examples can be used as a reference for basic calls to the ASM API.  

In both examples, the keys are fabricated and shown for the purpose of demonstrating how to correctly set the headers for each call.

 

 

curl https://asm-api.advantage.mandiant.com/api/v1/projects -H 'INTRIGUE_ACCESS_KEY: myaccesskey' -H 'INTRIGUE_SECRET_KEY: mysecretkey'

 

 

Invoke-WebRequest http://asm-api.advantage.mandiant.com/api/v1/projects -Headers @{'INTRIGUE_ACCESS_KEY' = 'myaccesskey'; 'INTRIGUE_SECRET_KEY' = 'mysecretkey'} -UseBasicParsing

 

 

 

 

 

1 0 46