- Property Manager name: API Prioritization Cloudlet
- Behavior version: The
v2024-10-21
rule format supports theapiPrioritization
behavior v3.0. - Rule format status: GA, stable
- Access: Read/Write
- Allowed in includes: Yes
Enables the API Prioritization Cloudlet, which maintains continuity in user experience by serving an alternate static response when load is too high. You can configure rules using either the Cloudlets Policy Manager application or the Cloudlets API. Use this feature serve static API content, such as fallback JSON data. To serve non-API HTML content, use the visitorPrioritization
behavior.
Option | Type | Description | Requires | |
---|---|---|---|---|
enabled | boolean | Activates the API Prioritization feature. | {"displayType":"boolean","tag":"input","type":"checkbox"} | |
isSharedPolicy | boolean | Whether you want to apply the Cloudlet shared policy to an unlimited number of properties within your account. Learn more about shared policies and how to create them in Cloudlets Policy Manager. | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
cloudletPolicy | object | Identifies the Cloudlet policy. | isSharedPolicy is false | {"displayType":"object","tag":"input","todo":true} {"if":{"attribute":"isSharedPolicy","op":"eq","value":false}} |
cloudletPolicy.id | number | Identifies the Cloudlet. | ||
cloudletPolicy.name | string | The Cloudlet's descriptive name. | ||
cloudletSharedPolicy | string | Identifies the Cloudlet shared policy to use with this behavior. Use the Cloudlets API to list available shared policies. | isSharedPolicy is true | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"isSharedPolicy","op":"eq","value":true}} |
label | string | A label to distinguish this API Prioritization policy from any others in the same property. | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
useThrottledCpCode | boolean | Specifies whether to apply an alternative CP code for requests served the alternate response. | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
throttledCpCode | object | Specifies the CP code as an object. You only need to provide the initial | useThrottledCpCode is true | {"displayType":"object","tag":"input","todo":true} {"if":{"op":"and","params":[{"attribute":"enabled","op":"eq","value":true},{"attribute":"useThrottledCpCode","op":"eq","value":true}]}} |
throttledCpCode.cpCodeLimits | array | Read-only. Describes the current usage limit for the CP code. | ||
throttledCpCode.createdDate | integer | Read-only. UNIX epoch timestamp reflecting when the CP code was originally created. | ||
throttledCpCode.description | string | Read-only. Additional description for the CP code. | ||
throttledCpCode.id | integer | Unique identifier for each CP code. Initially, you get this value when creating a new CP code in PAPI. You can also assign a | ||
throttledCpCode.name | string | Read-only. The name of the CP code you specify as the | ||
throttledCpCode.products | array | Read-only. The set of products the CP code is assigned to. This reflects | ||
useThrottledStatusCode | boolean | Allows you to assign a specific HTTP response code to a throttled request. | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
throttledStatusCode | number | Specifies the HTTP response code for requests that receive the alternate response. | useThrottledStatusCode is true | {"displayType":"number","tag":"input","type":"number"} {"if":{"op":"and","params":[{"attribute":"enabled","op":"eq","value":true},{"attribute":"useThrottledStatusCode","op":"eq","value":true}]}} |
netStorage | object | Specify the NetStorage domain that contains the alternate response. | {"displayType":"object","tag":"input","todo":true} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
netStorage.cpCode | integer | Identifies a CP code assigned to this storage group. | ||
netStorage.downloadDomainName | string | Domain name from which content can be downloaded. | ||
netStorage.g2oToken | string | Signature Header Authentication key. | ||
netStorage.id | integer | Unique identifier for the storage group. | ||
netStorage.name | string | Name of the storage group. | ||
netStoragePath | string | Specify the full NetStorage path for the alternate response, including trailing file name. | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
alternateResponseCacheTtl | number (5-30) | Specifies the alternate response's time to live in the cache, | {"displayType":"number","max":[30],"min":[5],"tag":"input","type":"range"} {"if":{"attribute":"enabled","op":"eq","value":true}} |