Skip to main content

Import Descriptions

Import a RSA G&L description file sent as the request body.

POST https://instance.securid.com/aveksa/command.submit?cmd=importDescriptions

note

The format parameter controls the input file format (xml or csv), not the response format. The response is always returned as key=value pairs regardless of the value passed.

The command does not accept format=json.

Request

Parameters

importDescriptions
formatxml - (Default) Input file is in XML format.

csv - Input file is in comma-separated format. See Body for the required CSV column structure.
behaviorDetermines what happens when the import file contains descriptions that already exist.

skip - Leave existing descriptions unchanged and skip them.

overwrite - Replace existing descriptions with the imported values.

fail - (Default) Abort the import if any existing description is found.
filenameThe filename in the import directory on the G&L server. The import directory is specified on the Web Services configuration page. Not recommended. Send the file as the request body instead.
appscopetrue - The CSV file includes an application scope column.

false - (Default) The CSV file does not include an application scope column.

Headers

Bearer token
Acceptapplication/json
Content-Typeapplication/xml

Body

Send the descriptions file as the raw request body.

XML format (format=xml)

The root element is <BusinessDescriptions>. Each <BusinessDescription> element describes one description entry.

<BusinessDescriptions>
<BusinessDescription type="Application" exactmatch="true" filter="AppName">
<AltName>Application Display Name</AltName>
<Tooltip/>
<LongDesc/>
<HelpURL/>
</BusinessDescription>
<BusinessDescription type="Entitlement" exactmatch="true" filter="Entitlement Name">
<AltName>Entitlement Display Name</AltName>
<Tooltip/>
<LongDesc>Description text</LongDesc>
<HelpURL/>
</BusinessDescription>
<BusinessDescription type="GlobalRole" exactmatch="true" application="RoleBS" filter="Role Name">
<AltName>Role Display Name</AltName>
<Tooltip/>
<LongDesc/>
<HelpURL/>
</BusinessDescription>
</BusinessDescriptions>

Valid type attribute values: Application, ApplicationRole, Entitlement, GlobalRole, UserGroup

CSV format (format=csv)

The first row must be a header row with these columns (in any order):

TYPE,FILTER,EXACTMATCH,ALT_NAME,TOOLTIP,LONG_DESC,HELP_URL
Application/Directory,AppName,true,Application Display Name,,,
Entitlement,Entitlement Name,true,Entitlement Display Name,,Description text,

Valid TYPE column values: Application/Directory, ApplicationRole, Entitlement, GlobalRole, UserGroup

Response

Parameters

num-createdThe number of descriptions created.
num-overwrittenThe number of descriptions overwritten.
num-skippedThe number of descriptions skipped.

Examples

Request

curl -K -X POST \
"https://instance.securid.com/aveksa/command.submit?cmd=importDescriptions&format=xml&behavior=overwrite" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/xml" \
-d '<BusinessDescriptions>
<BusinessDescription type="Application" exactmatch="true" filter="AppName">
<AltName>Application Display Name</AltName>
<Tooltip/>
<LongDesc/>
<HelpURL/>
</BusinessDescription>
</BusinessDescriptions>'

Response

The response is always returned as key=value pairs regardless of the format parameter.

num-created=1
num-skipped=0
num-overwritten=0

Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.