scripts_post_r_clone {civis} | R Documentation |
Clone this R Script
Description
Clone this R Script
Usage
scripts_post_r_clone(
id,
clone_schedule = NULL,
clone_triggers = NULL,
clone_notifications = NULL
)
Arguments
id |
integer required. The ID for the script. |
clone_schedule |
boolean optional. If true, also copy the schedule to the new script. |
clone_triggers |
boolean optional. If true, also copy the triggers to the new script. |
clone_notifications |
boolean optional. If true, also copy the notifications to the new script. |
Value
A list containing the following elements:
id |
integer, The ID for the script. |
name |
string, The name of the script. |
type |
string, The type of the script (e.g SQL, Container, Python, R, JavaScript) |
createdAt |
string, The time this script was created. |
updatedAt |
string, The time the script was last updated. |
author |
list, A list containing the following elements:
|
state |
string, The status of the script's last run. |
finishedAt |
string, The time that the script's last run finished. |
category |
string, The category of the script. |
projects |
array, An array containing the following fields:
|
parentId |
integer, The ID of the parent job that will trigger this script |
userContext |
string, "runner" or "author", who to execute the script as when run as a template. |
params |
array, An array containing the following fields:
|
arguments |
list, Parameter-value pairs to use when running this script. Only settable if this script has defined parameters. |
isTemplate |
boolean, Whether others scripts use this one as a template. |
publishedAsTemplateId |
integer, The ID of the template that this script is backing. |
fromTemplateId |
integer, The ID of the template this script uses, if any. |
templateDependentsCount |
integer, How many other scripts use this one as a template. |
templateScriptName |
string, The name of the template script. |
links |
list, A list containing the following elements:
|
schedule |
list, A list containing the following elements:
|
notifications |
list, A list containing the following elements:
|
runningAs |
list, A list containing the following elements:
|
nextRunAt |
string, The time of the next scheduled run. |
timeZone |
string, The time zone of this script. |
lastRun |
list, A list containing the following elements:
|
myPermissionLevel |
string, Your permission level on the object. One of "read", "write", or "manage". |
hidden |
boolean, The hidden status of the item. |
targetProjectId |
integer, Target project to which script outputs will be added. |
archived |
string, The archival status of the requested item(s). |
requiredResources |
list, A list containing the following elements:
|
instanceType |
string, The EC2 instance type to deploy to. Only available for jobs running on kubernetes. |
source |
string, The body/text of the script. |
cancelTimeout |
integer, The amount of time (in seconds) to wait before forcibly terminating the script. When the script is cancelled, it is first sent a TERM signal. If the script is still running after the timeout, it is sent a KILL signal. Defaults to 0. |
dockerImageTag |
string, The tag of the docker image to pull from DockerHub. |
partitionLabel |
string, The partition label used to run this object. |
runningAsId |
integer, The ID of the runner of this script. |