platformConfigExport
The platformConfigExport method begins an export of the node's platformConfig.xml file to a remote FTP server.
Request Parameters
args0
The FTP server where you plan to send the file.
args1
The port you want to use for FTP (usually 22).
args2
The username for logging in to the FTP server.
args3
The password for logging in to the FTP server.
args4
The location of the platform configuration file.
Response Parameters (return element children)
result
A result code such as internal.request.complete that describes the result. See Error Codes in the Developer's Guide for details.
platformConfigExportStatus
Returns platform.config.export.failed if the file transfer was unsuccessful.
Example Request and Response
Request
Response
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ser="http://services.api.platform.vos.cisco.com"> <soapenv:Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <wsa:Action>urn: platformConfigExport</wsa:Action> <wsa:MessageID>uuid:63e5d8ca-dcac-40af-916b-d32ec3382d0f</wsa:MessageID> <wsa:ReplyTo> <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address> </wsa:ReplyTo> <wsa:To></wsa:To> </soapenv:Header> <soapenv:Body> <platformConfigExport xmlns="http://services.api.platform.vos.cisco.com"> <ser:args0>infyvoscm28-lnx.cisco.com.</ser:args0> <ser:args1>22</ser:args1> <ser:args2>root</ser:args2> <ser:args3>cisco123</ser:args3> <ser:args4>/home/rvurimi/</ser:args4> </platformConfigExport ></soapenv:Body> </soapenv:Envelope>
<?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To> <wsa:MessageID>urn:uuid:df1b570c-62ee-4449-a132-f62963beb54a</wsa:MessageID> <wsa:Action>urn:platformConfigExportResponse</wsa:Action> <wsa:RelatesTo>uuid:63e5d8ca-dcac-40af-916b-d32ec3382d0f</wsa:RelatesTo> </soapenv:Header> <soapenv:Body> <ns:platformConfigExportResponse xmlns:ns="http://services.api.platform.vos.cisco.com"> <ns:return xmlns:ax297="http://element.services.api.platform.vos.cisco.com/xsd" xmlns:ax298="http://api.platform.vos.cisco.com/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax297:PlatformConfigExportResponse"> <ax297:result>internal.request.complete</ax297:result> <ax297:platformConfigExportStatus>platform.config.export.failed</ax297:platformConfigExportStatus> </ns:return> </ns:platformConfigExportResponse> </soapenv:Body> </soapenv:Envelope>