Vesta Backup

encryption

Vesta API · 6.0.82 · Community

GET/api/v1/encryption/keysList Keys

List all encryption keys (metadata only, never key material)

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "items": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "algorithm": {
            "type": "string"
          },
          "backed_up": {
            "type": "boolean"
          },
          "backed_up_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "backed_up_locations": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "backup_count": {
            "type": "integer"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "key_hash": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "replaced_by_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "rotated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "algorithm",
          "key_hash",
          "status",
          "provider",
          "created_at",
          "created_by",
          "rotated_at",
          "replaced_by_id",
          "backed_up",
          "backed_up_at",
          "backed_up_locations",
          "backup_count"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "total": {
      "type": "integer"
    }
  },
  "required": [
    "items",
    "total"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Request refused or failed

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/encryption/keysCreate Key

Create a local KEK and its nonsecret admission receipt atomically.

Parameters

Idempotency-Key · header · Optional

Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.

{
  "format": "uuid",
  "type": "string"
}

Request body

Required

application/json

Schema

CreateKeyRequest

Authentication

Responses

200

Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.

Headers
{
  "Cache-Control": {
    "schema": {
      "const": "no-store"
    }
  },
  "Idempotency-Key": {
    "schema": {
      "format": "uuid",
      "type": "string"
    }
  },
  "Idempotency-Replayed": {
    "schema": {
      "enum": [
        "true",
        "false"
      ],
      "type": "string"
    }
  },
  "X-Request-ID": {
    "description": "Per-HTTP-request correlation, separate from durable admission identity.",
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "algorithm": {
      "type": "string"
    },
    "backed_up": {
      "type": "boolean"
    },
    "backed_up_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "backed_up_locations": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "backup_count": {
      "type": "integer"
    },
    "created_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "key_hash": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "replaced_by_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "request_id": {
      "format": "uuid",
      "type": "string"
    },
    "rotated_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "algorithm",
    "key_hash",
    "status",
    "provider",
    "created_at",
    "created_by",
    "rotated_at",
    "replaced_by_id",
    "backed_up",
    "backed_up_at",
    "backed_up_locations",
    "backup_count",
    "request_id"
  ],
  "type": "object"
}

400

Invalid domain request.

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

401

Authentication unavailable.

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Current action authority unavailable.

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

404

Authorized resource unavailable.

application/json

Schema

OperatorAdmissionError

409

Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract.

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "provider_admission_contract_unavailable",
              "type": "string"
            }
          },
          "required": [
            "code"
          ],
          "type": "object"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

413

Normalized intent exceeds admission limit.

application/json

Schema

OperatorAdmissionError

422

Malformed identity, request validation or bulk target limit.

application/json

Schema

OperatorAdmissionError

423

Existing source or operation custody prevents admission.

application/json

Schema

OperatorAdmissionError

500

Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity.

application/json

Schema

OperatorAdmissionError

text/plain

Schema
{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "const": "Internal Server Error",
      "type": "string"
    }
  ]
}

503

Admission dependency unavailable.

application/json

Schema

OperatorAdmissionError

POST/api/v1/encryption/keys/confirm-exportConfirm Export Custody

Verify a saved encrypted export and record the admin's custody attestation.

Request body

Required

multipart/form-data

Schema

Body_confirm_export_custody_api_v1_encryption_keys_confirm_export_post

Authentication

Responses

200

Successful response; resource state is separate from HTTP acceptance.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "key_ids": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "location": {
      "type": "string"
    },
    "sha256": {
      "type": "string"
    }
  },
  "required": [
    "key_ids",
    "sha256",
    "location"
  ],
  "type": "object"
}

400

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Request refused or failed

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

413

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/encryption/keys/exportExport Keys

Export keys as password-protected file (local provider only)

Request body

Required

application/json

Schema

ExportKeysRequest

Authentication

Responses

200

Binary attachment. Saving the response does not confirm independent encryption-key backup custody.

Headers
{
  "Content-Disposition": {
    "description": "Attachment filename.",
    "schema": {
      "type": "string"
    }
  }
}

application/octet-stream

Schema
{
  "format": "binary",
  "type": "string"
}

400

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Request refused or failed

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/encryption/keys/importImport Keys

Import keys from password-protected export file

Request body

Required

multipart/form-data

Schema

