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
103
103
104
104
curl --user "{username}:{apiKey}" --digest
105
105
--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"
109
109
110
110
.. cond:: onprem
111
111
@@ -114,9 +114,15 @@ Example Request
114
114
115
115
curl --user "{username}:{apiKey}" --digest
116
116
--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.
120
126
121
127
Example Response
122
128
----------------
You can’t perform that action at this time.
0 commit comments