Service

Nom de la ressource service
URL https://api.alwaysdata.com/v1/service
Description Services
Operations create, read, update, delete, list, action

Fields

Name Details
id

readonly: YES

integer

Resource ID.

href

readonly: YES

string

Resource location.

name string

The name is only for information purposes and is only used for display.

ssh_user string

SSH user

command string

Program command, you can specify arguments. If your command must be accessible from outside, use a port between 8300 and 8499.

check_health_command

default value: null

string

Command that checks if the service is working well. It is executed on a regular basis. If its return code is not 0, the service is restarted.

environment

default value: null

string

Environment variables, format: FOO=bar LOREM=ipsum

working_directory

default value: null

string

Absolute path, starting with « / ».

Actions

Name Details
restart

POST

Redémarre le service.