[API PBA] GetUsersListForAccount_API Fail

Discussion in 'Plesk Automation Suggestions and Feedback' started by GuillaumeB76, Dec 18, 2013.

  1. GuillaumeB76

    GuillaumeB76 Bit Poster

    Messages:
    5
    Hi,

    I need to use the method GetUsersListForAccount_API but I can't. (http://download.pa.parallels.com/pba/5.4/doc/)

    I receive this message : Communication Failure: Method '' is not available inside a Server 'BM_Container'.
    I use multiple other method from this API and i haven't particular problem.

    I don't send my command here, but if you have a response, i will.

    Sorry for my english,
    Cordialy,

    B Guillaume
     
  2. HMoellendorf87

    HMoellendorf87 Mega Poster

    Messages:
    245
    Hi Guillaume,

    you have posted to Plesk Panel Automation, but your link refers to PBAS (Plesk Business Automation Standard).
    Please be sure, which product you are using.
     
  3. GuillaumeB76

    GuillaumeB76 Bit Poster

    Messages:
    5
    Yes it's true, I am new on this forum. If anyone can move the thread.
     
  4. HMoellendorf87

    HMoellendorf87 Mega Poster

    Messages:
    245
  5. GuillaumeB76

    GuillaumeB76 Bit Poster

    Messages:
    5
    Thanks.

    I work with this documentation.
    GetUsersListForAccount is the only one method, that i use, where we need to specify <string> for surround BM and name's method, maybe a way...
     
  6. HMoellendorf87

    HMoellendorf87 Mega Poster

    Messages:
    245
    If it Works with that example, please give a Short advise.
     
  7. GuillaumeB76

    GuillaumeB76 Bit Poster

    Messages:
    5
    Hi,

    No, it doesn't work.

    Here, my command:
    $vim TEST_1_5_GetUsers.xml:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <methodCall>
    <methodName>Execute</methodName>
    <params>
            <param>
                    <value>
                            <struct>
                                    <member>
                                            <name>Server</name>
                                            <value> <string>BM</string> </value>
                                    </member>
                                    <member>
                                            <name>Method</name>
                                            <value> <string>GetUsersListForAccount_API</string> </value>
                                    </member>
                                    <member>
                                            <name>Params</name>
                                            <value>
                                                    <array>
                                                            <data>
                                                                    <value><i4>1000248</i4></value>
                                                                    <value><i4>1</i4></value>
                                                            </data>
                                                    </array>
                                            </value>
                                    </member>
                            </struct>
                    </value>
            </param>
    </params>
    </methodCall>
    
    $ curl -v -d@TEST_1_5_GetUsers.xml http://127.0.0.1:5224/RPC2 :
    Code:
    <?xml version="1.0"?>
    <methodResponse><fault>
            <value><struct><member><name>faultCode</name><value><i4>-1</i4></value></member><member><name>faultString</name><value><string>Communication Failure: Method &apos;&apos; is not available inside a Server &apos;BM_Container&apos;.
    
    </string></value></member></struct></value>
    </fault></methodResponse>
    I try with PBA 5.4.5.

    Cordialy,

    B Guillaume.
     
  8. GuillaumeB76

    GuillaumeB76 Bit Poster

    Messages:
    5
    Method for build 5.4.6...

    Thanks you all.
     

Share This Page