This section describes features of the Logical Replication Controller.
This service allows to set up and manage publications on postgres. Also this service provides an ability to grant user for replication.
POST /publications/create
Create publication. If schemas and tables are empty publication will be created for all tables.
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | publication required |
Data for publication create | publication |
| Name | Description | Schema |
|---|---|---|
| publicationName required |
Name of publication | string |
| database required |
Logical database name | string |
| tables optional |
Tables included in publication. | string |
| schemas optional |
Schemas included in publication. | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | string |
| 400 | Bad request | string |
application/json
*/*
POST /publications/alter/add
Alter publication. Add some tables and schemas to publication. Empty both tables and schemas are not allowed.
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | publication required |
Data for publication create | publication |
| Name | Description | Schema |
|---|---|---|
| publicationName required |
Name of publication | string |
| database required |
Logical database name | string |
| tables optional |
Tables included in publication. | string |
| schemas optional |
Schemas included in publication. | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | string |
| 400 | Bad request | string |
application/json
*/*
POST /publications/alter/add
Alter publication. Change some tables and schemas in publication. Empty both tables and schemas are not allowed.
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | publication required |
Data for publication create | publication |
| Name | Description | Schema |
|---|---|---|
| publicationName required |
Name of publication | string |
| database required |
Logical database name | string |
| tables optional |
Tables included in publication. | string |
| schemas optional |
Schemas included in publication. | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | string |
| 400 | Bad request | string |
application/json
*/*
GET /{database}/{publication}
Get publication Info.
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | publicationName required |
Name of publication | string |
| Path | database required |
Logical database name | string |
| Query | withTables optional |
If table info must present in response | bool |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | Publication Info |
| 400 | Bad request | string |
| Name | Description | Schema |
|---|---|---|
| name | Name of publication | string |
| database | Logical database name | string |
| owner | Publication owner | string |
| tables | Tables included in publication | Array of Table |
| Name | Description | Schema |
|---|---|---|
| name | Table name | string |
| attrNames | Attributes included in publication | Array of string |
| rowfilter | RowFilter for table, if present | string |
*/*
*/*
DELETE /publications/drop
Drop publication for logical database.
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | publication required |
Data for publication create | publication |
| Name | Description | Schema |
|---|---|---|
| publicationName required |
Name of publication | string |
| database required |
Logical database name | string |
| tables optional |
Tables included in publication. | string |
| schemas optional |
Schemas included in publication. | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | string |
| 400 | Bad request | string |
application/json
*/*
Post /users/grant
Grant user with REPLICATION.
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | user required |
User data | user |
| Name | Description | Schema |
|---|---|---|
| username required |
Name of the user | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | string |
| 400 | Bad request | string |
application/json
*/*