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:mysqlExample:pg*
- language ⁠stringFilters the list by the language they use, with optional patterns.Example:phpExample:py*
- name ⁠stringFilters the list by application name, with optional patterns.Example:nextcloudExample:mato*Example:*press
- page ⁠integerDefault: 1 Minimum: 1 Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
- per_page ⁠integerMinimum: 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 ⁠stringDefault: "-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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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⁠array- Of items of type: - objectWith the following properties: - name ⁠string
- name_label ⁠string
- requirements ⁠arrayOf items of type: - objectWith the following properties: - database ⁠objectDatabase supported by the applicationWith the following properties: - name ⁠string
- status ⁠string
- version ⁠string
 
- instance_minimum_size ⁠stringMinimum required PaaS size for this application
- language ⁠objectLanguage used by the applicationWith the following properties: - name ⁠string
- single_application ⁠booleantrueif the application must be the only vhost of the instance
- status ⁠string
- version ⁠string
 
 
- database ⁠object
 
- object
 
 
- object
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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⁠object- With the following properties: - name ⁠string
- name_label ⁠string
- requirements ⁠arrayOf items of type: - objectWith the following properties: - database ⁠objectDatabase supported by the applicationWith the following properties: - name ⁠string
- status ⁠string
- version ⁠string
 
- instance_minimum_size ⁠stringMinimum required PaaS size for this application
- language ⁠objectLanguage used by the applicationWith the following properties: - name ⁠string
- single_application ⁠booleantrueif 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.netExample:example.*Example:*example.com
- name ⁠stringFilters the list by instance name, with optional patterns.Example:exampleExample:examp*Example:*mple
- page ⁠integerDefault: 1 Minimum: 1 Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
- per_page ⁠integerMinimum: 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 ⁠stringOne of: "s", "s+", "m", "l", "xl", "xxl", "starter", "advanced", "pro", "business" Filters the list by instance size.
- sort_by ⁠stringDefault: "-created_at" Indicate the field used to sort the results. The field's name may start with-to reverse the order.
- status ⁠stringOne of: "waiting_bill", "being_created", "active", "paused", "locked", "being_deleted" Filters the list by instance status.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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⁠array- Of items of type: - objectWith the following properties: - available_upgrade ⁠boolean
- created_at ⁠datetime
- database ⁠objectWith the following properties: - name ⁠string
- status ⁠string
- version ⁠string
 
- datacenter ⁠objectWith the following properties: - code ⁠stringOne of: "FR-SD3", "FR-SD5", "FR-SD6", "LU-BI1" 
- name ⁠string
- region ⁠stringOne of: "FR", "LU" 
 
- code ⁠string
- expire_at ⁠datetime
- id ⁠stringUUID
- language ⁠objectWith the following properties: - name ⁠string
- single_application ⁠booleantrueif the application must be the only vhost of the instance
- status ⁠string
- version ⁠string
 
- name ⁠string
- sharing_space ⁠objectWith the following properties: - id ⁠stringUUID
 Optional- name ⁠string
 
- id ⁠string
- size ⁠stringOne of: "s", "s+", "m", "l", "xl", "xxl", "starter", "advanced", "pro", "business" 
- snapshot_enabled ⁠boolean
- status ⁠stringOne of: "waiting_bill", "being_created", "active", "paused", "locked", "being_deleted" 
- storage ⁠objectWith the following properties: - additional ⁠objectWith the following properties: - unit ⁠stringOne of: "MB", "GB" 
- value ⁠integer
 
- unit ⁠string
- base ⁠objectWith the following properties: - unit ⁠stringOne of: "MB", "GB" 
- value ⁠integer
 
- unit ⁠string
- total ⁠objectWith the following properties: - unit ⁠stringOne of: "MB", "GB" 
- value ⁠integer
 
- unit ⁠string
 
- additional ⁠object
 Optional- autorenew ⁠objectWith the following properties: - duration ⁠integer
- duration_type ⁠stringOne 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⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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.
Request
Query String
- Optional- sharing_id ⁠stringOrganization ID used as a billing identifier. (Deprecated: cannot be used with Personal Access Tokens. See Authentication). 
 
- sharing_id ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 - Optional- Dry-Run ⁠integerIf this header's value is1the request's parameters will only be checked; the operation will not actually be performed.
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- location ⁠stringOne of: "FR", "LU" Indicates where the instance will be created.
- size ⁠stringOne 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 ⁠objectWith the following properties: Required- name ⁠stringOne 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 ⁠objectWith the following properties: Required- name ⁠stringOne 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 ⁠objectIf 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 ⁠objectWith 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 ⁠stringOne of: "individual", "company", "association", "publicbody" 
 Optional- brand_number ⁠string
- city ⁠string
- data_obfuscated ⁠booleanDefault: 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 ⁠stringOne 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 ⁠stringOne of: "pending", "done", "failed", "deleted", "none" 
- zip ⁠string
 
