Creates a Protocol Repair Condition Rule given a specific Table ID.
https://134.56.227.163/rest/spmconditionrule/{identifier}
PUT
true
Parameter Name | Required | Service Affecting | Data Type | Default Value | Possible Values | Description |
---|---|---|---|---|---|---|
Description | No | No | string | none | 64 - Max Length | Description of Condition Rule |
Operand1 | Yes | No | string | none | 128 - Max Length | The first operand for the logical condition expressed by this rule, which must be a parameter tree token identifier. Ex: from.sipuri.userinfo.user or contact.sipuri.host |
Operand2Type | Yes | No | Enum | 0 | Possible values:
| Specifies the value type associated with Operand2. If the ConditionMatchType is a regex then this value type must be eValue_Regex, otherwise it may be either eValue_Literal or eValue_Token. |
Operand2 | Yes | No | string | none | 1024 - Max Length | Value of the Parameter to match. This will hold the literal if the Operand2Type is a literal, or a token if the Operand2Type is a token, or a regex string if the Operand2Type is regex. |
ConditionMatchType | Yes | No | Enum | 1 | Possible values:
| Specifies the match type for this condition. For now, only Regex and Equals match type is supported. If the match type is Regex, then the Operand2 has to be a regex string. Equals is applicable to only Literal or Token operands. |
curl --cookie PHPSESSID=cuc2h83fqaispmu6m519sa5642 -s -k -i https://134.56.72.218/rest/spmconditionrule/1 -X PUT --data "ConditionMatchType=1&ConfigIEState=1&Operand1=allow&Description=REST Condition Rule&Operand2=foo&Operand2Type=0"
<?xml version="1.0"?> <root> <status> <http_code>200</http_code> </status> <spmconditionrule id="1" href="https://134.56.72.218/rest/spmconditionrule/1"> <ConditionMatchType>1</ConditionMatchType> <Description>REST Condition Rule</Description> <Operand1>allow</Operand1> <Operand2>foo</Operand2> <Operand2Type>0</Operand2Type> </spmconditionrule> </root>