[ZBX-5345] API configuration method.export and "group" options Created: 2012 Jul 18  Updated: 2017 May 30  Resolved: 2012 Jul 23

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.0.1
Fix Version/s: 2.0.3rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: gescheit Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: api, configuration, export, hostgroup
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Cant get only groups:
20: Sending: {"params": {}, "jsonrpc": "2.0", "method": "hostgroup.get", "auth": "", "id": 1}
10: Response Body: {u'jsonrpc': u'2.0', u'result': [

{u'groupid': u'1'}

,

{u'groupid': u'2'}

,

{u'groupid': u'4'}

,

{u'groupid': u'5'}

,

{u'groupid': u'6'}

], u'id': 1}
20: Sending: {"params": {"options":

{"groups": ["1", "2", "4", "5", "6"]}

, "format": "xml"}, "jsonrpc": "2.0", "method": "configuration.export", "auth": "", "id": 2}
10: Response Body:

{u'jsonrpc': u'2.0', u'result': u'<?xml version="1.0" encoding="UTF-8"?>\n<zabbix_export><version>2.0</version><date>2012-07-18T12:55:52Z</date></zabbix_export>\n', u'id': 2}

 Comments   
Comment by Alexey Fukalov [ 2012 Jul 23 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5345

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 25 ]

TESTED.

Comment by Alexander Vladishev [ 2012 Aug 01 ]

Fixed in pre-2.0.3 r29287 and pre-2.1.0 (trunk) r29288.

Generated at Fri Apr 26 02:23:53 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.