API Reference
These docs are for v4.5. Click to read the latest docs for v4.5.1.

Update Script

Updates script details such as name, script path, dependencies etc.,

Log in to see full request history
Path Params
string
required

Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.

string
required

ID of the script. This can be fetched from listScripts API

Body Params
string
required

Name of the script and it should be unique.

string

Unique URI for script - eg: script/ansi/linux/lamp_install. If not provided, corestack will generate it automatically

string

Detailed description about script

category
array of strings
required

Script Category

category*
platform
array of strings
required

Platforms supported by script.

platform*
operating_system
array of strings
required

OS supported by script

operating_system*
string
required

Config type of the script. Create is supported for ansible type scripts alone for now

string
required

The scope of the script:
Account scope - All users under that account will have access to view and execute Only Account admins can update/delete the scripts,
Tenant Scope - Users with access to the specific tenant will have access to scripts who can describe or execute scripts. Tenant admins can only update/delete.
Private Scope - User who created will only have access

script_info
array of objects
required

script info

script_info*
dependencies
array of objects

Details of the dependent scripts if any. For eg., A LAMP script will have apache, mysql, php as dependent scripts.This can be skipped if there are no dependent scripts or if the actual script takes care of installing all dependencies

dependencies
minimum_requirement
object
string

Playbook yaml path - mandatory for ansible scripts

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json