{"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 !"},"common.RegionEnum":{"type":"string","description":"RegionEnum","enum":["af-north-lz-rba","ap-south-mum","ap-southeast-sgp","ap-southeast-syd","ca-east-bhs","ca-east-tor","eu-central-lz-buh","eu-central-lz-prg","eu-central-lz-sof","eu-central-waw","eu-north-lz-cph","eu-north-lz-hel","eu-north-lz-osl","eu-north-lz-sto","eu-south-lz-lis","eu-south-lz-mad","eu-south-lz-mil","eu-south-mil","eu-west-eri","eu-west-gra","eu-west-gra-snc","eu-west-lim","eu-west-lz-ams","eu-west-lz-bru","eu-west-lz-dln","eu-west-lz-lux","eu-west-lz-mnc","eu-west-lz-mrs","eu-west-lz-vie","eu-west-lz-zrh","eu-west-par","eu-west-rbx","eu-west-rbx-snc","eu-west-sbg","eu-west-sbg-snc","us-central-lz-slc","us-central-lz-stl","us-east-lz-atl","us-east-lz-bos","us-east-lz-chi","us-east-lz-dal","us-east-lz-mia","us-east-lz-nyc","us-east-vin","us-west-hil","us-west-lz-den","us-west-lz-lax","us-west-lz-pao","us-west-lz-sea"]},"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.Datacenter":{"type":"object","description":"OVHcloud Connect Datacenter","properties":{"available":{"type":"boolean","description":"Get availability to add new configuration on it","readOnly":true},"id":{"type":"integer","description":"ID of the datacenter","readOnly":true},"name":{"type":"string","description":"name of the datacenter","readOnly":true},"region":{"allOf":[{"$ref":"#/components/schemas/common.RegionEnum"}],"description":"region of the datacenter","readOnly":true},"regionType":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.datacenter.RegionTypeEnum"}],"description":"region type of the datacenter","readOnly":true}}},"ovhcloudconnect.DatacenterConfig":{"type":"object","description":"OVHcloud Connect Service Datacenter Configuration","properties":{"datacenterId":{"type":"integer","description":"ID of the datacenter linked"},"id":{"type":"integer","description":"ID of the Datacenter configuration","readOnly":true},"ovhBgpArea":{"type":"integer","description":"OVH Private AS","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.popConfig.StatusEnum"}],"description":"Status of the pop configuration","readOnly":true},"subnet":{"allOf":[{"$ref":"#/components/schemas/ipv4Block"}],"description":"Subnet should be a /28 min","nullable":true}},"required":["datacenterId"]},"ovhcloudconnect.DatacenterExtraConfig":{"type":"object","description":"OVHcloud Connect Service Datacenter Extra Configuration","properties":{"bgpNeighborArea":{"type":"integer","description":"BGP AS number","nullable":true},"bgpNeighborIp":{"allOf":[{"$ref":"#/components/schemas/ipv4"}],"description":"Router IP for BGP","nullable":true},"id":{"type":"integer","description":"ID of the extra configuration ","readOnly":true},"nextHop":{"allOf":[{"$ref":"#/components/schemas/ipv4"}],"description":"Static route next hop","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.popConfig.StatusEnum"}],"description":"Status of the pop configuration","readOnly":true},"subnet":{"allOf":[{"$ref":"#/components/schemas/ipv4Block"}],"description":"Static route ip","nullable":true},"type":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.datacenterExtraConfig.TypeEnum"}],"description":"Type of the configuration"}},"required":["type"]},"ovhcloudconnect.PopConfig":{"type":"object","description":"OVHcloud Connect Service Pop Configuration","properties":{"customerBgpArea":{"type":"integer","description":"Customer Private AS","nullable":true},"id":{"type":"integer","description":"ID of the Pop Configuration","readOnly":true},"interfaceId":{"type":"integer","description":"ID of the interface"},"ovhBgpArea":{"type":"integer","description":"OVH Private AS","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.popConfig.StatusEnum"}],"description":"Status of the pop configuration","readOnly":true},"subnet":{"allOf":[{"$ref":"#/components/schemas/ipv4Block"}],"description":"Subnet should be a /30, first IP for OVH, second IP for customer","nullable":true},"type":{"allOf":[{"$ref":"#/components/schemas/ovhcloudconnect.popConfig.TypeEnum"}],"description":"Type of the pop configuration"}},"required":["interfaceId","type"]},"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.datacenter.RegionTypeEnum":{"type":"string","description":"Enum values for datacenter region type","enum":["1-AZ","3-AZ"]},"ovhcloudconnect.datacenterExtraConfig.TypeEnum":{"type":"string","description":"Enum values for Datacenter Extra Configuration Type","enum":["bgp","network"]},"ovhcloudconnect.popConfig.StatusEnum":{"type":"string","description":"Enum values for Pop Configuration Status","enum":["active","init","toDelete"]},"ovhcloudconnect.popConfig.TypeEnum":{"type":"string","description":"Enum values for Pop Configuration Type","enum":["l2","l3"]},"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}/config/pop":{"get":{"summary":"List PoP configurations","description":"Returns the IDs of the PoP configurations.","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","Configuration@@@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}/config/pop\")\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}/config/pop\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/get","required":true}],"x-expanded-response":"OvhcloudconnectPopConfig"},"post":{"summary":"Create PoP configuration","description":"Sets configuration for an interface from `interfaceList`; Provided settings depends on type L2 or L3 (async task).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"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.PopConfig"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.Task"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Configuration@@@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: ovhcloudconnect.PopConfig\nresult = client.post(\"/ovhCloudConnect/{serviceName}/config/pop\",\n\tcustomerBgpArea = None, # Customer Private AS (type: integer, nullable)\n\tinterfaceId = None, # ID of the interface (type: integer)\n\tovhBgpArea = None, # OVH Private AS (type: integer, nullable)\n\tsubnet = None, # Subnet should be a /30, first IP for OVH, second IP for customer (type: ipv4Block, nullable)\n\ttype = None, # Type of the pop configuration (type: ovhcloudconnect.popConfig.TypeEnum)\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.PopConfig\n$result = $ovh->post(\"/ovhCloudConnect/{serviceName}/config/pop\", array(\n\tcustomerBgpArea => null, // Customer Private AS (type: integer, nullable)\n\tinterfaceId => null, // ID of the interface (type: integer)\n\tovhBgpArea => null, // OVH Private AS (type: integer, nullable)\n\tsubnet => null, // Subnet should be a /30, first IP for OVH, second IP for customer (type: ipv4Block, nullable)\n\ttype => null, // Type of the pop configuration (type: ovhcloudconnect.popConfig.TypeEnum)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/create","required":true}]}},"/ovhCloudConnect/{serviceName}/config/pop/{popId}":{"delete":{"summary":"Delete PoP configuration","description":"Removes the PoP configuration from its interface (async task).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"popId","description":"Pop 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","Configuration@@@120"]],"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}/config/pop/{popId}\")\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}/config/pop/{popId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/delete","required":true}]},"get":{"summary":"Get PoP configuration","description":"Returns the configuration's type, interface, subnet, AS numbers and status.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"popId","description":"Pop 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.PopConfig"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Configuration@@@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.get(\"/ovhCloudConnect/{serviceName}/config/pop/{popId}\")\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}/config/pop/{popId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/get","required":true}],"x-response-identifier":"id"}},"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter":{"get":{"summary":"List availability zone configurations","description":"Returns the IDs of the availability zones connected through this PoP configuration.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"popId","description":"Pop 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":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Configuration@@@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}/config/pop/{popId}/datacenter\")\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}/config/pop/{popId}/datacenter\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/datacenter/get","required":true}],"x-expanded-response":"OvhcloudconnectDatacenterConfig"},"post":{"summary":"Create availability zone configuration","description":"Connects an availability zone to this PoP configuration; L3 also needs a /28 subnet and the OVHcloud AS (async task).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"popId","description":"Pop 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.DatacenterConfig"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.Task"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Configuration@@@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\n# Request body type: ovhcloudconnect.DatacenterConfig\nresult = client.post(\"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter\",\n\tdatacenterId = None, # ID of the datacenter linked (type: integer)\n\tovhBgpArea = None, # OVH Private AS (type: integer, nullable)\n\tsubnet = None, # Subnet should be a /28 min (type: ipv4Block, nullable)\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.DatacenterConfig\n$result = $ovh->post(\"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter\", array(\n\tdatacenterId => null, // ID of the datacenter linked (type: integer)\n\tovhBgpArea => null, // OVH Private AS (type: integer, nullable)\n\tsubnet => null, // Subnet should be a /28 min (type: ipv4Block, nullable)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/datacenter/create","required":true}]}},"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}":{"delete":{"summary":"Delete availability zone configuration","description":"Disconnects the availability zone from this PoP configuration (async task).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"datacenterId","description":"Datacenter ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"popId","description":"Pop 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","Configuration@@@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\nresult = client.delete(\"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}\")\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}/config/pop/{popId}/datacenter/{datacenterId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/datacenter/delete","required":true}]},"get":{"summary":"Get availability zone configuration","description":"Returns the linked availability zone, subnet, OVHcloud AS and status.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"datacenterId","description":"Datacenter ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"popId","description":"Pop 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.DatacenterConfig"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Configuration@@@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.get(\"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}\")\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}/config/pop/{popId}/datacenter/{datacenterId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/datacenter/get","required":true}],"x-response-identifier":"id"}},"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra":{"get":{"summary":"List routing configurations","description":"Returns the IDs of the BGP peers and static routes of this availability zone configuration.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"datacenterId","description":"Datacenter ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"popId","description":"Pop 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":{"type":"array","items":{"type":"integer"}}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Configuration@@@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}/config/pop/{popId}/datacenter/{datacenterId}/extra\")\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}/config/pop/{popId}/datacenter/{datacenterId}/extra\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/datacenter/extra/get","required":true}],"x-expanded-response":"OvhcloudconnectDatacenterExtraConfig"},"post":{"summary":"Create routing configuration","description":"Adds a BGP peer (`bgp`) or a static route (`network`) to this availability zone configuration (async task).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"datacenterId","description":"Datacenter ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"popId","description":"Pop 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.DatacenterExtraConfig"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ovhcloudconnect.Task"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Configuration@@@110"]],"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.DatacenterExtraConfig\nresult = client.post(\"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra\",\n\tbgpNeighborArea = None, # BGP AS number (type: integer, nullable)\n\tbgpNeighborIp = None, # Router IP for BGP (type: ipv4, nullable)\n\tnextHop = None, # Static route next hop (type: ipv4, nullable)\n\tsubnet = None, # Static route ip (type: ipv4Block, nullable)\n\ttype = None, # Type of the configuration (type: ovhcloudconnect.datacenterExtraConfig.TypeEnum)\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.DatacenterExtraConfig\n$result = $ovh->post(\"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra\", array(\n\tbgpNeighborArea => null, // BGP AS number (type: integer, nullable)\n\tbgpNeighborIp => null, // Router IP for BGP (type: ipv4, nullable)\n\tnextHop => null, // Static route next hop (type: ipv4, nullable)\n\tsubnet => null, // Static route ip (type: ipv4Block, nullable)\n\ttype => null, // Type of the configuration (type: ovhcloudconnect.datacenterExtraConfig.TypeEnum)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/datacenter/extra/create","required":true}]}},"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId}":{"delete":{"summary":"Delete routing configuration","description":"Removes the BGP peer or static route (async task).","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"datacenterId","description":"Datacenter ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"extraId","description":"Extra ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"popId","description":"Pop 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","Configuration@@@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(\"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId}\")\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}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/datacenter/extra/delete","required":true}]},"get":{"summary":"Get routing configuration","description":"Returns the route type, its BGP peer or static subnet and next hop, and its status.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"datacenterId","description":"Datacenter ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"extraId","description":"Extra ID","required":true,"schema":{"type":"integer"}},{"in":"path","name":"popId","description":"Pop 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.DatacenterExtraConfig"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Configuration@@@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.get(\"/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId}\")\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}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:config/pop/datacenter/extra/get","required":true}],"x-response-identifier":"id"}},"/ovhCloudConnect/{serviceName}/datacenter":{"get":{"summary":"List availability zones","description":"Returns the IDs of the availability zones this service can connect to.","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","Configuration@@@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}/datacenter\")\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}/datacenter\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:datacenter/get","required":true}],"x-expanded-response":"OvhcloudconnectDatacenter"}},"/ovhCloudConnect/{serviceName}/datacenter/{id}":{"get":{"summary":"Get availability zone","description":"Returns the availability zone's name, region, 1-AZ or 3-AZ type, and whether it accepts a new configuration.","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.Datacenter"}}}}},"x-developer-hub-navigation":[["Network","OVHcloud Connect","Configuration@@@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.get(\"/ovhCloudConnect/{serviceName}/datacenter/{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}/datacenter/{id}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"ovhCloudConnect:apiovh:datacenter/get","required":true}],"x-response-identifier":"id"}}}}
