OVHcloud snapshot policies API

Set of operations used to define snapshot policies and assign them to shares.

GitHub OpenAPI

Operations 7

GET /storage/netapp/{serviceName}/share/{shareId}/snapshotPolicy Get the share snapshot policy #
PUT /storage/netapp/{serviceName}/share/{shareId}/snapshotPolicy Update the share snapshot policy #
GET /storage/netapp/{serviceName}/snapshotPolicy List snapshot policies #
POST /storage/netapp/{serviceName}/snapshotPolicy Create a snapshot policy #
DELETE /storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId} Delete a snapshot policy #
GET /storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId} Get a snapshot policy #
PUT /storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId} Update a snapshot policy #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ovh:ovh-snapshot-policies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ovh-snapshot-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ovh snapshot policies API
  version: '1.0'
  contact:
    name: OVH
    email: api@ml.ovh.net
  description: 'Operations tagged snapshot policies across 2 of this provider''s published API definitions: ovh-v1-storage-openapi.json, ovh-v1-storage-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://eu.api.ovh.com/v1
tags:
- name: snapshot policies
  x-tag-expanded: false
  description: Set of operations used to define snapshot policies and assign them to shares.
paths:
  /storage/netapp/{serviceName}/share/{shareId}/snapshotPolicy:
    get:
      operationId: getNetappShareSnapshotPolicy
      summary: Get the share snapshot policy
      description: Returns the snapshot policy applied to the share and the status of its assignment. A share that was never assigned a policy uses the default snapshot policy of the service.
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceName
        description: Service name
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: shareId
        description: Share ID
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/storage.NetAppShareSnapshotPolicy'
      tags:
      - snapshot policies
      x-developer-hub-navigation:
      - - Storage & Backup
        - File Storage
        - Enterprise File Storage
        - Snapshot Policies@@@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(\"/storage/netapp/{serviceName}/share/{shareId}/snapshotPolicy\")\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}/share/{shareId}/snapshotPolicy\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: storageNetApp:apiovh:share/snapshotPolicy/get
        required: true
    put:
      operationId: editNetappShareSnapshotPolicy
      summary: Update the share snapshot policy
      description: 'Applies one of the snapshot policies of the service to the share. The share and the policy must be available, and the default policy cannot be assigned, so a share cannot be moved back to it. The update is asynchronous: follow the snapshot policy status of the share until active.'
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceName
        description: Service name
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: shareId
        description: Share ID
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/storage.NetAppShareSnapshotPolicyUpdate'
      responses:
        '200':
          description: successful operation
      tags:
      - snapshot policies
      x-developer-hub-navigation:
      - - Storage & Backup
        - File Storage
        - Enterprise File Storage
        - Snapshot Policies@@@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\n# Request body type: storage.NetAppShareSnapshotPolicyUpdate\nresult = client.put(\"/storage/netapp/{serviceName}/share/{shareId}/snapshotPolicy\",\n\tsnapshotPolicyID = None, # Snapshot policy ID (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.NetAppShareSnapshotPolicyUpdate\n$result = $ovh->put(\"/storage/netapp/{serviceName}/share/{shareId}/snapshotPolicy\", array(\n\tsnapshotPolicyID => null, // Snapshot policy ID (type: string)\n));\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: storageNetApp:apiovh:share/snapshotPolicy/edit
        required: true
    servers:
    - url: https://eu.api.ovh.com/v1
  /storage/netapp/{serviceName}/snapshotPolicy:
    get:
      operationId: getAllNetappSnapshotPolicies
      summary: List snapshot policies
      description: 'Returns the snapshot policies, including the default one. Each item contains only the policy ID and name: get a snapshot policy to read its rules and status.'
      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.NetAppSnapshotPolicy'
      tags:
      - snapshot policies
      x-developer-hub-navigation:
      - - Storage & Backup
        - File Storage
        - Enterprise File Storage
        - Snapshot Policies@@@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(\"/storage/netapp/{serviceName}/snapshotPolicy\")\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}/snapshotPolicy\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: storageNetApp:apiovh:snapshotPolicy/get
        required: true
      x-response-identifier: id
      x-expanded-response: StorageNetAppSnapshotPolicy
    post:
      operationId: createNetappSnapshotPolicy
      summary: Create a snapshot policy
      description: 'Creates a policy made of rules, each with a schedule, a snapshot name prefix and a number of copies to keep. Creation is asynchronous: follow the snapshot policy status until it is available. The policy takes effect only once it is assigned to a share.'
      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.NetAppSnapshotPolicy'
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/storage.NetAppSnapshotPolicy'
      tags:
      - snapshot policies
      x-developer-hub-navigation:
      - - Storage & Backup
        - File Storage
        - Enterprise File Storage
        - Snapshot Policies@@@40
      x-badges:
      - color: green
        label: Stable production version
      x-code-samples:
      - lang: python
        label: Python
        source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: storage.NetAppSnapshotPolicy\nresult = client.post(\"/storage/netapp/{serviceName}/snapshotPolicy\",\n\tdescription = None, # Snapshot policy description (type: string, nullable)\n\tname = None, # Snapshot policy name (type: string, nullable)\n\trules = None, # Snapshot policy rules, 1 to 4 (type: array, 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: storage.NetAppSnapshotPolicy\n$result = $ovh->post(\"/storage/netapp/{serviceName}/snapshotPolicy\", array(\n\tdescription => null, // Snapshot policy description (type: string, nullable)\n\tname => null, // Snapshot policy name (type: string, nullable)\n\trules => null, // Snapshot policy rules, 1 to 4 (type: array, nullable)\n));\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: storageNetApp:apiovh:snapshotPolicy/create
        required: true
    servers:
    - url: https://eu.api.ovh.com/v1
  /storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId}:
    delete:
      operationId: deleteNetappSnapshotPolicy
      summary: Delete a snapshot policy
      description: 'Deletes the snapshot policy and its schedules. A policy applied to a share cannot be deleted: apply another non-default policy to the share first. The default policy cannot be deleted, and deletion is asynchronous: follow the snapshot policy status until the policy is no longer found.'
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceName
        description: Service name
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: snapshotPolicyId
        description: Snapshot policy ID
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: successful operation
      tags:
      - snapshot policies
      x-developer-hub-navigation:
      - - Storage & Backup
        - File Storage
        - Enterprise File Storage
        - Snapshot Policies@@@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.delete(\"/storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId}\")\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}/snapshotPolicy/{snapshotPolicyId}\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: storageNetApp:apiovh:snapshotPolicy/delete
        required: true
    get:
      operationId: getNetappSnapshotPolicy
      summary: Get a snapshot policy
      description: Returns the snapshot policy with its rules and status. A policy can be updated, deleted or assigned to a share only when its status is available.
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceName
        description: Service name
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: snapshotPolicyId
        description: Snapshot policy ID
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/storage.NetAppSnapshotPolicy'
      tags:
      - snapshot policies
      x-developer-hub-navigation:
      - - Storage & Backup
        - File Storage
        - Enterprise File Storage
        - Snapshot Policies@@@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(\"/storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId}\")\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}/snapshotPolicy/{snapshotPolicyId}\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: storageNetApp:apiovh:snapshotPolicy/get
        required: true
      x-response-identifier: id
    put:
      operationId: editNetappSnapshotPolicy
      summary: Update a snapshot policy
      description: 'Updates the policy name and description. Rules cannot be changed: create a new policy instead. The policy must be available, and the default policy cannot be updated.'
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceName
        description: Service name
        required: true
        schema:
          type: string
          format: uuid
      - in: path
        name: snapshotPolicyId
        description: Snapshot policy ID
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/storage.NetAppSnapshotPolicyUpdate'
      responses:
        '200':
          description: successful operation
      tags:
      - snapshot policies
      x-developer-hub-navigation:
      - - Storage & Backup
        - File Storage
        - Enterprise File Storage
        - Snapshot Policies@@@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: storage.NetAppSnapshotPolicyUpdate\nresult = client.put(\"/storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId}\",\n\tdescription = None, # New snapshot policy description (type: string, nullable)\n\tname = None, # New snapshot policy name (type: string, 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: storage.NetAppSnapshotPolicyUpdate\n$result = $ovh->put(\"/storage/netapp/{serviceName}/snapshotPolicy/{snapshotPolicyId}\", array(\n\tdescription => null, // New snapshot policy description (type: string, nullable)\n\tname => null, // New snapshot policy name (type: string, nullable)\n));\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: storageNetApp:apiovh:snapshotPolicy/edit
        required: true
    servers:
    - url: https://eu.api.ovh.com/v1
components:
  schemas:
    storage.NetAppSnapshotPolicy:
      type: object
      description: A snapshot policy
      properties:
        createdAt:
          type:
          - string
          - 'null'
          description: Snapshot policy creation date
          format: date-time
          readOnly: true
        description:
          type:
          - string
          - 'null'
          description: Snapshot policy description
        id:
          type: string
          description: Snapshot policy ID
          format: uuid
          readOnly: true
        isDefault:
          type:
          - boolean
          - 'null'
          description: Is this the default snapshot policy?
          readOnly: true
        name:
          type:
          - string
          - 'null'
          description: Snapshot policy name
        rules:
          type:
          - array
          - 'null'
          description: Snapshot policy rules, 1 to 4
          items:
            $ref: '#/components/schemas/storage.NetAppSnapshotPolicyRule'
        status:
          allOf:
          - $ref: '#/components/schemas/storage.NetAppSnapshotPolicyStatusEnum'
          description: Snapshot policy status
          readOnly: true
      required:
      - rules
    storage.NetAppShareSnapshotPolicy:
      type: object
      description: A snapshot policy
      properties:
        id:
          type: string
          description: Snapshot policy ID
          format: uuid
          readOnly: true
        status:
          allOf:
          - $ref: '#/components/schemas/storage.NetAppShareSnapshotPolicyStatusEnum'
          description: Association status between the share and the snapshot policy
          readOnly: true
    storage.NetAppSnapshotPolicyUpdate:
      type: object
      description: Snapshot policy updatable properties
      properties:
        description:
          type:
          - string
          - 'null'
          description: New snapshot policy description
        name:
          type:
          - string
          - 'null'
          description: New snapshot policy name
    storage.NetAppSnapshotPolicyRule:
      type: object
      description: A snapshot policy rule
      properties:
        copies:
          type:
          - integer
          - 'null'
          description: Number of snapshot copies to keep
        prefix:
          type:
          - string
          - 'null'
          description: Prefix to use for snapshots, unique among the rules of the policy
        schedule:
          allOf:
          - $ref: '#/components/schemas/storage.NetAppSnapshotPolicySchedule'
          description: Snapshot policy schedule
      required:
      - copies
      - prefix
      - schedule
    storage.NetAppShareSnapshotPolicyStatusEnum:
      type: string
      description: Association status between the share and the snapshot policy
      enum:
      - active
      - error
      - updating
    storage.NetAppShareSnapshotPolicyUpdate:
      type: object
      description: A snapshot policy
      properties:
        snapshotPolicyID:
          type: string
          description: Snapshot policy ID
          format: uuid
      required:
      - snapshotPolicyID
    storage.NetAppSnapshotPolicyStatusEnum:
      type: string
      description: Snapshot policy status
      enum:
      - available
      - creating
      - deleting
      - error
      - updating
    storage.NetAppSnapshotPolicySchedule:
      type: object
      description: A snapshot policy schedule
      properties:
        days:
          type:
          - array
          - 'null'
          description: The days of the month the schedule runs (1 through 31). Empty for all.
          items:
            type: integer
        hours:
          type:
          - array
          - 'null'
          description: The hours of the day the schedule runs (0 through 23). Empty for all.
          items:
            type: integer
        minutes:
          type: array
          description: The minutes the schedule runs (0 through 59). Required to have at least one value.
          items:
            type: integer
        months:
          type:
          - array
          - 'null'
          description: The months of the year the schedule runs (1 through 12). Empty for all.
          items:
            type: integer
        weekdays:
          type:
          - array
          - 'null'
          description: The days of the week the schedule runs (0 through 6, where 0 is Sunday and 6 is Saturday). Empty for all.
          items:
            type: integer
      required:
      - minutes
  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
x-refined-from:
- ovh-v1-storage-openapi.json
- ovh-v1-storage-openapi.yml