copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2024-01-22 |
metrics-router |
{{site.data.keyword.attribute-definition-list}}
{: #config_report}
After configuring your {{site.data.keyword.metrics_router_full}} resources for your account, you should save a copy of your configuration for reference and backup purposes. {: shortdesc}
{: #config_report_prereqs}
Before you use the CLI to save your {{site.data.keyword.metrics_router_full_notm}} resource data, you must do the following:
-
Install the {{site.data.keyword.metrics_router_full_notm}} CLI.
-
Ensure you have the correct IAM permissions to configure {{site.data.keyword.metrics_router_full_notm}} routes.
-
Log in to {{site.data.keyword.cloud_notm}}. Run the following command: ibmcloud login.
-
Make sure you have configured your settings, targets and routes.
{: #save_settings}
Run the following command to save a copy of your account settings to a file.
ibmcloud metrics-router setting get --output JSON > ACCOUNT_settings.json
{: pre}
Where ACCOUNT
is a unique indicator for your account.
{: #save_route}
Run the following command to save a copy of your route configuration to a file.
ibmcloud metrics-router route ls --output JSON > ACCOUNT_routes.json
{: pre}
Where ACCOUNT
is a unique indicator for your account.
{: #save_target}
Run the following command to save a copy of your target configuration to a file.
ibmcloud metrics-router target ls --output JSON > ACCOUNT_targets.json
{: pre}
Where ACCOUNT
is a unique indicator for your account.