> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/api-reference/software-delivery-agent-apis/artifact-registry/replication.md).

# Replication

## List replication rules

> List all replication rules

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/replication/rules":{"get":{"description":"List all replication rules","operationId":"listReplicationRules","parameters":[{"$ref":"#/components/parameters/spaceRefQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/ListReplicationRuleResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"List replication rules","tags":["Replication"]}}},"components":{"parameters":{"spaceRefQueryParam":{"description":"Reference to the scope in which the registry exists.\n","in":"query","name":"space_ref","schema":{"type":"string"}}},"responses":{"ListReplicationRuleResponse":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ListReplicationRule"},"status":{"$ref":"#/components/schemas/Status"}},"required":["status","data"],"type":"object"}}},"description":"Response for list replication rules"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested resource was not found"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}},"schemas":{"ListReplicationRule":{"description":"A list of replication rules","properties":{"itemCount":{"description":"The total number of items","format":"int64","type":"integer"},"pageCount":{"description":"The total number of pages","format":"int64","type":"integer"},"pageIndex":{"description":"The current page","format":"int64","type":"integer"},"pageSize":{"description":"The number of items per page","type":"integer"},"rules":{"description":"A list of Replication Rules","items":{"$ref":"#/components/schemas/ReplicationRule"},"type":"array"}},"required":["pageCount","itemCount","pageSize","pageIndex","rules"],"type":"object"},"ReplicationRule":{"properties":{"allowedPatterns":{"items":{"type":"string"},"type":"array"},"blockedPatterns":{"items":{"type":"string"},"type":"array"},"createdAt":{"type":"string"},"destination":{"$ref":"#/components/schemas/ReplicationRegistry"},"destinationType":{"enum":["Local","Jfrog","GCP"],"type":"string"},"identifier":{"type":"string"},"modifiedAt":{"type":"string"},"parentRef":{"type":"string"},"source":{"$ref":"#/components/schemas/ReplicationRegistry"},"sourceType":{"enum":["Local","Jfrog","GCP"],"type":"string"}},"required":["identifier","source","destination","sourceType","destinationType","allowedPatterns","blockedPatterns","parentRef","modifiedAt","createdAt"],"type":"object"},"ReplicationRegistry":{"oneOf":[{"$ref":"#/components/schemas/LocalReplicationRegistry"},{"$ref":"#/components/schemas/JfrogReplicationRegistry"}]},"LocalReplicationRegistry":{"properties":{"registryIdentifier":{"type":"string"}},"required":["registryIdentifier"],"type":"object"},"JfrogReplicationRegistry":{"properties":{"namespace":{"type":"string"},"passwordSecretId":{"type":"string"},"passwordSecretSpaceId":{"type":"string"},"url":{"format":"uri","type":"string"},"username":{"type":"string"}},"required":["url","namespace"],"type":"object"},"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}}}}
```

## Create a replication rule

> Create a replication rule

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/replication/rules":{"post":{"description":"Create a replication rule","operationId":"createReplicationRule","parameters":[{"$ref":"#/components/parameters/spaceRefQueryParam"}],"requestBody":{"$ref":"#/components/requestBodies/ReplicationRuleRequest"},"responses":{"200":{"$ref":"#/components/responses/ReplicationRuleResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Create a replication rule","tags":["Replication"]}}},"components":{"parameters":{"spaceRefQueryParam":{"description":"Reference to the scope in which the registry exists.\n","in":"query","name":"space_ref","schema":{"type":"string"}}},"requestBodies":{"ReplicationRuleRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplicationRuleRequest"}}},"description":"request for create and update replication rule"}},"schemas":{"ReplicationRuleRequest":{"properties":{"allowedPatterns":{"items":{"type":"string"},"type":"array"},"blockedPatterns":{"items":{"type":"string"},"type":"array"},"destination":{"$ref":"#/components/schemas/ReplicationRegistry"},"destinationType":{"enum":["Local","Jfrog","GCP"],"type":"string"},"source":{"$ref":"#/components/schemas/ReplicationRegistry"},"sourceType":{"enum":["Local","Jfrog","GCP"],"type":"string"}},"required":["source","destination","sourceType","destinationType","allowedPatterns","blockedPatterns"],"type":"object"},"ReplicationRegistry":{"oneOf":[{"$ref":"#/components/schemas/LocalReplicationRegistry"},{"$ref":"#/components/schemas/JfrogReplicationRegistry"}]},"LocalReplicationRegistry":{"properties":{"registryIdentifier":{"type":"string"}},"required":["registryIdentifier"],"type":"object"},"JfrogReplicationRegistry":{"properties":{"namespace":{"type":"string"},"passwordSecretId":{"type":"string"},"passwordSecretSpaceId":{"type":"string"},"url":{"format":"uri","type":"string"},"username":{"type":"string"}},"required":["url","namespace"],"type":"object"},"ReplicationRule":{"properties":{"allowedPatterns":{"items":{"type":"string"},"type":"array"},"blockedPatterns":{"items":{"type":"string"},"type":"array"},"createdAt":{"type":"string"},"destination":{"$ref":"#/components/schemas/ReplicationRegistry"},"destinationType":{"enum":["Local","Jfrog","GCP"],"type":"string"},"identifier":{"type":"string"},"modifiedAt":{"type":"string"},"parentRef":{"type":"string"},"source":{"$ref":"#/components/schemas/ReplicationRegistry"},"sourceType":{"enum":["Local","Jfrog","GCP"],"type":"string"}},"required":["identifier","source","destination","sourceType","destinationType","allowedPatterns","blockedPatterns","parentRef","modifiedAt","createdAt"],"type":"object"},"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}},"responses":{"ReplicationRuleResponse":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ReplicationRule"},"status":{"$ref":"#/components/schemas/Status"}},"required":["status","data"],"type":"object"}}},"description":"Response for replication rule update"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested resource was not found"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}}}}
```

