Security Profile Management

Pre-requisite

  • The user has to be signed in to perform the following operations.
  • The user should have an active pro-monitoring plan activated on the space.

Create Security Profile

To create a new security profile, The following method can be used:

  • spaceId (required): The space id of the User.
  • request (required): The request object containing the users profile details.
Factory.proMonitoringService.createProfile(spaceId: String, request: ProMonitoringRequest) -> IVPublisher<Void>

Get Security Profile

To get a users security profile, The following method can be used:

  • spaceId (required): The space id of the User.
Factory.proMonitoringService.getProfile(spaceId: String) -> IVPublisher<ProMonitoringModel>

Update Security Profile

To update a security profile — its details or its settings such as exitDelay, dismissalWindow and testMode — The following method can be used:

  • spaceId (required): The space id of the User.
  • request (required): The request object containing the updated profile details.
Factory.proMonitoringService.updateProfile(spaceId: String, request: ProMonitoringRequest) -> IVPublisher<ProMonitoringModel>

Update Security Devices

To set the devices enrolled in the security profile, The following method can be used. Send the complete list; devices left out are removed.

  • spaceId (required): The space id of the User.
  • request (required): The request object containing the list of devices.
Factory.proMonitoringService.updateDevices(spaceId: String, request: SubscribeDeviceRequest) -> IVPublisher<[ProMonitoringDeviceIDModel]>

Setup Security Profile

To advance the guided setup of a security profile, The following method can be used. Send the step that has just been completed along with the fields it collected, and the returned model reports what remains.

  • spaceId (required): The space id of the User.
  • request (required): The request object containing the completed setup step and its details.
Factory.proMonitoringService.setupProfile(spaceId: String, request: ProMonitoringRequest) -> IVPublisher<ProMonitoringModel>

Get Security Devices

To get the devices enrolled in the security profile, The following method can be used:

  • spaceId (required): The space id of the User.
Factory.proMonitoringService.getDevices(spaceId: String) -> IVPublisher<ProMonitoringModel>