Using an API credentials file with the API wrappers
You can use an API credentials file to provide your HMAC credentials to the Veracode API wrappers.
By default, the Veracode API wrappers expect an API credentials file. After you configure a credentials file, when you run a command, the API wrappers use the API credentials in the file. You do not need to specify your credentials at the command line.
If your API credentials file contains more than one API ID and key pair, the API wrappers use the API credentials with the profile name [default]:
[default]
veracode_api_key_id = Your API ID
veracode_api_key_secret = Your API key
If the credentials file does not contain a [default] profile, or the credentials file is empty, your command fails.
If your API credentials file contains multiple profiles, you can include the -credprofile parameter to specify the profile to use.
For example:
java -jar vosp-api-wrappers-java-<version>.jar -credprofile [MyProfile1] -action createapp -appname <application name> -criticality veryhigh
Including both the credprofile parameter and the vid or vkey parameters isn't supported.