# \AdminApi

All URIs are relative to *https://registry.example.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**cancel_backup**](AdminApi.md#cancel_backup) | **POST** /api/v1/admin/backups/{id}/cancel | Cancel a running backup or restore
[**create_backup**](AdminApi.md#create_backup) | **POST** /api/v1/admin/backups | Create backup
[**delete_backup**](AdminApi.md#delete_backup) | **DELETE** /api/v1/admin/backups/{id} | Delete backup
[**download_backup**](AdminApi.md#download_backup) | **GET** /api/v1/admin/backups/{id}/download | Download backup
[**execute_backup**](AdminApi.md#execute_backup) | **POST** /api/v1/admin/backups/{id}/execute | Execute a backup
[**get_backup**](AdminApi.md#get_backup) | **GET** /api/v1/admin/backups/{id} | Get backup details
[**get_system_settings**](AdminApi.md#get_system_settings) | **GET** /api/v1/admin/settings | Get system settings
[**get_system_stats**](AdminApi.md#get_system_stats) | **GET** /api/v1/admin/stats | Get system statistics
[**list_backups**](AdminApi.md#list_backups) | **GET** /api/v1/admin/backups | List backups
[**query_audit_log**](AdminApi.md#query_audit_log) | **GET** /api/v1/admin/audit-log | Query audit log
[**reindex_search**](AdminApi.md#reindex_search) | **POST** /api/v1/admin/search/reindex | Reindex search
[**restore_backup**](AdminApi.md#restore_backup) | **POST** /api/v1/admin/backups/{id}/restore | Restore from backup
[**trigger_cleanup**](AdminApi.md#trigger_cleanup) | **POST** /api/v1/admin/cleanup | Trigger storage cleanup
[**trigger_garbage_collection**](AdminApi.md#trigger_garbage_collection) | **POST** /api/v1/admin/system/gc | Trigger garbage collection
[**trigger_reindex**](AdminApi.md#trigger_reindex) | **POST** /api/v1/admin/reindex | Trigger search reindex
[**update_system_settings**](AdminApi.md#update_system_settings) | **POST** /api/v1/admin/settings | Update system settings



## cancel_backup

> models::Backup cancel_backup(id)
Cancel a running backup or restore

Cancels a backup or restore operation that is currently in progress.

### Parameters


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

### Return type

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

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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_backup

> models::Backup create_backup(create_backup_request)
Create backup

Initiates a new system backup with the specified options.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_backup_request** | [**CreateBackupRequest**](CreateBackupRequest.md) |  | [required] |

### Return type

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

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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_backup

> delete_backup(id)
Delete backup

Permanently deletes a backup and its associated data files.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Backup UUID | [required] |

### Return type

 (empty response body)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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)


## download_backup

> Vec<u8> download_backup(id)
Download backup

Downloads the backup archive file.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Backup UUID | [required] |

### Return type

[**Vec<u8>**](Vec<u8>.md)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/octet-stream, 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)


## execute_backup

> models::Backup execute_backup(id)
Execute a backup

Starts the backup process asynchronously.

### Parameters


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

### Return type

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

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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_backup

> models::Backup get_backup(id)
Get backup details

Returns detailed information about a single backup.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Backup UUID | [required] |

### Return type

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

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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_system_settings

> std::collections::HashMap<String, serde_json::Value> get_system_settings()
Get system settings

Returns the current system-wide settings.

### Parameters

This endpoint does not need any parameter.

### Return type

[**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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_system_stats

> models::GetSystemStats200Response get_system_stats()
Get system statistics

Returns aggregate system statistics including user, repository, and artifact counts.

### Parameters

This endpoint does not need any parameter.

### Return type

[**models::GetSystemStats200Response**](getSystemStats_200_response.md)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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_backups

> models::ListBackups200Response list_backups(page, per_page)
List backups

Returns a paginated list of system backups.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**page** | Option<**i32**> | Page number for pagination |  |[default to 1]
**per_page** | Option<**i32**> | Number of items per page |  |[default to 20]

### Return type

[**models::ListBackups200Response**](listBackups_200_response.md)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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)


## query_audit_log

> models::QueryAuditLog200Response query_audit_log(user_id, action, from, to, page, per_page)
Query audit log

Returns a paginated audit log with optional filtering by user, action, and date range.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**user_id** | Option<**uuid::Uuid**> | Filter by user UUID. |  |
**action** | Option<**String**> | Filter by action type. |  |
**from** | Option<**String**> | Start of date range (inclusive). |  |
**to** | Option<**String**> | End of date range (inclusive). |  |
**page** | Option<**i32**> | Page number for pagination |  |[default to 1]
**per_page** | Option<**i32**> | Number of items per page |  |[default to 20]

### Return type

[**models::QueryAuditLog200Response**](queryAuditLog_200_response.md)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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)


## reindex_search

> models::AsyncTaskResponse reindex_search()
Reindex search

Triggers a full reindex of the search index from the database. Use after bulk imports or data recovery.

### Parameters

This endpoint does not need any parameter.

### Return type

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

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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)


## restore_backup

> models::AsyncTaskResponse restore_backup(id)
Restore from backup

Initiates a system restore from the specified backup. This is a destructive operation that replaces current data.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Backup UUID | [required] |

### Return type

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

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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)


## trigger_cleanup

> models::TriggerCleanup202Response trigger_cleanup()
Trigger storage cleanup

Starts an asynchronous job to remove orphaned files and expired artifacts.

### Parameters

This endpoint does not need any parameter.

### Return type

[**models::TriggerCleanup202Response**](triggerCleanup_202_response.md)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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)


## trigger_garbage_collection

> models::AsyncTaskResponse trigger_garbage_collection()
Trigger garbage collection

Triggers a garbage collection pass to reclaim storage from orphaned blobs and deleted artifacts.

### Parameters

This endpoint does not need any parameter.

### Return type

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

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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)


## trigger_reindex

> models::TriggerCleanup202Response trigger_reindex()
Trigger search reindex

Starts an asynchronous job to rebuild the search index from stored metadata.

### Parameters

This endpoint does not need any parameter.

### Return type

[**models::TriggerCleanup202Response**](triggerCleanup_202_response.md)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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)


## update_system_settings

> std::collections::HashMap<String, serde_json::Value> update_system_settings(request_body)
Update system settings

Replaces the system-wide settings with the provided values.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**request_body** | [**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md) |  | [required] |

### Return type

[**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [bearerAuth](../README.md#bearerAuth)

### 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)