- country ⁠string
 Optional- admin ⁠objectWith 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 ⁠stringOne of: "individual", "company", "association", "publicbody" 
 Optional- brand_number ⁠string
- city ⁠string
- data_obfuscated ⁠booleanDefault: 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 ⁠stringOne 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 ⁠stringOne of: "pending", "done", "failed", "deleted", "none" 
- zip ⁠string
 
- country ⁠string
- bill ⁠objectWith 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 ⁠stringOne of: "individual", "company", "association", "publicbody" 
 Optional- brand_number ⁠string
- city ⁠string
- data_obfuscated ⁠booleanDefault: 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 ⁠stringOne 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 ⁠stringOne 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 ⁠objectWith 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 ⁠stringOne of: "individual", "company", "association", "publicbody" 
 Optional- brand_number ⁠string
- city ⁠string
- data_obfuscated ⁠booleanDefault: 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 ⁠stringOne 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 ⁠stringOne of: "pending", "done", "failed", "deleted", "none" 
- zip ⁠string
 
- country ⁠string
 
- duration ⁠integerDefault: 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 ⁠stringOne of: "m" Default: "m" The unit to use fordurationfield, currently only months are supported (m)
- name ⁠stringThe name of the instance, if none is given a name will be generated.
- snapshot_enabled ⁠booleanDefault: 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 ⁠integerDefault: 0 Minimum: 0 Maximum: 1004 Additional storage amount for the instance in GB
- vhosts ⁠arrayCreates the described vhosts on the instance on creationOf items of type: - objectWith 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 hereWith the following properties: Required- name ⁠string
 Optional- parameters ⁠object
 
- https_strategy ⁠stringOne 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 ⁠objectWith the following properties: Optional- allow_alteration ⁠booleanDefault: 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 ⁠booleanDefault: false If true we will override an existing record for this vhost if one exists. Has no effect ifzone_alteris false.
 
- allow_alteration ⁠boolean
- with_free_ssl ⁠booleanDefault: 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⁠object- With the following properties: - status ⁠stringOne of: "success", "error" Response status.
 - Optional- errors ⁠arrayA list of all the errors encountered during validation.Of items of type: - objectWith the following properties: - description ⁠stringError message.
- location ⁠stringOne 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⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠object- With the following properties: - access_information ⁠objectWith the following properties: - admin_url ⁠string
- database ⁠objectWith the following properties: - admins ⁠arrayOf items of type: - objectWith the following properties: - type ⁠stringOne 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
- sftp ⁠objectWith 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 ⁠objectWith the following properties: - name ⁠string
- status ⁠string
- version ⁠string
 
- datacenter ⁠objectWith the following properties: - code ⁠stringOne of: "FR-SD3", "FR-SD5", "FR-SD6", "LU-BI1" 
- name ⁠string
- region ⁠stringOne of: "FR", "LU" 
 
- code ⁠string
- expire_at ⁠datetime
- id ⁠stringUUID
- language ⁠objectWith the following properties: - name ⁠string
- single_application ⁠booleantrueif the application must be the only vhost of the instance
- status ⁠string
- version ⁠string
 
- name ⁠string
- ram ⁠objectWith the following properties: - unit ⁠stringOne of: "MB", "GB" 
- value ⁠integer
 
- unit ⁠string
- sharing_space ⁠objectWith the following properties: - id ⁠stringUUID
 Optional- name ⁠string
 
- id ⁠string
- size ⁠stringOne of: "s", "s+", "m", "l", "xl", "xxl", "starter", "advanced", "pro", "business" 
- snapshot_enabled ⁠boolean
- status ⁠stringOne of: "waiting_bill", "being_created", "active", "paused", "locked", "being_deleted" 
- storage ⁠objectWith the following properties: - additional ⁠objectWith the following properties: - unit ⁠stringOne of: "MB", "GB" 
- value ⁠integer
 
- unit ⁠string
- base ⁠objectWith the following properties: - unit ⁠stringOne of: "MB", "GB" 
- value ⁠integer
 
- unit ⁠string
- total ⁠objectWith the following properties: - unit ⁠stringOne of: "MB", "GB" 
- value ⁠integer
 
- unit ⁠string
 
- additional ⁠object
- vhosts ⁠arrayOf items of type: - objectWith the following properties: - fqdn ⁠stringFQDN linked to the vhost in ASCII (Punycode) format.
- href ⁠stringLink to vhost details
 
- fqdn ⁠string
 
- object
 - Optional- autorenew ⁠objectWith the following properties: - duration ⁠integer
- duration_type ⁠stringOne of: "m" 
 
- booster ⁠objectWith the following properties: Optional- current ⁠objectWith the following properties: - cpu_override ⁠integer
- created_at ⁠datetime
- expires_at ⁠datetime
- ram_override ⁠objectWith the following properties: - unit ⁠stringOne of: "MB", "GB" 
- value ⁠integer
 
- unit ⁠string
- size_override ⁠stringOne of: "s", "s+", "m", "l", "xl", "xxl", "starter", "advanced", "pro", "business" 
- status ⁠stringOne of: "being_created", "active", "being_deleted" 
 
