Bad Request
Not Found
Internal server error
Returns the list of Secrets
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details required to create the Secret
required | object (Secret1) This is details of the secret entity defined in Harness. |
Bad Request
Not Found
Internal server error
Returns the created Secret details
{- "secret": {
- "type": "SecretFile",
- "name": "string",
- "identifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "description": "string",
- "spec": {
- "errorMessageForInvalidYaml": "string",
- "type": "string"
}
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Not Found
Internal server error
Returns created Secret file
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details required to create the Secret
required | object (Secret1) This is details of the secret entity defined in Harness. |
Bad Request
Not Found
Internal server error
Returns the created Secret details
Bad Request
Not Found
Internal server error
Returns the Secret with the requested ID and Scope
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
required | object (Secret1) This is details of the secret entity defined in Harness. |
Bad Request
Not Found
Internal server error
Returns the updated Secret
{- "secret": {
- "type": "SecretFile",
- "name": "string",
- "identifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "description": "string",
- "spec": {
- "errorMessageForInvalidYaml": "string",
- "type": "string"
}
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Not Found
Internal server error
It returns true if the secret is successfully deleted and false if it is not deleted
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Not Found
Internal server error
Returns the list of Secrets
{- "secretName": "string",
- "secretIdentifier": "string",
- "secretTypes": [
- "SecretFile"
], - "secretManagerIdentifiers": [
- "string"
], - "description": "string",
- "searchTerm": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "filterType": "Secret"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Not Found
Internal server error
Returns the list of Secrets
{- "identifiers": [
- "string"
], - "searchTerm": "string",
- "secretTypes": [
- "SecretFile"
], - "sourceCategory": "CLOUD_PROVIDER",
- "includeSecretsFromEverySubScope": true,
- "includeAllSecretsAccessibleAtScope": true
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Not Found
Internal server error
Returns the updated Secret file details
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Details of Secret to create
required | object (Secret1) This is details of the secret entity defined in Harness. |
Bad Request
Not Found
Internal server error
Returns the updated Secret details
Bad Request
Not Found
Internal server error
Returns validation response
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Not Found
Internal server error
It returns true if the Identifier is unique and false if the Identifier is not unique.
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}