# \SigningApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_signing_key**](SigningApi.md#create_signing_key) | **POST** /api/v1/signing/keys | Create signing key
[**delete_signature**](SigningApi.md#delete_signature) | **DELETE** /api/v1/signing/signatures/{signature_id} | Delete signature
[**delete_signing_key**](SigningApi.md#delete_signing_key) | **DELETE** /api/v1/signing/keys/{key_id} | Delete a signing key
[**get_repository_public_key**](SigningApi.md#get_repository_public_key) | **GET** /api/v1/signing/repositories/{repo_id}/public-key | Get repository public key
[**get_repository_signing_config**](SigningApi.md#get_repository_signing_config) | **GET** /api/v1/signing/repositories/{repo_id}/config | Get repository signing configuration
[**get_signing_key**](SigningApi.md#get_signing_key) | **GET** /api/v1/signing/keys/{key_id} | Get a signing key
[**get_signing_key_public**](SigningApi.md#get_signing_key_public) | **GET** /api/v1/signing/keys/{key_id}/public | Get public key material
[**list_artifact_signatures**](SigningApi.md#list_artifact_signatures) | **GET** /api/v1/signing/artifacts/{artifact_id}/signatures | List artifact signatures
[**list_signing_keys**](SigningApi.md#list_signing_keys) | **GET** /api/v1/signing/keys | List signing keys
[**revoke_signing_key**](SigningApi.md#revoke_signing_key) | **POST** /api/v1/signing/keys/{key_id}/revoke | Revoke a signing key
[**rotate_signing_key**](SigningApi.md#rotate_signing_key) | **POST** /api/v1/signing/keys/{key_id}/rotate | Rotate a signing key
[**sign_artifact**](SigningApi.md#sign_artifact) | **POST** /api/v1/signing/sign | Sign artifact
[**update_repository_signing_config**](SigningApi.md#update_repository_signing_config) | **POST** /api/v1/signing/repositories/{repo_id}/config | Update repository signing configuration
[**verify_artifact**](SigningApi.md#verify_artifact) | **POST** /api/v1/signing/verify | Verify artifact signature



## create_signing_key

> models::SigningKey create_signing_key(create_signing_key_request)
Create signing key

Generates a new signing key pair for artifact signing.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_signing_key_request** | [**CreateSigningKeyRequest**](CreateSigningKeyRequest.md) |  | [required] |

### Return type

[**models::SigningKey**](SigningKey.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_signature

> delete_signature(signature_id)
Delete signature

Permanently deletes a single artifact signature.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**signature_id** | **uuid::Uuid** | Signature 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)


## delete_signing_key

> delete_signing_key(key_id)
Delete a signing key

Permanently removes a signing key. Active repositories using this key must be reconfigured first.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key_id** | **uuid::Uuid** | Signing key ID. | [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)


## get_repository_public_key

> String get_repository_public_key(repo_id)
Get repository public key

Returns the active public signing key for a repository in PEM or GPG armored format.

### Parameters


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

### Return type

**String**

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: text/plain, 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_repository_signing_config

> models::SigningRepositoryConfig get_repository_signing_config(repo_id)
Get repository signing configuration

Returns the signing configuration for a repository.

### Parameters


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

### Return type

[**models::SigningRepositoryConfig**](SigningRepositoryConfig.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_signing_key

> models::SigningKey get_signing_key(key_id)
Get a signing key

Returns details of a single signing key.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key_id** | **uuid::Uuid** | Signing key ID. | [required] |

### Return type

[**models::SigningKey**](SigningKey.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_signing_key_public

> String get_signing_key_public(key_id)
Get public key material

Returns the public key in PEM (RSA) or ASCII-armored (GPG) format.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key_id** | **uuid::Uuid** | Signing key ID. | [required] |

### Return type

**String**

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: text/plain, 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_artifact_signatures

> Vec<models::SignArtifact201Response> list_artifact_signatures(artifact_id)
List artifact signatures

Returns all signatures associated with the specified artifact.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**artifact_id** | **uuid::Uuid** | Artifact UUID | [required] |

### Return type

[**Vec<models::SignArtifact201Response>**](signArtifact_201_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_signing_keys

> models::ListSigningKeys200Response list_signing_keys(page, per_page)
List signing keys

Returns a paginated list of signing keys.

### 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::ListSigningKeys200Response**](listSigningKeys_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)


## revoke_signing_key

> models::SigningKey revoke_signing_key(key_id)
Revoke a signing key

Marks a signing key as revoked so it can no longer be used for signing operations.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key_id** | **uuid::Uuid** | Signing key ID. | [required] |

### Return type

[**models::SigningKey**](SigningKey.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)


## rotate_signing_key

> models::SigningKey rotate_signing_key(key_id)
Rotate a signing key

Generates a new key pair, replaces the existing key, and revokes the old one.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**key_id** | **uuid::Uuid** | Signing key ID. | [required] |

### Return type

[**models::SigningKey**](SigningKey.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)


## sign_artifact

> models::SignArtifact201Response sign_artifact(sign_artifact_request)
Sign artifact

Creates a cryptographic signature for the specified artifact using the given signing key.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**sign_artifact_request** | [**SignArtifactRequest**](SignArtifactRequest.md) |  | [required] |

### Return type

[**models::SignArtifact201Response**](signArtifact_201_response.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)


## update_repository_signing_config

> std::collections::HashMap<String, serde_json::Value> update_repository_signing_config(repo_id, signing_repository_config)
Update repository signing configuration

Updates signing settings for a repository, such as which key to use and what to sign.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**repo_id** | **uuid::Uuid** | Repository ID. | [required] |
**signing_repository_config** | [**SigningRepositoryConfig**](SigningRepositoryConfig.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)


## verify_artifact

> models::VerifyArtifact200Response verify_artifact(verify_artifact_request)
Verify artifact signature

Verifies all signatures on the specified artifact and returns the verification results.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**verify_artifact_request** | [**VerifyArtifactRequest**](VerifyArtifactRequest.md) |  | [required] |

### Return type

[**models::VerifyArtifact200Response**](verifyArtifact_200_response.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)

