create_api_key

12.1 and later This command creates an API key for a Guardium user.

GuardAPI syntax

create_api_key parameter=value

Parameters

Parameter Value type Description
name String Required. The name of the API key must not contain the "-" character.
username String If not specified, the username is set to the logged-in user. If specified, the logged-in user must have the accessmgr role to associate the API key to the username.

GuardAPI example

The following example shows the command to create an API key VAScanner_IT for the admin user.
grdapi create_api_key name=VAScanner_IT username=admin