IAzureCosmosDbMoveIpStatusToGlobal Method

Moves a company-based item to the global IP white/blacklist. Can only be performed by MobileTrack support users.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task MoveIpStatusToGlobal(
	IpAddressStatusDto status,
	UserSessionData user,
	CancellationToken cancellationToken = default
)

Parameters

status  IpAddressStatusDto
IP Status to move to the global IP Status list
user  UserSessionData
User trying to get the data
cancellationToken  CancellationToken  (Optional)
Cancellation Token

Return Value

Task
Task completion

Exceptions

UnauthorizedAccessExceptionThrown if the user user did not have the correct permissions
InvalidOperationExceptionThrown if we're trying to update an item already on the global list.

See Also