# Secrets

This contains APIs related to Secrets as defined in Harness

## Creates a Secret at given Scope

 - [POST /ng/api/v2/secrets](https://apidocs.harness.io/secrets/postsecret.md)

## Creates a Secret File

 - [POST /ng/api/v2/secrets/files](https://apidocs.harness.io/secrets/postsecretfilev2.md)

## Get the Secret by ID and Scope

 - [GET /ng/api/v2/secrets/{identifier}](https://apidocs.harness.io/secrets/getsecretv2.md)

## Updates the Secret by ID and Scope

 - [PUT /ng/api/v2/secrets/{identifier}](https://apidocs.harness.io/secrets/putsecret.md)

## Deletes Secret by ID and Scope

 - [DELETE /ng/api/v2/secrets/{identifier}](https://apidocs.harness.io/secrets/deletesecretv2.md)

## Fetches the list of Secrets corresponding to the request's filter criteria.

 - [POST /ng/api/v2/secrets/list/secrets](https://apidocs.harness.io/secrets/listsecretsv4.md)

## Fetches the list of Secrets corresponding to the request's filter criteria.

 - [POST /ng/api/v2/secrets/list](https://apidocs.harness.io/secrets/listsecretsv3.md)

## Updates the Secret file by ID and Scope

 - [PUT /ng/api/v2/secrets/files/{identifier}](https://apidocs.harness.io/secrets/putsecretfilev2.md)

## Updates the Secret by ID and Scope via YAML

 - [PUT /ng/api/v2/secrets/{identifier}/yaml](https://apidocs.harness.io/secrets/putsecretviayaml.md)

## Validates Secret with the provided ID and Scope

 - [POST /ng/api/v2/secrets/validate](https://apidocs.harness.io/secrets/validatesecret.md)

## Checks whether the identifier is unique or not

 - [GET /ng/api/v2/secrets/validateUniqueIdentifier/{identifier}](https://apidocs.harness.io/secrets/validatesecretidentifierisunique.md)

## Fetches the list of Secrets corresponding to the request's filter criteria. (deprecated)

 - [GET /ng/api/v2/secrets](https://apidocs.harness.io/secrets/listsecretsv2.md)

## Creates a secret via YAML (deprecated)

 - [POST /ng/api/v2/secrets/yaml](https://apidocs.harness.io/secrets/postsecretviayaml.md)