- next ⁠objectWith the following properties: - available ⁠boolean
- cooldown_days ⁠integer
- default_cpu_override ⁠integer
- default_ram_override ⁠objectWith the following properties: - unit ⁠stringOne of: "MB", "GB" 
- value ⁠integer
 
- unit ⁠string
- duration_days ⁠integer
 Optional- available_at ⁠datetime
 
 
- current ⁠object
- compatible_applications ⁠arrayOf items of type: - objectWith 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 ⁠arrayOf items of type: - objectWith 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⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Optional- booster ⁠boolean
- booster_options ⁠objectWith the following properties: Optional- size ⁠stringOne 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 theupgrade_tofield 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 ⁠stringOne 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⁠object- With the following properties: - message ⁠string
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
delete ¶
Request
URI Parameters
- instance_id ⁠stringUUID of an instance.
 
- instance_id ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- action ⁠stringOne 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⁠object- With the following properties: - message ⁠stringConfirmation message.
 
- message ⁠string
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠object- With 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⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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.netExample:example.*Example:*example.com
- page ⁠integerDefault: 1 Minimum: 1 Which result page to retrieve. If the number is greater than the last page, an empty list is returned.
- per_page ⁠integerMinimum: 1 How many items to display per page.
- sort_by ⁠stringDefault: "-created_at" Indicate the field used to sort the results. The field's name may start with-to reverse the order.
- status ⁠stringOne of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed" Filters the list by vhost status.
 
- fqdn ⁠string
Headers
- Required- Authorization ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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⁠array- Of items of type: - 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.
- last_checked_status ⁠stringOne 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 ⁠stringOne of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed" 
 Optional- application ⁠objectWith the following properties: - name ⁠string
 Optional- parameters ⁠object
 
- certificates ⁠arrayOf items of type: - objectWith the following properties: - href ⁠string
- id ⁠string
- pending ⁠boolean
 
 
- object
- https_strategy ⁠stringOne 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.
- tls_validated_at ⁠datetimeThe last time Gandi successfully checked the connectivity to your vhost through TLS.
 
 
- object
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Required- fqdn ⁠stringfqdn of the vhost.
 - Optional- application ⁠objectWith the following properties: Required- name ⁠string
 Optional- parameters ⁠object
 
- linked_dns_zone ⁠objectWith 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 ⁠booleanDefault: 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⁠object- With the following properties: - fqdn ⁠stringfqdn of the vhost.
- https_strategy ⁠stringOne 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 ⁠objectWith 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 ⁠stringOne of: "altered", "livedns_conflict", "livedns_done", "livedns_error", "unknown" DNS zone validity when last checked
 
- allow_alteration ⁠boolean
- status ⁠stringOne of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed" 
 
- fqdn ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
422
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
200
Body
- application/json⁠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.
- 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 ⁠stringOne of: "altered", "livedns_conflict", "livedns_done", "livedns_error", "unknown" DNS zone validity when last checked
- last_checked_status ⁠stringOne 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 ⁠stringOne of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed" 
 - Optional- application ⁠objectWith the following properties: - name ⁠string
- name ⁠string
- status ⁠stringOne of: "error", "running", "being_created", "cancelled" 
 Optional- parameters ⁠object
- parameters ⁠object
 
- certificates ⁠arrayOf items of type: - objectWith the following properties: - href ⁠string
- id ⁠string
- pending ⁠boolean
 
 
- object
- deployment ⁠objectWith the following properties: - git ⁠objectWith the following properties: - deploy_command ⁠string
- remote_command ⁠string
- url ⁠string
 
- sftp ⁠objectWith 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 ⁠stringOne 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.
- tls_validated_at ⁠datetimeThe last time Gandi successfully checked the connectivity to your vhost through TLS.
 
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Body
- application/json⁠object- With the following properties: - Optional- application ⁠objectWith the following properties: Required- name ⁠string
 Optional- parameters ⁠object
 
- https_strategy ⁠stringOne 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 ⁠objectWith 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 ⁠booleanDefault: 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⁠object- With the following properties: - fqdn ⁠stringfqdn of the vhost.
- https_strategy ⁠stringOne 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 ⁠objectWith 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 ⁠stringOne of: "altered", "livedns_conflict", "livedns_done", "livedns_error", "unknown" DNS zone validity when last checked
 
- allow_alteration ⁠boolean
- status ⁠stringOne of: "being_created", "running", "being_deleted", "locked", "waiting_ownership", "ownership_validated", "validation_failed" 
 
- fqdn ⁠string
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example: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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string
Responses
204
403
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
401
Body
- application/json⁠object- With the following properties: - cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
 
403
Body
- application/json⁠object- With 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 ⁠stringTheAuthorizationheader must start withBearerfor access token, orApikeydepending of the authentication scheme.Apikeyis deprecated and be replaced by personal access token.Example:Bearer pat_abc-123Example:Apikey your-api-key
 
- Authorization ⁠string