From 7b37acf75df4f773fbbd485066ddc1853fda109e Mon Sep 17 00:00:00 2001 From: Dorota Wojcik Date: Tue, 19 Dec 2023 13:21:59 +0100 Subject: [PATCH] add project parameter to clickhouse and cassandra cli --- .../cassandra/howto/disable-cross-cluster-replication.rst | 2 +- .../cassandra/howto/enable-cross-cluster-replication.rst | 3 +++ docs/products/clickhouse/howto/integrate-kafka.rst | 4 ++-- docs/products/clickhouse/howto/integrate-postgresql.rst | 6 +++--- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/products/cassandra/howto/disable-cross-cluster-replication.rst b/docs/products/cassandra/howto/disable-cross-cluster-replication.rst index 87dc2e6def..4a44f08622 100644 --- a/docs/products/cassandra/howto/disable-cross-cluster-replication.rst +++ b/docs/products/cassandra/howto/disable-cross-cluster-replication.rst @@ -84,7 +84,7 @@ Use the :ref:`avn service terminate ` command to disa .. code-block:: bash - avn service terminate ccr_peer_service_name + avn service terminate --project PROJECT_NAME ccr_peer_service_name Disable CCR with API -------------------- diff --git a/docs/products/cassandra/howto/enable-cross-cluster-replication.rst b/docs/products/cassandra/howto/enable-cross-cluster-replication.rst index 345a46e10f..f1aa19539f 100644 --- a/docs/products/cassandra/howto/enable-cross-cluster-replication.rst +++ b/docs/products/cassandra/howto/enable-cross-cluster-replication.rst @@ -123,6 +123,7 @@ Create a new CCR service pair .. code-block:: bash avn service create \ + --project project_name \ --service-type cassandra \ --cloud cloud_region_name \ --plan service_plan_name \ @@ -138,6 +139,7 @@ Create a new CCR service pair .. code-block:: bash avn service create \ + --project project_name \ --service-type cassandra \ --cloud cloud_region_name \ --plan service_plan_name \ @@ -159,6 +161,7 @@ Use the :ref:`avn service create ` command to create a n .. code-block:: bash avn service create \ + --project project_name \ --service-type cassandra \ --cloud cloud_region_name \ --plan service_plan_name \ diff --git a/docs/products/clickhouse/howto/integrate-kafka.rst b/docs/products/clickhouse/howto/integrate-kafka.rst index 042c0ca96d..aa5c0749c3 100644 --- a/docs/products/clickhouse/howto/integrate-kafka.rst +++ b/docs/products/clickhouse/howto/integrate-kafka.rst @@ -185,7 +185,7 @@ Follow these instructions: .. code:: avn service integration-list \ - --project PROJECT \ + --project PROJECT_NAME \ CLICKHOUSE_SERVICE_NAME | grep KAFKA_SERVICE_NAME 2. Update the configuration settings using the service integration id retrieved in the previous step and your integration settings. Replace ``SERVICE_INTEGRATION_ID``, ``CONNECTOR_TABLE_NAME``, ``DATA_FORMAT`` and ``CONSUMER_NAME`` with your values: @@ -193,7 +193,7 @@ Follow these instructions: .. code:: avn service integration-update SERVICE_INTEGRATION_ID \ - --project PROJECT \ + --project PROJECT_NAME \ --user-config-json '{ "tables": [ { diff --git a/docs/products/clickhouse/howto/integrate-postgresql.rst b/docs/products/clickhouse/howto/integrate-postgresql.rst index b59d2a102a..aabfeee7e2 100644 --- a/docs/products/clickhouse/howto/integrate-postgresql.rst +++ b/docs/products/clickhouse/howto/integrate-postgresql.rst @@ -63,13 +63,13 @@ When connecting to a PostgreSQL service, ClickHouse needs to know the name of th .. code:: - avn service integration-list CLICKHOUSE_SERVICE_NAME | grep PG_SERVICE_NAME + avn service integration-list --project PROJECT_NAME CLICKHOUSE_SERVICE_NAME | grep PG_SERVICE_NAME -2. Update the configuration settings using the service integration id retrieved in the previous step and your integration settings. Replace ``SERVICE_INTEGRATION_ID``, ``PG_DATABASE`` and ``PG_SCHEMA`` with your values, you can add more than one combination of database/schema in the object ``databases``: +1. Update the configuration settings using the service integration id retrieved in the previous step and your integration settings. Replace ``SERVICE_INTEGRATION_ID``, ``PG_DATABASE`` and ``PG_SCHEMA`` with your values, you can add more than one combination of database/schema in the object ``databases``: .. code:: - avn service integration-update SERVICE_INTEGRATION_ID \ + avn service integration-update --project PROJECT_NAME SERVICE_INTEGRATION_ID \ --user-config-json '{ "databases":[{"database":"PG_DATABASE","schema":"PG_SCHEMA"}] }'