{"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"},"phoneNumber":{"type":"string","description":"Phone number","format":"phone-number"},"storage.NetAppServiceSummary":{"type":"object","description":"A summarized representation of a service","properties":{"id":{"type":"string","description":"Service ID","format":"uuid","readOnly":true},"name":{"type":"string","description":"Service name","readOnly":true}}},"storage.NetAppShareForShareReplication":{"type":"object","description":"A share used for share replication creation","properties":{"description":{"type":"string","description":"Share description"},"mountPointName":{"type":"string","description":"User-defined name used to generate human readable access path for the share"},"name":{"type":"string","description":"Share name"},"protocol":{"allOf":[{"$ref":"#/components/schemas/storage.ProtocolEnum"}],"description":"Share protocol"},"size":{"type":"integer","description":"Share size in GiB"}},"required":["protocol","size"]},"storage.NetAppShareReplicaStateEnum":{"type":"string","description":"Share replica state","enum":["active","error","in_sync","out_of_sync"]},"storage.NetAppShareReplication":{"type":"object","description":"A share replication","properties":{"createdAt":{"type":"string","description":"Share replication creation date","nullable":true,"format":"date-time","readOnly":true},"description":{"type":"string","description":"Share replication description","nullable":true,"readOnly":true},"destination":{"allOf":[{"$ref":"#/components/schemas/storage.NetAppShareReplicationDestination"}],"description":"Share replication destination information","readOnly":true},"id":{"type":"string","description":"Share replication ID","format":"uuid","readOnly":true},"progress":{"type":"integer","description":"Percentage of the source share’s data that has been successfully replicated to the destination share","nullable":true,"readOnly":true},"replicaState":{"allOf":[{"$ref":"#/components/schemas/storage.NetAppShareReplicaStateEnum"}],"description":"Share replica state","nullable":true,"readOnly":true},"source":{"allOf":[{"$ref":"#/components/schemas/storage.NetAppShareReplicationSource"}],"description":"Share replication source information","readOnly":true},"status":{"allOf":[{"$ref":"#/components/schemas/storage.NetAppShareReplicationStatusEnum"}],"description":"Share replication status","nullable":true,"readOnly":true}}},"storage.NetAppShareReplicationAccept":{"type":"object","description":"A share replication acceptation","properties":{"share":{"allOf":[{"$ref":"#/components/schemas/storage.NetAppShareForShareReplication"}],"description":"Replication share"}}},"storage.NetAppShareReplicationCreate":{"type":"object","description":"A share replication creation input","properties":{"description":{"type":"string","description":"Share replication description","nullable":true},"destinationServiceId":{"type":"string","description":"Replication service ID (destination)","format":"uuid"},"sourceShareId":{"type":"string","description":"Replication share ID (source)","format":"uuid"}}},"storage.NetAppShareReplicationDestination":{"type":"object","description":"A share replication destination","properties":{"serviceID":{"type":"string","description":"Service ID","format":"uuid","readOnly":true},"shareID":{"type":"string","description":"Share ID","nullable":true,"format":"uuid","readOnly":true}}},"storage.NetAppShareReplicationServicesCompatibility":{"type":"object","description":"Result of checking if a service can be a share replication destination","properties":{"compatible":{"type":"boolean","description":"Whether service can be used as destination","readOnly":true},"reason":{"type":"string","description":"Indicates why service can't be used as destination if applicable","nullable":true,"readOnly":true},"service":{"allOf":[{"$ref":"#/components/schemas/storage.NetAppServiceSummary"}],"description":"Summarized properties of the checked service","readOnly":true}}},"storage.NetAppShareReplicationSource":{"type":"object","description":"A share replication source","properties":{"serviceID":{"type":"string","description":"Service ID","format":"uuid","readOnly":true},"shareID":{"type":"string","description":"Share ID","format":"uuid","readOnly":true}}},"storage.NetAppShareReplicationStatusEnum":{"type":"string","description":"Share replication status","enum":["accepted","completed","cutover","cutting_over","deleted","deleting","error","pending"]},"storage.ProtocolEnum":{"type":"string","description":"Storage protocol","enum":["NFS"]},"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":{"/storage/netapp/{serviceName}/shareReplication":{"get":{"summary":"List share replications","description":"Returns the share replications of the service, whether this service is the source or the destination.","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":{"$ref":"#/components/schemas/storage.NetAppShareReplication"}}}}}},"tags":["share replication"],"x-developer-hub-navigation":[["Storage & Backup","File Storage","Enterprise File Storage","Share Replication@@@10"]],"x-badges":[{"color":"blue","label":"Beta 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(\"/storage/netapp/{serviceName}/shareReplication\")\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(\"/storage/netapp/{serviceName}/shareReplication\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"storageNetApp:apiovh:shareReplication/get","required":true}],"x-response-identifier":"id","x-expanded-response":"StorageNetAppShareReplication"},"post":{"summary":"Create a share replication","description":"Creates a share replication from a share of this service to the service given in `destinationServiceId`. It is returned with status pending, and the replication only starts after it is accepted on the destination service. To find a compatible destination, use *List compatible replication destinations*.","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/storage.NetAppShareReplicationCreate"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/storage.NetAppShareReplication"}}}}},"tags":["share replication"],"x-developer-hub-navigation":[["Storage & Backup","File Storage","Enterprise File Storage","Share Replication@@@40"]],"x-badges":[{"color":"blue","label":"Beta 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: storage.NetAppShareReplicationCreate\nresult = client.post(\"/storage/netapp/{serviceName}/shareReplication\",\n\tdescription = None, # Share replication description (type: string, nullable)\n\tdestinationServiceId = None, # Replication service ID (destination) (type: string)\n\tsourceShareId = None, # Replication share ID (source) (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: storage.NetAppShareReplicationCreate\n$result = $ovh->post(\"/storage/netapp/{serviceName}/shareReplication\", array(\n\tdescription => null, // Share replication description (type: string, nullable)\n\tdestinationServiceId => null, // Replication service ID (destination) (type: string)\n\tsourceShareId => null, // Replication share ID (source) (type: string)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"storageNetApp:apiovh:shareReplication/create","required":true},{"name":"storageNetApp:apiovh:shareReplication/accept","required":true}]}},"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}":{"delete":{"summary":"Delete a share replication","description":"Deletes the share replication. Deletion is asynchronous and blocked while the replication is in status cutting_over, deleting or error. If the replication was accepted, the destination share is deleted with it.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"shareReplicationId","description":"Share replication ID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"successful operation"}},"tags":["share replication"],"x-developer-hub-navigation":[["Storage & Backup","File Storage","Enterprise File Storage","Share Replication@@@70"]],"x-badges":[{"color":"blue","label":"Beta 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(\"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}\")\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(\"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"storageNetApp:apiovh:shareReplication/delete","required":true}]},"get":{"summary":"Get a share replication","description":"Returns the source, destination, status and progress of the replication, in percent.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"shareReplicationId","description":"Share replication ID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/storage.NetAppShareReplication"}}}}},"tags":["share replication"],"x-developer-hub-navigation":[["Storage & Backup","File Storage","Enterprise File Storage","Share Replication@@@20"]],"x-badges":[{"color":"blue","label":"Beta 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(\"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}\")\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(\"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"storageNetApp:apiovh:shareReplication/get","required":true}],"x-response-identifier":"id"}},"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}/accept":{"post":{"summary":"Accept a share replication","description":"Accepts the share replication and creates the destination share on this service, with the name, size and protocol given in the body. The replication must be in status pending. Acceptance is asynchronous: the replication is returned with status accepted, follow its progress until the replica state is in_sync.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"shareReplicationId","description":"Share replication ID","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/storage.NetAppShareReplicationAccept"}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/storage.NetAppShareReplication"}}}}},"tags":["share replication"],"x-developer-hub-navigation":[["Storage & Backup","File Storage","Enterprise File Storage","Share Replication@@@50"]],"x-badges":[{"color":"blue","label":"Beta 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: storage.NetAppShareReplicationAccept\nresult = client.post(\"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}/accept\",\n\tshare = None, # Replication share (type: storage.NetAppShareForShareReplication)\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: storage.NetAppShareReplicationAccept\n$result = $ovh->post(\"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}/accept\", array(\n\tshare => null, // Replication share (type: storage.NetAppShareForShareReplication)\n));\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"storageNetApp:apiovh:shareReplication/accept","required":true}]}},"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}/cutover":{"post":{"summary":"Cut over a share replication","description":"Cuts over the share replication: the destination share becomes the primary, the replication stops, and the source and destination data diverge after it, so the operation cannot be undone. The call must be made on the destination service, and the replication must be in status accepted. The cutover is asynchronous: follow the status of the share replication until it is completed.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"path","name":"serviceName","description":"Service name","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"shareReplicationId","description":"Share replication ID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/storage.NetAppShareReplication"}}}}},"tags":["share replication"],"x-developer-hub-navigation":[["Storage & Backup","File Storage","Enterprise File Storage","Share Replication@@@60"]],"x-badges":[{"color":"blue","label":"Beta 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(\"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}/cutover\")\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(\"/storage/netapp/{serviceName}/shareReplication/{shareReplicationId}/cutover\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"storageNetApp:apiovh:shareReplication/cutover","required":true}]}},"/storage/netapp/{serviceName}/shareReplicationServicesCompatibility":{"get":{"summary":"List compatible replication destinations","description":"Returns, for each service on which you are allowed to accept share replications, whether it can be a destination for share replications from this service, and the reason when it cannot. A destination is compatible when it is in the same region as the source service, and when the source service uses a public network while the destination uses a vRack network. Set `compatibleOnly` to true to return only compatible destinations.","security":[{"oAuth2AuthCode":[]}],"parameters":[{"in":"query","name":"compatibleOnly","description":"If set to true, only services compatible as share replication destinations for the given source are returned","schema":{"type":"boolean"}},{"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":{"$ref":"#/components/schemas/storage.NetAppShareReplicationServicesCompatibility"}}}}}},"tags":["share replication"],"x-developer-hub-navigation":[["Storage & Backup","File Storage","Enterprise File Storage","Share Replication@@@30"]],"x-badges":[{"color":"blue","label":"Beta 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(\"/storage/netapp/{serviceName}/shareReplicationServicesCompatibility\")\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(\"/storage/netapp/{serviceName}/shareReplicationServicesCompatibility\");\n\nprint_r($result);\n?>"}],"x-iam-actions":[{"name":"storageNetApp:apiovh:shareReplicationServicesCompatibility/get","required":true},{"name":"storageNetApp:apiovh:shareReplication/accept","description":"Needed on a destination EFS service for it to be listed in the response body","required":false}]}}},"tags":[{"name":"share replication","x-tag-expanded":false,"description":"Missing description"}]}
