Web Hosting API
https://api.gandi.net/v5/simplehosting/
Introduction ¶
This section of our documentation will assist you in the management of Web Hosting instances at Gandi.net through our REST API.
Documentation on our XML-RPC API can be found at https://doc.rpc.gandi.net
General information on Gandi's Web Hosting services can be found in our public documentation at:
https://docs.gandi.net/en/simple_hosting
Web Hosting applications list ¶
https://api.gandi.net/v5/simplehosting/applications
get List Web Hosting applications ¶
Request
Query String
Optional
- database ⁠stringFilters the list with the database they can use, with optional patterns.Example:
mysql
Example:pg*
- language ⁠stringFilters the list by the language they use, with optional patterns.Example:
php
Example:py*
- name ⁠stringFilters the list by application name, with optional patterns.Example:
nextcloud
Example:mato*
Example:*press
- page ⁠integer
Default: 1
Minimum: 1
Which result page to retrieve. If the number is greater than the last page, an empty list is returned. - per_page ⁠integer
Minimum: 1
How many items to display per page. - sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
- sort_by ⁠string
Default: "-created_at"
Indicate the field used to sort the results. The field's name may start with-
to reverse the order.
- database ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Headers
- Total-Count ⁠integerTotal number of items.
Optional
- Link ⁠stringLinks to next and last page.
- Total-Count ⁠integer
Body
application/json
⁠arrayOf items of type:
- object
With the following properties:
- name ⁠string
- name_label ⁠string
- requirements ⁠array
Of items of type:
- object
With the following properties:
- database ⁠objectDatabase supported by the application
With the following properties:
- name ⁠string
- status ⁠string
- version ⁠string
- instance_minimum_size ⁠stringMinimum required PaaS size for this application
- language ⁠objectLanguage used by the application
With the following properties:
- name ⁠string
- single_application ⁠boolean
true
if the application must be the only vhost of the instance - status ⁠string
- version ⁠string
- database ⁠object
- object
- object
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Web Hosting application information ¶
https://api.gandi.net/v5/simplehosting/applications/{application_name}
get Application details ¶
Request
URI Parameters
- application_name ⁠stringName of an application.
- application_name ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- name ⁠string
- name_label ⁠string
- requirements ⁠array
Of items of type:
- object
With the following properties:
- database ⁠objectDatabase supported by the application
With the following properties:
- name ⁠string
- status ⁠string
- version ⁠string
- instance_minimum_size ⁠stringMinimum required PaaS size for this application
- language ⁠objectLanguage used by the application
With the following properties:
- name ⁠string
- single_application ⁠boolean
true
if the application must be the only vhost of the instance - status ⁠string
- version ⁠string
- database ⁠object
- object
Web Hosting instances list and create ¶
https://api.gandi.net/v5/simplehosting/instances
get List Web Hosting instances ¶
Request
Query String
Optional
- fqdn ⁠stringFilters the list by vhost domain name, with optional patterns.
The FQDN must be encoded in ASCII form (Punycode).Example:example.net
Example:example.*
Example:*example.com
- name ⁠stringFilters the list by instance name, with optional patterns.Example:
example
Example:examp*
Example:*mple
- page ⁠integer
Default: 1
Minimum: 1
Which result page to retrieve. If the number is greater than the last page, an empty list is returned. - per_page ⁠integer
Minimum: 1
How many items to display per page. - sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
- size ⁠string
One of: "s", "s+", "m", "l", "xl", "xxl", "starter", "advanced", "pro", "business"
Filters the list by instance size. - sort_by ⁠string
Default: "-created_at"
Indicate the field used to sort the results. The field's name may start with-
to reverse the order. - status ⁠string
One of: "waiting_bill", "being_created", "active", "paused", "locked", "being_deleted"
Filters the list by instance status.
- fqdn ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Headers
- Total-Count ⁠integerTotal number of items.
Optional
- Link ⁠stringLinks to next and last page.
- Total-Count ⁠integer
Body
application/json
⁠arrayOf items of type:
- object
With the following properties:
- available_upgrade ⁠boolean
- created_at ⁠datetime
- database ⁠object
With the following properties:
- name ⁠string
- status ⁠string
- version ⁠string
- datacenter ⁠object
With the following properties:
- code ⁠string
One of: "FR-SD3", "FR-SD5", "FR-SD6", "LU-BI1"
- name ⁠string
- region ⁠string
One of: "FR", "LU"
- code ⁠string
- expire_at ⁠datetime
- id ⁠stringUUID
- language ⁠object
With the following properties:
- name ⁠string
- single_application ⁠boolean
true
if the application must be the only vhost of the instance - status ⁠string
- version ⁠string
- name ⁠string
- sharing_space ⁠object
With the following properties:
- id ⁠stringUUID
Optional
- name ⁠string
- id ⁠string
- size ⁠string
One of: "s", "s+", "m", "l", "xl", "xxl", "starter", "advanced", "pro", "business"
- snapshot_enabled ⁠boolean
- status ⁠string
One of: "waiting_bill", "being_created", "active", "paused", "locked", "being_deleted"
- storage ⁠object
With the following properties:
- additional ⁠object
With the following properties:
- unit ⁠string
One of: "MB", "GB"
- value ⁠integer
- unit ⁠string
- base ⁠object
With the following properties:
- unit ⁠string
One of: "MB", "GB"
- value ⁠integer
- unit ⁠string
- total ⁠object
With the following properties:
- unit ⁠string
One of: "MB", "GB"
- value ⁠integer
- unit ⁠string
- additional ⁠object
Optional
- autorenew ⁠object
With the following properties:
- duration ⁠integer
- duration_type ⁠string
One of: "m"
- domain ⁠string
- password_updated_at ⁠datetimeLast password update date. Only present if a password is set.
- subscription_cancelled ⁠booleanWhether the Web Hosting subscription is cancelled.
- object
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
post Create Web Hosting instances ¶
This route creates a new Web Hosting instance Warning! This is not a free operation. Please ensure your prepaid account has enough credit, or that you have a registered credit card.
Pay as an individual
To pay with your user organization (ie: yourself as an individual), just use the regular required parameters. The invoice will be edited with your personal information.
Pay as another organization
To pay using another organization, you'll need to perform the request with the organization's ID as the sharing_id
query string parameter (see reference). The invoice will be edited using this organization's information.
For this to work, you need to:
- have billing permissions on the organization
Request
Query String
Optional
- sharing_id ⁠stringSharing ID. Organization ID used as a filter or as a billing identifier. See the reference.
- sharing_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
Optional
- Dry-Run ⁠integerIf this header's value is
1
the request's parameters will only be checked; the operation will not actually be performed.
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- location ⁠string
One of: "FR", "LU"
Indicates where the instance will be created. - size ⁠string
One of: "starter", "advanced", "pro", "business"
The size of the instance - type ⁠objectThe database and language to use for the Web Hosting instance.
With the following properties:
Required
- database ⁠object
With the following properties:
Required
- name ⁠string
One of: "mysql", "pgsql"
The database management system to use.
Optional
- version ⁠stringThe database version to use, defaulting on the recommended version if the field is missing.
- name ⁠string
- language ⁠object
With the following properties:
Required
- name ⁠string
One of: "php", "python", "nodejs", "ruby"
The language interpreter to use
Optional
- version ⁠stringThe language version to use, if none given will chose the recommended version.
- name ⁠string
- database ⁠object
Optional
- authentication ⁠object
If this field is absent, instance storage cannot be accessed through sftp and the advanced control panel will be unavailable until a password is set.
Username and hostname to connect to will be available in instance details once created.
With the following properties:
Required
- password ⁠stringThe password for sftp, git and advanced control panel access. It can be provided in clear text or in unix crypt format using MD5, SHA-256 or SHA-512 as hash algorithm.
Optional
- keys ⁠arrayIDs of SSH public keys registered through our SSH keys API.
Of items of type:
- stringUUID
- string
- ssh_keys ⁠array[ string ]SSH public keys for sftp and git access in OpenSSH format.
- password ⁠string
- autorenew ⁠booleanIf true, the instance will automatically be renewed upon expiration, ensure you have set up a payment method linked to your prepaid or that your prepaid has enough money.
- domain ⁠objectTo register a free domain name that will be linked to Web Hosting instance.
With the following properties:
Required
- fqdn ⁠string
- owner ⁠object
With the following properties:
Required
- country ⁠stringA country code. See the country code list for possible values.
- email ⁠string
- family ⁠stringContact's family name (usualy the lastname)
- given ⁠stringContact's given name (usualy the firstname)
- streetaddr ⁠string
- type ⁠string
One of: "individual", "company", "association", "publicbody"
Optional
- brand_number ⁠string
- city ⁠string
- data_obfuscated ⁠boolean
Default: true
Learn more about WHOIS privacy at Gandi here. - extra_parameters ⁠objectExtra parameters needed for some extensions. See this list for possible values.
- fax ⁠string
- jo_announce_number ⁠string
- jo_announce_page ⁠string
- jo_declaration_date ⁠string
- jo_publication_date ⁠string
- lang ⁠string
One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"
- mail_obfuscated ⁠boolean
- mobile ⁠string
- orgname ⁠stringThe legal name of the company, association, or public body if the contact type is not 0.
- phone ⁠string
- siren ⁠string
- state ⁠stringLearn more about state codes here
- validation ⁠string
One of: "pending", "done", "failed", "deleted", "none"
- zip ⁠string
- country ⁠string
Optional
- admin ⁠object
With the following properties:
Required
- country ⁠stringA country code. See the country code list for possible values.
- email ⁠string
- family ⁠stringContact's family name (usualy the lastname)
- given ⁠stringContact's given name (usualy the firstname)
- streetaddr ⁠string
- type ⁠string
One of: "individual", "company", "association", "publicbody"
Optional
- brand_number ⁠string
- city ⁠string
- data_obfuscated ⁠boolean
Default: true
Learn more about WHOIS privacy at Gandi here. - extra_parameters ⁠objectExtra parameters needed for some extensions. See this list for possible values.
- fax ⁠string
- jo_announce_number ⁠string
- jo_announce_page ⁠string
- jo_declaration_date ⁠string
- jo_publication_date ⁠string
- lang ⁠string
One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"
- mail_obfuscated ⁠boolean
- mobile ⁠string
- orgname ⁠stringThe legal name of the company, association, or public body if the contact type is not 0.
- phone ⁠string
- siren ⁠string
- state ⁠stringLearn more about state codes here
- validation ⁠string
One of: "pending", "done", "failed", "deleted", "none"
- zip ⁠string
- country ⁠string
- bill ⁠object
With the following properties:
Required
- country ⁠stringA country code. See the country code list for possible values.
- email ⁠string
- family ⁠stringContact's family name (usualy the lastname)
- given ⁠stringContact's given name (usualy the firstname)
- streetaddr ⁠string
- type ⁠string
One of: "individual", "company", "association", "publicbody"
Optional
- brand_number ⁠string
- city ⁠string
- data_obfuscated ⁠boolean
Default: true
Learn more about WHOIS privacy at Gandi here. - extra_parameters ⁠objectExtra parameters needed for some extensions. See this list for possible values.
- fax ⁠string
- jo_announce_number ⁠string
- jo_announce_page ⁠string
- jo_declaration_date ⁠string
- jo_publication_date ⁠string
- lang ⁠string
One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"
- mail_obfuscated ⁠boolean
- mobile ⁠string
- orgname ⁠stringThe legal name of the company, association, or public body if the contact type is not 0.
- phone ⁠string
- siren ⁠string
- state ⁠stringLearn more about state codes here
- validation ⁠string
One of: "pending", "done", "failed", "deleted", "none"
- zip ⁠string
- country ⁠string
- extra_parameters ⁠objectExtra parameters needed for some extensions. See this list for possible values.
- lang ⁠stringISO-639-2 language code of the domain, required for some IDN domains.
- tech ⁠object
With the following properties:
Required
- country ⁠stringA country code. See the country code list for possible values.
- email ⁠string
- family ⁠stringContact's family name (usualy the lastname)
- given ⁠stringContact's given name (usualy the firstname)
- streetaddr ⁠string
- type ⁠string
One of: "individual", "company", "association", "publicbody"
Optional
- brand_number ⁠string
- city ⁠string
- data_obfuscated ⁠boolean
Default: true
Learn more about WHOIS privacy at Gandi here. - extra_parameters ⁠objectExtra parameters needed for some extensions. See this list for possible values.
- fax ⁠string
- jo_announce_number ⁠string
- jo_announce_page ⁠string
- jo_declaration_date ⁠string
- jo_publication_date ⁠string
- lang ⁠string
One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"
- mail_obfuscated ⁠boolean
- mobile ⁠string
- orgname ⁠stringThe legal name of the company, association, or public body if the contact type is not 0.
- phone ⁠string
- siren ⁠string
- state ⁠stringLearn more about state codes here
- validation ⁠string
One of: "pending", "done", "failed", "deleted", "none"
- zip ⁠string
- country ⁠string
- duration ⁠integer
Default: 1
Minimum: 1
The duration your instance will be created for induration_unit
. If none given the instance will be created for a month. - duration_unit ⁠string
One of: "m"
Default: "m"
The unit to use forduration
field, currently only months are supported (m
) - name ⁠stringThe name of the instance, if none is given a name will be generated.
- snapshot_enabled ⁠boolean
Default: false
If true, automatic snapshots will be enabled for this instance.
Please note that a snapshot doesn't replace a proper backup.
- storage_additional_size ⁠integer
Default: 0
Minimum: 0
Maximum: 1004
Additional storage amount for the instance in GB - vhosts ⁠arrayCreates the described vhosts on the instance on creation
Of items of type:
- object
With the following properties:
Required
- fqdn ⁠stringFQDN of the vhost
Optional
- application ⁠objectAn application to install on the vhost upon creation. The application list, parameters and language/database compatibility is available here
With the following properties:
Required
- name ⁠string
Optional
- parameters ⁠object
- https_strategy ⁠string
One of: "HTTP_only", "allow_HTTP_and_HTTPS", "redirect_HTTP_to_HTTPS"
Default: "allow_HTTP_and_HTTPS"
The strategy to use for secure connection to the vhost. - linked_dns_zone ⁠object
With the following properties:
Optional
- allow_alteration ⁠boolean
Default: false
If true we set the DNS records for the vhost, can only be set if related domain is managed by LiveDNS and you have the rights to manage the domain records. - allow_alteration_override ⁠boolean
Default: false
If true we will override an existing record for this vhost if one exists. Has no effect ifzone_alter
is false.
- allow_alteration ⁠boolean
- with_free_ssl ⁠boolean
Default: false
If true, we will create a free certificate after the instance gets created.
- fqdn ⁠string
- object
- location ⁠string
Responses
200
Dry-Run: 1
header.Headers
Optional
- Warning ⁠stringWarning message
- Warning ⁠string
Body
application/json
⁠objectWith the following properties:
- status ⁠string
One of: "success", "error"
Response status.
Optional
- errors ⁠arrayA list of all the errors encountered during validation.
Of items of type:
- object
With the following properties:
- description ⁠stringError message.
- location ⁠string
One of: "header", "path", "querystring", "body"
The field's location in the HTTP response. - name ⁠stringThe xpath of the field.
- description ⁠string
- object
- status ⁠string
202
Headers
- Content-Location ⁠stringLink to the created instance
- Content-Location ⁠string
Body
application/json
⁠objectWith the following properties:
- message ⁠stringConfirmation message.
- message ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Web Hosting instance information ¶
https://api.gandi.net/v5/simplehosting/instances/{instance_id}
get Instance details ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- access_information ⁠object
With the following properties:
- admin_url ⁠string
- database ⁠object
With the following properties:
- admins ⁠array
Of items of type:
- object
With the following properties:
- type ⁠string
One of: "phpMyAdmin", "phpPgAdmin", "Adminer"
- url ⁠string
Optional
- username ⁠string
- type ⁠string
- object
- host ⁠string
Optional
- port ⁠integerIn case the database listens to an inet-type socket this field will contain the port number used by the database
- socket ⁠stringIn the event this database listens to a UNIX-type socket this field will contain the path of the socket
- admins ⁠array
- deploy ⁠arrayDeprecated, replaced by
sftp
oninstance
anddeployment
onvhost
Of items of type:
- object
With the following properties:
- cli ⁠object
With the following properties:
- init ⁠string
- git ⁠object
With the following properties:
- deploy ⁠string
- remote ⁠string
- url ⁠string
- sftp ⁠object
With the following properties:
- directory ⁠stringDirectory relative to the SFTP root where the vhost is located.
- document_root ⁠stringDirectory relative to the SFTP root where the root of the exposed vhost is located.
- server ⁠string
- url ⁠string
- directory ⁠string
- vhost ⁠object
With the following properties:
- fqdn ⁠stringFQDN linked to the vhost in ASCII (Punycode) format.
- href ⁠stringLink to vhost details
- fqdn ⁠string
- cli ⁠object
- object
- sftp ⁠object
With the following properties:
- server ⁠string
- url ⁠string
- user ⁠string
- available_upgrade ⁠boolean
- console ⁠objectThe emergency console is a serial-like console you can access via SSH.
With the following properties:
- enabled ⁠boolean
- url ⁠string
- cpu ⁠integer
- created_at ⁠datetime
- database ⁠object
With the following properties:
- name ⁠string
- status ⁠string
- version ⁠string
- datacenter ⁠object
With the following properties:
- code ⁠string
One of: "FR-SD3", "FR-SD5", "FR-SD6", "LU-BI1"
- name ⁠string
- region ⁠string
One of: "FR", "LU"
- code ⁠string
- expire_at ⁠datetime
- id ⁠stringUUID
- language ⁠object
With the following properties:
- name ⁠string
- single_application ⁠boolean
true
if the application must be the only vhost of the instance - status ⁠string
- version ⁠string
- name ⁠string
- ram ⁠object
With the following properties:
- unit ⁠string
One of: "MB", "GB"
- value ⁠integer
- unit ⁠string
- sharing_space ⁠object
With the following properties:
- id ⁠stringUUID
Optional
- name ⁠string
- id ⁠string
- size ⁠string
One of: "s", "s+", "m", "l", "xl", "xxl", "starter", "advanced", "pro", "business"
- snapshot_enabled ⁠boolean
- status ⁠string
One of: "waiting_bill", "being_created", "active", "paused", "locked", "being_deleted"
- storage ⁠object
With the following properties:
- additional ⁠object
With the following properties:
- unit ⁠string
One of: "MB", "GB"
- value ⁠integer
- unit ⁠string
- base ⁠object
With the following properties:
- unit ⁠string
One of: "MB", "GB"
- value ⁠integer
- unit ⁠string
- total ⁠object
With the following properties:
- unit ⁠string
One of: "MB", "GB"
- value ⁠integer
- unit ⁠string
- additional ⁠object
- vhosts ⁠array
Of items of type:
- object
With the following properties:
- fqdn ⁠stringFQDN linked to the vhost in ASCII (Punycode) format.
- href ⁠stringLink to vhost details
- fqdn ⁠string
- object
Optional
- autorenew ⁠object
With the following properties:
- duration ⁠integer
- duration_type ⁠string
One of: "m"
- booster ⁠object
With the following properties:
Optional
- current ⁠object
With the following properties:
- cpu_override ⁠integer
- created_at ⁠datetime
- expires_at ⁠datetime
- ram_override ⁠object
With the following properties:
- unit ⁠string
One of: "MB", "GB"
- value ⁠integer
- unit ⁠string
- size_override ⁠string
One of: "s", "s+", "m", "l", "xl", "xxl", "starter", "advanced", "pro", "business"
- status ⁠string
One of: "being_created", "active", "being_deleted"
- next ⁠object
With the following properties:
- available ⁠boolean
- cooldown_days ⁠integer
- default_cpu_override ⁠integer
- default_ram_override ⁠object
With the following properties:
- unit ⁠string
One of: "MB", "GB"
- value ⁠integer
- unit ⁠string
- duration_days ⁠integer
Optional
- available_at ⁠datetime
- current ⁠object
- compatible_applications ⁠array
Of items of type:
- object
With the following properties:
- name ⁠string
Optional
- parameters ⁠object
- object
- domain ⁠string
- password_updated_at ⁠datetimeLast password update date. Only present if a password is set.
- subscription_cancelled ⁠booleanWhether the Web Hosting subscription is cancelled.
- upgrade_to ⁠array
Of items of type:
- object
With the following properties:
- name ⁠string
- status ⁠string
- type ⁠stringIndicate whether the available upgrade is a database or a language upgrade.
- version ⁠string
- object
- access_information ⁠object
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
patch Web Hosting instance modification ¶
This route allows to modify a given instance
Be mindful that it can induce a payment, typically if the instance size or storage additional size is modified.
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Optional
- booster ⁠boolean
- booster_options ⁠object
With the following properties:
Optional
- size ⁠string
One of: "s", "s+", "m", "l", "xl", "xxl", "starter", "advanced", "pro", "business", "boosted"
- size ⁠string
- language_id ⁠stringUUID of the language to upgrade to. This value can be found in the
upgrade_to
field of the return of a GET of this instance (which lists the available upgrades). - name ⁠string
- password ⁠stringThe password for sftp, git and advanced control panel access. It can be provided in clear text or in unix crypt format using MD5, SHA-256 or SHA-512 as hash algorithm.
- size ⁠string
One of: "s+", "m", "l", "xxl"
Resize the instance (triggering a payment). Only supported for s, s+, m, l, xl, and xxl instances. - snapshot_enabled ⁠booleanIf true, automatic snapshots will be enabled for this instance.
- storage_additional_size ⁠integerAdditional storage amount for the instance in GB. Note that only increases are supported.
Responses
202
Headers
- Content-Location ⁠stringLink to the modified instance.
- Content-Location ⁠string
Body
application/json
⁠objectWith the following properties:
- message ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
delete ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
204
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Web Hosting instance actions ¶
https://api.gandi.net/v5/simplehosting/instances/{instance_id}/action
post Perform an action on the instance ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- action ⁠string
One of: "restart", "console", "reset_database_password"
- action ⁠string
Responses
202
Headers
- Content-Location ⁠stringLink to the instance on which the action is taken
- Content-Location ⁠string
Body
application/json
⁠objectWith the following properties:
- message ⁠stringConfirmation message.
- message ⁠string
204
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Web Hosting instance usage metrics ¶
https://api.gandi.net/v5/simplehosting/instances/{instance_id}/usage
get Usage metrics ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- disk_size_bytes ⁠integerThe total disk space in bytes.
Optional
- disk_used_bytes ⁠integerThe used disk space in bytes.
- disk_size_bytes ⁠integer
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Web Hosting instance vhost list and create ¶
https://api.gandi.net/v5/simplehosting/instances/{instance_id}/vhosts
get List vhosts ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- instance_id ⁠string
Query String
Optional
- fqdn ⁠stringFilters the list by vhost domain name, with optional patterns.
The FQDN must be encoded in ASCII form (Punycode).Example:example.net
Example:example.*
Example:*example.com
- page ⁠integer
Default: 1
Minimum: 1
Which result page to retrieve. If the number is greater than the last page, an empty list is returned. - per_page ⁠integer
Minimum: 1
How many items to display per page. - sort_by ⁠string
Default: "-created_at"
Indicate the field used to sort the results. The field's name may start with-
to reverse the order. - status ⁠string
One of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed"
Filters the list by vhost status.
- fqdn ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Headers
- Total-Count ⁠integerTotal number of items.
Optional
- Link ⁠stringLinks to next and last page.
- Total-Count ⁠integer
Body
application/json
⁠arrayOf items of type:
- object
With the following properties:
- created_at ⁠datetime
- fqdn ⁠stringFQDN linked to the vhost in ASCII (Punycode) format.
- is_a_test_vhost ⁠booleanTrue if the vhost is intended for testing purposes only.
- linked_dns_zone ⁠objectThis field contains information on the DNS zone the vhost is linked to.
With the following properties:
- allow_alteration ⁠booleanTrue if you authorized Gandi to modify your DNS zone so that your vhost points to our Web Hosting public endpoints. If set to True and your DNS zone is managed by our liveDNS platform, you will not have to manually change your DNS configuration to validate your vhost ownership. Check last_checked_status to validate.
- last_checked_status ⁠string
One of: "altered", "livedns_conflict", "livedns_done", "livedns_error", "unknown"
DNS zone validity when last checked
Optional
- last_checked_at ⁠datetimeDate of the last check for zone validity
- allow_alteration ⁠boolean
- status ⁠string
One of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed"
Optional
- application ⁠object
With the following properties:
- name ⁠string
Optional
- parameters ⁠object
- certificates ⁠array
Of items of type:
- object
With the following properties:
- href ⁠string
- id ⁠string
- pending ⁠boolean
- object
- https_strategy ⁠string
One of: "HTTP_only", "allow_HTTP_and_HTTPS", "redirect_HTTP_to_HTTPS"
Describes the strategy used regarding secure connection to your vhost (HTTP/HTTPS). This field is only present if you have a certificate.
- object
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
post Create a new vhost ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- fqdn ⁠stringfqdn of the vhost.
Optional
- application ⁠object
With the following properties:
Required
- name ⁠string
Optional
- parameters ⁠object
- linked_dns_zone ⁠object
With the following properties:
Required
- allow_alteration ⁠booleanTrue if you authorized Gandi to modify your DNS zone so that your vhost points to our Web Hosting public endpoints. If set to True and your DNS zone is managed by our liveDNS platform, you will not have to manually change your DNS configuration to validate your vhost ownership. Check last_checked_status to validate.
Optional
- allow_alteration_override ⁠boolean
Default: false
True to override your DNS zone if there already is a record on your vhost fqdn.
- allow_alteration ⁠boolean
- fqdn ⁠string
Responses
202
Headers
- Content-Location ⁠stringLink to the new vhost.
- Content-Location ⁠string
Body
application/json
⁠objectWith the following properties:
- fqdn ⁠stringfqdn of the vhost.
- https_strategy ⁠string
One of: "HTTP_only", "allow_HTTP_and_HTTPS", "redirect_HTTP_to_HTTPS"
Describes the strategy used regarding secure connection to your vhost (HTTP/HTTPS). This field is only present if you have a certificate. - linked_dns_zone ⁠object
With the following properties:
- allow_alteration ⁠booleanTrue if you authorized Gandi to modify your DNS zone so that your vhost points to our Web Hosting public endpoints. If set to True and your DNS zone is managed by our liveDNS platform, you will not have to manually change your DNS configuration to validate your vhost ownership. Check last_checked_status to validate.
- last_checked_status ⁠string
One of: "altered", "livedns_conflict", "livedns_done", "livedns_error", "unknown"
DNS zone validity when last checked
- allow_alteration ⁠boolean
- status ⁠string
One of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed"
- fqdn ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
422
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Web Hosting vhost information ¶
https://api.gandi.net/v5/simplehosting/instances/{instance_id}/vhosts/{vhost_fqdn}
get Vhost details ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- vhost_fqdn ⁠stringfqdn of a vhost.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- created_at ⁠datetime
- fqdn ⁠stringFQDN linked to the vhost in ASCII (Punycode) format.
- is_a_test_vhost ⁠booleanTrue if the vhost is intended for testing purposes only.
- linked_dns_zone ⁠objectThis field contains information on the DNS zone the vhost is linked to.
With the following properties:
- allow_alteration ⁠booleanTrue if you authorized Gandi to modify your DNS zone so that your vhost points to our Web Hosting public endpoints. If set to True and your DNS zone is managed by our liveDNS platform, you will not have to manually change your DNS configuration to validate your vhost ownership. Check last_checked_status to validate.
- allow_alteration ⁠booleanTrue if you authorized Gandi to modify your DNS zone so that your vhost points to our Web Hosting public endpoints. If set to True and your DNS zone is managed by our liveDNS platform, you will not have to manually change your DNS configuration to validate your vhost ownership. Check last_checked_status to validate.
- cname ⁠stringCanonical name of the web accelerator hosting your vhost. You need this if the vhost is not the apex (top level) of your zone
- domain ⁠stringFQDN of the zone to which you need to apply the DNS records
- ipv4 ⁠stringIPv4 pointing to the web accelerator hosting your vhost. You only need this if the vhost is at the root of your zone
- ipv6 ⁠stringIPv6 pointing to the web accelerator hosting your vhost. You only need this if the vhost is at the root of your zone
- is_alterable ⁠booleanTrue if the zone can be automatically managed by Web Hosting
- is_root ⁠booleanTrue if the vhost is on the root of the zone. It means you have to add A and AAAA entries to your zone rather than a CNAME.
- key ⁠stringThe name associated with the entries to add to your zone, if the vhost is the root of your zone it should be
@
. - last_checked_status ⁠string
One of: "altered", "livedns_conflict", "livedns_done", "livedns_error", "unknown"
DNS zone validity when last checked - last_checked_status ⁠string
One of: "altered", "livedns_conflict", "livedns_done", "livedns_error", "unknown"
DNS zone validity when last checked - txt ⁠stringTXT entry that needs to be present in your DNS zone to validate domain ownership.
Optional
- last_checked_at ⁠datetimeDate of the last check for zone validity
- last_checked_at ⁠datetimeDate of the last check for zone validity
- allow_alteration ⁠boolean
- status ⁠string
One of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed"
Optional
- application ⁠object
With the following properties:
- name ⁠string
- name ⁠string
- status ⁠string
One of: "error", "running", "being_created", "cancelled"
Optional
- parameters ⁠object
- parameters ⁠object
- certificates ⁠array
Of items of type:
- object
With the following properties:
- href ⁠string
- id ⁠string
- pending ⁠boolean
- object
- deployment ⁠object
With the following properties:
- git ⁠object
With the following properties:
- deploy_command ⁠string
- remote_command ⁠string
- url ⁠string
- sftp ⁠object
With the following properties:
- directory ⁠stringDirectory relative to the SFTP root where the vhost is located.
- document_root ⁠stringDirectory relative to the SFTP root where the root of the exposed vhost is located.
- server ⁠string
- url ⁠string
- directory ⁠string
- git ⁠object
- https_strategy ⁠string
One of: "HTTP_only", "allow_HTTP_and_HTTPS", "redirect_HTTP_to_HTTPS"
Describes the strategy used regarding secure connection to your vhost (HTTP/HTTPS). This field is only present if you have a certificate.
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
patch Update a vhost ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- vhost_fqdn ⁠stringfqdn of a vhost.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Optional
- application ⁠object
With the following properties:
Required
- name ⁠string
Optional
- parameters ⁠object
- https_strategy ⁠string
One of: "HTTP_only", "allow_HTTP_and_HTTPS", "redirect_HTTP_to_HTTPS"
Describes the strategy used regarding secure connection to your vhost (HTTP/HTTPS). This field is only present if you have a certificate. - linked_dns_zone ⁠object
With the following properties:
Required
- allow_alteration ⁠booleanTrue if you authorized Gandi to modify your DNS zone so that your vhost points to our Web Hosting public endpoints. If set to True and your DNS zone is managed by our liveDNS platform, you will not have to manually change your DNS configuration to validate your vhost ownership. Check last_checked_status to validate.
Optional
- allow_alteration_override ⁠boolean
Default: false
True to override your DNS zone if there already is a record to link your instance to your vhost fqdn.
- allow_alteration ⁠boolean
- application ⁠object
Responses
200
Body
application/json
⁠objectWith the following properties:
- fqdn ⁠stringfqdn of the vhost.
- https_strategy ⁠string
One of: "HTTP_only", "allow_HTTP_and_HTTPS", "redirect_HTTP_to_HTTPS"
Describes the strategy used regarding secure connection to your vhost (HTTP/HTTPS). This field is only present if you have a certificate. - linked_dns_zone ⁠object
With the following properties:
- allow_alteration ⁠booleanTrue if you authorized Gandi to modify your DNS zone so that your vhost points to our Web Hosting public endpoints. If set to True and your DNS zone is managed by our liveDNS platform, you will not have to manually change your DNS configuration to validate your vhost ownership. Check last_checked_status to validate.
- last_checked_status ⁠string
One of: "altered", "livedns_conflict", "livedns_done", "livedns_error", "unknown"
DNS zone validity when last checked
- allow_alteration ⁠boolean
- status ⁠string
One of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed"
- fqdn ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
delete Delete a vhost ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- vhost_fqdn ⁠stringfqdn of a vhost.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
204
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Web Hosting vhost cache information ¶
https://api.gandi.net/v5/simplehosting/instances/{instance_id}/vhosts/{vhost_fqdn}/cache
delete Purge a vhost's cache ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
- vhost_fqdn ⁠stringfqdn of a vhost.
- instance_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
204
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string