getRule

Gets the downtime rule for the specified downtime rule ID.

Applies to Clouds and Integration Appliances.

Parameters:

ruleId
The specified downtime rule ID.
Returns:
The downtime rule.

Examples:

The following code is an example of a SOAP request to get a rule.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:dep="http://www.approuter.com/schemas/2008/1/deployment">
 <soapenv:Header>
  <dep:sessionId>8FDBC8ED7A014272714D23D14794473A</dep:sessionId>
 </soapenv:Header>
 <soapenv:Body>
  <dep:getRule>
   <dep:ruleId>2</dep:ruleId>
  </dep:getRule>
 </soapenv:Body>
</soapenv:Envelope>
The following example is the SOAP response to the request.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
 <S:Body>
  <ns2:getRuleResponse xmlns:ns2="http://www.approuter.com/schemas/2008/1/
  deployment" xmlns:ns3="http://www.approuter.com/schemas/2008/1/deployment/
  types" xmlns:ns4="http://www.approuter.com/schema/router/1000/security/03"
  xmlns:ns5="http://www.approuter.com/schemas/2008/1/util/types">
   <ns2:rule>
    <ns3:configUrl>config-url://GenericProject_1_Cloud:1.0:Default</
    ns3:configUrl>
    <ns3:downtimeType>stop</ns3:downtimeType>
    <ns3:envId>
     <guidString>A7FFE81243A1E319FCAED0DFABF9470B</guidString>
    </ns3:envId>
    <ns3:isActive>true</ns3:isActive>
    <ns3:repeatInterval>0</ns3:repeatInterval>
    <ns3:repeatType>none</ns3:repeatType>
    <ns3:repeatingRule>false</ns3:repeatingRule>
    <ns3:restartDate>2010-04-17T08:00:00.066Z</ns3:restartDate>
    <ns3:ruleId>2</ns3:ruleId>
    <ns3:stopDate>2010-04-17T07:00:00.066Z</ns3:stopDate>
   </ns2:rule>
  </ns2:getRuleResponse>
 </S:Body>
</S:Envelope>



Feedback | Notices


Timestamp icon Last updated: Tuesday, 27 September 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.api.doc/ci00115.html