Skip to content

Commit 6424214

Browse files
authored
Fix request example and add note (#5134) (#5135)
1 parent b1feb2e commit 6424214

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

source/reference/api/log-collections/log-collections-download-job.txt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ Example Request
103103

104104
curl --user "{username}:{apiKey}" --digest
105105
--header "Accept: application/json"
106-
--header "Content-Type: application/gzip"
107-
--include
108-
--request GET "https://{+cloudmgr-url+}/api/public/v1.0/groups/{GROUP-ID}/logCollectionJobs/{JOB-ID}/download?pretty=true"
106+
--header "Accept: application/gzip"
107+
--output logs.tar.gz
108+
--request GET "https://{+cloudmgr-url+}/api/public/v1.0/groups/{GROUP-ID}/logCollectionJobs/{JOB-ID}/download"
109109

110110
.. cond:: onprem
111111

@@ -114,9 +114,15 @@ Example Request
114114

115115
curl --user "{username}:{apiKey}" --digest
116116
--header "Accept: application/json"
117-
--header "Content-Type: application/gzip"
118-
--include
119-
--request GET "https://{+opsmgr-url+}/api/public/v1.0/groups/{GROUP-ID}/logCollectionJobs/{JOB-ID}/download?pretty=true"
117+
--header "Accept: application/gzip"
118+
--output logs.tar.gz
119+
--request GET "https://{+opsmgr-url+}/api/public/v1.0/groups/{GROUP-ID}/logCollectionJobs/{JOB-ID}/download"
120+
121+
.. note::
122+
123+
If you're using cURL to make requests, you must include the
124+
``--output`` option and specify a file name to store
125+
your logs.
120126

121127
Example Response
122128
----------------

0 commit comments

Comments
 (0)