Package ganeti :: Package rapi :: Module rlib2 :: Class R_2_filters_uuid
[hide private]
[frames] | no frames]

Class R_2_filters_uuid

source code


/2/filters/[filter_uuid] resource.

Instance Methods [hide private]
 
GET(self)
Returns a filter rule.
source code
 
PUT(self)
Replaces an existing filter rule, or creates one if it doesn't exist already.
source code
 
DELETE(self)
Deletes a filter rule.
source code

Inherited from baserlib.ResourceBase: GetClient, SubmitJob, __init__, dryRun, getBodyParameter, useBulk, useForce, useLocking

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from baserlib.ResourceBase: DELETE_ACCESS, GET_ACCESS, POST_ACCESS, PUT_ACCESS, request_body

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

GET(self)

source code 

Returns a filter rule.

Returns:
a dictionary with job parameters. The result includes:
  • uuid: unique filter ID string
  • watermark: highest job ID ever used as a number
  • priority: filter priority as a non-negative number
  • predicates: filter predicates, each one being a list with the first element being the name of the predicate and the rest being parameters suitable for that predicate
  • action: effect of the filter as a string
  • reason_trail: reasons for the addition of this filter as a list of lists

PUT(self)

source code 

Replaces an existing filter rule, or creates one if it doesn't exist already.

Returns:
the UUID of the changed or created filter rule.