Hébergements Web - API OVH - questions diverses
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

API OVH - questions diverses

Von
AnthonyD21
Erstellungsdatum 2020-03-04 15:43:31 (edited on 2024-09-04 12:39:09) in Hébergements Web

Bonjour,

Concernant l'API d'OVH que je découvre, j'ai une question concernant cette commande : https://api.ovh.com/console/#/hosting/web/{serviceName}/attachedDomain#POST

Tout d'abord, voici le code PHP que j'utilise :
$NewDomain_Name = 'plache.com';
$NewDomain_Path = 'test-api';
$result = $ovh->post('/hosting/web/muafs.fr/attachedDomain', array(
'domain' => $NewDomain_Name, // Domain to link (type: string)
'path' => $NewDomain_Path, // Domain's path, relative to your home directory (type: string)
'runtimeId' => NULL, // The runtime configuration ID linked to this attached domain (type: long)
'ssl' => true, // Put domain in SSL certificate (type: boolean)
'cdn' => 'active', // Is linked to the hosting CDN (type: hosting.web.attachedDomain.CdnEnum)
'firewall' => 'none', // Firewall state for this path (type: hosting.web.attachedDomain.FirewallEnum)
'ownLog' => $NewDomain_Name, // Put domain for separate the logs on logs.ovh.net (type: string)
));

J'ai comparé cette commande au formulaire "Ajouter un domaine ou un sous-domaine" dans mon espace client (https://www.ovh.com/manager/web/index.html#/configuration/hosting/muafs.fr?tab=MULTISITE).
Et j'ai trouvé quelques différences que je ne m'explique pas.

Voici donc mes questions :
- Qu'est-ce que 'runtimeId' ?
- Comment Activer l'IPv6 ?
- Comment paramétrer l'IP du pays ?

Merci par avance de votre réponse.

Anthony


1 Antwort ( Latest reply on 2020-03-09 09:28:33 Von
AnthonyD21
)

Je ne vois aucune réponse, dommage ;-)

J'ai posé cette même question au support OVH qui m'a répondu : "Il n'y a pas d'assistance sur l'utilisation de l'API OVHcloud. Pour des questions à ce sujet je vous invite à vous orienter vers le forum de la communauté OVHcloud".

Personne n'a d'idée ?

Merci et bonne journée