Site

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

Fields

Name Details
id

readonly: YES

integer

Resource ID.

href

readonly: YES

string

Resource location.

type string

Select the type of your application.

(sélectionner une autre valeur pour voir les champs spécifiques)

path string

Chemin relatif à la racine de votre compte.

php_version

default value: null

string

Major versions use the latest available minor version, which allows for automatic security updates.

  • None: Default version
  • Major versions: [('8.3', '8.3'), ('8.2', '8.2'), ('8.1', '8.1'), ('8.0', '8.0'), ('7.4', '7.4'), ('7.3', '7.3'), ('7.2', '7.2'), ('7.1', '7.1'), ('7.0', '7.0'), ('5.6', '5.6'), ('5.5', '5.5'), ('5.4', '5.4'), ('5.3', '5.3'), ('5.2', '5.2'), ('4.4', '4.4')]
  • Minor versions: [('8.3.11', '8.3.11'), ('8.3.9', '8.3.9'), ('8.3.7', '8.3.7'), ('8.3.4', '8.3.4'), ('8.3.1', '8.3.1'), ('8.3.0', '8.3.0'), ('8.2.23', '8.2.23'), ('8.2.21', '8.2.21'), ('8.2.19', '8.2.19'), ('8.2.17', '8.2.17'), ('8.2.14', '8.2.14'), ('8.2.12', '8.2.12'), ('8.2.10', '8.2.10'), ('8.2.7', '8.2.7'), ('8.2.6', '8.2.6'), ('8.2.4', '8.2.4'), ('8.2.1', '8.2.1'), ('8.2.0', '8.2.0'), ('8.1.29', '8.1.29'), ('8.1.28', '8.1.28'), ('8.1.27', '8.1.27'), ('8.1.25', '8.1.25'), ('8.1.23', '8.1.23'), ('8.1.20', '8.1.20'), ('8.1.19', '8.1.19'), ('8.1.17', '8.1.17'), ('8.1.14', '8.1.14'), ('8.1.12', '8.1.12'), ('8.1.10', '8.1.10'), ('8.1.8', '8.1.8'), ('8.1.6', '8.1.6'), ('8.1.4', '8.1.4'), ('8.1.1', '8.1.1'), ('8.1.0', '8.1.0'), ('8.0.30', '8.0.30'), ('8.0.29', '8.0.29'), ('8.0.28', '8.0.28'), ('8.0.27', '8.0.27'), ('8.0.25', '8.0.25'), ('8.0.23', '8.0.23'), ('8.0.21', '8.0.21'), ('8.0.19', '8.0.19'), ('8.0.17', '8.0.17'), ('8.0.14', '8.0.14'), ('8.0.12', '8.0.12'), ('8.0.10', '8.0.10'), ('8.0.8', '8.0.8'), ('8.0.6', '8.0.6'), ('8.0.3', '8.0.3'), ('8.0.1', '8.0.1'), ('8.0.0', '8.0.0'), ('7.4.33', '7.4.33'), ('7.4.30', '7.4.30'), ('7.4.29', '7.4.29'), ('7.4.28', '7.4.28'), ('7.4.27', '7.4.27'), ('7.4.25', '7.4.25'), ('7.4.23', '7.4.23'), ('7.4.21', '7.4.21'), ('7.4.19', '7.4.19'), ('7.4.16', '7.4.16'), ('7.4.14', '7.4.14'), ('7.4.12', '7.4.12'), ('7.4.10', '7.4.10'), ('7.4.8', '7.4.8'), ('7.4.6', '7.4.6'), ('7.4.4', '7.4.4'), ('7.3.33', '7.3.33'), ('7.3.32', '7.3.32'), ('7.3.30', '7.3.30'), ('7.3.29', '7.3.29'), ('7.3.28', '7.3.28'), ('7.3.27', '7.3.27'), ('7.3.26', '7.3.26'), ('7.3.24', '7.3.24'), ('7.3.22', '7.3.22'), ('7.3.20', '7.3.20'), ('7.3.18', '7.3.18'), ('7.3.16', '7.3.16'), ('7.2.34', '7.2.34'), ('7.2.33', '7.2.33'), ('7.2.32', '7.2.32'), ('7.2.31', '7.2.31'), ('7.2.29', '7.2.29'), ('7.1.33', '7.1.33'), ('7.0.33', '7.0.33'), ('5.6.40', '5.6.40'), ('5.5.38', '5.5.38'), ('5.4.45', '5.4.45'), ('5.3.29', '5.3.29'), ('5.2.17', '5.2.17'), ('4.4.9', '4.4.9')]

php_ini

default value: null

string

Specify only the options you want to change compared to the initial configuration.

environment

default value: null

string

Environment variables, in the format: FOO=bar LOREM=ipsum

vhost_additional_directives

default value: null

string

Directives that will be added at the end of the Apache configuration for this virtual host.

ssl_force

default value: False

bool

All HTTP requests will be automatically redirected to HTTPS.

max_idle_time

default value: 1800

integer

Idle time after which your application will be stopped (in seconds).

path_trim

default value: False

bool

If you have addresses containing a path, it will be trimmed from the request forwarded to your application.

waf_profile

default value: null

string

Depending on the profile used, the website access latency may increase by a few milliseconds.

  • None: None
  • basic: Basic
  • strong: Strong
  • full: Full
  • wordpress: WordPress
  • drupal: Drupal
  • nextcloud: Nextcloud
  • dokuwiki: DokuWiki

waf_excluded_rules

default value: <class 'list'>

string

WAF exclusion rules, separated by spaces.

waf_excluded_paths

default value: <class 'list'>

string

Paths to exclude from the WAF, separated by spaces. Supported syntax includes *, ?, and [].

waf_excluded_ips

default value: <class 'list'>

string

IP addresses (or networks) to exclude from the WAF, separated by spaces.

cache_enabled

default value: False

bool

Enable cache

cache_ttl

default value: 3600

integer

Maximum TTL for cached responses, in seconds.

log_type

default value: STANDARD

string

Read the documentation on the logs format.

  • STANDARD: Standard
  • ADVANCED: Advanced
  • CUSTOM: Customized

log_file

default value: null

string

If you want the access logs to be in a separate file, please specify the file name here.

log_format

default value: null

string

Specify the log line format here. Leave it blank for the default format.

addresses list of strings

Liste des adresses du site.

annotation string

L'annotation est facultative et apparaitra dans le listing.

Actions

Name Details
restart

POST

Redémarre le site.