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, 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 Settings
To update a security settings, The following method can be used:
spaceId(required): The space id of the User.request(required): The request object containing the updating settings.
Factory.proMonitoringService.updateProfile(spaceId: String, request: ProMonitoringRequest) -> IVPublisher<ProMonitoringModel>
Update Security Devices
To update the devices to the security profile, The following method can be used:
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]>