# Public Cloud › Storage › Object Storage › Replication API

> Part of the OVHcloud developer hub. Index of every page and section: https://developers.eu.ovhcloud.com/llms.txt
> The Public Cloud product's sections: https://developers.eu.ovhcloud.com/reference/public-cloud/llms.txt
> Everything in one file: https://developers.eu.ovhcloud.com/llms-full.txt

> 6 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/public-cloud/storage/object-storage/replication/

OpenAPI v1: https://api.eu.ovhcloud.com/v1/__schemas/developer-hub-navigation/public-cloud/storage/object-storage/replication.json?format=openapi3
OpenAPI v2: https://api.eu.ovhcloud.com/v2/__schemas/developer-hub-navigation/public-cloud/storage/object-storage/replication.json?format=openapi3

## Operations

- `GET /publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication` — List replication rules
- `PUT /publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication` — Replace replication rules
- `GET /publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger` — List batch replication jobs
- `POST /publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger` — Start a batch replication job
- `GET /publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger/{id}` — Get a batch replication job
- `GET /publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/destination` — List possible replication destinations

## List replication rules

`GET /v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/storage/object-storage/replication/#getBucketReplication

**Status:** Stable production version  
**IAM actions:** `publicCloudProject:apiovh:storage/object/bucket/replication/get`

Returns the rules that copy new objects to other buckets.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `bucketName` | path | string | yes | Bucket name |
| `projectId` | path | string | yes | Project ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.storage.object.ReplicationRulesResponse | successful operation |
| 409 | object | Error 409 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rules` | publicCloud.storage.object.ReplicationRule[] | read-only | Array of replication rules |
| `rules[].deleteMarkerReplication` | publicCloud.storage.object.ReplicationRuleDeleteMarkerReplicationEnum | yes | Whether delete markers are replicated — one of `DISABLED`, `ENABLED` |
| `rules[].destination` | publicCloud.storage.object.ReplicationRuleDestination |  | Destination bucket and settings for replicated objects |
| `rules[].destination.name` | string | yes | Name of the destination bucket |
| `rules[].destination.region` | string | yes | Region of the destination bucket |
| `rules[].destination.storageClass` | publicCloud.storage.object.StorageClassReplicationEnum |  | Storage class for replicated objects in the destination bucket — one of `DEEP_ARCHIVE`, `GLACIER`, `GLACIER_IR`, `HIGH_PERF`, `INTELLIGENT_TIERING`, `ONEZONE_IA`, `STANDARD`, `STANDARD_IA` |
| `rules[].filter` | publicCloud.storage.object.ReplicationRuleFilter |  | Filter criteria for the rule |
| `rules[].filter.prefix` | string |  | Key prefix to filter objects |
| `rules[].filter.tags` | object |  | Key-value tag pairs to filter objects |
| `rules[].id` | string | yes | Unique identifier of the replication rule |
| `rules[].priority` | integer | yes | Priority of the replication rule |
| `rules[].status` | publicCloud.storage.object.ReplicationRuleStatusEnum | yes | Whether the rule is enabled or disabled — one of `DISABLED`, `ENABLED` |

```json
{
  "rules": [
    {
      "deleteMarkerReplication": "DISABLED",
      "destination": {
        "name": "string",
        "region": "string",
        "storageClass": "DEEP_ARCHIVE"
      },
      "filter": {
        "prefix": "string",
        "tags": {
          "key": "string"
        }
      },
      "id": "string",
      "priority": 0,
      "status": "DISABLED"
    }
  ]
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication")

# 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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication");

print_r($result);
?>
```

## Replace replication rules

`PUT /v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/storage/object-storage/replication/#editBucketReplication

**Status:** Stable production version  
**IAM actions:** `publicCloudProject:apiovh:storage/object/bucket/replication/edit`

Replaces all replication rules of the bucket. An empty list deletes all rules.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `bucketName` | path | string | yes | Bucket name |
| `projectId` | path | string | yes | Project ID |

### Request body (required)

Type: `publicCloud.storage.object.ReplicationRulePut`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rules` | publicCloud.storage.object.ReplicationRule[] | yes | Array of replication rules. An empty array deletes all rules. |
| `rules[].deleteMarkerReplication` | publicCloud.storage.object.ReplicationRuleDeleteMarkerReplicationEnum | yes | Whether delete markers are replicated — one of `DISABLED`, `ENABLED` |
| `rules[].destination` | publicCloud.storage.object.ReplicationRuleDestination |  | Destination bucket and settings for replicated objects |
| `rules[].destination.name` | string | yes | Name of the destination bucket |
| `rules[].destination.region` | string | yes | Region of the destination bucket |
| `rules[].destination.storageClass` | publicCloud.storage.object.StorageClassReplicationEnum |  | Storage class for replicated objects in the destination bucket — one of `DEEP_ARCHIVE`, `GLACIER`, `GLACIER_IR`, `HIGH_PERF`, `INTELLIGENT_TIERING`, `ONEZONE_IA`, `STANDARD`, `STANDARD_IA` |
| `rules[].filter` | publicCloud.storage.object.ReplicationRuleFilter |  | Filter criteria for the rule |
| `rules[].filter.prefix` | string |  | Key prefix to filter objects |
| `rules[].filter.tags` | object |  | Key-value tag pairs to filter objects |
| `rules[].id` | string | yes | Unique identifier of the replication rule |
| `rules[].priority` | integer | yes | Priority of the replication rule |
| `rules[].status` | publicCloud.storage.object.ReplicationRuleStatusEnum | yes | Whether the rule is enabled or disabled — one of `DISABLED`, `ENABLED` |

