CreateVideoProtectionRuleset
Creates new ruleset.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the project that the VideoProtectionRuleset belongs to.
Name of the Ruleset
Viewers are disallowed to consume the video from these countries (and allowed from all others)
Viewers are allowed to consume the video from these countries (and disallowed from all others)
Viewers from everywhere are allowed to watch. Set this to true explicitly (false will be treated as empty, i.e. neutral)
Disallow viewers from using a VPN to consume the video
To leave this to neutral, leave the disallow_vpn_usage field empty. To explicitly allow VPN usage, set disallow_vpn_usage to false.
Disallow viewers from sharing a playlist URL with others (i.e. hotlink protection). This is done by binding the viewer's IP address to the playlist URL.
To leave this to neutral, leave the disallow_hotlinking field empty. To explicitly allow hotlinking, set disallow_hotlinking to false.
A list of domains that are allowed to playback the video. An empty list implies all domains are valid. This uses the HTTP referrer, which can be spoofed and as such is not a strong protection mechanism.
Note: this uses the HTTP referrer. As native apps do not send any HTTP referrer, any client that does not send a referrer will be allowed.
To leave this to neutral, leave the allowed_domains field empty. To explicitly allow all domains, pass allow_all_domains as true.
All domains are treated as allowed. Set this to true explicitly (false will be treated as empty, i.e. neutral)
Require viewers to be signed in. This requires the viewer to have a valid JWT, signed by the Motto identity service. The JWT should be passed either via the Authorization header or as a Cookie.
To leave this to neutral, leave the require_authentication field empty. To explicitly allow unauthenticated access, set require_authentication to false.
Disables the ruleset. This is useful for ensuring the ruleset no longer shows up as an option in the UI. It will continue to apply to any videos that already have this ruleseet applied (unlike a deleted ruleset).
Instruct the Motto content-delivery API to do an entitlement lookup for the user ID that the viewer is providing in
a JWT when trying to access the content.
This works in tandem with the Entitlement and Offer types in Motto's monetization section.
Note: This requires require_authentication to be set to true.
To leave this to neutral, leave the require_entitlement field empty. To explicitly not require entitlement, set require_entitlement to false.
Viewers from these countries will not have this ruleset applied.
Viewers from these countries will have this ruleset applied.
This ruleset applies to all videos in the project.
This ruleset applies to a specific set of videos, as defined by the target.
The DRM settings for the video. If not provided, the video will not have any DRM applied.
To leave this to neutral, leave the drm field empty. To explicitly not apply any DRM, set drm.enabled to false.
If true, Motto's streaming platform will enforce concurrency limits for this video.
This only works in combination with require_authentication and require_entitlement being set to true.
To leave this to neutral, leave the enforce_concurrency_limits field empty.
To explicitly not enforce concurrency limits, set enforce_concurrency_limits to false.
The priority of the ruleset. If multiple rulesets apply to a video, the ruleset with the highest priority will be used.
OK