Core instance secrets

Delete Core Instance Secret

Delete a secret within a core instance.

DELETEhttps://cloud-api.calyptia.com/v1/core_instance_secrets/{coreInstanceSecretID}
Authorization
Path parameters
coreInstanceSecretID*string (uuid)
Response

OK

Body
deleted*boolean
deletedAt*nullable string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/core_instance_secrets/{coreInstanceSecretID}', {
    method: 'DELETE',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "deleted": false,
  "deletedAt": "2024-10-16T08:57:31.137Z"
}

Update Core Instance Secret

Update a secret within a core instance. The secret will be updated with the given name and content. If encypted is set to true, the secret will be encrypted using the core instance's encryption key.

PATCHhttps://cloud-api.calyptia.com/v1/core_instance_secrets/{coreInstanceSecretID}
Authorization
Path parameters
coreInstanceSecretID*string (uuid)
Body
keynullable string
Example: "mysecret"
valuenullable string (byte)

Optional value of the secret in base 64 format.

Response

OK

Body
updatedAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/core_instance_secrets/{coreInstanceSecretID}', {
    method: 'PATCH',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "updatedAt": "2024-10-16T08:57:31.137Z"
}