{"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"},"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"},"ovhcloudconnect.Circuit":{"type":"object","description":"OVHcloud Connect Circuit","properties":{"creationDate":{"type":"string","description":"Creation date of the circuit","format":"date-time","readOnly":true},"doneDate":{"type":"string","description":"Date when the circuit was terminated","nullable":true,"format":"date-time","readOnly":true},"id":{"type":"integer","description":"Circuit id","readOnly":true},"key":{"type":"string","description":"Pairing key of the circuit","nullable":true,"readOnly":true},"lastUpdate":{"type":"string","description":"Last update date of the circuit","nullable":true,"format":"date-time","readOnly":true},"name":{"type":"string","description":"Circuit name","readOnly":true},"operationalStatus":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.circuit.OperationalStatusEnum"}],"description":"Operational status of the circuit","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.circuit.StatusEnum"}],"description":"Circuit status","readOnly":true}}},"ovhcloudconnect.Key":{"type":"object","description":"OVHcloud Connect Service Key","properties":{"id":{"type":"integer","description":"Service Key id","readOnly":true},"key":{"type":"string","description":"Reference of the service","readOnly":true},"provider":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.service.ProviderEnum"}],"description":"Service Key provider","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.key.StatusEnum"}],"description":"Service Key status","readOnly":true}}},"ovhcloudconnect.SendKeyAnswer":{"type":"object","description":"OVHcloud Connect send key answer","properties":{"messageCode":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.messageCode.Enum"}],"description":"message code for UX to display appropriate text","readOnly":true}}},"ovhcloudconnect.Task":{"type":"object","description":"OVHcloud Connect Task","properties":{"function":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.task.FunctionEnum"}],"description":"Task function","readOnly":true},"id":{"type":"integer","description":"Task id","readOnly":true},"resourceId":{"type":"integer","description":"Reference of the created resource","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.task.StatusEnum"}],"description":"Task status","readOnly":true}}},"ovhcloudconnect.To":{"type":"object","description":"OVHcloud Connect email","properties":{"email":{"type":"string","description":"Email address to send the key"}},"required":["email"]},"ovhcloudconnect.circuit.OperationalStatusEnum":{"type":"string","description":"Enum values for circuit operational status","enum":["degraded","down","unknown","up"]},"ovhcloudconnect.circuit.StatusEnum":{"type":"string","description":"Enum values for circuit status","enum":["active","pending","pending_customer","terminated","to_check"]},"ovhcloudconnect.key.StatusEnum":{"type":"string","description":"Enum values for service key status","enum":["active","cancelled","doing","terminated","toCheck"]},"ovhcloudconnect.messageCode.Enum":{"type":"string","description":"Enum values for messageCode","enum":["mailSent"]},"ovhcloudconnect.service.ProviderEnum":{"type":"string","description":"Enum values for service provider","enum":["OVHcloud","RISQ","consoleconnect","dcexp","digitalrealty","edge","equinix","fibrenoire","google","intercloud","internal","interxion","megaport","orange"]},"ovhcloudconnect.task.FunctionEnum":{"type":"string","description":"Enum values for Task function","enum":["addDatacenterConfiguration","addDatacenterExtraConfiguration","addPopConfiguration","addVrack","consumePairingKey","delDatacenterConfiguration","delDatacenterExtraConfiguration","delPopConfiguration","deleteCircuit","diagAccessEdge","diagMacs","diagPeering","diagPeeringExtra","diagRoutes","lockInterface","removeVrack","resetEdgeConfiguration","unlockInterface"]},"ovhcloudconnect.task.StatusEnum":{"type":"string","description":"Enum values for Task status","enum":["denied","doing","done","error","pause","todo"]},"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":{"/ovhCloudConnect/{serviceName}/circuit":{"get":{"summary":"List circuits","description":"Returns the IDs of the circuits created from Google pairing keys.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Family : Provider@@@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(\"/ovhCloudConnect/{serviceName}/circuit\")\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(\"/ovhCloudConnect/{serviceName}/circuit\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:circuit/get","required":true}],"x-expanded-response":"OvhcloudconnectCircuit"}},"/ovhCloudConnect/{serviceName}/circuit/{id}":{"delete":{"summary":"Delete circuit","description":"Dissociates the pairing key and removes the circuit (async 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","format":"uuid"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.Task"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Family : Provider@@@80"]],"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(\"/ovhCloudConnect/{serviceName}/circuit/{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(\"/ovhCloudConnect/{serviceName}/circuit/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:circuit/delete","required":true}]},"get":{"summary":"Get circuit","description":"Returns the circuit's pairing key, status and operational status.","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","format":"uuid"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.Circuit"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Family : Provider@@@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(\"/ovhCloudConnect/{serviceName}/circuit/{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(\"/ovhCloudConnect/{serviceName}/circuit/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:circuit/get","required":true}],"x-response-identifier":"id"}},"/ovhCloudConnect/{serviceName}/pairingKey":{"post":{"summary":"Associate pairing key","description":"Consumes a Google Cloud Partner Interconnect pairing key to create a circuit; the service needs a vRack (async task).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"pairingKey","description":"Google pairing key","required":true,"schema":{"type":"string"}},{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.Task"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Family : Provider@@@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.post(\"/ovhCloudConnect/{serviceName}/pairingKey\")\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(\"/ovhCloudConnect/{serviceName}/pairingKey\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:pairingKey/create","required":true}]}},"/ovhCloudConnect/{serviceName}/serviceKey":{"get":{"summary":"List service keys","description":"Returns the IDs of all service keys generated for the provider, current and past.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Family : Provider@@@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(\"/ovhCloudConnect/{serviceName}/serviceKey\")\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(\"/ovhCloudConnect/{serviceName}/serviceKey\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:serviceKey/get","required":true}],"x-expanded-response":"OvhcloudconnectKey"}},"/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}":{"get":{"summary":"Get service key","description":"Returns the key value, its provider and its status.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceKeyId","description":"Service key ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.Key"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Family : Provider@@@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\nresult = client.get(\"/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}\")\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(\"/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:serviceKey/get","required":true}],"x-response-identifier":"id"}},"/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}/regenerate":{"post":{"summary":"Regenerate service key","description":"Generates a new key that the provider uses to set up the connection; previous service key is no longer active.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceKeyId","description":"Service key ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.Key"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Family : Provider@@@70"]],"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(\"/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}/regenerate\")\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(\"/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}/regenerate\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:serviceKey/regenerate","required":true}]}},"/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}/send":{"post":{"summary":"Send service key","description":"Emails the key value to the given address.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceKeyId","description":"Service key ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.To"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.SendKeyAnswer"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Family : Provider@@@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: ovhcloudconnect.To\nresult = client.post(\"/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}/send\",\n\temail = None, # Email address to send the key (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: ovhcloudconnect.To\n$result = $ovh->post(\"/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}/send\", array(\n\temail => null, // Email address to send the key (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:serviceKey/send","required":true}]}}}}
