Data-sharing tasks¶
Use data-share to query publications and subscriptions, create, update, or delete a publication, or subscribe to and unsubscribe from an existing publication.
moi-cli -o data-share publishes
moi-cli -o data-share subscriptions
moi-cli data-share --help
Manage publications and subscriptions¶
Task |
Commands |
Notes |
|---|---|---|
Check a publication name |
|
Checks availability only; it does not create a publication. |
Manage publications |
|
Confirm source tables and target workspaces before a write. |
Manage subscriptions |
|
These commands change access relationships. |
Confirm target workspaces |
|
Use the confirmed workspace identity for later steps. |
Data sharing changes cross-workspace data visibility. Before publishing, subscribing, unsubscribing, or deleting, confirm source objects, target workspaces, and access permissions; query publication or subscription state again after the operation.
Check publication scope¶
Object to inspect |
Commands |
Notes |
|---|---|---|
Source tables available to publish |
|
Confirm source tables before creating or updating a publication. |
Existing publication |
|
Reads the summary of a publication. |
Target workspace |
|
Confirms the name and workspace relationship. |
Save confirmed source-table and target-workspace identifiers before creating or updating a publication. Deleting a publication or unsubscribing changes access relationships, so confirm that dependents no longer require the shared data first.