"publication"
The publication object is used to create, delete, and list publications
The publication object is used to create, delete, and list publications
The publication object is used to create, delete and list publications. The publication JSON object can be specified as the main target for the JSON input file or it can be used inside plan or group targets to define a publication during the creation of another target.
Properties summary
"publication"
object properties summaryProperty | Description | Type |
---|---|---|
creates a new publication | object | |
delete | deletes the publication specified with the | object |
list | lists the files published by a publication specified with the | object |
Since the mode is "db"
, a "dbname" parameter is specified. Plus, there are additional folders that are going to be published. This feature is used because SQL databases may contain files from different folders.
{ "memphis": { "name": "MEMPHIS", "host": "localhost", "port": "7597", "uid": "admin", "pwd": "ADMIN" }, "options": { "profile": true, "replace": true, "ignoredeploy": false, "recursivedel": false, "recursivesearch": true }, "publication": { "actions": [ "create" ], "name": "pubdb", "engine": "FAIRCOMS@HOST001", "mode": "db", "dbname": "ctreeSQL", "wildcards": ["*dat"], "items":[ "E:\\sw\\eu_database\\dbf\\ML\\data\\c" ] } }
{ "memphis": { "name": "MEMPHIS", "host": "localhost", "port": "7597", "uid": "admin", "pwd": "ADMIN" }, "options": { "profile": true, "replace": true, "ignoredeploy": false, "recursivedel": false, "recursivesearch": true }, "publication": { "actions": [ "create" ], "name": "pubfolder", "engine": "FAIRCOMS@HOST001", "mode": "folder", "item": "E:\\sw\\eu_database\\dbf\\ML\\data\\d", "wildcards": ["*dat"], "recursive": false } }
{ "memphis": { "name": "MEMPHIS", "host": "localhost", "port": "7597", "uid": "admin", "pwd": "ADMIN" }, "options": { "profile": true, "replace": true, "ignoredeploy": false, "recursivedel": false, "recursivesearch": true }, "publication": { "actions": [ "create" ], "name": "pubFiles", "engine": "FAIRCOMS@HOST001", "mode": "files", "items": [ "E:\\sw\\eu_ldf\\dbf\\ML\\*.*dat", "E:\\sw\\usa_ldf\\dbf\\ML\\*.*dat", ] } }
{ "memphis": { "name": "MEMPHIS", "host": "localhost", "port": "7597", "uid": "admin", "pwd": "ADMIN" }, "options": { "profile": true, "replace": true, "ignoredeploy": false, "recursivedel": false, "recursivesearch": true }, "publication": { "actions": [ "delete" ], "name": "pubFiles", "engine": "FAIRCOMS@HOST001" } }
{ "memphis": { "name": "MEMPHIS", "uid": "admin", "pwd": "ADMIN" }, "publication": { "actions": [ "list" ], "name": "pubFiles", "engine": "FAIRCOMS@HOST001" } }
The "create"
action creates a new publication, plan, or group.
Note
The "create"
action in "plan"
always takes a list of subscriptions and each subscription is associated with an existing or new publication. The "create"
action in the "publication"
object defines new publications).
Properties summary
"create"
actions summaryProperty | Description | Type | Limits (inclusive) | |||
---|---|---|---|---|---|---|
create | used to find an existing publication or create a new one when | Boolean | ||||
dbExcludes | specifies wildcards that are used to exclude files in the designated folder, when the mode is | array of JSON Objects | ||||
dbname | contains the name of the database to be published NoteThis is for when the | string | ||||
engine | specifies the logical name of the publication | string | ||||
folderExcludes | specifies wildcards that are used to exclude files in the designated folder, when the mode is | array of strings | ||||
items | contains a list of the objects to be published NoteDepending on the | array of strings | ||||
mode | specifies the mode of the publication | string |
| |||
name | specifies the name of the publication | string | ||||
recursive | specifies whether the files matching the wildcard are matched recursively in sub-folders or just in the specified root NoteThis is for when the mode is | Boolean | ||||
wildcards | specifies that the specified wildcards are used to match the files in the specified folders NoteThis is for when the mode is | array of strings |