RulesRulesCopy PageCreate an access control rulepost https://{hostname}/crux/v1/mgmt-pop/services/{id}/rulesCreates an access control rule.Path ParamsidstringrequiredA unique identifier for the service.Query ParamscontractIdstringrequiredThe Akamai contract identifier for your Enterprise Application Access product.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 ParamsProperties to create and assign rules to restrict access to an application. Filters are based on username, group name, time, or other conditions.actionintegerenumrequiredThe action the rule takes. Refer to Rule types & actions for more information. Use 1 for access rules.1248163264128256512Show 10 enum valuesdescriptionstring | nullrequiredA description of the rule.global_rulebooleanrequiredWhether to apply a rule globally. You can disable a rewrite rule for a specific content type if global application of a rule results in issues or conflicts with other rewrite rules.truefalsemerge_globalbooleanrequiredWhether to merge with global rules. You can write custom rules that target specific content using the content type and URL or path while applying global rules to non-specified content.truefalsenamestringrequiredlength ≥ 1The rule's name.rule_typeintegerenumrequiredThe action the rule takes. Refer to Rule types & actions for more information. For access rules, rule type is 1.1Allowed:1settingsarray of objectsrequiredlength ≥ 1Defined rule settings, such as rule type, operator, and value.settings* objectcustombooleanDefaults to false for access rules. Custom content types are used only for rewrite rules.truefalseoperatorstringenumThe logical operator, either == for equal or != for not equal.====!=Allowed:==!=typestringenumThe access control type. Either method, group, clientip, user, country, time, or url.groupmethodgroupclientipusercountrytimeurlAllowed:methodgroupclientipusercountrytimeurlvaluestringThe values for the selected type.ADD objectstatusintegerenumrequiredThe rule status. Either 0 for disabled or 1 for enabled.01Allowed:01HeadersacceptstringenumDefaults to application/jsonGenerated from available response content typesapplication/jsonapplication/problem+jsonAllowed:application/jsonapplication/problem+jsonResponses 200Successful response. 400Bad request. 401Unauthorized. 403Forbidden. 404Not found. 405Method not allowed. 415Unsupported media type.Updated 5 months ago Delete a ruleModify an access control ruleDid this page help you?YesNo