The th2-cradle-admin is a set of projects for managing books and pages in th2 storage.
The th2-cradle-admin-tool is th2 component which allows to manage books and pages via configuration automatically or via REST API manually
apiVersion: th2.exactpro.com/v2
kind: Th2CoreBox
metadata:
name: cradle-admin
spec:
imageName: ghcr.io/th2-net/th2-cradle-admin-tool
imageVersion: 1.9.0-dev
type: th2-conn
customConfig:
ip: 0.0.0.0
port: 8080
page-recheck-interval: 60
auto-book: true
auto-pages:
test_book:
page-duration: "P1D"
page-start-time: "1970-00-00T00:00:00.000Z"
extendedSettings:
service:
enabled: true
ingress:
urlPaths:
- /cradle-admin/
/get-all-books
- returns all existed books/get-book-info?book-id=test_book&with-pages=false&load-removed-pages
- returns information by arguments:book-id
- name (id) of requested book (required). You can specify multiplebook-id
argumentswith-pages
- controls respond information about pages (optional)load-removed-pages
- this flag controls respond information about pages marked as removed (optional)
/new-book?book-name=test_book&created-time=1970-00-00T00:00:00.000Z&full-name=test_book&desc=first_book&first-page-name=first_page
- creates new a book by arguments:book-name
- name (id) of new book (required)full-name
- extended book name (optional)desc
- description for book (optional)first-page-name
- name of the first page (optional). You can add page later
/new-page?book-id=test_book&page-name=first_page&page-start=1970-00-00T00:00:00.000Z&page-comment=my_first_page
- crates a new page by arguments:book-id
- name (id) where the new page will be created (required).page-name
- name of the new page (optional). If you miss this argument, name is generated automaticallypage-start
- start time of the new page (required)page-comment
- comment for the new page (optional)
/remove-page?book-id=test_book&page-name=first_page
- removes a page by arguments:book-id
- name (id) where the removed page is (required).page-name
- name of the removed page (required).
- Migrated to th2 gradle plugin
0.0.8
- Updated common:
5.12.0-dev
- Migrated to th2 gradle plugin
0.0.6
- Updated:
- bom:
4.6.1
- common:
5.11.0-dev
- cradle:
5.3.0-dev
- jetty:
9.4.54.v20240208
- commons-cli:
1.7.0
- bom: