{"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"},"email.pro.Account":{"type":"object","description":"Mailbox","properties":{"SAMAccountName":{"type":"string","description":"SAM account name","nullable":true,"readOnly":true},"configured":{"type":"boolean","description":"Indicates if the account is configured","readOnly":true},"creationDate":{"type":"string","description":"Creation date","nullable":true,"format":"date-time","readOnly":true},"currentUsage":{"type":"integer","description":"Mailbox usage","nullable":true,"readOnly":true},"deleteAtExpiration":{"type":"boolean","description":"delete at expiration","nullable":true},"displayName":{"type":"string","description":"Account display name","nullable":true},"domain":{"type":"string","description":"Email domain"},"expirationDate":{"type":"string","description":"expiration date","nullable":true,"format":"date-time","readOnly":true},"expirationOutlookDate":{"type":"string","description":"expiration date","nullable":true,"format":"date-time","readOnly":true},"firstName":{"type":"string","description":"Account first name","nullable":true},"hiddenFromGAL":{"type":"boolean","description":"Hide account in Global Address List"},"id":{"type":"integer","description":"Account id","readOnly":true},"initial":{"type":"string","description":"Account initials","nullable":true},"lastLogoffDate":{"type":"string","description":"Last logoff","nullable":true,"format":"date-time","readOnly":true},"lastLogonDate":{"type":"string","description":"Last logon","nullable":true,"format":"date-time","readOnly":true},"lastName":{"type":"string","description":"Account last name","nullable":true},"lastUpdateDate":{"type":"string","description":"Last update","nullable":true,"format":"date-time","readOnly":true},"login":{"type":"string","description":"Account login"},"mailingFilter":{"type":"array","description":"Enable or disable anti-virus and anti-spam","nullable":true,"items":{"$ref":"#/components/schemas/email.pro.MailingFilterEnum"}},"passwordLastUpdate":{"type":"string","description":"Time of account's password last update","nullable":true,"format":"date-time","readOnly":true},"primaryEmailAddress":{"type":"string","description":"Default email for this mailbox","readOnly":true},"quota":{"type":"integer","description":"Account maximum size"},"renewPeriod":{"allOf":[{"$ref":"#/components/schemas/email.pro.renewPeriodEnum"}],"description":"change the renew period","nullable":true},"spamAndVirusConfiguration":{"allOf":[{"$ref":"#/components/schemas/email.pro.spamAndVirusConfiguration"}],"description":"Spam and Antivirus configuration"},"spamDetected":{"type":"boolean","description":"Account was sending spam","readOnly":true},"spamTicketNumber":{"type":"integer","description":"Ticket number of spam detection","nullable":true,"readOnly":true},"state":{"allOf":[{"$ref":"#/components/schemas/email.pro.ObjectStateEnum"}],"description":"Account state","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending tasks for this account","nullable":true,"readOnly":true}}},"email.pro.AccountAlias":{"type":"object","description":"Aliases on this mailbox","properties":{"alias":{"type":"string","description":"Alias","readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id","readOnly":true}}},"email.pro.AccountFullAccess":{"type":"object","description":"Users having full access on this mailbox","properties":{"allowedAccountId":{"type":"integer","description":"Account id to give full access","readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id","readOnly":true}}},"email.pro.AccountNative":{"type":"object","description":"Mailbox","properties":{"SAMAccountName":{"type":"string","description":"SAM account name","nullable":true,"readOnly":true},"configured":{"type":"boolean","description":"Indicates if the account is configured","readOnly":true},"creationDate":{"type":"string","description":"Creation date","nullable":true,"format":"date-time","readOnly":true},"currentUsage":{"type":"integer","description":"Mailbox usage","nullable":true,"readOnly":true},"deleteAtExpiration":{"type":"boolean","description":"delete at expiration","nullable":true,"readOnly":true},"displayName":{"type":"string","description":"Account display name","nullable":true,"readOnly":true},"domain":{"type":"string","description":"Email domain","readOnly":true},"expirationDate":{"type":"string","description":"expiration date","nullable":true,"format":"date-time","readOnly":true},"expirationOutlookDate":{"type":"string","description":"expiration date","nullable":true,"format":"date-time","readOnly":true},"firstName":{"type":"string","description":"Account first name","nullable":true,"readOnly":true},"hiddenFromGAL":{"type":"boolean","description":"Hide account in Global Address List","readOnly":true},"id":{"type":"integer","description":"Account id","readOnly":true},"initial":{"type":"string","description":"Account initials","nullable":true,"readOnly":true},"lastLogoffDate":{"type":"string","description":"Last logoff","nullable":true,"format":"date-time","readOnly":true},"lastLogonDate":{"type":"string","description":"Last logon","nullable":true,"format":"date-time","readOnly":true},"lastName":{"type":"string","description":"Account last name","nullable":true,"readOnly":true},"lastUpdateDate":{"type":"string","description":"Last update","nullable":true,"format":"date-time","readOnly":true},"login":{"type":"string","description":"Account login","readOnly":true},"mailingFilter":{"type":"array","description":"Enable or disable anti-virus and anti-spam","nullable":true,"items":{"$ref":"#/components/schemas/email.pro.MailingFilterEnum"},"readOnly":true},"passwordLastUpdate":{"type":"string","description":"Time of account's password last update","nullable":true,"format":"date-time","readOnly":true},"primaryEmailAddress":{"type":"string","description":"Default email for this mailbox","readOnly":true},"quota":{"type":"integer","description":"Account maximum size","readOnly":true},"renewPeriod":{"allOf":[{"$ref":"#/components/schemas/email.pro.renewPeriodEnum"}],"description":"change the renew period","nullable":true,"readOnly":true},"spamAndVirusConfiguration":{"allOf":[{"$ref":"#/components/schemas/email.pro.spamAndVirusConfiguration"}],"description":"Spam and Antivirus configuration","readOnly":true},"spamDetected":{"type":"boolean","description":"Account was sending spam","readOnly":true},"spamTicketNumber":{"type":"integer","description":"Ticket number of spam detection","nullable":true,"readOnly":true},"state":{"allOf":[{"$ref":"#/components/schemas/email.pro.ObjectStateEnum"}],"description":"Account state","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending tasks for this account","nullable":true,"readOnly":true}}},"email.pro.AccountSendAs":{"type":"object","description":"Users authorized to send mails from this mailbox","properties":{"allowedAccountId":{"type":"integer","description":"Account id to give send as","readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id","readOnly":true}}},"email.pro.AccountSendOnBehalfTo":{"type":"object","description":"Get users authorized to Send On Behalf To mails from this mailbox","properties":{"allowedAccountId":{"type":"integer","description":"Account id to give send on behalf to","readOnly":true},"creationDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true},"taskPendingId":{"type":"integer","description":"Pending task id","readOnly":true}}},"email.pro.MailingFilterEnum":{"type":"string","description":"Mailing filter options availlable","enum":["vaderetro"]},"email.pro.ObjectStateEnum":{"type":"string","description":"Current object state","enum":["creating","deleting","ok","reopening","suspended","suspending","unknown"]},"email.pro.Task":{"type":"object","description":"Organization task details","properties":{"finishDate":{"type":"string","description":"Completion date","nullable":true,"format":"date-time","readOnly":true},"function":{"allOf":[{"$ref":"#/components/schemas/email.pro.TaskFunctionEnum"}],"description":"Function name","readOnly":true},"id":{"type":"integer","description":"Task id","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/email.pro.TaskStatusEnum"}],"description":"Task status","readOnly":true},"todoDate":{"type":"string","description":"Creation date","format":"date-time","readOnly":true}}},"email.pro.TaskFunctionEnum":{"type":"string","description":"function enumeration for task","enum":["addAccount","addAlias","addDomain","addDomainDKIM","addDomainDisclaimer","addExternalContact","addFullAccess","addSendAs","addSendOnBehalfTo","addServiceAuthorizedIp","changeHostname","changePassword","configureCustomer","deleteAccount","deleteAlias","deleteDomain","deleteDomainDKIM","deleteDomainDisclaimer","deleteExternalContact","deleteFullAccess","deleteSendAs","deleteSendOnBehalfTo","deleteService","deleteServiceAuthorizedIp","diagnoseAccount","disableDKIM","enableDKIM","expandDrive","installServer","maintenance","migrateAccountViaOMM","migrationAccount","migrationDisclaimer","migrationExternalContact","migrationHistory","migrationService","reOpenAccount","setAccount","setAlias","setDns","setDomain","setDomainDisclaimer","setExternalContact","setService","suspendAccount","suspendService","unknown","unsuspendAccount","unsuspendService"]},"email.pro.TaskStatusEnum":{"type":"string","description":"Task status","enum":["cancelled","doing","done","error","todo"]},"email.pro.renewPeriodEnum":{"type":"string","description":"Renew period","enum":["monthly","yearly"]},"email.pro.spamAndVirusConfiguration":{"type":"object","description":"Spam and Antyvirus configuration","properties":{"checkDKIM":{"type":"boolean","description":"Check DKIM of message"},"checkSPF":{"type":"boolean","description":"Check SPF of message"},"deleteSpam":{"type":"boolean","description":"If message is a spam delete it"},"deleteVirus":{"type":"boolean","description":"If message is a virus delete it"},"putInJunk":{"type":"boolean","description":"If message is a spam or virus put in junk. Overridden by deleteSpam or deleteVirus"},"tagSpam":{"type":"boolean","description":"If message is a spam change its subject"},"tagVirus":{"type":"boolean","description":"If message is a virus change its subject"}}},"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":{"/email/pro/{service}/account":{"get":{"summary":"List email accounts","description":"Returns the email addresses of the email accounts of the service. Filter them by `primaryEmailAddress` or `id`.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"id","description":"Filter the value of id property (like)","schema":{"type":"integer"}},{"in":"query","name":"primaryEmailAddress","description":"Filter the value of primaryEmailAddress property (like)","schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@10"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account\")\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(\"/email/pro/{service}/account\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/get","required":true}],"x-expanded-response":"EmailProAccountNative"}},"/email/pro/{service}/account/{email}":{"delete":{"summary":"Delete an email account","description":"Delete an email account. Deletes the email account of the Email Pro service and returns the task. Follow it under `task/{id}`.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@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.delete(\"/email/pro/{service}/account/{email}\")\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(\"/email/pro/{service}/account/{email}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/delete","required":true}]},"get":{"summary":"Get an email account","description":"Returns the login, names, domain, state, quota and usage of the email account, its renewal and expiration settings, and its spam and virus configuration.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Email","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.AccountNative"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@20"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account/{email}\")\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(\"/email/pro/{service}/account/{email}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/get","required":true}],"x-response-identifier":"primaryEmailAddress"},"put":{"summary":"Update an email account","description":"Update an email account. Updates the login, names, domain, quota, renewal period, deletion at expiration, Global Address List visibility and spam and virus configuration of the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Account"}}}},"responses":{"200":{"description":"successful operation"}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@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: email.pro.Account\nresult = client.put(\"/email/pro/{service}/account/{email}\",\n\tdeleteAtExpiration = None, # delete at expiration (type: boolean, nullable)\n\tdisplayName = None, # Account display name (type: string, nullable)\n\tdomain = None, # Email domain (type: string)\n\tfirstName = None, # Account first name (type: string, nullable)\n\thiddenFromGAL = None, # Hide account in Global Address List (type: boolean)\n\tinitial = None, # Account initials (type: string, nullable)\n\tlastName = None, # Account last name (type: string, nullable)\n\tlogin = None, # Account login (type: string)\n\tmailingFilter = None, # Enable or disable anti-virus and anti-spam (type: array, nullable)\n\tquota = None, # Account maximum size (type: integer)\n\trenewPeriod = None, # change the renew period (type: email.pro.renewPeriodEnum, nullable)\n\tspamAndVirusConfiguration = None, # Spam and Antivirus configuration (type: email.pro.spamAndVirusConfiguration)\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: email.pro.Account\n$result = $ovh->put(\"/email/pro/{service}/account/{email}\", array(\n\tdeleteAtExpiration => null, // delete at expiration (type: boolean, nullable)\n\tdisplayName => null, // Account display name (type: string, nullable)\n\tdomain => null, // Email domain (type: string)\n\tfirstName => null, // Account first name (type: string, nullable)\n\thiddenFromGAL => null, // Hide account in Global Address List (type: boolean)\n\tinitial => null, // Account initials (type: string, nullable)\n\tlastName => null, // Account last name (type: string, nullable)\n\tlogin => null, // Account login (type: string)\n\tmailingFilter => null, // Enable or disable anti-virus and anti-spam (type: array, nullable)\n\tquota => null, // Account maximum size (type: integer)\n\trenewPeriod => null, // change the renew period (type: email.pro.renewPeriodEnum, nullable)\n\tspamAndVirusConfiguration => null, // Spam and Antivirus configuration (type: email.pro.spamAndVirusConfiguration)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/edit","required":true}]}},"/email/pro/{service}/account/{email}/alias":{"get":{"summary":"List account aliases","description":"Returns the aliases of the email account: extra addresses that deliver to the same mailbox.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Email","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@70"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account/{email}/alias\")\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(\"/email/pro/{service}/account/{email}/alias\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/alias/get","required":true}],"x-expanded-response":"EmailProAccountAlias"},"post":{"summary":"Create an account alias","description":"Create an account alias. Adds the `alias` address to the email account, so that it receives its emails, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"alias":{"type":"string","description":"Alias"}},"required":["alias"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@90"]],"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: string\nresult = client.post(\"/email/pro/{service}/account/{email}/alias\",\n\talias = None, # Alias (type: string)\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: string\n$result = $ovh->post(\"/email/pro/{service}/account/{email}/alias\", array(\n\talias => null, // Alias (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/alias/create","required":true}]}},"/email/pro/{service}/account/{email}/alias/{alias}":{"delete":{"summary":"Delete an account alias","description":"Delete an account alias. Removes the alias address from the email account, which no longer receives its emails, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"alias","description":"Alias","required":true,"schema":{"type":"string"}},{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@100"]],"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(\"/email/pro/{service}/account/{email}/alias/{alias}\")\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(\"/email/pro/{service}/account/{email}/alias/{alias}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/alias/delete","required":true}]},"get":{"summary":"Get an account alias","description":"Returns the alias address, its creation date and the ID of its pending task, if any (`taskPendingId`).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"alias","description":"Alias","required":true,"schema":{"type":"string"}},{"in":"path","name":"email","description":"Email","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.AccountAlias"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@80"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account/{email}/alias/{alias}\")\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(\"/email/pro/{service}/account/{email}/alias/{alias}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/alias/get","required":true}]}},"/email/pro/{service}/account/{email}/changePassword":{"post":{"summary":"Change an email account password","description":"Change an email account password. Sets the new `password` of the email account and returns the task that applies it.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"new password","format":"password"}},"required":["password"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@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\n# Request body type: password\nresult = client.post(\"/email/pro/{service}/account/{email}/changePassword\",\n\tpassword = None, # new password (type: password)\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: password\n$result = $ovh->post(\"/email/pro/{service}/account/{email}/changePassword\", array(\n\tpassword => null, // new password (type: password)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/changePassword","required":true}]}},"/email/pro/{service}/account/{email}/fullAccess":{"get":{"summary":"List full access permissions","description":"Returns the IDs of the accounts that have full access to the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Email","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","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","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@110"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account/{email}/fullAccess\")\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(\"/email/pro/{service}/account/{email}/fullAccess\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/fullAccess/get","required":true}],"x-expanded-response":"EmailProAccountFullAccess"},"post":{"summary":"Add a full access permission","description":"Add a full access permission. Gives the account `allowedAccountId` full access to the email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allowedAccountId":{"type":"integer","description":"User to give full access"}},"required":["allowedAccountId"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@130"]],"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: long\nresult = client.post(\"/email/pro/{service}/account/{email}/fullAccess\",\n\tallowedAccountId = None, # User to give full access (type: long)\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: long\n$result = $ovh->post(\"/email/pro/{service}/account/{email}/fullAccess\", array(\n\tallowedAccountId => null, // User to give full access (type: long)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/fullAccess/grant","required":true}]}},"/email/pro/{service}/account/{email}/fullAccess/{allowedAccountId}":{"delete":{"summary":"Remove a full access permission","description":"Remove a full access permission. Withdraws the access of the allowed account to the mailbox of this email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Account id to give full access","required":true,"schema":{"type":"integer"}},{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@140"]],"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(\"/email/pro/{service}/account/{email}/fullAccess/{allowedAccountId}\")\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(\"/email/pro/{service}/account/{email}/fullAccess/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/fullAccess/revoke","required":true}]},"get":{"summary":"Get a full access permission","description":"Returns the ID of the account that has full access to the email account, and the creation date of the permission.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Allowed account ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"email","description":"Email","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.AccountFullAccess"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@120"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account/{email}/fullAccess/{allowedAccountId}\")\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(\"/email/pro/{service}/account/{email}/fullAccess/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/fullAccess/get","required":true}]}},"/email/pro/{service}/account/{email}/sendAs":{"get":{"summary":"List send as permissions","description":"Returns the IDs of the accounts allowed to send emails as the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Email","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","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","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@150"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account/{email}/sendAs\")\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(\"/email/pro/{service}/account/{email}/sendAs\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/sendAs/get","required":true}],"x-expanded-response":"EmailProAccountSendAs"},"post":{"summary":"Add a send as permission","description":"Add a send as permission. Allows the account `allowAccountId` to send emails as the email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allowAccountId":{"type":"integer","description":"Account id to allow to send mails from this mailbox"}},"required":["allowAccountId"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@170"]],"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: long\nresult = client.post(\"/email/pro/{service}/account/{email}/sendAs\",\n\tallowAccountId = None, # Account id to allow to send mails from this mailbox (type: long)\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: long\n$result = $ovh->post(\"/email/pro/{service}/account/{email}/sendAs\", array(\n\tallowAccountId => null, // Account id to allow to send mails from this mailbox (type: long)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/sendAs/grant","required":true}]}},"/email/pro/{service}/account/{email}/sendAs/{allowedAccountId}":{"delete":{"summary":"Remove a send as permission","description":"Remove a send as permission. Withdraws the right of the allowed account to send emails as this email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Account id to give send as","required":true,"schema":{"type":"integer"}},{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@180"]],"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(\"/email/pro/{service}/account/{email}/sendAs/{allowedAccountId}\")\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(\"/email/pro/{service}/account/{email}/sendAs/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/sendAs/revoke","required":true}]},"get":{"summary":"Get a send as permission","description":"Returns the ID of the account allowed to send emails as the email account, and the creation date of the permission.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Allowed account ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"email","description":"Email","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.AccountSendAs"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@160"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account/{email}/sendAs/{allowedAccountId}\")\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(\"/email/pro/{service}/account/{email}/sendAs/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/sendAs/get","required":true}]}},"/email/pro/{service}/account/{email}/sendOnBehalfTo":{"get":{"summary":"List send on behalf permissions","description":"Returns the IDs of the accounts allowed to send emails on behalf of the email account.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Email","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","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","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@190"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account/{email}/sendOnBehalfTo\")\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(\"/email/pro/{service}/account/{email}/sendOnBehalfTo\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/sendOnBehalfTo/get","required":true}],"x-expanded-response":"EmailProAccountSendOnBehalfTo"},"post":{"summary":"Add a send on behalf permission","description":"Add a send on behalf permission. Allows the account `allowAccountId` to send emails on behalf of the email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allowAccountId":{"type":"integer","description":"Account id to allow to send On Behalf To mails from this mailbox"}},"required":["allowAccountId"]}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@210"]],"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: long\nresult = client.post(\"/email/pro/{service}/account/{email}/sendOnBehalfTo\",\n\tallowAccountId = None, # Account id to allow to send On Behalf To mails from this mailbox (type: long)\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: long\n$result = $ovh->post(\"/email/pro/{service}/account/{email}/sendOnBehalfTo\", array(\n\tallowAccountId => null, // Account id to allow to send On Behalf To mails from this mailbox (type: long)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/sendOnBehalfTo/grant","required":true}]}},"/email/pro/{service}/account/{email}/sendOnBehalfTo/{allowedAccountId}":{"delete":{"summary":"Remove a send on behalf permission","description":"Remove a send on behalf permission. Withdraws the right of the allowed account to send emails on behalf of this email account, and returns the task.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Account id to give send on behalf to","required":true,"schema":{"type":"integer"}},{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.Task"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@220"]],"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(\"/email/pro/{service}/account/{email}/sendOnBehalfTo/{allowedAccountId}\")\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(\"/email/pro/{service}/account/{email}/sendOnBehalfTo/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/sendOnBehalfTo/revoke","required":true}]},"get":{"summary":"Get a send on behalf permission","description":"Returns the ID of the account allowed to send emails on behalf of the email account, and the creation date of the permission.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"allowedAccountId","description":"Allowed account ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"email","description":"Email","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"Service","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/email.pro.AccountSendOnBehalfTo"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@200"]],"x-badges":[{"color":"blue","label":"Alpha 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(\"/email/pro/{service}/account/{email}/sendOnBehalfTo/{allowedAccountId}\")\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(\"/email/pro/{service}/account/{email}/sendOnBehalfTo/{allowedAccountId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/sendOnBehalfTo/get","required":true}]}},"/email/pro/{service}/account/{email}/terminate":{"post":{"summary":"Terminate an email account at expiration","description":"Terminate an email account at expiration. Sets the email account to be suspended at its expiration date, and returns a message giving that date.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"email","description":"Default email for this mailbox","required":true,"schema":{"type":"string"}},{"in":"path","name":"service","description":"The internal name of your pro organization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"string"}}}}},"x-developer-hub-navigation":[["Web Cloud","Email and Collaborative Solutions","Microsoft Exchange","Email Pro","Email Accounts@@@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\nresult = client.post(\"/email/pro/{service}/account/{email}/terminate\")\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->post(\"/email/pro/{service}/account/{email}/terminate\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"emailPro:apiovh:account/terminate","required":true}]}}}}
