From d4cffa3be68c27e9243270754e49c5d0d721aa9b Mon Sep 17 00:00:00 2001 From: Maximilian Kolb Date: Wed, 2 Oct 2024 13:06:36 +0200 Subject: [PATCH] Use generic example password (#3336) * Use one argument per line (cherry picked from commit 2a942ec6cd93bd3b8f4e939fd8fae5c51cbf2dc6) --- ...xporting-report-templates-using-the-api.adoc | 4 +++- ...mporting-report-templates-using-the-api.adoc | 17 ++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/guides/common/modules/proc_exporting-report-templates-using-the-api.adoc b/guides/common/modules/proc_exporting-report-templates-using-the-api.adoc index 3ab34ca338b..965c088da22 100644 --- a/guides/common/modules/proc_exporting-report-templates-using-the-api.adoc +++ b/guides/common/modules/proc_exporting-report-templates-using-the-api.adoc @@ -13,7 +13,9 @@ endif::[] + [options="nowrap", subs="+quotes,attributes"] ---- -$ curl --insecure --user admin:redhat \ +$ curl \ +--insecure \ +--user _My_User_Name_:__My_Password__ \ --request GET \ --config https://_{foreman-example-com}_/api/report_templates \ | json_reformat diff --git a/guides/common/modules/proc_importing-report-templates-using-the-api.adoc b/guides/common/modules/proc_importing-report-templates-using-the-api.adoc index 7c63573b9e0..32fdad79050 100644 --- a/guides/common/modules/proc_importing-report-templates-using-the-api.adoc +++ b/guides/common/modules/proc_importing-report-templates-using-the-api.adoc @@ -62,15 +62,22 @@ model: ReportTemplate + [options="nowrap", subs="+quotes,attributes"] ---- -$ curl --insecure --user admin:redhat \ ---data @_Example_Template_.json --header "Content-Type:application/json" \ ---request POST --config https://_{foreman-example-com}_/api/report_templates/import +$ curl \ +--insecure \ +--user _My_User_Name_:__My_Password__ \ +--data @_Example_Template_.json \ +--header "Content-Type:application/json" \ +--request POST \ +--config https://_{foreman-example-com}_/api/report_templates/import ---- + . Use the following request to retrieve a list of report templates and validate that you can view the template in {Project}: + [options="nowrap", subs="+quotes,attributes"] ---- -$ curl --insecure --user admin:redhat \ - --request GET --config https://_{foreman-example-com}_/api/report_templates | json_reformat +$ curl \ +--insecure \ +--user _My_User_Name_:__My_Password__ \ +--request GET \ +--config https://_{foreman-example-com}_/api/report_templates | json_reformat ----