Test Tokens

Returns all running test tokens.

Request

Parameters:

all: Set to true to return test tokens of all users, not just the user used for API authentication. The user used for API authentication must have administrator privileges to use this parameter.

JSON

URL http://ip:port/shunra/api/emulation/tokens?all=true
HTTP Method GET
HTTP Headers

Content-Type: application/json

Accept: application/json

Authorization: See Web Services Authentication.

Body None

XML

URL http://ip:port/shunra/api/emulation/tokens?all=true
HTTP Method GET
HTTP Headers

Content-Type: application/xml

Accept: application/xml

Authorization: See Web Services Authentication.

Body None

 

Response

JSON

HTTP Response Code

204- No Content in case no emulation is running

200 - OK

HTTP Headers Content-Type: application/json; charset=UTF-8
HTTP Body
{
    "tests": [{
        "userId": "admin",
        "emulationEngine": {
            "IL-Igor-LT.shunra.net": {
                "testTokens": ["fe7aff67-6eef-4c92-b357-80da7becf50937d7cb1d-4a18-42ae-8533-992e4f2945a7"],
                "emulationMode": "SINGLE_USER"
            }
        }
    }]
}

XML

HTTP Response Code

204- No Content in case no emulation is running

200 - OK

HTTP Headers Content-Type: application/xml; charset=UTF-8
HTTP Body
<multiUserEmulationTokensResponse>
    <tests>
        <userId>admin</userId>
        <emulationEngine>
            <entry>
                <key>IL-Igor-LT.shunra.net</key>
                <value xsi:type="emulationTokens">
                    <testTokens>
                        d7293a7d-6ee7-4550-a4a3-1b15e374487c0effbd0c-43de-4ab2-b832-afaa79c212b0
                    </testTokens>
                    <emulationMode>MULTI_USER</emulationMode>
                </value>
            </entry>
        </emulationEngine>
    </tests>
</multiUserEmulationTokensResponse>