login
Logs in to an Integration Appliance or a Cloud.
Parameters:
- username
- The user ID that you use to log in to an Integration Appliance or Cloud.
- password
- The password for username.
- Returns:
- The session ID.
Examples:
The following code is an example
of a SOAP request that you can use to log in to the web service:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sec="http://www.approuter.com/schemas/2008/1/security">
<soapenv:Header/>
<soapenv:Body>
<sec:login>
<sec:username>webman@mycompany.com</sec:username>
<sec:password>My6word3S</sec:password>
</sec:login>
</soapenv:Body>
</soapenv:Envelope>
The password must be at least
eight characters long and contain a combination of three of the following
characters:
- Alphabet characters
- Uppercase alphabet characters
- Numbers
- Special characters
The following code is an example of a SOAP response to
a successful login request:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:loginResponse xmlns:ns2="http://www.approuter.com/schemas/2008/1/
security" xmlns:ns3="http://www.approuter.com/schema/router/1000/security/03">
<ns2:sessionId>8F059BWEA3611033D277773A95404641</ns2:sessionId>
</ns2:loginResponse>
</S:Body>
</S:Envelope>
The session ID is required to run the
other operations in the Management API after logging in.