# 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/openapi-merged/secrets/postsecret.md) ## Creates a Secret File - [POST /ng/api/v2/secrets/files](https://apidocs.harness.io/openapi-merged/secrets/postsecretfilev2.md) ## Get the Secret by ID and Scope - [GET /ng/api/v2/secrets/{identifier}](https://apidocs.harness.io/openapi-merged/secrets/getsecretv2.md) ## Updates the Secret by ID and Scope - [PUT /ng/api/v2/secrets/{identifier}](https://apidocs.harness.io/openapi-merged/secrets/putsecret.md) ## Deletes Secret by ID and Scope - [DELETE /ng/api/v2/secrets/{identifier}](https://apidocs.harness.io/openapi-merged/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/openapi-merged/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/openapi-merged/secrets/listsecretsv3.md) ## Updates the Secret file by ID and Scope - [PUT /ng/api/v2/secrets/files/{identifier}](https://apidocs.harness.io/openapi-merged/secrets/putsecretfilev2.md) ## Updates the Secret by ID and Scope via YAML - [PUT /ng/api/v2/secrets/{identifier}/yaml](https://apidocs.harness.io/openapi-merged/secrets/putsecretviayaml.md) ## Validates Secret with the provided ID and Scope - [POST /ng/api/v2/secrets/validate](https://apidocs.harness.io/openapi-merged/secrets/validatesecret.md) ## Checks whether the identifier is unique or not - [GET /ng/api/v2/secrets/validateUniqueIdentifier/{identifier}](https://apidocs.harness.io/openapi-merged/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/openapi-merged/secrets/listsecretsv2.md) ## Creates a secret via YAML (deprecated) - [POST /ng/api/v2/secrets/yaml](https://apidocs.harness.io/openapi-merged/secrets/postsecretviayaml.md)