Secret Management Service API

domain

POST /domain

Add a new domain

  • Description:
  • Consumes: [‘application/json’]
  • Produces: [‘application/json’]

Parameters

Name Position Description Type
body body

Responses

201 - Successful Creation

400 - Invalid input

500 - Internal Server Error

DELETE /domain/{domainName}

Deletes a domain by name

  • Description: Deletes a domain with provided name
  • Produces: [‘application/json’]

Parameters

Name Position Description Type
domainName path Name of the domain string

Responses

204 - Successful Deletion

404 - Invalid Path or Path not found

secret

POST /domain/{domainName}/secret

Add a new secret

  • Description:
  • Consumes: [‘application/json’]
  • Produces: [‘application/json’]

Parameters

Name Position Description Type
domainName path Name of the domain string
body body

Responses

201 - Successful Creation

404 - Invalid Path or Path not found

GET /domain/{domainName}/secret

List secret Names in this domain

  • Description: Gets all secret names in this domain
  • Produces: [‘application/json’]

Parameters

Name Position Description Type
domainName path Name of the domain in which to look at string

Responses

200 - Successful operation

Name Description Type
secretnames Array of strings referencing the secret names array

404 - Invalid Path or Path not found

GET /domain/{domainName}/secret/{secretName}

Find Secret by Name

  • Description: Returns a single secret
  • Produces: [‘application/json’]

Parameters

Name Position Description Type
domainName path Name of the domain in which to look at string
secretName path Name of the secret which is needed string

Responses

200 - successful operation

404 - Invalid Path or Path not found

DELETE /domain/{domainName}/secret/{secretName}

Deletes a Secret

  • Description:
  • Produces: [‘application/json’]

Parameters

Name Position Description Type
secretName path Name of Secret to Delete string
domainName path Path to the SecretDomain which contains the Secret string

Responses

204 - Successful Deletion

404 - Invalid Path or Path not found