Certificate Device Placement

class CertificateDevicePlacement(api)

Bases: _ClientWorkBase

create(name, placement_folder, share_mode=2, attributes=None, get_if_already_exists=True)
Parameters
  • name (str) – The name of the client work.

  • placement_folder (Union[config.Object, str]) – Config Object or Distinguished Name (DN) of the folder to place devices.

  • share_mode (int) – specify how newly discovered devices are de-duplicated 0: search the entire policy tree 1: search the devices folder 2: search the devices folder and any sub-folders 3: create a duplicate device

  • attributes (dict) – Additional attributes to apply to the object.

  • get_if_already_exists (bool) – If the objects already exists, just return it as is.

Returns

Config Object of the client work.

delete(work)

Deletes the client work.

Parameters

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

disable(work)

Disables the client work.

Parameters

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

enable(work)

Enables the client work.

Parameters

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

get(name, raise_error_if_not_exists=True)
Parameters
  • name (str) – The name of the client work.

  • raise_error_if_not_exists (bool) – Raise an exception if the client work does not exist.

Returns

Config Object of the client work.

list()

Lists all client work.

Returns

List of Config Object of all client work.