![]() | ![]() | contents |
/mgmt/catalogs — Manage catalog resources
/mgmt/catalogs
/mgmt/catalogs/{catalog-id}
Fetches information about the current catalogs defined within the Enterprise Manager. A call without a catalog ID returns a list of the known catalogs. A call with a catalog ID returns information about that catalog specifically.
Adds a catalog to the Enterprise Manager. Since you must provide the contents of the catalog itself, this is the only call that does not use JSON to encode the body of the request. Instead, you must provide the catalog JAR file as a multipart-form element.
Deletes the specified catalog from the Enterprise Manager. You must specify a valid catalog ID in the URL.
For the POST method, you must provide the catalog JAR file in the body of the call. Since the catalog is a binary file, you must Base64-encode the file's contents to pass it to the service as part of the JSON input. The valid input arguments are the following:
| Argument Name | Type | Description |
|---|---|---|
| name | text | The name of the catalog |
| catalogbytes* | file data | The binary contents of a VoltDB catalog JAR file |
*Required | ||
When performing a GET, the REST interface returns information about the catalog rather than the catalog file itself. The structure of the JSON object returned for catalogs is as follows:
| Attribute Name | Type | Description |
|---|---|---|
| name | text | The name of the catalog |
| version | text (read-only) | The version specified in the catalog |
| description | text (read-only) | The description specified in the catalog |
The following example uses curl to create a new catalog object, encoding the JAR file
examples/voter/voter.jar:
CATALOG =$( base64 examples/voter/voter.jar )
JSON="{\"Catalog\":{\"name\":\"Voter\",\"catalogbytes\":\"$CATALOG\"}}"
curl --data "$JSON" http://voltdbmgr:9000/man/api/1.0/mgmt/catalogs
The Tao of VoltDB
The 5 Principles of VoltDB
VoltDB Technosphere
Products and Solutions
Technical Support
Key Features
Download VoltDB
No Limits
VoltDB Application Gallery
Infinite Possibilities
VoltBuilder Program
