Update some attributes of this Service
services_patch( id, name = NULL, description = NULL, docker_image_name = NULL, docker_image_tag = NULL, schedule = NULL, replicas = NULL, max_replicas = NULL, instance_type = NULL, memory = NULL, cpu = NULL, credentials = NULL, api_key_id = NULL, permission_set_id = NULL, git_repo_url = NULL, git_repo_ref = NULL, git_path_dir = NULL, environment_variables = NULL, notifications = NULL )
id | integer required. The ID for this Service. |
---|---|
name | string optional. The name of this Service. |
description | string optional. The description of this Service. |
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 (default: latest). |
schedule | list optional. A list containing the following elements:
|
replicas | integer optional. The number of Service replicas to deploy. When maxReplicas is set, this field defines the minimum number of replicas to deploy. |
max_replicas | integer optional. The maximum number of Service replicas to deploy. Defining this field enables autoscaling. |
instance_type | string optional. The EC2 instance type to deploy to. |
memory | integer optional. The amount of memory allocated to each replica of the Service. |
cpu | integer optional. The amount of cpu allocated to each replica of the the Service. |
credentials | array optional. A list of credential IDs to pass to the Service. |
api_key_id | integer optional. API key id of user |
permission_set_id | integer optional. The ID of the associated permission set, if any. |
git_repo_url | string optional. The url for the git repo where the Service code lives. |
git_repo_ref | string optional. The git reference to use when pulling code from the repo. |
git_path_dir | string optional. The path to the Service code within the git repo. If unspecified, the root directory will be used. |
environment_variables | list optional. Environment Variables to be passed into the Service. |
notifications | list optional. A list containing the following elements:
|
A list containing the following elements:
integer, The ID for this Service.
string, The name of this Service.
string, The description of this Service.
list, A list containing the following elements:
id integer, The ID of this user.
name string, This user's name.
username string, This user's username.
initials string, This user's initials.
online boolean, Whether this user is online.
string, The type of this Service
string, The name of the docker image to pull from DockerHub.
string, The tag of the docker image to pull from DockerHub (default: latest).
list, A list containing the following elements:
runtimePlan string, Only affects the service when deployed. On Demand means that the service will be turned on when viewed and automatically turned off after periods of inactivity. Specific Times means the service will be on when scheduled. Always On means the deployed service will always be on.
recurrences array, List of day-hour combinations this item is scheduled for
string,
integer, The number of Service replicas to deploy. When maxReplicas is set, this field defines the minimum number of replicas to deploy.
integer, The maximum number of Service replicas to deploy. Defining this field enables autoscaling.
string, The EC2 instance type to deploy to.
integer, The amount of memory allocated to each replica of the Service.
integer, The amount of cpu allocated to each replica of the the Service.
string,
string,
array, A list of credential IDs to pass to the Service.
integer, API key id of user
integer, The ID of the associated permission set, if any.
string, The url for the git repo where the Service code lives.
string, The git reference to use when pulling code from the repo.
string, The path to the Service code within the git repo. If unspecified, the root directory will be used.
integer, The ID of the associated report.
list, A list containing the following elements:
deploymentId integer, The ID for this deployment.
userId integer, The ID of the owner.
host string, Domain of the deployment.
name string, Name of the deployment.
dockerImageName string, The name of the docker image to pull from DockerHub.
dockerImageTag string, The tag of the docker image to pull from DockerHub (default: latest).
displayUrl string, A signed URL for viewing the deployed item.
instanceType string, The EC2 instance type requested for the deployment.
memory integer, The memory allocated to the deployment.
cpu integer, The cpu allocated to the deployment.
state string, The state of the deployment.
stateMessage string, A detailed description of the state.
createdAt string,
updatedAt string,
published boolean,
serviceId integer, The ID of owning Service
list, A list containing the following elements:
deploymentId integer, The ID for this deployment.
userId integer, The ID of the owner.
host string, Domain of the deployment.
name string, Name of the deployment.
dockerImageName string, The name of the docker image to pull from DockerHub.
dockerImageTag string, The tag of the docker image to pull from DockerHub (default: latest).
displayUrl string, A signed URL for viewing the deployed item.
instanceType string, The EC2 instance type requested for the deployment.
memory integer, The memory allocated to the deployment.
cpu integer, The cpu allocated to the deployment.
state string, The state of the deployment.
stateMessage string, A detailed description of the state.
createdAt string,
updatedAt string,
published boolean,
serviceId integer, The ID of owning Service
string, The URL that the service is hosted at.
string, The URL that previews of the service are hosted at.
list, Environment Variables to be passed into the Service.
list, A list containing the following elements:
failureEmailAddresses array, Addresses to notify by e-mail when the service fails.
failureOn boolean, If failure email notifications are on
string, The archival status of the requested item(s).
boolean, The hidden status of the item.