scripts_patch_containers {civis} | R Documentation |
Update a container
Description
Update a container
Usage
scripts_patch_containers(
id,
name = NULL,
parent_id = NULL,
user_context = NULL,
params = NULL,
arguments = NULL,
schedule = NULL,
notifications = NULL,
required_resources = NULL,
repo_http_uri = NULL,
repo_ref = NULL,
remote_host_credential_id = NULL,
git_credential_id = NULL,
docker_command = NULL,
docker_image_name = NULL,
docker_image_tag = NULL,
instance_type = NULL,
cancel_timeout = NULL,
time_zone = NULL,
partition_label = NULL,
target_project_id = NULL,
running_as_id = NULL
)
Arguments
id |
integer required. The ID for the script. |
name |
string optional. The name of the container. |
parent_id |
integer optional. The ID of the parent job that will trigger this script |
user_context |
string optional. "runner" or "author", who to execute the script as when run as a template. |
params |
array optional. An array containing the following fields:
|
arguments |
list optional. Parameter-value pairs to use when running this script. Only settable if this script has defined parameters. |
schedule |
list optional. A list containing the following elements:
|
notifications |
list optional. A list containing the following elements:
|
required_resources |
list optional. A list containing the following elements:
|
repo_http_uri |
string optional. The location of a github repo to clone into the container, e.g. github.com/my-user/my-repo.git. |
repo_ref |
string optional. The tag or branch of the github repo to clone into the container. |
remote_host_credential_id |
integer optional. The id of the database credentials to pass into the environment of the container. |
git_credential_id |
integer optional. The id of the git credential to be used when checking out the specified git repo. If not supplied, the first git credential you've submitted will be used. Unnecessary if no git repo is specified or the git repo is public. |
docker_command |
string optional. The command to run on the container. Will be run via sh as: ["sh", "-c", dockerCommand]. Defaults to the Docker image's ENTRYPOINT/CMD. |
docker_image_name |
string optional. The name of the docker image to pull from DockerHub. |
docker_image_tag |
string optional. The tag of the docker image to pull from DockerHub. |
instance_type |
string optional. The EC2 instance type to deploy to. Only available for jobs running on kubernetes. |
cancel_timeout |
integer optional. 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. |
time_zone |
string optional. The time zone of this script. |
partition_label |
string optional. The partition label used to run this object. |
target_project_id |
integer optional. Target project to which script outputs will be added. |
running_as_id |
integer optional. The ID of the runner of this script. |
Value
A list containing the following elements:
id |
integer, The ID for the script. |
fromTemplateAliases |
array, An array containing the following fields:
|
name |
string, The name of the container. |
type |
string, The type of the script (e.g Container) |
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. |
templateDependentsCount |
integer, How many other 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 script. |
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:
|
requiredResources |
list, A list containing the following elements:
|
repoHttpUri |
string, The location of a github repo to clone into the container, e.g. github.com/my-user/my-repo.git. |
repoRef |
string, The tag or branch of the github repo to clone into the container. |
remoteHostCredentialId |
integer, The id of the database credentials to pass into the environment of the container. |
gitCredentialId |
integer, The id of the git credential to be used when checking out the specified git repo. If not supplied, the first git credential you've submitted will be used. Unnecessary if no git repo is specified or the git repo is public. |
dockerCommand |
string, The command to run on the container. Will be run via sh as: ["sh", "-c", dockerCommand]. Defaults to the Docker image's ENTRYPOINT/CMD. |
dockerImageName |
string, The name of the docker image to pull from DockerHub. |
dockerImageTag |
string, The tag of the docker image to pull from DockerHub. |
instanceType |
string, The EC2 instance type to deploy to. Only available for jobs running on kubernetes. |
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. |
lastRun |
list, A list containing the following elements:
|
timeZone |
string, The time zone of this script. |
partitionLabel |
string, The partition label used to run this object. |
myPermissionLevel |
string, Your permission level on the object. One of "read", "write", or "manage". |
hidden |
boolean, The hidden status of the item. |
archived |
string, The archival status of the requested item(s). |
targetProjectId |
integer, Target project to which script outputs will be added. |
runningAsId |
integer, The ID of the runner of this script. |