## Get a replication rule

> Get a replication rule

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/replication/rules/{id}":{"get":{"description":"Get a replication rule","operationId":"getReplicationRule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/ReplicationRuleResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Get a replication rule","tags":["Replication"]}}},"components":{"responses":{"ReplicationRuleResponse":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ReplicationRule"},"status":{"$ref":"#/components/schemas/Status"}},"required":["status","data"],"type":"object"}}},"description":"Response for replication rule update"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested resource was not found"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}},"schemas":{"ReplicationRule":{"properties":{"allowedPatterns":{"items":{"type":"string"},"type":"array"},"blockedPatterns":{"items":{"type":"string"},"type":"array"},"createdAt":{"type":"string"},"destination":{"$ref":"#/components/schemas/ReplicationRegistry"},"destinationType":{"enum":["Local","Jfrog","GCP"],"type":"string"},"identifier":{"type":"string"},"modifiedAt":{"type":"string"},"parentRef":{"type":"string"},"source":{"$ref":"#/components/schemas/ReplicationRegistry"},"sourceType":{"enum":["Local","Jfrog","GCP"],"type":"string"}},"required":["identifier","source","destination","sourceType","destinationType","allowedPatterns","blockedPatterns","parentRef","modifiedAt","createdAt"],"type":"object"},"ReplicationRegistry":{"oneOf":[{"$ref":"#/components/schemas/LocalReplicationRegistry"},{"$ref":"#/components/schemas/JfrogReplicationRegistry"}]},"LocalReplicationRegistry":{"properties":{"registryIdentifier":{"type":"string"}},"required":["registryIdentifier"],"type":"object"},"JfrogReplicationRegistry":{"properties":{"namespace":{"type":"string"},"passwordSecretId":{"type":"string"},"passwordSecretSpaceId":{"type":"string"},"url":{"format":"uri","type":"string"},"username":{"type":"string"}},"required":["url","namespace"],"type":"object"},"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}}}}
```

## Update a replication rule

> Update a replication rule

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/replication/rules/{id}":{"put":{"description":"Update a replication rule","operationId":"updateReplicationRule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/ReplicationRuleRequest"},"responses":{"200":{"$ref":"#/components/responses/ReplicationRuleResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Update a replication rule","tags":["Replication"]}}},"components":{"requestBodies":{"ReplicationRuleRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplicationRuleRequest"}}},"description":"request for create and update replication rule"}},"schemas":{"ReplicationRuleRequest":{"properties":{"allowedPatterns":{"items":{"type":"string"},"type":"array"},"blockedPatterns":{"items":{"type":"string"},"type":"array"},"destination":{"$ref":"#/components/schemas/ReplicationRegistry"},"destinationType":{"enum":["Local","Jfrog","GCP"],"type":"string"},"source":{"$ref":"#/components/schemas/ReplicationRegistry"},"sourceType":{"enum":["Local","Jfrog","GCP"],"type":"string"}},"required":["source","destination","sourceType","destinationType","allowedPatterns","blockedPatterns"],"type":"object"},"ReplicationRegistry":{"oneOf":[{"$ref":"#/components/schemas/LocalReplicationRegistry"},{"$ref":"#/components/schemas/JfrogReplicationRegistry"}]},"LocalReplicationRegistry":{"properties":{"registryIdentifier":{"type":"string"}},"required":["registryIdentifier"],"type":"object"},"JfrogReplicationRegistry":{"properties":{"namespace":{"type":"string"},"passwordSecretId":{"type":"string"},"passwordSecretSpaceId":{"type":"string"},"url":{"format":"uri","type":"string"},"username":{"type":"string"}},"required":["url","namespace"],"type":"object"},"ReplicationRule":{"properties":{"allowedPatterns":{"items":{"type":"string"},"type":"array"},"blockedPatterns":{"items":{"type":"string"},"type":"array"},"createdAt":{"type":"string"},"destination":{"$ref":"#/components/schemas/ReplicationRegistry"},"destinationType":{"enum":["Local","Jfrog","GCP"],"type":"string"},"identifier":{"type":"string"},"modifiedAt":{"type":"string"},"parentRef":{"type":"string"},"source":{"$ref":"#/components/schemas/ReplicationRegistry"},"sourceType":{"enum":["Local","Jfrog","GCP"],"type":"string"}},"required":["identifier","source","destination","sourceType","destinationType","allowedPatterns","blockedPatterns","parentRef","modifiedAt","createdAt"],"type":"object"},"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}},"responses":{"ReplicationRuleResponse":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ReplicationRule"},"status":{"$ref":"#/components/schemas/Status"}},"required":["status","data"],"type":"object"}}},"description":"Response for replication rule update"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested resource was not found"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}}}}
```

