Vesta Backup

api-keys

Vesta API · 6.0.76 · Community

GET/api/v1/orchestrator-keysList Orchestrator Keys

List all orchestrator API keys (admin only)

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "items": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "is_expired": {
            "type": "boolean"
          },
          "is_valid": {
            "type": "boolean"
          },
          "key_prefix": {
            "type": "string"
          },
          "last_used_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "key_prefix",
          "expires_at",
          "enabled",
          "is_expired",
          "is_valid",
          "last_used_at",
          "created_at",
          "created_by"
        ],
        "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

Persisted identity lacks required role or installation/platform authority

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/orchestrator-keysCreate Orchestrator Key

Create new orchestrator API key (admin only)

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

OrchestratorAPIKeyCreate

Authentication

Responses

201

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
{
  "discriminator": {
    "propertyName": "secret_delivery"
  },
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "api_key": {
          "description": "First response only. Permanently absent from replay and outcome lookup.",
          "type": "string",
          "writeOnly": true
        },
        "created_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "expires_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string"
        },
        "key_prefix": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "request_id": {
          "format": "uuid",
          "type": "string"
        },
        "secret_delivery": {
          "const": "one_time",
          "type": "string"
        },
        "usage_snippet": {
          "description": "First response only. Permanently absent from replay and outcome lookup.",
          "type": "string",
          "writeOnly": true
        }
      },
      "required": [
        "id",
        "name",
        "key_prefix",
        "expires_at",
        "created_at",
        "message",
        "request_id",
        "secret_delivery",
        "api_key",
        "usage_snippet"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "created_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "expires_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string"
        },
        "key_prefix": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "request_id": {
          "format": "uuid",
          "type": "string"
        },
        "secret_delivery": {
          "const": "unavailable",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "key_prefix",
        "expires_at",
        "created_at",
        "message",
        "request_id",
        "secret_delivery"
      ],
      "type": "object"
    }
  ]
}

400

Invalid domain request.

application/json

Schema

OperatorAdmissionError

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

OperatorAdmissionError

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

DELETE/api/v1/orchestrator-keys/{key_id}Delete Orchestrator Key

Delete orchestrator API key (admin only)

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": {
    "message": {
      "type": "string"
    }
  },
  "required": [
    "message"
  ],
  "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

Persisted identity lacks required role or installation/platform authority

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"
}

PATCH/api/v1/orchestrator-keys/{key_id}Update Orchestrator Key

Update orchestrator API key (admin only)

Parameters

key_id · path · Required

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

Request body

Required

application/json

Schema

OrchestratorAPIKeyUpdate

Authentication

Responses

200

Successful response; resource state is separate from HTTP acceptance.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "expires_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "is_valid": {
      "type": "boolean"
    },
    "key_prefix": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "key_prefix",
    "expires_at",
    "enabled",
    "is_valid",
    "message"
  ],
  "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

Persisted identity lacks required role or installation/platform authority

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"
}

GET/api/v1/registration-keysList Registration Keys

List all agent registration keys (admin only)

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "items": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "agent_hostname": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "is_expired": {
            "type": "boolean"
          },
          "is_max_uses_reached": {
            "type": "boolean"
          },
          "is_valid": {
            "type": "boolean"
          },
          "key_prefix": {
            "type": "string"
          },
          "last_used_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "max_uses": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "use_count": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "key_prefix",
          "expires_at",
          "enabled",
          "is_expired",
          "is_valid",
          "last_used_at",
          "created_at",
          "created_by",
          "agent_hostname",
          "max_uses",
          "use_count",
          "is_max_uses_reached"
        ],
        "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

Persisted identity lacks required role or installation/platform authority

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/registration-keysCreate Registration Key

Create new agent registration key (admin only)

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

AgentRegistrationKeyCreate

Authentication

Responses

201

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
{
  "discriminator": {
    "propertyName": "secret_delivery"
  },
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "agent_hostname": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "api_key": {
          "description": "First response only. Permanently absent from replay and outcome lookup.",
          "type": "string",
          "writeOnly": true
        },
        "created_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "expires_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string"
        },
        "key_prefix": {
          "type": "string"
        },
        "max_uses": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "message": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "request_id": {
          "format": "uuid",
          "type": "string"
        },
        "secret_delivery": {
          "const": "one_time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "key_prefix",
        "expires_at",
        "created_at",
        "message",
        "agent_hostname",
        "max_uses",
        "request_id",
        "secret_delivery",
        "api_key"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "agent_hostname": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "expires_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string"
        },
        "key_prefix": {
          "type": "string"
        },
        "max_uses": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "message": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "request_id": {
          "format": "uuid",
          "type": "string"
        },
        "secret_delivery": {
          "const": "unavailable",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "key_prefix",
        "expires_at",
        "created_at",
        "message",
        "agent_hostname",
        "max_uses",
        "request_id",
        "secret_delivery"
      ],
      "type": "object"
    }
  ]
}

400

Invalid domain request.

application/json

Schema

OperatorAdmissionError

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

OperatorAdmissionError

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

DELETE/api/v1/registration-keys/{key_id}Delete Registration Key

Delete agent registration key (admin only)

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": {
    "message": {
      "type": "string"
    }
  },
  "required": [
    "message"
  ],
  "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

Persisted identity lacks required role or installation/platform authority

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"
}

PATCH/api/v1/registration-keys/{key_id}Update Registration Key

Update agent registration key (admin only)

Parameters

key_id · path · Required

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

Request body

Required

application/json

Schema

AgentRegistrationKeyUpdate

Authentication

Responses

200

Successful response; resource state is separate from HTTP acceptance.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "expires_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "is_valid": {
      "type": "boolean"
    },
    "key_prefix": {
      "type": "string"
    },
    "max_uses": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "message": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "use_count": {
      "type": "integer"
    }
  },
  "required": [
    "id",
    "name",
    "key_prefix",
    "expires_at",
    "enabled",
    "is_valid",
    "message",
    "max_uses",
    "use_count"
  ],
  "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

Persisted identity lacks required role or installation/platform authority

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"
}

409

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"
}