```json
{
  "rules": [
    {
      "deleteMarkerReplication": "DISABLED",
      "destination": {
        "name": "string",
        "region": "string",
        "storageClass": "DEEP_ARCHIVE"
      },
      "filter": {
        "prefix": "string",
        "tags": {
          "key": "string"
        }
      },
      "id": "string",
      "priority": 0,
      "status": "DISABLED"
    }
  ]
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.storage.object.ReplicationRulesResponse | successful operation |
| 409 | object | Error 409 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rules` | publicCloud.storage.object.ReplicationRule[] | read-only | Array of replication rules |
| `rules[].deleteMarkerReplication` | publicCloud.storage.object.ReplicationRuleDeleteMarkerReplicationEnum | yes | Whether delete markers are replicated — one of `DISABLED`, `ENABLED` |
| `rules[].destination` | publicCloud.storage.object.ReplicationRuleDestination |  | Destination bucket and settings for replicated objects |
| `rules[].destination.name` | string | yes | Name of the destination bucket |
| `rules[].destination.region` | string | yes | Region of the destination bucket |
| `rules[].destination.storageClass` | publicCloud.storage.object.StorageClassReplicationEnum |  | Storage class for replicated objects in the destination bucket — one of `DEEP_ARCHIVE`, `GLACIER`, `GLACIER_IR`, `HIGH_PERF`, `INTELLIGENT_TIERING`, `ONEZONE_IA`, `STANDARD`, `STANDARD_IA` |
| `rules[].filter` | publicCloud.storage.object.ReplicationRuleFilter |  | Filter criteria for the rule |
| `rules[].filter.prefix` | string |  | Key prefix to filter objects |
| `rules[].filter.tags` | object |  | Key-value tag pairs to filter objects |
| `rules[].id` | string | yes | Unique identifier of the replication rule |
| `rules[].priority` | integer | yes | Priority of the replication rule |
| `rules[].status` | publicCloud.storage.object.ReplicationRuleStatusEnum | yes | Whether the rule is enabled or disabled — one of `DISABLED`, `ENABLED` |

```json
{
  "rules": [
    {
      "deleteMarkerReplication": "DISABLED",
      "destination": {
        "name": "string",
        "region": "string",
        "storageClass": "DEEP_ARCHIVE"
      },
      "filter": {
        "prefix": "string",
        "tags": {
          "key": "string"
        }
      },
      "id": "string",
      "priority": 0,
      "status": "DISABLED"
    }
  ]
}
```

### Example

```bash
curl -X PUT \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -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: publicCloud.storage.object.ReplicationRulePut
result = client.put("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication",
	rules = None, # Array of replication rules. An empty array deletes all rules. (type: array)
)

# 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: publicCloud.storage.object.ReplicationRulePut
$result = $ovh->put("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication", array(
	rules => null, // Array of replication rules. An empty array deletes all rules. (type: array)
));

print_r($result);
?>
```

## List batch replication jobs

`GET /v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/storage/object-storage/replication/#getBucketReplicationJobs

**Status:** Stable production version  
**IAM actions:** `publicCloudProject:apiovh:storage/object/bucket/replication/trigger/get`

Returns the batch replication jobs of the bucket and their progress.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Pagination-Cursor` | header | string |  | Pagination cursor |
| `X-Pagination-Size` | header | integer |  | Pagination size |
| `bucketName` | path | string | yes | Bucket name |
| `projectId` | path | string | yes | Project ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.storage.object.ReplicationJob[] | successful operation |
| 404 | object | Error 404 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `completed` | integer | read-only | Number of successfully replicated objects |
| `createdAt` | string (date-time) | read-only | Job creation date |
| `failed` | integer | read-only | Number of objects that failed to replicate |
| `id` | string | read-only | Unique identifier of the job |
| `status` | publicCloud.storage.object.ReplicationJobStatusEnum | read-only | Job status — one of `ACTIVE`, `COMPLETED`, `CREATED`, `FAILED`, `PREPARING` |
| `stuck` | integer | read-only | Number of stuck objects |
| `total` | integer | read-only | Total number of objects to replicate |

