{"openapi":"3.0.0","info":{"title":"OVHcloud API specification","description":"Specification for OVHcloud API","version":"1.0","contact":{"name":"OVH","email":"api@ml.ovh.net"}},"servers":[{"url":"https://api.eu.ovhcloud.com/1.0"}],"components":{"schemas":{"any":{"description":"Can be anything (text, int, bool, json, html, etc.)","example":"This is a content of any type !"},"duration":{"type":"string","description":"Duration (e.g., P1Y2M3DT4H6M9S)","example":"P1Y2M3DT4H6M9S"},"email":{"type":"string","description":"Email address (e.g., api@ml.ovh.net)","format":"email","example":"api@ml.ovh.net"},"hosting.web.Cron":{"type":"object","description":"Cron","properties":{"command":{"type":"string","description":"Command to execute"},"description":{"type":"string","description":"Description field for you","nullable":true},"email":{"type":"string","description":"Email used to receive error log (stderr)","nullable":true},"frequency":{"type":"string","description":"Frequency (crontab format) defined for the script (minutes are ignored)"},"id":{"type":"integer","description":"Cron's id","readOnly":true},"language":{"allOf":[{"$ref":"#/components/schemas/hosting.web.LanguagesEnum"}],"description":"Cron language"},"state":{"allOf":[{"$ref":"#/components/schemas/hosting.web.cron.StateEnum"}],"description":"Cron language","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/hosting.web.cron.StatusEnum"}],"description":"Cron status"}},"required":["command","frequency","language"]},"hosting.web.LanguagesEnum":{"type":"string","description":"Web supported languages","enum":["node10","node11","node12","node14","node8","node9","other","php4","php5.2","php5.3","php5.4","php5.5","php5.6","php7.0","php7.1","php7.2","php7.3","php7.4","php8.0","php8.1","php8.2","php8.3","php8.4","php8.5","python2","python3","ruby2.6"]},"hosting.web.PublicTask":{"type":"object","description":"Public task","properties":{"doneDate":{"type":"string","description":"Done date","nullable":true,"format":"date-time","readOnly":true},"function":{"allOf":[{"$ref":"#/components/schemas/hosting.web.task.FunctionEnum"}],"description":"Task function","readOnly":true},"id":{"type":"integer","description":"Task's id","readOnly":true},"lastUpdate":{"type":"string","description":"Last update date","nullable":true,"format":"date-time","readOnly":true},"objectId":{"type":"string","description":"Task object id","nullable":true,"readOnly":true},"objectType":{"allOf":[{"$ref":"#/components/schemas/hosting.web.task.ObjectTypeEnum"}],"description":"Task object type","nullable":true,"readOnly":true},"startDate":{"type":"string","description":"Start date","format":"date-time","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/hosting.web.task.StatusEnum"}],"description":"Task status","readOnly":true}}},"hosting.web.cron.StateEnum":{"type":"string","description":"Cron state","enum":["created","creating","deleting","updating"]},"hosting.web.cron.StatusEnum":{"type":"string","description":"Cron status","enum":["disabled","enabled","suspended"]},"hosting.web.task.FunctionEnum":{"type":"string","description":"Task function enum","enum":["abuse/close","abuse/create","abuse/create/web","abuse/delete/web","abuse/update","abuse/update/web","agora/AnycastUpdateReference","agora/DnsAddonUpdateReference","agora/DnsUpdateReference","agora/updateReference","attachedDomain/create","attachedDomain/delete","attachedDomain/restart","attachedDomain/update","cdn/delete","cdn/domain/create","cdn/domain/delete","cdn/domain/flush","cdn/domain/suspend","cdn/flush","cdn/install","cdn/reopen","cdn/suspend","cdn/upgrade","cluster/setDevelopment","cluster/setTesting","cluster/ssl/deploy","cluster/ssl/renew","cluster/test/attachedDomains","cluster/test/cdn","cluster/test/crons","cluster/test/emails","cluster/test/fileBrowser","cluster/test/hostedssl","cluster/test/modules","cluster/test/ovhConfig","cluster/test/userLogs","cluster/test/users","configuration/create","configuration/delete","configuration/update","cron/create","cron/delete","cron/update","database/changePassword","database/changePasswordTest","database/changeRight","database/changeRightTest","database/checkQuotaNow","database/copy","database/copyRestore","database/create","database/delete","database/deleteTest","database/dumpAnyDay","database/hostUpdate","database/import","database/optimize","database/restore","dedicatedIp/delete","dedicatedIp/reopen","dedicatedIp/suspend","depc/push","dump/create","dump/delete","envVar/create","envVar/delete","envVar/update","envVar/upgrade","eventbus/push","filerz/customerMonitoring","filerz/delete","hostedssl/assignFreeKey","hostedssl/cdn/update","hostedssl/create","hostedssl/delete","hostedssl/globalsign/delete","hostedssl/htaccess/install","hostedssl/import","hostedssl/install","hostedssl/install/sectigo","hostedssl/iplb/reload","hostedssl/push","hostedssl/pushDcvFile","hostedssl/regenerate","hostedssl/repush","hosting/activate/privateDatabase","hosting/basculement","hosting/changeOffer/cloud","hosting/changeOffer/shared","hosting/changement","hosting/delete","hosting/delete_start1m","hosting/install","hosting/reopen","hosting/suspend","indy/reopen","indy/suspend","infra/certificate/deploy","infra/certificate/generate","infra/certificate/install","infra/sharedsql/upgrade","infra/ssl/deploy","infra/ssl/renew","ip/move","ip/park","localSeoAccount/create","localSeoAccount/delete","localSeoLocation/delete","localSeoLocation/install","localSeoLocation/reopen","localSeoLocation/suspend","localSeoVisibilityCheck/process","mailsout/checkMailsoutQueue","mailsout/flushMailsoutQueue","mailsout/updateUserInRedis","migration/copyUsers","migration/dday/filerz","migration/dday/listPrivateDatabases","migration/dday/lot","migration/dday/updateInfra/crons","migration/dday/updateInfra/dedicated","migration/dday/updateInfra/migratedFqdn","migration/updateOrt","module/changePassword","module/create","module/delete","module/install","monitoring/remotewrite","notification/send","ovhConfig/refresh","ovhConfig/rollback","ovhConfig/update","ovhOrg/delete","ownLogs/create","ownLogs/delete","provisionning/cdn","provisionning/cluster","provisionning/filerz","provisionning/filerz_log","provisionning/hosting","provisionning/ipfo","provisionning/ipifo","provisionning/iplb","provisionning/privatesql","provisionning/sharedsql","provisionning/ssl","provisionning/web","provisionning/webapp","runtime/create","runtime/delete","runtime/setDefault","runtime/update","scan/create","sqlperso/delete","sqlperso/install","sqlperso/reopen","sqlperso/suspend","synchronizeDepc/attachedDomain","synchronizeDepc/cluster","synchronizeDepc/database","synchronizeDepc/filer","synchronizeDepc/offer","synchronizeDepc/webd","test/migration","user/changePassword","user/create","user/delete","user/update","userLogs/changePassword","userLogs/create","userLogs/delete","uster/setTesting","web/changeDns","web/changeFilerz","web/changeFilerzWithCallback","web/changeJailState","web/changeOutState","web/changeState","web/changeWebState","web/checkQuotaNow","web/create","web/delete","web/deleteUser","web/restoreSnapshot","webProvisionning","webd/changeSlots","website/create","website/delete","website/deploy","website/vcs/create","website/vcs/delete","website/vcs/deploy"]},"hosting.web.task.ObjectTypeEnum":{"type":"string","description":"Object type enum","enum":["Abuse","AttachedDomain","BlockedIp","Cdn","Cron","Database","Deployment","Dump","EnvVar","Filerz","Hostedssl","Hosting","Indy","Infra","Minor","Module","Other","OvhConfig","OvhOrg","OwnLogs","Runtime","Scan","Sqlperso","User","UserLogs","Web","Webd","Website"]},"hosting.web.task.StatusEnum":{"type":"string","description":"Task status enum","enum":["cancelled","doing","done","init","todo"]},"internationalPhoneNumber":{"type":"string","description":"International phone number","format":"phone-number"},"ip":{"type":"string","description":"IP address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipBlock":{"type":"string","description":"IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)","format":"ip-block","example":"192.0.2.0/24"},"ipInterface":{"type":"string","description":"IP address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipv4":{"type":"string","description":"IPv4 address (e.g., 192.0.2.0)","format":"ipv4","example":"192.0.2.0"},"ipv4Block":{"type":"string","description":"IPv4 CIDR notation (e.g., 192.0.2.0/24)","format":"ipv4-block","example":"192.0.2.0/24"},"ipv6":{"type":"string","description":"IPv6 address (e.g., 2001:41d0:1:1994::1)","format":"ipv6","example":"2001:41d0:1:1994::1"},"ipv6Block":{"type":"string","description":"IPv6 CIDR notation (e.g., 2001:41d0::/128)","format":"ipv6-block","example":"2001:41d0::/128"},"macAddress":{"type":"string","description":"MAC address (e.g., 00:00:5e:00:53:01)","format":"mac-address","example":"00:00:5e:00:53:01"},"phoneNumber":{"type":"string","description":"Phone number","format":"phone-number"},"time":{"type":"string","description":"Time (e.g., 15:04:05)","format":"time","example":"15:04:05"}},"securitySchemes":{"oAuth2AuthCode":{"type":"oauth2","description":"Oauth2","x-client-id":"1bb9c7df371741c0","x-client-secret":"a5b4de870aca620d10fbf63cd18d205b","flows":{"authorizationCode":{"authorizationUrl":"https://auth.eu.ovhcloud.com/oauth2/authorize","tokenUrl":"https://auth.eu.ovhcloud.com/oauth2/token","scopes":{"account/all":"Manage your account","all":"Manage your whole account and all your services","services/all":"Manage your services lifecycle and billing"}}}}}},"paths":{"/hosting/web/{serviceName}/cron":{"get":{"summary":"List cron jobs","description":"Returns the IDs of the cron jobs of the hosting. Filter them by command, description, email or language.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"command","description":"Filter the value of command property (like)","schema":{"type":"string"}},{"in":"query","name":"description","description":"Filter the value of description property (like)","schema":{"type":"string"}},{"in":"query","name":"email","description":"Filter the value of email property (like)","schema":{"type":"string"}},{"in":"query","name":"language","description":"Filter the value of language property (=)","schema":{"$ref":"#/components/schemas/hosting.web.LanguagesEnum"}},{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Web Hosting","Cron@@@10"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/hosting/web/{serviceName}/cron\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/hosting/web/{serviceName}/cron\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"webHosting:apiovh:cron/get","required":true}],"x-expanded-response":"HostingWebCron"},"post":{"summary":"Create a cron job","description":"Creates a cron job that runs a script at a crontab frequency, and returns the task. Minutes in the frequency are ignored. Errors are sent to the email address.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/hosting.web.Cron"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hosting.web.PublicTask"}}}}},"x-developer-hub-navigation":[["Web Cloud","Web Hosting","Cron@@@40"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: hosting.web.Cron\nresult = client.post(\"/hosting/web/{serviceName}/cron\",\n\tcommand = None, # Command to execute (type: string)\n\tdescription = None, # Description field for you (type: string, nullable)\n\temail = None, # Email used to receive error log (stderr) (type: string, nullable)\n\tfrequency = None, # Frequency (crontab format) defined for the script (minutes are ignored) (type: string)\n\tlanguage = None, # Cron language (type: hosting.web.LanguagesEnum)\n\tstatus = None, # Cron status (type: hosting.web.cron.StatusEnum)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: hosting.web.Cron\n$result = $ovh->post(\"/hosting/web/{serviceName}/cron\", array(\n\tcommand => null, // Command to execute (type: string)\n\tdescription => null, // Description field for you (type: string, nullable)\n\temail => null, // Email used to receive error log (stderr) (type: string, nullable)\n\tfrequency => null, // Frequency (crontab format) defined for the script (minutes are ignored) (type: string)\n\tlanguage => null, // Cron language (type: hosting.web.LanguagesEnum)\n\tstatus => null, // Cron status (type: hosting.web.cron.StatusEnum)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"webHosting:apiovh:cron/create","required":true}]}},"/hosting/web/{serviceName}/cron/{id}":{"delete":{"summary":"Delete a cron job","description":"Deletes the cron job and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}},{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hosting.web.PublicTask"}}}}},"x-developer-hub-navigation":[["Web Cloud","Web Hosting","Cron@@@50"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.delete(\"/hosting/web/{serviceName}/cron/{id}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->delete(\"/hosting/web/{serviceName}/cron/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"webHosting:apiovh:cron/delete","required":true}]},"get":{"summary":"Get a cron job","description":"Returns the command, frequency, language, email and status of the cron job.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}},{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hosting.web.Cron"}}}}},"x-developer-hub-navigation":[["Web Cloud","Web Hosting","Cron@@@20"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/hosting/web/{serviceName}/cron/{id}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/hosting/web/{serviceName}/cron/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"webHosting:apiovh:cron/get","required":true}],"x-response-identifier":"id"},"put":{"summary":"Update a cron job","description":"Updates the command, frequency, language, email or description of the cron job. Minutes in the frequency are ignored.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"id","description":"Id","required":true,"schema":{"type":"integer"}},{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/hosting.web.Cron"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"string"}}}}},"x-developer-hub-navigation":[["Web Cloud","Web Hosting","Cron@@@60"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: hosting.web.Cron\nresult = client.put(\"/hosting/web/{serviceName}/cron/{id}\",\n\tcommand = None, # Command to execute (type: string)\n\tdescription = None, # Description field for you (type: string, nullable)\n\temail = None, # Email used to receive error log (stderr) (type: string, nullable)\n\tfrequency = None, # Frequency (crontab format) defined for the script (minutes are ignored) (type: string)\n\tlanguage = None, # Cron language (type: hosting.web.LanguagesEnum)\n\tstatus = None, # Cron status (type: hosting.web.cron.StatusEnum)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: hosting.web.Cron\n$result = $ovh->put(\"/hosting/web/{serviceName}/cron/{id}\", array(\n\tcommand => null, // Command to execute (type: string)\n\tdescription => null, // Description field for you (type: string, nullable)\n\temail => null, // Email used to receive error log (stderr) (type: string, nullable)\n\tfrequency => null, // Frequency (crontab format) defined for the script (minutes are ignored) (type: string)\n\tlanguage => null, // Cron language (type: hosting.web.LanguagesEnum)\n\tstatus => null, // Cron status (type: hosting.web.cron.StatusEnum)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"webHosting:apiovh:cron/edit","required":true}]}},"/hosting/web/{serviceName}/cronAvailableLanguage":{"get":{"summary":"List cron languages","description":"Returns the languages a cron job can use on the hosting.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/hosting.web.LanguagesEnum"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Web Hosting","Cron@@@30"]],"x-badges":[{"color":"green","label":"Stable production version"}],"x-code-samples":[{"lang":"python","label":"Python","source":"'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/hosting/web/{serviceName}/cronAvailableLanguage\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"},{"lang":"php","label":"PHP","source":"<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/hosting/web/{serviceName}/cronAvailableLanguage\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"webHosting:apiovh:cronAvailableLanguages/get","required":true}]}}}}
