2016-08-25 31 views
-1

當我在命令下運行時,它無法解析以從myside進行過濾。我爲第二天的日誌反饋了SL日誌。請幫我解決這個問題。無法使用API​​下載日誌文件

[[email protected] ~]# curl -X GET -u username:password -g https://api.service.softlayer.com/rest/v3/SoftLayer_Event_Log/getAllObjects.json?objectFilter={"eventCreateDate":{"operation":"betweenDate","options":[{"name":"startDate","value":"2016-08-22t15:45:02.476"},{"name":"endDate","value":"2016-08-23t12:27:59.538"}]}}&resultLimit=0,500 [1] 21905 

[[email protected] ~]# {"error":"Unable to parse object filter.","code":"SoftLayer_Exception_Public"}{"error":"Unable to parse object filter.","code":"SoftLayer_Exception_Public"}{"error":"Unable to parse object filter.","code":"SoftLayer_Exception_Public"}{"error":"Unable to parse object filter.","code":"SoftLayer_Exception_Public"}{"error":"Unable to parse object filter.","code":"SoftLayer_Exception_Public"} 

感謝

+0

注意,在您的命令通過符號被視爲bash的語法,在後臺運行命令。這會導致「resultLimit = 0,500」被丟棄。這是這一段文字的全部內容:「[1] 21905」 – sudorandom

回答

0

目前,它不可能在eventCreateDate財產申請ObjectFilter的。我對此造成的不便深表歉意。如果有計劃解決問題,我會通知你。

也許這將有可能使用的編程語言來過濾,看看通過SoftLayer的支持的編程語言:

SoftLayer Development Network