Package Products :: Package Zuul :: Package routers :: Module zenpack :: Class ZenPackRouter
[hide private]
[frames] | no frames]

Class ZenPackRouter

source code

ZenUtils.Ext.DirectRouter --+
                            |
                           ZenPackRouter

A JSON/ExtDirect interface to operations on ZenPacks

Instance Methods [hide private]
 
_getFacade(self) source code
DirectResponse
getEligiblePacks(self, **data)
Get a list of eligible ZenPacks to add to.
source code
DirectResponse
addToZenPack(self, topack, zenpack)
Add an object to a ZenPack.
source code
DirectResponse
getZenPackMetaData(self, zenpacks=None)
Return the list of meta-data information about installed ZenPacks.
source code
Method Details [hide private]

getEligiblePacks(self, **data)

source code 

Get a list of eligible ZenPacks to add to.

Returns: DirectResponse
Properties:
  • packs: ([dictionary]) List of objects representing ZenPacks
  • totalCount: (integer) Total number of eligible ZenPacks

addToZenPack(self, topack, zenpack)

source code 

Add an object to a ZenPack.

Parameters:
  • topack (string) - Unique ID of the object to add to ZenPack
  • zenpack (string) - Unique ID of the ZenPack to add object to
Returns: DirectResponse
Success message
Decorators:
  • @require('Manage DMD')

getZenPackMetaData(self, zenpacks=None)

source code 

Return the list of meta-data information about installed ZenPacks.

Parameters:
  • topack (list of strings) - Unique IDs of the installed ZenPack
Returns: DirectResponse
Success message