Authentication commands (Linux™ and macOS)
Use authentication commands to log in to the ASoC service.
appscan
Syntax:
appscan
-P <key_secret> -u <key_id> -persist
Description:
Log in to the ASoC service on Cloud Marketplace using a generated API key.
api_login
command is used for
logging in from the CLI to the ASoC service on Cloud
Marketplace only. When you log in to the service, an encrypted key file that is named
cli.token is saved to the .appscan
folder of your
home directory. This token file is then referred to by other commands and
actions when they interact with the ASoC service. This token file expires 2
hours after it is created. After it expires, you will need to log in to the service again to
continue with further commands or actions - or you can include the -persist
option
when logging in. When this option is used, the Command Line Utility will automatically attempt to reauthenticate to the service when the token expires.
Required options:
-P
: Specify-P <key_secret>
, where<key_secret>
is the Key Secret that was created when you generated an API key.-u
: Specify-u <key_id>
, where<key_id>
is the Key Id that was created when you generated an API key.
Optional flags/settings:
-persist
: Automatically attempt to reauthenticate to the service when the login token file expires.
appscan
Syntax:
appscan
Description:
Log in to the ASoC service on HCL Cloud Marketplace with your ASoC credentials.
scx_login
command is used for
logging in from the CLI to the ASoC service on Cloud
Marketplace only. When you log in to the service, an encrypted key file that is named
cli.token is saved to the .appscan
folder of your
home directory. This token file is then referred to by other commands and
actions when they interact with the ASoC service. This token file expires 2
hours after it is created. After it expires, you will need to log in to the service again to
continue with further commands or actions - or you can include the -persist
option
when logging in. When this option is used, the Command Line Utility will automatically attempt to reauthenticate to the service when the token expires.
Required options:
-P
: Specify-P <password>
, where<password>
is the password that you specified when you registered for the ASoC service.-u
: Specify-u <user_name>
, where<user_name>
is the email address that you specified when you registered for the ASoC service.
Optional flags/settings:
-persist
: Automatically attempt to reauthenticate to the service when the login token file expires.