{"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 !"},"dedicated.DatacenterEnum":{"type":"string","description":"ovh datacenter","enum":["bhs1","bhs2","bhs3","bhs4","bhs5","bhs6","bhs7","bhs8","cch01","crx1","crx2","dc1","eri1","eri2","frcrx41","frcrx42","frcrx43","gra04","gra1","gra2","gra3","gsw","hdf01","hil1","ieb01","itbsi01","itmil01","itzvf01","lil1-int1","lim1","lim2","lim3","mr901","p19","rbx","rbx-hz","rbx1","rbx10","rbx2","rbx3","rbx4","rbx5","rbx6","rbx7","rbx8","rbx9","sbg1","sbg2","sbg3","sbg4","sbg5","sgp02","sgp1","syd03","syd1","syd2","vin1","waw1","ynm1","yyz01"]},"dedicated.PublicLog":{"type":"object","description":"List of logs","properties":{"cacheDate":{"type":"string","description":"Cache store timestamp","nullable":true,"format":"date-time"},"count":{"type":"integer","description":"Total amount of lines"},"data":{"type":"array","description":"Logs","items":{"$ref":"#/components/schemas/dedicated.PublicLogEntry"}}}},"dedicated.PublicLogEntry":{"type":"object","description":"A log entry for a specific server","properties":{"datetime":{"type":"string","description":"Timestamp logged","format":"date-time"},"resume":{"type":"string","description":"Short text describing the entry"},"server":{"type":"string","description":"Name of the dedicated server"}}},"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"},"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":{"/dedicated/server/log":{"get":{"summary":"List public server logs","description":"List public server logs. Returns public log entries for servers, page by page, optionally restricted to one server or one datacenter. Each entry gives the server name, a short text and a timestamp. This route is deprecated.","deprecated":true,"x-deprecation-date":"0001-01-01T00:00:00Z","x-deletion-date":"0001-01-01T00:00:00Z","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"datacenter","description":"Restrict on the given datacenter","schema":{"$ref":"#/components/schemas/dedicated.DatacenterEnum"}},{"in":"query","name":"limit","description":"Amount of rows per page","schema":{"type":"integer"}},{"in":"query","name":"page","description":"Page to display","schema":{"type":"integer"}},{"in":"query","name":"server","description":"Restrict on the given server","schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/dedicated.PublicLog"}}}}},"x-developer-hub-navigation":[["Bare Metal Cloud","Dedicated Servers","Observability@@@100"]],"x-badges":[{"color":"red","label":"Deprecated, will be removed"}],"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(\"/dedicated/server/log\")\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(\"/dedicated/server/log\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"dedicatedServer:apiovh:log/get","required":true}]}}}}
