GetConnectionInfo (MythXML)

From MythTV Official Wiki
Revision as of 03:31, 8 September 2010 by Wagnerrp (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Queries the database credentials used by the backend.

Inputs

  • Pin - (optional) 4-digit authentication number, defaults to 0000

Success

<?xml version="1.0" encoding="utf-8"?>
<GetConnectionInfoResponse>
    <Info>
        <Database>
            <Host>localhost</Host>
            <Port>0</Port>
            <UserName>mythtv</UserName>
            <Password>mythtv</Password>
            <Name>mythconverg</Name>
            <Type>QMYSQL3</Type>
        </Database>
        <WOL>
            <Enabled>0</Enabled>
            <Reconnect>0</Reconnect>
            <Retry>0</Retry>
            <Command></Command>
        </WOL>
    </Info>
</GetConnectionInfoResponse>

Failure

<?xml version="1.0" encoding="utf-8"?>
<detail>
    <errorCode>606</errorCode>
    <errorDescription>Action Not Authorized</errorDescription>
</detail>