Body_import_keys_api_v1_encryption_keys_import_post

Authentication

Responses

200

Successful response; resource state is separate from HTTP acceptance.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "count": {
      "type": "integer"
    },
    "imported_key_ids": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "imported_key_ids",
    "count"
  ],
  "type": "object"
}

400

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Request refused or failed

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/encryption/keys/{key_id}Get Key

Get encryption key details + backup count

Parameters

key_id · path · Required

{
  "title": "Key Id",
  "type": "string"
}

Authentication

Responses

200

Successful response; resource state is separate from HTTP acceptance.

application/json

Schema

EncryptionKeyMetadata

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Request refused or failed

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

404

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/encryption/keys/{key_id}/revokeRevoke Key

Revoke a key (soft delete). Fails if backups still reference it.

Parameters

key_id · path · Required

{
  "title": "Key Id",
  "type": "string"
}

Authentication

Responses

200

Successful response; resource state is separate from HTTP acceptance.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "key_id": {
      "type": "string"
    },
    "status": {
      "const": "revoked"
    }
  },
  "required": [
    "status",
    "key_id"
  ],
  "type": "object"
}

400

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Request refused or failed

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/encryption/keys/{key_id}/rotateRotate Key

Replay names the same successor; a new request for a stale key conflicts.

Parameters

key_id · path · Required

{
  "title": "Key Id",
  "type": "string"
}

Idempotency-Key · header · Optional

Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.

{
  "format": "uuid",
  "type": "string"
}

Request body

Required

application/json

Schema

RotateKeyRequest

Authentication

Responses

200

Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.

Headers
{
  "Cache-Control": {
    "schema": {
      "const": "no-store"
    }
  },
  "Idempotency-Key": {
    "schema": {
      "format": "uuid",
      "type": "string"
    }
  },
  "Idempotency-Replayed": {
    "schema": {
      "enum": [
        "true",
        "false"
      ],
      "type": "string"
    }
  },
  "X-Request-ID": {
    "description": "Per-HTTP-request correlation, separate from durable admission identity.",
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "algorithm": {
      "type": "string"
    },
    "backed_up": {
      "type": "boolean"
    },
    "backed_up_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "backed_up_locations": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "backup_count": {
      "type": "integer"
    },
    "created_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "key_hash": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "replaced_by_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "request_id": {
      "format": "uuid",
      "type": "string"
    },
    "rotated_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "algorithm",
    "key_hash",
    "status",
    "provider",
    "created_at",
    "created_by",
    "rotated_at",
    "replaced_by_id",
    "backed_up",
    "backed_up_at",
    "backed_up_locations",
    "backup_count",
    "request_id"
  ],
  "type": "object"
}

400

Invalid domain request.

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

401

Authentication unavailable.

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Current action authority unavailable.

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

404

Authorized resource unavailable.

application/json

Schema

OperatorAdmissionError

409

Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract.

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "provider_admission_contract_unavailable",
              "type": "string"
            }
          },
          "required": [
            "code"
          ],
          "type": "object"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "stale_key_predecessor",
              "type": "string"
            }
          },
          "required": [
            "code"
          ],
          "type": "object"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

413

Normalized intent exceeds admission limit.

application/json

Schema

OperatorAdmissionError

422

Malformed identity, request validation or bulk target limit.

application/json

Schema

OperatorAdmissionError

423

Existing source or operation custody prevents admission.

application/json

Schema

OperatorAdmissionError

500

Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity.

application/json

Schema

OperatorAdmissionError

text/plain

Schema
{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "const": "Internal Server Error",
      "type": "string"
    }
  ]
}

503

Admission dependency unavailable.

application/json

Schema

OperatorAdmissionError

GET/api/v1/encryption/providerGet Provider Info

Get current KMS provider info

Authentication

Responses

200

Successful response; resource state is separate from HTTP acceptance.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "active_key": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/EncryptionKeyMetadata"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "type": "string"
    },
    "keys_not_backed_up": {
      "type": "integer"
    },
    "provider": {
      "const": "local"
    },
    "supports_export": {
      "type": "boolean"
    },
    "total_keys": {
      "type": "integer"
    }
  },
  "required": [
    "provider",
    "supports_export",
    "active_key",
    "total_keys",
    "keys_not_backed_up"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Request refused or failed

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}