-
Notifications
You must be signed in to change notification settings - Fork 0
/
action-example.rdf
50 lines (45 loc) · 1.83 KB
/
action-example.rdf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
##### CREATE #####
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:ns1="http://open-services.net/ns/core#"
xmlns:ns2="http://localhost:5001/ns/st2_oslc#"
xmlns:ns3="http://open-services.net/ns/cm#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
<rdf:Description rdf:type="http://localhost:5000/service/CreateRuleAction">
<rdf:type rdf:resource="http://open-services.net/ns/cm#ChangeRequest"/>
<ns2:ruleId></ns2:ruleId>
<ns2:ruleTitle>creada_manual2</ns2:ruleTitle>
<ns2:ruleStatus rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</ns2:ruleStatus>
<ns2:triggerRef>core.st2.generic.notifytrigger</ns2:triggerRef>
<ns2:triggerType>core.st2.generic.notifytrigger</ns2:triggerType>
<ns2:actionRef>chatops.notify</ns2:actionRef>
</rdf:Description>
</rdf:RDF>
##### UPDATE: Activate/Deactivate a rule #####
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:ns1="http://open-services.net/ns/core#"
xmlns:ns2="http://localhost:5001/ns/st2_oslc#"
xmlns:ns3="http://open-services.net/ns/cm#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
<rdf:Description rdf:type="http://localhost:5000/service/UpdateRuleAction">
<rdf:type rdf:resource="http://open-services.net/ns/cm#ChangeRequest"/>
<ns2:ruleId>RULE_ID</ns2:ruleId>
</rdf:Description>
</rdf:RDF>
##### DELETE: Activate/Deactivate a rule #####
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:ns1="http://open-services.net/ns/core#"
xmlns:ns2="http://localhost:5001/ns/st2_oslc#"
xmlns:ns3="http://open-services.net/ns/cm#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
<rdf:Description rdf:type="http://localhost:5000/service/DeleteRuleAction">
<rdf:type rdf:resource="http://open-services.net/ns/cm#ChangeRequest"/>
<ns2:ruleId>RULE_ID</ns2:ruleId>
</rdf:Description>
</rdf:RDF>