GET Extensions Scripts ID

The GET /Extensions/Scripts/{id} operation returns the details of the script that matches the provided ID. On success, the operation returns HTTP 200 OK with  details of the specified script record.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:

/scripts/read/

Table 545: GET Extensions Scripts {id} Input Parameters

Name In Description
id Path Required.  An integer indicating the Keyfactor Command reference ID for the script to be retrieved.

Use the GET Extensions Scripts operation to retrieve a list of all the scripts to determine the ID.

Table 546: GET Extensions Scripts {id} Response Data

Name Description
id An integer indicating the Keyfactor Command reference ID for the script.
Name A string indicating the user-defined name of the script. The name of a script cannot be changed once posted.

Contents

A JSON-escaped string containing the contents of the script on a single line.

Categories

An array of either integers or case-sensitive strings indicating which category or categories the script applies to. The category of a script cannot be changed if it is in use in any alerts or workflows of that category. ClosedShow possible category values.