Placement Rules

class PlacementRules(api)

Bases: FeatureBase

create(name, conditions, device_location, certificate_location=None, rule_type='X509 Certificate', get_if_already_exists=True)
Parameters
Returns

Config Object of the placement rule object.

delete(rule)

Deletes a placement rule.

Parameters

rule (Union[config.Object, str]) – Config Object or name of the placement rule.

get(name, raise_error_if_not_exists=True)
Parameters
  • name (str) – Name of the placement rule.

  • raise_error_if_not_exists (bool) – Raise an exception if the placement rule does not exist.

Returns

Config Object of the placement rule object.

update(rule, conditions=None, device_location=None, certificate_location=None, rule_type='X509 Certificate')

Updates a placement rule. If certain parameters are not provided, the current parameters will be rewritten to the object. In other words, only the parameters given are updated.

Parameters