v1

latestOpenAPI 3.0.0Apache 2.02026-07-17143274803.9 KB
secrets

Add secrets

Adding secrets

post/api/v1/orgs/{orgId}/secrets

Path parameters

orgIdinteger required

Organization identifier

Query parameters

validateboolean

validation is skipped or not

Request body

namestring required
typestring required
tagsstring[]
valuesobject required

Example request

{
  "values": {
    "type": "string",
    "project_id": "string",
    "private_key_id": "string",
    "private_key": "string",
    "client_email": "string",
    "client_id": "string",
    "auth_uri": "string",
    "token_uri": "string",
    "auth_provider_x509_cert_url": "string",
    "client_x509_cert_url": "string"
  },
  "name": "My google secret",
  "type": "google",
  "tags": [
    "repo:pipeline",
    "tag2"
  ]
}

Response

Secret saved successfully

namestring required
typestring required
idstring required
errorstring
updatedAtstring date-time
updatedBystring
versioninteger
tagsstring[]

Example response

{
  "updatedBy": "username",
  "name": "My-google-secret",
  "id": "62bc3c75-91fb-4670-bad4-24b401a9deac",
  "type": "google",
  "error": "Validation failed",
  "version": 1,
  "updatedAt": "2018-07-01T08:27:23.2636996Z",
  "tags": [
    "repo:pipeline",
    "tag2"
  ]
}