Site

Nom de la ressource site
URL http://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.

name string

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

type string

Select the type of your application.

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

path string

The path is relative to the root of your account and must begin with "/". For example: /www/

php_version

PHP version

  • None: Default version
  • 7.3.1: 7.3.1
  • 7.3.0: 7.3.0
  • 7.2.14: 7.2.14
  • 7.2.12: 7.2.12
  • 7.2.11: 7.2.11
  • 7.2.9: 7.2.9
  • 7.1.26: 7.1.26
  • 7.1.24: 7.1.24
  • 7.1.23: 7.1.23
  • 7.1.21: 7.1.21
  • 7.0.33: 7.0.33
  • 7.0.32: 7.0.32
  • 7.0.31: 7.0.31
  • 5.6.40: 5.6.40
  • 5.6.38: 5.6.38
  • 5.6.37: 5.6.37
  • 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

Type only options you want to change from the core settings.

environment

default value: null

string

Environment variables, format: FOO=bar LOREM=ipsum

ssl_force

default value: False

bool

All HTTP requests will be automatically redirected to HTTPS.

max_idle_time

default value: 1800

integer

Idle time before your application is 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

unknown

As per the profile used, the latency to site access may increase by a few millisecondes.

  • None: None
  • basic: Basic
  • strong: Strong
  • full: Full
  • wordpress: WordPress
  • drupal: Drupal

waf_excluded_rules

default value: null

string

WAF rules to exclude (use space to separate).

waf_excluded_paths

default value: null

string

Paths to exclude from the WAF (use space to separate). The syntaxes *, ? and [] are accepted.

waf_excluded_ips

default value: null

string

IP addresses to exclude from the WAF (use space to separate).

cache_enabled

default value: False

bool

Enable cache

cache_ttl

default value: 3600

integer

Maximum TTL of cached responses, in seconds.

log_file

default value: null

string

If you want access logs to be in a separate file, enter here its name.

log_format

default value: null

string

Indicate here the format of log lines. Leave blank for the default format.

addresses list of strings

Liste des adresses du site.

Actions

Name Details
restart

POST

Redémarre le site.