Add a version ruleCopy Pagepost https://{hostname}/cloudlets/api/v2/policies/{policyId}/versions/{version}/rulesAdd a new rule to an existing policy version. You can only add one rule at a time.Path ParamsversionnumberrequiredThe version number of the policy.policyIdintegerrequiredThe ID of the policy.Query ParamsindexintegerThe order within the current list of rules where you want to add the new rule. If you do not set this parameter, the new rule is added to the end of the current rule list. For Cloudlets, the first rule listed is the first rule evaluated.accountSwitchKeystringFor customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.Body ParamsApplication Load BalancerAPI PrioritizationAudience SegmentationPhased ReleaseEdge RedirectorForward RewriteRequest ControlVisitor PrioritizationContains match rule information for Application Load Balancer.disabledbooleanDefaults to falseIf true, disables a rule so it's not evaluated against incoming requests. The default setting is false.falsetruefalseendinteger≥ 0Defaults to 0The end time for this match rule in epoch seconds. When end is 0, there is no end time for this match rule.forwardSettingsobjectDefines data used to construct a new request URL. If all set conditions are true, the edge server returns an HTTP response from the rewritten URL. You can specify any of the following with this object: originId, pathAndQS, and useIncomingQueryString.forwardSettings objectmatchURLstring | nullThe URL the Cloudlet uses to match the incoming request.matchesarray of objects | nullThe matchType and the matchValue or objectMatchValue used to conditionally pass through the request. Plus additional criteria to match on, like case sensitivity (caseSensitive).matchesADD objectmatchesAlwaysbooleanThe match rule always applies when true. When false, the rule applies within the start and end time range.truefalsenamestring | nullThe name of the rule.startinteger≥ 0Defaults to 0The start time for this match rule in epoch seconds. When start is 0, the match rule is on.typestringenumrequiredThe type of Cloudlet the rule is for. For example, the string for Application Load Balancer is albMatchRule.albMatchRuleAllowed:albMatchRuleResponse 200Returns details of a policy version match rule.Updated 4 months ago