File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
source/reference/api/log-collections Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff 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
121127Example Response
122128----------------
You can’t perform that action at this time.
0 commit comments