This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RaiseFault name="abc"> | |
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> | |
<FaultResponse> | |
<Copy source="sc.response"> <!-- source is optional.. default is message --> | |
<Headers /> | |
</Copy> | |
<Remove> | |
<Headers> | |
<Header name="h1"/> | |
</Headers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ServiceCallout name="myPolicy"> | |
<Request clearPayload="false" variable="myRequest"/> | |
<Response>myResponse</Response> | |
<HTTPTargetConnection> | |
<Properties/> | |
<URL>http://example.com</URL> | |
</HTTPTargetConnection> | |
</ServiceCallout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<MessageValidation name="myPolicy"> | |
<Source>mymessage</Source> | |
<ResourceURL>xsd://sample</ResourceURL> | |
<SOAPMessage version="1.1/1.2"/> | |
<Element namespace="http://finance.com/1999"> PurchaseOrder</Element> | |
<Element namespace="http://finance.com/2000">PurchaseOrder</Element> | |
</MessageValidation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<JavaCallout name="MyJavaCalloutPolicy"> | |
<ResourceURL>java://MyJavaCallout.jar</ResourceURL> | |
<ClassName>com.apigee.mypolicy.Javacallout.MyJavaCallout</ClassName> | |
</JavaCallout> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<Script name="MyPythonScriptPolicy"> | |
<ResourceURL>py://MyPythonScript</ResourceURL> | |
<IncludeURL>py://MyPythonScript</IncludeURL> | |
</Script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<Javascript timeLimit="200" enabled="true" continueOnError="false" async="false" name="MyJSPolicy"> | |
<ResourceURL>jsc://MyJavaScript</ResourceURL> | |
<IncludeURL>jsc://MyJavaScript</IncludeURL> | |
</Javascript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ExtractVariables name="mypolicy"> | |
<Source>sc.response</Source> | |
<VariablePrefix>apigee</VariablePrefix> | |
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> | |
<URIPath> | |
<Pattern>/**/hello/{user}</Pattern> | |
<Pattern>/**/hi/{user}</Pattern> | |
</URIPath> | |
<QueryParam name="greeting"> | |
<Pattern>hello {user}</Pattern> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<KeyValueMapOperations name="abc"> | |
<Scope>organization/environment/apiproxy/policy</Scope> | |
<ExpiryTimeInSecs>60</ExpiryTimeInSecs> | |
<InitialEntries> | |
<Entry> | |
<Key> | |
<Parameter>k1</Parameter> | |
</Key> | |
<Value>v1</Value> | |
<Value>v2</Value> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RegularExpressionProtection name="mypolicy"> | |
<Source>response</Source> | |
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> | |
<URIPath> | |
<Pattern>[tT]rue</Pattern> | |
<Pattern>.*true.*</Pattern> | |
</URIPath> | |
<QueryParam name="greeting"> | |
<Pattern>[tT]rue</Pattern> | |
<Pattern>.*true.*</Pattern> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RaiseAlert name="RaiseAlert"> | |
<Syslog> | |
<Message>This is a test message. id = {request.header.id}</Message> | |
<Host>IP</Host> | |
<Port>514</Port> | |
</Syslog> | |
</RaiseAlert> |