"group"
The replication "group"
object usage details
The replication group object usage details
The "group"
object contains actions to manage availability groups.
Note
The synonym "availability_group"
can also be used. It is equivalent to "group"
.
Examples
"create"
with publication definition example
{ "memphis": { "name": "MEMPHIS", "uid": "admin", "pwd": "ADMIN", "port": "7597" }, "options": { "profile": true, "replace": true, "ignoredeploy": false, "recursivedel": false, "recursivesearch": true }, "group": { "actions": [ "create" ], "name": "group1", "engines":[ { "name":"FAIRCOMS@HOST100", "primary":true, "synchronized":true, "publication": { "name": "pubctreeSQL", "create": true, "mode": "db", "dbname": "ctreeSQL" } }, { "name":"FAIRCOMS@HOST450", "synchronized":true, "primary":false } ] } }
{ "memphis": { "name": "MEMPHIS", "uid": "admin", "pwd": "ADMIN", "port": "7597" }, "options": { "profile": true, "replace": true, "ignoredeploy": false, "recursivedel": false, "recursivesearch": true }, "group": { "actions": [ "create", "deploy", "start" ], "name": "group001040", "engines":[ { "name":"FAIRCOMS@HOST001", "primary":true, "synchronized":true, "publication": { "name": "pubFiles", "create": false } }, { "name":"FAIRCOMS@HOST040", "synchronized":true, "primary":false } ] } }
{ "memphis": { "name": "MEMPHIS", "uid": "admin", "pwd": "ADMIN", "port": "7597" }, "group": { "actions": [ "deploy" ], "name": "group0012" } }
{ "memphis": { "name": "MEMPHIS", "uid": "admin", "pwd": "ADMIN", "port": "7597" }, "options": { "profile": true, "ignoredeploy": true }, "group": { "actions": [ "start" ], "name": "groupCompany12" } }
{ "memphis": { "name": "MEMPHIS", "uid": "admin", "pwd": "ADMIN", "port": "7597" }, "group": { "actions": [ "stop" ], "name": "availGroup57" } }
{ "memphis": { "name": "MEMPHIS", "uid": "admin", "pwd": "ADMIN", "port": "7597" }, "group": { "actions": [ "delete" ], "name": "availGroup46" } }
Properties summary
"group"
actions summaryProperty | Description |
---|---|
creates an availability group | |
deletes the specified availability group | |
deploys the specified availability group | |
start | starts a previously stopped availability group NoteThe plan or group should be deployed to be started correctly, but the |
stop | stops the specified availability group |
the "deploy"
action starts the deployment of the specified replication plan.
"deploy"
can be specified together with the"create"
action.If the group already exists, only the group name is required.
The
"deploy"
action implies the start of the group.This action can be specified together with the
"create"
action
The "delete"
action deletes the specified availability group.
The related replication plan that was created by the group deployment and its publication will not be deleted by the operation.
The
"stop"
action can be run together with"delete"
.