# Storage & Backup › File Storage › NAS-HA API

> Part of the OVHcloud developer hub. Index of every page and section: https://developers.eu.ovhcloud.com/llms.txt
> The Storage & Backup product's sections: https://developers.eu.ovhcloud.com/reference/storage-backup/llms.txt
> Everything in one file: https://developers.eu.ovhcloud.com/llms-full.txt

> 39 operations of the OVHcloud API. Calls carry `authorization: Bearer $OVH_TOKEN`; the EU host is shown, Canada and the United States answer on api.ca.ovhcloud.com and api.us.ovhcloud.com.

Page: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/

OpenAPI v1: https://api.eu.ovhcloud.com/1.0/__schemas/developer-hub-navigation/storage-backup/file-storage/nas-ha.json?format=openapi3
OpenAPI v2: https://api.eu.ovhcloud.com/v2/__schemas/developer-hub-navigation/storage-backup/file-storage/nas-ha.json?format=openapi3

## Operations

- `GET /dedicated/nasha` — List available services
- `GET /dedicated/nasha/{serviceName}` — Get this object properties
- `GET /dedicated/nasha/{serviceName}/metricsToken` — Return a read token for manager mimir metrics
- `GET /dedicated/nasha/{serviceName}/partition` — Get partition list
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}` — Get this object properties
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/access` — get ACL for this partition
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}` — Get this object properties
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableBlocks` — Get all RIPE/ARIN blocks that can be used in the ACL
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableIps` — Get all IPs that can be used in the ACL
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot` — Get custom snapshots for this partition
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}` — Get this object properties
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/options` — Get this object properties
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/quota` — Get quota for this partition
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}` — Get this object properties
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot` — Get scheduled snapshot types for this partition
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}` — Get this object properties
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/templateUsage` — Get all the template usages options applicable to this partition.
- `GET /dedicated/nasha/{serviceName}/partition/{partitionName}/use` — Return statistics about the partition
- `GET /dedicated/nasha/{serviceName}/serviceInfos` — Get service information
- `GET /dedicated/nasha/{serviceName}/task` — View task list
- `GET /dedicated/nasha/{serviceName}/task/{taskId}` — Get this object properties
- `GET /dedicated/nasha/{serviceName}/use` — Return statistics about the nas
- `POST /dedicated/nasha/{serviceName}/changeContact` — Change service contacts
- `POST /dedicated/nasha/{serviceName}/confirmTermination` — Confirm service termination
- `POST /dedicated/nasha/{serviceName}/partition` — Create a new partition
- `POST /dedicated/nasha/{serviceName}/partition/{partitionName}/access` — Add a new ACL entry
- `POST /dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot` — Create a new snapshot
- `POST /dedicated/nasha/{serviceName}/partition/{partitionName}/options` — Setup options
- `POST /dedicated/nasha/{serviceName}/partition/{partitionName}/quota` — Set a new quota
- `POST /dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot` — Schedule a new snapshot type
- `POST /dedicated/nasha/{serviceName}/terminate` — Request service termination
- `DELETE /dedicated/nasha/{serviceName}/partition/{partitionName}` — Delete this partition
- `DELETE /dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}` — Delete an ACL entry
- `DELETE /dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}` — Delete a given snapshot
- `DELETE /dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}` — Delete a given quota
- `DELETE /dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}` — Delete a given snapshot
- `PUT /dedicated/nasha/{serviceName}` — Alter this object properties
- `PUT /dedicated/nasha/{serviceName}/partition/{partitionName}` — Alter this object properties
- `PUT /dedicated/nasha/{serviceName}/serviceInfos` — Update service information

## List available services

`GET /1.0/dedicated/nasha`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `iamTags` | query | object |  | Filter resources on IAM tags |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | string[] | successful operation |

```json
[
  "string"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha");

print_r($result);
?>
```

## Get this object properties

`GET /1.0/dedicated/nasha/{serviceName}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasha.StorageWithIAM | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `canCreatePartition` | boolean | read-only | True, if partition creation is allowed on this nas HA |
| `customName` | string |  | The name you give to the nas |
| `datacenter` | string | read-only | area of nas |
| `diskType` | dedicated.storage.DiskTypeEnum | read-only | the disk type of the nasHa — one of `hdd`, `nvme`, `ssd` |
| `iam` | iam.ResourceMetadata | read-only | IAM resource metadata |
| `iam.displayName` | string | read-only | Resource display name |
| `iam.id` | string (uuid) | read-only | Unique identifier of the resource |
| `iam.state` | iam.ResourceMetadata.StateEnum | read-only | Resource state — one of `EXPIRED`, `IN_CREATION`, `OK`, `SUSPENDED` |
| `iam.tags` | object | read-only | Resource tags. Tags that were internally computed are prefixed with ovh: |
| `iam.urn` | string | read-only | Unique resource name used in policies |
| `ip` | ip | read-only | Access ip of nas |
| `monitored` | boolean |  | Send an email to customer if any issue is detected |
| `serviceName` | string | read-only | The storage service name |
| `zpoolCapacity` | integer | read-only | percentage of nas space used in % |
| `zpoolSize` | integer | read-only | the size of the nas |

```json
{
  "canCreatePartition": true,
  "customName": "string",
  "datacenter": "string",
  "diskType": "hdd",
  "iam": {
    "displayName": "string",
    "id": "00000000-0000-0000-0000-000000000000",
    "state": "EXPIRED",
    "tags": {
      "key": "string"
    },
    "urn": "string"
  },
  "ip": "192.0.2.0",
  "monitored": true,
  "serviceName": "string",
  "zpoolCapacity": 0,
  "zpoolSize": 0
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}");

print_r($result);
?>
```

## Return a read token for manager mimir metrics

`GET /1.0/dedicated/nasha/{serviceName}/metricsToken`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-metricstoken

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:metricsToken/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.storage.MetricsTokenResult | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `endpoint` | string |  | The url of the endpoint |
| `token` | string (password) |  | The token value |

```json
{
  "endpoint": "string",
  "token": "string"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/metricsToken" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/metricsToken")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/metricsToken");

print_r($result);
?>
```

## Get partition list

`GET /1.0/dedicated/nasha/{serviceName}/partition`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | string[] | successful operation |

```json
[
  "string"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition");

print_r($result);
?>
```

## Get this object properties

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasha.Partition | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `partitionCapacity` | integer | read-only | percentage of partition space used in % |
| `partitionDescription` | string |  | a brief description of the partition |
| `partitionName` | string | read-only | the given name of partition |
| `protocol` | dedicated.storage.ProtocolEnum | read-only | must be nfs cifs or both — one of `CIFS`, `NFS`, `NFS_CIFS` |
| `size` | integer |  | Partition size |
| `usedBySnapshots` | integer | read-only | percentage of partition space used by snapshots, in % |

```json
{
  "partitionCapacity": 0,
  "partitionDescription": "string",
  "partitionName": "string",
  "protocol": "CIFS",
  "size": 0,
  "usedBySnapshots": 0
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}");

print_r($result);
?>
```

## get ACL for this partition

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/access`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-access

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/access/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | ipBlock[] | successful operation |

```json
[
  "192.0.2.0/24"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/access" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/access")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/access");

print_r($result);
?>
```

## Get this object properties

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-access-ip

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/access/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | path | ipBlock | yes | the ip in root on storage |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasha.Access | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accessId` | integer | read-only | the id of the access |
| `aclDescription` | string | read-only | a brief description of the acl |
| `ip` | ipBlock | read-only | the ip in root on storage |
| `type` | dedicated.storage.AclTypeEnum | read-only | ACL type — one of `readonly`, `readwrite` |

```json
{
  "accessId": 0,
  "aclDescription": "string",
  "ip": "192.0.2.0/24",
  "type": "readonly"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}");

print_r($result);
?>
```

## Get all RIPE/ARIN blocks that can be used in the ACL

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableBlocks`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-authorizableblocks

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/authorizableBlocks/get`, `ip:apiovh:nasHA/allow`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | ipBlock[] | successful operation |

```json
[
  "192.0.2.0/24"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableBlocks" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableBlocks")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableBlocks");

print_r($result);
?>
```

## Get all IPs that can be used in the ACL

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableIps`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-authorizableips

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/authorizableIps/get`, `ip:apiovh:nasHA/allow`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | ip[] | successful operation |

```json
[
  "192.0.2.0"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableIps" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableIps")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/authorizableIps");

print_r($result);
?>
```

## Get custom snapshots for this partition

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-customsnapshot

**Status:** Beta version  
**IAM actions:** `nasHA:apiovh:partition/customSnapshot/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | string[] | successful operation |

```json
[
  "string"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot");

print_r($result);
?>
```

## Get this object properties

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-customsnapshot-name

**Status:** Beta version  
**IAM actions:** `nasHA:apiovh:partition/customSnapshot/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name` | path | string | yes | name of the snapshot |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasha.customSnap | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expiration` | string | read-only | date and time at which snapshot will be automatically destroyed |
| `name` | string | read-only | name of the snapshot |

```json
{
  "expiration": "string",
  "name": "string"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}");

print_r($result);
?>
```

## Get this object properties

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/options`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-options

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/options/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasha.options | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `atime` | string | read-only | atime setting |
| `id` | integer | read-only | ID |
| `recordsize` | string | read-only | ZFS recordsize |
| `sync` | string | read-only | sync setting |
| `templateName` | dedicated.storage.TemplateUsageOptionsEnum | read-only | the template name — one of `Databases`, `Default`, `File Systems (big files)`, `Virtual machines` |

```json
{
  "atime": "string",
  "id": 0,
  "recordsize": "string",
  "sync": "string",
  "templateName": "Databases"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/options" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/options")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/options");

print_r($result);
?>
```

## Get quota for this partition

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/quota`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-quota

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/quota/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | integer[] | successful operation |

```json
[
  0
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/quota" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/quota")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/quota");

print_r($result);
?>
```

## Get this object properties

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-quota-uid

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/quota/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |
| `uid` | path | integer | yes | the uid to set quota on |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasha.Quota | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `size` | integer | read-only | the size to set in MB |
| `uid` | integer | read-only | the uid to set quota on |

```json
{
  "size": 0,
  "uid": 0
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}");

print_r($result);
?>
```

## Get scheduled snapshot types for this partition

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-snapshot

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/snapshot/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.storage.SnapshotEnum[] | successful operation |

```json
[
  "day-1"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot");

print_r($result);
?>
```

## Get this object properties

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-snapshot-snapshottype

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/snapshot/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |
| `snapshotType` | path | dedicated.storage.SnapshotEnum | yes | the interval of snapshot — one of `day-1`, `day-2`, `day-3`, `day-7`, `hour-1`, `hour-6` |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasha.Snapshot | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `snapshotType` | dedicated.storage.SnapshotEnum | read-only | the interval of snapshot — one of `day-1`, `day-2`, `day-3`, `day-7`, `hour-1`, `hour-6` |

```json
{
  "snapshotType": "day-1"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}");

print_r($result);
?>
```

## Get all the template usages options applicable to this partition.

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/templateUsage`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-templateusage

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/templateUsage/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.storage.TemplateUsageOptionsDetails[] | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `description` | string |  | The description of the template. |
| `name` | string |  | The name of the template |

```json
[
  {
    "description": "string",
    "name": "string"
  }
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/templateUsage" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/templateUsage")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/templateUsage");

print_r($result);
?>
```

## Return statistics about the partition

`GET /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/use`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-partition-partitionname-use

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/use/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |
| `type` | query | dedicated.storage.PartitionUsageTypeEnum | yes | The type of statistic to be fetched — one of `size`, `used`, `usedbysnapshots` |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | complexType.UnitAndValue_double | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `unit` | string |  |  |
| `value` | number |  |  |

```json
{
  "unit": "string",
  "value": 0
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/use" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/partition/{partitionName}/use")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/partition/{partitionName}/use");

print_r($result);
?>
```

## Get service information

`GET /1.0/dedicated/nasha/{serviceName}/serviceInfos`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-serviceinfos

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:serviceInfos/get`

Get service information. Returns the status, creation and expiration dates, contacts and renewal settings of the service.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | services.Service | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `canDeleteAtExpiration` | boolean | read-only | Indicates that the service can be set up to be deleted at expiration |
| `contactAdmin` | string | read-only |  |
| `contactBilling` | string | read-only |  |
| `contactTech` | string | read-only |  |
| `creation` | string (date) | read-only |  |
| `domain` | string | read-only |  |
| `engagedUpTo` | string (date) | read-only |  |
| `expiration` | string (date) | read-only |  |
| `possibleRenewPeriod` | integer[] | read-only | All the possible renew period of your service in month |
| `renew` | service.RenewType |  | Way of handling the renew |
| `renew.automatic` | boolean |  | The service is automatically renewed |
| `renew.deleteAtExpiration` | boolean |  | The service will be deleted at expiration |
| `renew.forced` | boolean |  | The service forced to be renewed |
| `renew.manualPayment` | boolean |  | The service needs to be manually renewed and paid |
| `renew.period` | integer |  | period of renew in month |
| `renewalType` | service.RenewalTypeEnum | read-only | Detailed renewal type of a service — one of `automaticForcedProduct`, `automaticV2012`, `automaticV2014`, `automaticV2016`, `automaticV2024`, `manual`, `oneShot`, `option` |
| `serviceId` | integer | read-only |  |
| `status` | service.StateEnum | read-only | one of `autorenewInProgress`, `expired`, `inCreation`, `ok`, `pendingDebt`, `unPaid` |

```json
{
  "canDeleteAtExpiration": true,
  "contactAdmin": "string",
  "contactBilling": "string",
  "contactTech": "string",
  "creation": "2024-01-01",
  "domain": "string",
  "engagedUpTo": "2024-01-01",
  "expiration": "2024-01-01",
  "possibleRenewPeriod": [
    0
  ],
  "renew": {
    "automatic": true,
    "deleteAtExpiration": true,
    "forced": true,
    "manualPayment": true,
    "period": 0
  },
  "renewalType": "automaticForcedProduct",
  "serviceId": 0,
  "status": "autorenewInProgress"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/serviceInfos" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/serviceInfos")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/serviceInfos");

print_r($result);
?>
```

## View task list

`GET /1.0/dedicated/nasha/{serviceName}/task`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-task

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:task/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `operation` | query | dedicated.storage.TaskFunctionEnum |  | Filter the value of operation property (=) — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `serviceName` | path | string | yes | The internal name of your storage |
| `status` | query | dedicated.TaskStatusEnum |  | Filter the value of status property (=) — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | integer[] | successful operation |

```json
[
  0
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/task" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/task")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/task");

print_r($result);
?>
```

## Get this object properties

`GET /1.0/dedicated/nasha/{serviceName}/task/{taskId}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-task-taskid

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:task/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |
| `taskId` | path | integer | yes | id of the task |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/task/{taskId}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/task/{taskId}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/task/{taskId}");

print_r($result);
?>
```

## Return statistics about the nas

`GET /1.0/dedicated/nasha/{serviceName}/use`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#get-dedicated-nasha-servicename-use

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:use/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |
| `type` | query | dedicated.storage.NasUsageTypeEnum | yes | The type of statistic to be fetched — one of `size`, `used`, `usedbysnapshots` |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | complexType.UnitAndValue_double | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `unit` | string |  |  |
| `value` | number |  |  |

```json
{
  "unit": "string",
  "value": 0
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/use" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/dedicated/nasha/{serviceName}/use")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/dedicated/nasha/{serviceName}/use");

print_r($result);
?>
```

## Change service contacts

`POST /1.0/dedicated/nasha/{serviceName}/changeContact`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#post-dedicated-nasha-servicename-changecontact

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:changeContact`

Change service contacts. Starts a procedure to change the admin, tech or billing contact of the service.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `contactAdmin` | string |  | The contact to set as admin contact |
| `contactBilling` | string |  | The contact to set as billing contact |
| `contactTech` | string |  | The contact to set as tech contact |

```json
{
  "contactAdmin": "string",
  "contactBilling": "string",
  "contactTech": "string"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | integer[] | successful operation |

```json
[
  0
]
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/changeContact" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: coreTypes.AccountId:string
result = client.post("/dedicated/nasha/{serviceName}/changeContact",
	contactAdmin = None, # The contact to set as admin contact (type: coreTypes.AccountId:string, nullable)
	contactBilling = None, # The contact to set as billing contact (type: coreTypes.AccountId:string, nullable)
	contactTech = None, # The contact to set as tech contact (type: coreTypes.AccountId:string, nullable)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: coreTypes.AccountId:string
$result = $ovh->post("/dedicated/nasha/{serviceName}/changeContact", array(
	contactAdmin => null, // The contact to set as admin contact (type: coreTypes.AccountId:string, nullable)
	contactBilling => null, // The contact to set as billing contact (type: coreTypes.AccountId:string, nullable)
	contactTech => null, // The contact to set as tech contact (type: coreTypes.AccountId:string, nullable)
));

print_r($result);
?>
```

## Confirm service termination

`POST /1.0/dedicated/nasha/{serviceName}/confirmTermination`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#post-dedicated-nasha-servicename-confirmtermination

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:confirmTermination`

Confirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `commentary` | string |  | Commentary about your termination request |
| `futureUse` | service.TerminationFutureUseEnum |  | What next after your termination request — one of `NOT_REPLACING_SERVICE`, `OTHER`, `SUBSCRIBE_AN_OTHER_SERVICE`, `SUBSCRIBE_OTHER_KIND_OF_SERVICE_WITH_COMPETITOR`, `SUBSCRIBE_SIMILAR_SERVICE_WITH_COMPETITOR` |
| `reason` | service.TerminationReasonEnum |  | Reason of your termination request — one of `FEATURES_DONT_SUIT_ME`, `LACK_OF_PERFORMANCES`, `MIGRATED_TO_ANOTHER_OVH_PRODUCT`, `MIGRATED_TO_COMPETITOR`, `NOT_ENOUGH_RECOGNITION`, `NOT_NEEDED_ANYMORE`, `NOT_RELIABLE`, `NO_ANSWER`, `OTHER`, `PRODUCT_DIMENSION_DONT_SUIT_ME`, `PRODUCT_TOOLS_DONT_SUIT_ME`, `TOO_EXPENSIVE`, … |
| `token` | string | yes | The termination token sent by email to the admin contact |

```json
{
  "commentary": "string",
  "futureUse": "NOT_REPLACING_SERVICE",
  "reason": "FEATURES_DONT_SUIT_ME",
  "token": "string"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | string | successful operation |

```json
"string"
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/confirmTermination" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/dedicated/nasha/{serviceName}/confirmTermination",
	commentary = None, # Commentary about your termination request (type: string, nullable)
	futureUse = None, # What next after your termination request (type: service.TerminationFutureUseEnum, nullable)
	reason = None, # Reason of your termination request (type: service.TerminationReasonEnum, nullable)
	token = None, # The termination token sent by email to the admin contact (type: string)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/dedicated/nasha/{serviceName}/confirmTermination", array(
	commentary => null, // Commentary about your termination request (type: string, nullable)
	futureUse => null, // What next after your termination request (type: service.TerminationFutureUseEnum, nullable)
	reason => null, // Reason of your termination request (type: service.TerminationReasonEnum, nullable)
	token => null, // The termination token sent by email to the admin contact (type: string)
));

print_r($result);
?>
```

## Create a new partition

`POST /1.0/dedicated/nasha/{serviceName}/partition`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#post-dedicated-nasha-servicename-partition

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/create`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `partitionDescription` | string |  | Partition description |
| `partitionName` | string | yes | Partition name |
| `protocol` | dedicated.storage.ProtocolEnum | yes | NFS\|CIFS\|NFS_CIFS — one of `CIFS`, `NFS`, `NFS_CIFS` |
| `size` | integer | yes | Partition size |

```json
{
  "partitionDescription": "string",
  "partitionName": "string",
  "protocol": "CIFS",
  "size": 0
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/dedicated/nasha/{serviceName}/partition",
	partitionDescription = None, # Partition description (type: string, nullable)
	partitionName = None, # Partition name (type: string)
	protocol = None, # NFS|CIFS|NFS_CIFS (type: dedicated.storage.ProtocolEnum)
	size = None, # Partition size (type: long)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/dedicated/nasha/{serviceName}/partition", array(
	partitionDescription => null, // Partition description (type: string, nullable)
	partitionName => null, // Partition name (type: string)
	protocol => null, // NFS|CIFS|NFS_CIFS (type: dedicated.storage.ProtocolEnum)
	size => null, // Partition size (type: long)
));

print_r($result);
?>
```

## Add a new ACL entry

`POST /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/access`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#post-dedicated-nasha-servicename-partition-partitionname-access

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/access/create`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `aclDescription` | string |  | ACL description |
| `ip` | ipBlock | yes | Ip or block to add |
| `type` | dedicated.storage.AclTypeEnum |  | ACL type — one of `readonly`, `readwrite` |

```json
{
  "aclDescription": "string",
  "ip": "192.0.2.0/24",
  "type": "readonly"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/access" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: dedicated.storage.AclTypeEnum
result = client.post("/dedicated/nasha/{serviceName}/partition/{partitionName}/access",
	aclDescription = None, # ACL description (type: string, nullable)
	ip = None, # Ip or block to add (type: ipBlock)
	type = None, # ACL type (type: dedicated.storage.AclTypeEnum, nullable)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: dedicated.storage.AclTypeEnum
$result = $ovh->post("/dedicated/nasha/{serviceName}/partition/{partitionName}/access", array(
	aclDescription => null, // ACL description (type: string, nullable)
	ip => null, // Ip or block to add (type: ipBlock)
	type => null, // ACL type (type: dedicated.storage.AclTypeEnum, nullable)
));

print_r($result);
?>
```

## Create a new snapshot

`POST /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#post-dedicated-nasha-servicename-partition-partitionname-customsnapshot

**Status:** Beta version  
**IAM actions:** `nasHA:apiovh:partition/customSnapshot/create`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expiration` | string |  | optional expiration date/time, in iso8601 format |
| `name` | string | yes | the name of the snapshot |

```json
{
  "expiration": "string",
  "name": "string"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot",
	expiration = None, # optional expiration date/time, in iso8601 format (type: string, nullable)
	name = None, # the name of the snapshot (type: string)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot", array(
	expiration => null, // optional expiration date/time, in iso8601 format (type: string, nullable)
	name => null, // the name of the snapshot (type: string)
));

print_r($result);
?>
```

## Setup options

`POST /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/options`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#post-dedicated-nasha-servicename-partition-partitionname-options

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/options/create`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `atime` | dedicated.storage.AtimeEnum |  | atime setting — one of `off`, `on` |
| `recordsize` | dedicated.storage.RecordSizeEnum |  | ZFS recordsize — one of `1048576`, `131072`, `16384`, `32768`, `4096`, `65536`, `8192` |
| `sync` | dedicated.storage.SyncEnum |  | sync setting — one of `always`, `disabled`, `standard` |
| `templateName` | dedicated.storage.TemplateUsageOptionsEnum |  | The name of the usage template to apply for this partition. — one of `Databases`, `Default`, `File Systems (big files)`, `Virtual machines` |

```json
{
  "atime": "off",
  "recordsize": "1048576",
  "sync": "always",
  "templateName": "Databases"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/options" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/dedicated/nasha/{serviceName}/partition/{partitionName}/options",
	atime = None, # atime setting (type: dedicated.storage.AtimeEnum, nullable)
	recordsize = None, # ZFS recordsize (type: dedicated.storage.RecordSizeEnum, nullable)
	sync = None, # sync setting (type: dedicated.storage.SyncEnum, nullable)
	templateName = None, # The name of the usage template to apply for this partition. (type: dedicated.storage.TemplateUsageOptionsEnum, nullable)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/dedicated/nasha/{serviceName}/partition/{partitionName}/options", array(
	atime => null, // atime setting (type: dedicated.storage.AtimeEnum, nullable)
	recordsize => null, // ZFS recordsize (type: dedicated.storage.RecordSizeEnum, nullable)
	sync => null, // sync setting (type: dedicated.storage.SyncEnum, nullable)
	templateName => null, // The name of the usage template to apply for this partition. (type: dedicated.storage.TemplateUsageOptionsEnum, nullable)
));

print_r($result);
?>
```

## Set a new quota

`POST /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/quota`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#post-dedicated-nasha-servicename-partition-partitionname-quota

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/quota/create`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `size` | integer | yes | the size to set in MB |
| `uid` | integer | yes | the uid to set quota on |

```json
{
  "size": 0,
  "uid": 0
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/quota" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/dedicated/nasha/{serviceName}/partition/{partitionName}/quota",
	size = None, # the size to set in MB (type: long)
	uid = None, # the uid to set quota on (type: long)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/dedicated/nasha/{serviceName}/partition/{partitionName}/quota", array(
	size => null, // the size to set in MB (type: long)
	uid => null, // the uid to set quota on (type: long)
));

print_r($result);
?>
```

## Schedule a new snapshot type

`POST /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#post-dedicated-nasha-servicename-partition-partitionname-snapshot

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/snapshot/create`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `snapshotType` | dedicated.storage.SnapshotEnum | yes | Snapshot interval to add — one of `day-1`, `day-2`, `day-3`, `day-7`, `hour-1`, `hour-6` |

```json
{
  "snapshotType": "day-1"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: dedicated.storage.SnapshotEnum
result = client.post("/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot",
	snapshotType = None, # Snapshot interval to add (type: dedicated.storage.SnapshotEnum)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: dedicated.storage.SnapshotEnum
$result = $ovh->post("/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot", array(
	snapshotType => null, // Snapshot interval to add (type: dedicated.storage.SnapshotEnum)
));

print_r($result);
?>
```

## Request service termination

`POST /1.0/dedicated/nasha/{serviceName}/terminate`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#post-dedicated-nasha-servicename-terminate

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:terminate`

Request service termination. Starts the termination of the service. The admin contact receives a token by email, to confirm with the `confirmTermination` call.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | string | successful operation |

```json
"string"
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/terminate" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/dedicated/nasha/{serviceName}/terminate")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/dedicated/nasha/{serviceName}/terminate");

print_r($result);
?>
```

## Delete this partition

`DELETE /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#delete-dedicated-nasha-servicename-partition-partitionname

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/delete`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X DELETE \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.delete("/dedicated/nasha/{serviceName}/partition/{partitionName}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->delete("/dedicated/nasha/{serviceName}/partition/{partitionName}");

print_r($result);
?>
```

## Delete an ACL entry

`DELETE /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#delete-dedicated-nasha-servicename-partition-partitionname-access-ip

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/access/delete`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | path | ipBlock | yes | the ip in root on storage |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X DELETE \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.delete("/dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->delete("/dedicated/nasha/{serviceName}/partition/{partitionName}/access/{ip}");

print_r($result);
?>
```

## Delete a given snapshot

`DELETE /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#delete-dedicated-nasha-servicename-partition-partitionname-customsnapshot-name

**Status:** Beta version  
**IAM actions:** `nasHA:apiovh:partition/customSnapshot/delete`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name` | path | string | yes | name of the snapshot |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X DELETE \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.delete("/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->delete("/dedicated/nasha/{serviceName}/partition/{partitionName}/customSnapshot/{name}");

print_r($result);
?>
```

## Delete a given quota

`DELETE /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#delete-dedicated-nasha-servicename-partition-partitionname-quota-uid

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/quota/delete`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |
| `uid` | path | integer | yes | the uid to set quota on |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X DELETE \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.delete("/dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->delete("/dedicated/nasha/{serviceName}/partition/{partitionName}/quota/{uid}");

print_r($result);
?>
```

## Delete a given snapshot

`DELETE /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#delete-dedicated-nasha-servicename-partition-partitionname-snapshot-snapshottype

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/snapshot/delete`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |
| `snapshotType` | path | dedicated.storage.SnapshotEnum | yes | the interval of snapshot — one of `day-1`, `day-2`, `day-3`, `day-7`, `hour-1`, `hour-6` |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | dedicated.nasTask.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `details` | string | read-only | information about operation |
| `doneDate` | string (date-time) | read-only | the date when the task finished |
| `lastUpdate` | string (date-time) | read-only | last modification of task |
| `operation` | dedicated.storage.TaskFunctionEnum | read-only | Task type of operation — one of `backupRecursiveDestroy`, `clusterLeclercAclUpdate`, `clusterLeclercChangeServiceIp`, `clusterLeclercCustomSnapCreate`, `clusterLeclercCustomSnapDelete`, `clusterLeclercDeleteSnapshotDirectory`, `clusterLeclercDestroyNasContainer`, `clusterLeclercPartitionAdd`, `clusterLeclercPartitionDelete`, `clusterLeclercPartitionUpdate`, `clusterLeclercQuotaUpdate`, `clusterLeclercSetupNasContainer`, … |
| `partitionName` | string | read-only | name of the partition |
| `status` | dedicated.TaskStatusEnum | read-only | The actual state of the task — one of `cancelled`, `customerError`, `doing`, `done`, `init`, `ovhError`, `todo` |
| `storageName` | string | read-only | the name of your service |
| `taskId` | integer | read-only | id of the task |
| `todoDate` | string (date-time) | read-only | Insertion of task in the todo |

```json
{
  "details": "string",
  "doneDate": "2024-01-01T12:00:00Z",
  "lastUpdate": "2024-01-01T12:00:00Z",
  "operation": "backupRecursiveDestroy",
  "partitionName": "string",
  "status": "cancelled",
  "storageName": "string",
  "taskId": 0,
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X DELETE \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.delete("/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->delete("/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot/{snapshotType}");

print_r($result);
?>
```

## Alter this object properties

`PUT /1.0/dedicated/nasha/{serviceName}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#put-dedicated-nasha-servicename

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:put`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `dedicated.nasha.Storage`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `canCreatePartition` | boolean | read-only | True, if partition creation is allowed on this nas HA |
| `customName` | string |  | The name you give to the nas |
| `datacenter` | string | read-only | area of nas |
| `diskType` | dedicated.storage.DiskTypeEnum | read-only | the disk type of the nasHa — one of `hdd`, `nvme`, `ssd` |
| `ip` | ip | read-only | Access ip of nas |
| `monitored` | boolean |  | Send an email to customer if any issue is detected |
| `serviceName` | string | read-only | The storage service name |
| `zpoolCapacity` | integer | read-only | percentage of nas space used in % |
| `zpoolSize` | integer | read-only | the size of the nas |

```json
{
  "customName": "string",
  "monitored": true
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | — | successful operation |

### Example

```bash
curl -X PUT \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: dedicated.nasha.Storage
result = client.put("/dedicated/nasha/{serviceName}",
	customName = None, # The name you give to the nas (type: string, nullable)
	monitored = None, # Send an email to customer if any issue is detected (type: boolean)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: dedicated.nasha.Storage
$result = $ovh->put("/dedicated/nasha/{serviceName}", array(
	customName => null, // The name you give to the nas (type: string, nullable)
	monitored => null, // Send an email to customer if any issue is detected (type: boolean)
));

print_r($result);
?>
```

## Alter this object properties

`PUT /1.0/dedicated/nasha/{serviceName}/partition/{partitionName}`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#put-dedicated-nasha-servicename-partition-partitionname

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:partition/edit`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `partitionName` | path | string | yes | the given name of partition |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `dedicated.nasha.Partition`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `partitionCapacity` | integer | read-only | percentage of partition space used in % |
| `partitionDescription` | string |  | a brief description of the partition |
| `partitionName` | string | read-only | the given name of partition |
| `protocol` | dedicated.storage.ProtocolEnum | read-only | must be nfs cifs or both — one of `CIFS`, `NFS`, `NFS_CIFS` |
| `size` | integer |  | Partition size |
| `usedBySnapshots` | integer | read-only | percentage of partition space used by snapshots, in % |

```json
{
  "partitionDescription": "string",
  "size": 0
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | — | successful operation |

### Example

```bash
curl -X PUT \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/partition/{partitionName}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: dedicated.nasha.Partition
result = client.put("/dedicated/nasha/{serviceName}/partition/{partitionName}",
	partitionDescription = None, # a brief description of the partition (type: string, nullable)
	size = None, # Partition size (type: integer)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: dedicated.nasha.Partition
$result = $ovh->put("/dedicated/nasha/{serviceName}/partition/{partitionName}", array(
	partitionDescription => null, // a brief description of the partition (type: string, nullable)
	size => null, // Partition size (type: integer)
));

print_r($result);
?>
```

## Update service information

`PUT /1.0/dedicated/nasha/{serviceName}/serviceInfos`

Link: https://developers.eu.ovhcloud.com/reference/storage-backup/file-storage/nas-ha/#put-dedicated-nasha-servicename-serviceinfos

**Status:** Stable production version  
**IAM actions:** `nasHA:apiovh:serviceInfos/edit`

Update service information. Updates the renewal settings of the service: automatic renewal, period, or deletion at expiration.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your storage |

### Request body (required)

Type: `services.Service`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `canDeleteAtExpiration` | boolean | read-only | Indicates that the service can be set up to be deleted at expiration |
| `contactAdmin` | string | read-only |  |
| `contactBilling` | string | read-only |  |
| `contactTech` | string | read-only |  |
| `creation` | string (date) | read-only |  |
| `domain` | string | read-only |  |
| `engagedUpTo` | string (date) | read-only |  |
| `expiration` | string (date) | read-only |  |
| `possibleRenewPeriod` | integer[] | read-only | All the possible renew period of your service in month |
| `renew` | service.RenewType |  | Way of handling the renew |
| `renew.automatic` | boolean |  | The service is automatically renewed |
| `renew.deleteAtExpiration` | boolean |  | The service will be deleted at expiration |
| `renew.forced` | boolean |  | The service forced to be renewed |
| `renew.manualPayment` | boolean |  | The service needs to be manually renewed and paid |
| `renew.period` | integer |  | period of renew in month |
| `renewalType` | service.RenewalTypeEnum | read-only | Detailed renewal type of a service — one of `automaticForcedProduct`, `automaticV2012`, `automaticV2014`, `automaticV2016`, `automaticV2024`, `manual`, `oneShot`, `option` |
| `serviceId` | integer | read-only |  |
| `status` | service.StateEnum | read-only | one of `autorenewInProgress`, `expired`, `inCreation`, `ok`, `pendingDebt`, `unPaid` |

```json
{
  "renew": {
    "automatic": true,
    "deleteAtExpiration": true,
    "forced": true,
    "manualPayment": true,
    "period": 0
  }
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | — | successful operation |

### Example

```bash
curl -X PUT \
  "https://api.eu.ovhcloud.com/1.0/dedicated/nasha/{serviceName}/serviceInfos" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: services.Service
result = client.put("/dedicated/nasha/{serviceName}/serviceInfos",
	renew = None, # Way of handling the renew (type: service.RenewType, nullable)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: services.Service
$result = $ovh->put("/dedicated/nasha/{serviceName}/serviceInfos", array(
	renew => null, // Way of handling the renew (type: service.RenewType, nullable)
));

print_r($result);
?>
```
