Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Tree
rootResource - spmrawmessagerule

Modifies a Raw Message Rule Table Entry given a specific Table Entry ID in a given Message Table.

URL:

https://

...

192.

...

168.

...

0.

...

111/rest/spmmessagetable/{identifier}/spmrawmessagerule/{identifier}

HTTP Method

POST

Requires Authentication:

true

Noprint
Panel
bgColortransparent
titleBGColor#DDD
title[spmrawmessagerule - REST API Methods|Resource - spmrawmessagerule]

Page Tree
root@parent

Parameters

Parameter Name Required Service Affecting Data Type Default Value Possible Values Description
DescriptionNoNostringnone64 - Max LengthDescription of the Rule
ConditionExpressionNoNostringnone255 - Max LengthLogical expression, including Condition Rule references, the logical operators && and ||, and parenthesis grouping. If the condition evaluates true then this rule will be applied, otherwise it will not. Condition rule references are of the form ${n}, where 'n' is the row ID of the condition rule. If no logical expression is provided then the expression is evaluated as 'true'.
ResultTypeYesNoEnum1Possible values:
  • 0 - eRtMandatory
  • 1 - eRtOptional
Specifies the result type of the current rule to go on to the next rule. If eRtMandatory, and this rule fails, all other rules in this message table will be dropped. If eRtOptional, then continue to the next rule unconditionally.
MatchRegexYesNostringnone128 - Max LengthThis is the 'match' regular expression for the manipulation operation.
ReplaceRegexYesNostringnone128 - Max LengthThis is the 'replace' regular expression for the manipulation operation.

Tip
titleHelpful Tip

The POST can contain either only the attributes that are being updated, or the full set of attributes for the resource

...

Code Block
languagebash
curl --cookie  PHPSESSID=r877edtvj7e5vfk4cum92e6kj0 --cacert 1kCAcert.pem -i  https://134.56.227.163/rest/spmmessagetable/1/spmrawmessagerule/1 --data "MatchRegex=test@net&ReplaceRegex=automation@net&ResultType=1"

...

Code Block
languagehtml/xml
<?xml version="1.0"?>
<root>
<status>
<http_code>200</http_code>
</status>
<spmrawmessagerule id="1:4001" href="https://134.56.227.163/rest/spmmessagetable/1/spmrawmessagerule/4001">
<ConditionExpression>${1}</ConditionExpression>
<Description>Raw Message Rule 1</Description>
<MatchRegex>test@net</MatchRegex>
<ReplaceRegex>automation@net</ReplaceRegex>
<ResultType>1</ResultType>
</spmrawmessagerule>
</root>