Manage Scripts
Creates and deletes a script and gets a list of scripts for a category.
A list of scripts is retrieved within a category.
Path Parameters
- tenantId
Describes the client ID or msp ID of the tenant. See "Getting Started" guide
- categoryId
Defined category id
Responses
- id
- name
- description
- category
- platforms
- parameters
- executionType
- installTimeout
- attachment
- scriptVersion
- registryPath
- registryValue
- processName
- serviceName
When creating a script:
- Attachment files must be converted to byte stream and base64-encoded. Always include a name and file.
- To get the list of available categories, invoke the Get Categories endpoint.
Path Parameters
- tenantId
Describes the client ID or msp ID of the tenant. See "Getting Started" guide
- categoryId
Defined category id
Request Body
application/json
- name
Script name.
- description
Description for the script.
- platforms
OS platforms.Example: WINDOWS, LINUX
- executionType
Script execution type.Supported Values: BATCHFILE, COMMAND, DOWNLOAD, EXE, MSI, POWERSHELL, PYTHON, PERL, PHP, SHELL, VBS
- Enum:
- BATCHFILECOMMANDDOWNLOADEXEMSIPOWERSHELLPYTHONPERLPHPSHELLVBS
- installTimeout
Maximum time for installation.
- registryPath
Registry path for sanity check after execution.
- registryValue
Registry Value for sanity check after execution.
- processName
Process name for sanity check.
- serviceName
Service name for sanity check.
- attachment
If executionType is COMMAND, then command is needed else attachment file is needed.
- parameters
Parameter data.
- command
- outputDirectory
Output directory supported required only when executionType is DOWNLOAD, EXE, MSI.
- outputFile
Output file supported required only when executionType is DOWNLOAD, EXE, MSI.
Responses
- id
- name
- description
- category
- platforms
- parameters
- executionType
- installTimeout
- attachment
- scriptVersion
- registryPath
- registryValue
- processName
- serviceName
Partners can delete client or partner scripts. A client can only delete client-specific scripts.
Path Parameters
- tenantId
Describes the client ID or msp ID of the tenant. See "Getting Started" guide
- categoryId
Defined category id