Skip to main content
View as Markdown

Rule Actions - Content Management

Rule Actions​

Action ObjectTypeDescriptionAdditional Fields
KalturaAccessControlBlockActionBlock access entirely--
KalturaAccessControlPreviewActionAllow preview onlylimit (integer, seconds)
KalturaAccessControlLimitFlavorsActionRestrict to specific flavorsflavorParamsIds (comma-separated), isBlockedList (boolean)
KalturaAccessControlLimitDeliveryProfilesActionRestrict delivery profilesdeliveryProfileIds (comma-separated), isBlockedList (boolean)
KalturaAccessControlLimitThumbnailCaptureActionRestrict thumbnail frame capture--
KalturaAccessControlServeFromRemoteServerActionForce serve from specific edge--

Preview action (paywall):

# Allow first 30 seconds only for unauthenticated users
-d "accessControlProfile[rules][0][conditions][0][objectType]=KalturaAuthenticatedCondition" \
-d "accessControlProfile[rules][0][conditions][0][not]=true" \
-d "accessControlProfile[rules][0][actions][0][objectType]=KalturaAccessControlPreviewAction" \
-d "accessControlProfile[rules][0][actions][0][limit]=30"

Limit flavors action:

# Restrict mobile devices to SD flavors only
-d "accessControlProfile[rules][0][actions][0][objectType]=KalturaAccessControlLimitFlavorsAction" \
-d "accessControlProfile[rules][0][actions][0][flavorParamsIds]=$FLAVOR_PARAMS_ID_1,$FLAVOR_PARAMS_ID_2" \
-d "accessControlProfile[rules][0][actions][0][isBlockedList]=false"