The ASM DEV team proposed to use the new API (v3).
In the new API (v3) you have to use location IDs instead. The locations can be retrieved by the GET /locations AP call:
You can try the following command.
curl -X GET "https://api.asm.saas.broadcom.com/v3/locations/public" -H "accept: application/json" -H "Authorization: Basic YXBtY21zdXXXXXXXXXXXXXXXXXXXXXXXXXXXXX6JHUmJjBydDE="
You need to use your own Authorization string.
Here is how you can get the Authorization string for your account.
Go to https://api.asm.saas.broadcom.com/v3
use your login and API password.
2- Execute: Get api-token
once successful, it will have Authorization: Basic <string> in the responses.
copy the string in the Authorization: Basic in the above curl command.
Run the curl command.