# \MigrationApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**cancel_migration**](MigrationApi.md#cancel_migration) | **POST** /api/v1/migrations/{id}/cancel | Cancel a migration job
[**create_connection**](MigrationApi.md#create_connection) | **POST** /api/v1/migrations/connections | Create a new source connection
[**create_migration**](MigrationApi.md#create_migration) | **POST** /api/v1/migrations | Create a new migration job
[**delete_connection**](MigrationApi.md#delete_connection) | **DELETE** /api/v1/migrations/connections/{id} | Delete a source connection
[**delete_migration**](MigrationApi.md#delete_migration) | **DELETE** /api/v1/migrations/{id} | Delete a migration job
[**get_assessment**](MigrationApi.md#get_assessment) | **GET** /api/v1/migrations/{id}/assessment | Get assessment results
[**get_connection**](MigrationApi.md#get_connection) | **GET** /api/v1/migrations/connections/{id} | Get a specific source connection
[**get_migration**](MigrationApi.md#get_migration) | **GET** /api/v1/migrations/{id} | Get a specific migration job
[**get_migration_report**](MigrationApi.md#get_migration_report) | **GET** /api/v1/migrations/{id}/report | Get migration report
[**list_connections**](MigrationApi.md#list_connections) | **GET** /api/v1/migrations/connections | List all source connections for the current user
[**list_migration_items**](MigrationApi.md#list_migration_items) | **GET** /api/v1/migrations/{id}/items | List migration items for a job
[**list_migrations**](MigrationApi.md#list_migrations) | **GET** /api/v1/migrations | List migration jobs
[**list_source_repositories**](MigrationApi.md#list_source_repositories) | **GET** /api/v1/migrations/connections/{id}/repositories | List repositories from Artifactory source
[**pause_migration**](MigrationApi.md#pause_migration) | **POST** /api/v1/migrations/{id}/pause | Pause a migration job
[**resume_migration**](MigrationApi.md#resume_migration) | **POST** /api/v1/migrations/{id}/resume | Resume a paused migration job
[**run_assessment**](MigrationApi.md#run_assessment) | **POST** /api/v1/migrations/{id}/assess | Run pre-migration assessment
[**start_migration**](MigrationApi.md#start_migration) | **POST** /api/v1/migrations/{id}/start | Start a migration job
[**stream_migration_progress**](MigrationApi.md#stream_migration_progress) | **GET** /api/v1/migrations/{id}/stream | Stream migration progress via Server-Sent Events
[**test_connection**](MigrationApi.md#test_connection) | **POST** /api/v1/migrations/connections/{id}/test | Test connection to Artifactory



## cancel_migration

> models::MigrationJobResponse cancel_migration(id)
Cancel a migration job

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |

### Return type

[**models::MigrationJobResponse**](MigrationJobResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## create_connection

> models::ConnectionResponse create_connection(create_connection_request)
Create a new source connection

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_connection_request** | [**CreateConnectionRequest**](CreateConnectionRequest.md) |  | [required] |

### Return type

[**models::ConnectionResponse**](ConnectionResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## create_migration

> models::MigrationJobResponse create_migration(create_migration_request)
Create a new migration job

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_migration_request** | [**CreateMigrationRequest**](CreateMigrationRequest.md) |  | [required] |

### Return type

[**models::MigrationJobResponse**](MigrationJobResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_connection

> delete_connection(id)
Delete a source connection

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Connection ID | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_migration

> delete_migration(id)
Delete a migration job

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_assessment

> models::AssessmentResult get_assessment(id)
Get assessment results

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |

### Return type

[**models::AssessmentResult**](AssessmentResult.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_connection

> models::ConnectionResponse get_connection(id)
Get a specific source connection

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Connection ID | [required] |

### Return type

[**models::ConnectionResponse**](ConnectionResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_migration

> models::MigrationJobResponse get_migration(id)
Get a specific migration job

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |

### Return type

[**models::MigrationJobResponse**](MigrationJobResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_migration_report

> models::MigrationReportResponse get_migration_report(id, format)
Get migration report

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |
**format** | Option<**String**> |  |  |

### Return type

[**models::MigrationReportResponse**](MigrationReportResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_connections

> Vec<models::ConnectionResponse> list_connections()
List all source connections for the current user

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::ConnectionResponse>**](ConnectionResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_migration_items

> Vec<models::MigrationItemResponse> list_migration_items(id, status, item_type, page, per_page)
List migration items for a job

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |
**status** | Option<**String**> |  |  |
**item_type** | Option<**String**> |  |  |
**page** | Option<**i64**> |  |  |
**per_page** | Option<**i64**> |  |  |

### Return type

[**Vec<models::MigrationItemResponse>**](MigrationItemResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_migrations

> Vec<models::MigrationJobResponse> list_migrations(status, page, per_page)
List migration jobs

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**status** | Option<**String**> |  |  |
**page** | Option<**i64**> |  |  |
**per_page** | Option<**i64**> |  |  |

### Return type

[**Vec<models::MigrationJobResponse>**](MigrationJobResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_source_repositories

> Vec<models::SourceRepository> list_source_repositories(id)
List repositories from Artifactory source

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Connection ID | [required] |

### Return type

[**Vec<models::SourceRepository>**](SourceRepository.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## pause_migration

> models::MigrationJobResponse pause_migration(id)
Pause a migration job

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |

### Return type

[**models::MigrationJobResponse**](MigrationJobResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## resume_migration

> models::MigrationJobResponse resume_migration(id)
Resume a paused migration job

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |

### Return type

[**models::MigrationJobResponse**](MigrationJobResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## run_assessment

> models::MigrationJobResponse run_assessment(id)
Run pre-migration assessment

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |

### Return type

[**models::MigrationJobResponse**](MigrationJobResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## start_migration

> models::MigrationJobResponse start_migration(id)
Start a migration job

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |

### Return type

[**models::MigrationJobResponse**](MigrationJobResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## stream_migration_progress

> stream_migration_progress(id)
Stream migration progress via Server-Sent Events

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Migration job ID | [required] |

### Return type

 (empty response body)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## test_connection

> models::ConnectionTestResult test_connection(id)
Test connection to Artifactory

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Connection ID | [required] |

### Return type

[**models::ConnectionTestResult**](ConnectionTestResult.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