```json
[
  {
    "completed": 0,
    "createdAt": "2024-01-01T12:00:00Z",
    "failed": 0,
    "id": "string",
    "status": "ACTIVE",
    "stuck": 0,
    "total": 0
  }
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger")

# 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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger");

print_r($result);
?>
```

## Start a batch replication job

`POST /v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/storage/object-storage/replication/#createBucketReplicationJob

**Status:** Stable production version  
**IAM actions:** `publicCloudProject:apiovh:storage/object/bucket/replication/trigger/create`

Applies the current replication rules to the objects already in the bucket.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `bucketName` | path | string | yes | Bucket name |
| `projectId` | path | string | yes | Project ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.storage.object.ReplicationJob | successful operation |
| 404 | object | Error 404 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `completed` | integer | read-only | Number of successfully replicated objects |
| `createdAt` | string (date-time) | read-only | Job creation date |
| `failed` | integer | read-only | Number of objects that failed to replicate |
| `id` | string | read-only | Unique identifier of the job |
| `status` | publicCloud.storage.object.ReplicationJobStatusEnum | read-only | Job status — one of `ACTIVE`, `COMPLETED`, `CREATED`, `FAILED`, `PREPARING` |
| `stuck` | integer | read-only | Number of stuck objects |
| `total` | integer | read-only | Total number of objects to replicate |

```json
{
  "completed": 0,
  "createdAt": "2024-01-01T12:00:00Z",
  "failed": 0,
  "id": "string",
  "status": "ACTIVE",
  "stuck": 0,
  "total": 0
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger")

# 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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger");

print_r($result);
?>
```

## Get a batch replication job

`GET /v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger/{id}`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/storage/object-storage/replication/#getBucketReplicationJob

**Status:** Stable production version  
**IAM actions:** `publicCloudProject:apiovh:storage/object/bucket/replication/trigger/get`

Returns the progress of a batch replication job: total, completed, failed and stuck objects.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `bucketName` | path | string | yes | Bucket name |
| `id` | path | string | yes | Id |
| `projectId` | path | string | yes | Project ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.storage.object.ReplicationJob | successful operation |
| 404 | object | Error 404 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `completed` | integer | read-only | Number of successfully replicated objects |
| `createdAt` | string (date-time) | read-only | Job creation date |
| `failed` | integer | read-only | Number of objects that failed to replicate |
| `id` | string | read-only | Unique identifier of the job |
| `status` | publicCloud.storage.object.ReplicationJobStatusEnum | read-only | Job status — one of `ACTIVE`, `COMPLETED`, `CREATED`, `FAILED`, `PREPARING` |
| `stuck` | integer | read-only | Number of stuck objects |
| `total` | integer | read-only | Total number of objects to replicate |

```json
{
  "completed": 0,
  "createdAt": "2024-01-01T12:00:00Z",
  "failed": 0,
  "id": "string",
  "status": "ACTIVE",
  "stuck": 0,
  "total": 0
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger/{id}" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger/{id}")

# 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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/trigger/{id}");

print_r($result);
?>
```

## List possible replication destinations

`GET /v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/destination`

Link: https://developers.eu.ovhcloud.com/reference/public-cloud/storage/object-storage/replication/#getBucketReplicationDestinations

**Status:** Stable production version  
**IAM actions:** `publicCloudProject:apiovh:storage/object/bucket/replication/destination/get`

Returns the other buckets of the project and whether each one can receive objects replicated from this bucket. A bucket that cannot gives a reason: versioning disabled, incompatible object lock, or a region that does not accept replicated objects.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Pagination-Cursor` | header | string |  | Pagination cursor |
| `X-Pagination-Size` | header | integer |  | Pagination size |
| `bucketName` | path | string | yes | Bucket name |
| `projectId` | path | string | yes | Project ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | publicCloud.storage.object.ReplicationDestinationCandidate[] | successful operation |
| 404 | object | Error 404 response |
| 409 | object | Error 409 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `eligible` | boolean | read-only | Whether this bucket can be used as the destination of a replication rule on the source bucket |
| `name` | string | read-only | Bucket name |
| `reason` | publicCloud.storage.object.ReplicationDestinationReasonEnum | read-only | Why the bucket cannot be used as a destination. Set only when eligible is false. — one of `OBJECT_LOCK_INCOMPATIBLE`, `REGION_NOT_REPLICATION_TARGET`, `VERSIONING_DISABLED` |
| `region` | string | read-only | Region the bucket is located in |

```json
[
  {
    "eligible": true,
    "name": "string",
    "reason": "OBJECT_LOCK_INCOMPATIBLE",
    "region": "string"
  }
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/destination" \
  -H "accept: application/json" \
  -H "X-Schemas-Version: 2026-06" \
  -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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/destination")

# 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("/v2/publicCloud/project/{projectId}/storage/object/bucket/{bucketName}/replication/destination");

print_r($result);
?>
```