## Delete a replication rule

> Delete a replication rule

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/replication/rules/{id}":{"delete":{"description":"Delete a replication rule","operationId":"deleteReplicationRule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Delete a replication rule","tags":["Replication"]}}},"components":{"responses":{"Success":{"content":{"application/json":{"schema":{"properties":{"status":{"$ref":"#/components/schemas/Status"}},"required":["status"],"type":"object"}}},"description":"Generic success response"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested resource was not found"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}},"schemas":{"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}}}}
```

## List migration images

> List migration images given an id

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/replication/rules/{id}/migration/images":{"get":{"description":"List migration images given an id","operationId":"listMigrationImages","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/pageNumber"},{"$ref":"#/components/parameters/pageSize"},{"$ref":"#/components/parameters/sortOrder"},{"$ref":"#/components/parameters/sortField"}],"responses":{"200":{"$ref":"#/components/responses/ListMigrationImageResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"List migration images","tags":["Replication"]}}},"components":{"parameters":{"pageNumber":{"description":"Current page number","in":"query","name":"page","schema":{"default":1,"format":"int64","type":"integer"}},"pageSize":{"description":"Number of items per page","in":"query","name":"size","schema":{"default":20,"format":"int64","type":"integer"}},"sortOrder":{"description":"sortOrder","in":"query","name":"sort_order","schema":{"type":"string"}},"sortField":{"description":"sortField","in":"query","name":"sort_field","schema":{"type":"string"}}},"responses":{"ListMigrationImageResponse":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ListMigrationImage"},"status":{"$ref":"#/components/schemas/Status"}},"required":["status","data"],"type":"object"}}},"description":"Response for list migration images"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested resource was not found"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}},"schemas":{"ListMigrationImage":{"description":"A list of migration images","properties":{"images":{"description":"A list of Artifact versions","items":{"$ref":"#/components/schemas/MigrationImage"},"type":"array"},"itemCount":{"description":"The total number of items","format":"int64","type":"integer"},"pageCount":{"description":"The total number of pages","format":"int64","type":"integer"},"pageIndex":{"description":"The current page","format":"int64","type":"integer"},"pageSize":{"description":"The number of items per page","type":"integer"}},"required":["pageCount","itemCount","pageSize","pageIndex","images"],"type":"object"},"MigrationImage":{"properties":{"imageId":{"type":"string"},"imageTag":{"type":"string"},"progress":{"type":"integer"},"status":{"type":"string"}},"type":"object"},"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}}}}
```

## GET /v1/replication/rules/{id}/migration/images/{image\_id}/logs

> Get migration logs for an image

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/replication/rules/{id}/migration/images/{image_id}/logs":{"get":{"operationId":"getMigrationLogsForImage","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"image_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/PlainTextResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Get migration logs for an image","tags":["Replication"]}}},"components":{"responses":{"PlainTextResponse":{"content":{"text/plain; charset=utf-8":{"schema":{"type":"string"}}},"description":"A plain text response"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested resource was not found"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}},"schemas":{"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}}}}
```

## Start migration

> Start migration given an id

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/replication/rules/{id}/migration/start":{"post":{"description":"Start migration given an id","operationId":"startMigration","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Start migration","tags":["Replication"]}}},"components":{"responses":{"Success":{"content":{"application/json":{"schema":{"properties":{"status":{"$ref":"#/components/schemas/Status"}},"required":["status"],"type":"object"}}},"description":"Generic success response"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested resource was not found"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}},"schemas":{"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}}}}
```

## Stop migration

> Stop migration given an id

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/replication/rules/{id}/migration/stop":{"post":{"description":"Stop migration given an id","operationId":"stopMigration","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Stop migration","tags":["Replication"]}}},"components":{"responses":{"Success":{"content":{"application/json":{"schema":{"properties":{"status":{"$ref":"#/components/schemas/Status"}},"required":["status"],"type":"object"}}},"description":"Generic success response"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested resource was not found"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}},"schemas":{"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}}}}
```
