Viewing API Credentials Expiration with the Identity API
This use case scenario provides the Identity REST API commands for viewing the expiration date for Veracode API credentials.
View the Expiration Date for Your Account
Use the following command to view the expiration date and time for your API credentials:
http --auth-type=veracode_hmac GET "https://api.veracode.com/api/authn/v2/api_credentials"
View the Expiration Date By API ID
Use the following command to view credentials expiration information for a specific API ID:
http --auth-type=veracode_hmac GET "https://api.veracode.com/api/authn/v2/api_credentials/{apiCredsId}"
View the Expiration Date for an API User
note
To use this command, you must be the administrator for the specified user.
Use the following command to view the current API credentials and their expiration for the API user you specify for userId
:
http --auth-type=veracode_hmac --json GET "https://api.veracode.com/api/authn/v2/api_credentials/user_id/{userId}"
You must include the --json
parameter to force the command to send the Content-Type: application/json
in the HTTP header.