Create a trial policy

Creates a new trial policy.

POST/v3/trial-policies
JWTtrialPolicy:write

Request body

namestringrequired

Name of the policy. Any printable characters, including letters from any script, punctuation and emoji. Cannot contain line breaks, tabs, other control characters, invisible formatting characters (zero-width and bidirectional marks), and cannot start or end with whitespace.

Length: [1,256]Pattern: ^(?!\s)(?!.*\s$)[^\p{Cc}\p{Cf}\p{Zl}\p{Zp}]+$

fingerprintMatchingStrategystringrequired

Strategy for matching machine fingerprint.

Allowed values: fuzzy, exact, loose

allowVmActivationbooleanrequired

Whether to allow an activation inside a virtual machine.

allowContainerActivationbooleanrequired

Whether to allow an activation inside a container.

userLockedbooleanrequired

Locks the activation to the machine user.

disableGeoLocationbooleanrequired

Whether IP address and geo-location should be stored.

trialLengthintegerrequired

The duration after which the trial will expire.

Range: [1, 2147483647]Format: int32

allowedIpRangesarray of string

Allowed IP ranges. Leave empty to ignore.

allowedCountriesarray of string

List of the allowed countries. Leave empty to ignore.

disallowedCountriesarray of string

List of the disallowed countries. Leave empty to ignore.

allowedIpAddressesarray of string

List of the allowed ip addresses. Leave empty to ignore.

disallowedIpAddressesarray of string

List of the disallowed ip addresses. Leave empty to ignore.

Response

201 Created

idstringrequired
createdAtstringrequired

Format: date-time

updatedAtstringrequired

Format: date-time

namestringrequired
allowVmActivationbooleanrequired
allowContainerActivationbooleanrequired
userLockedbooleanrequired
disableGeoLocationbooleanrequired
allowedIpRangesarray of stringrequired
allowedCountriesarray of stringrequired
disallowedCountriesarray of stringrequired
allowedIpAddressesarray of stringrequired
disallowedIpAddressesarray of stringrequired
trialLengthintegerrequired

Format: int32

fingerprintMatchingStrategystringrequired

Allowed values: fuzzy, exact, loose

allowedIpRangestring