Schema
CreateRuleRequest
Type:
object
Fields required to create a new rule within a policy's rule set.
actions
· required
Schema:
RuleActions
decision
· required
Schema:
RuleDecision
http_resources
Schema:
HTTPResources
name
· required
Type:
string
Human-readable label for the rule.
All schema constraints and annotations
{
"description": "Human-readable label for the rule.",
"examples": [
"allow research mirrors"
],
"type": "string"
}resources
Schema:
RuleResources
Exactly one alternative must match
Type:
object
All schema constraints and annotations
{
"required": [
"resources"
],
"type": "object"
}Type:
object
All schema constraints and annotations
{
"required": [
"http_resources"
],
"type": "object"
}All schema constraints and annotations
{
"description": "Fields required to create a new rule within a policy's rule set.",
"oneOf": [
{
"required": [
"resources"
],
"type": "object"
},
{
"required": [
"http_resources"
],
"type": "object"
}
],
"properties": {
"actions": {
"$ref": "#/components/schemas/RuleActions"
},
"decision": {
"$ref": "#/components/schemas/RuleDecision"
},
"http_resources": {
"$ref": "#/components/schemas/HTTPResources"
},
"name": {
"description": "Human-readable label for the rule.",
"examples": [
"allow research mirrors"
],
"type": "string"
},
"resources": {
"$ref": "#/components/schemas/RuleResources"
}
},
"required": [
"name",
"actions",
"decision"
],
"type": "object"
}