Edgio

Logging Out

You can log out with the JSON-RPC interface only.

Logging Out Using the JSON-RPC Interface

Method name: logout
Logs out of Origin Storage and frees any used resources.
JSON-RPC
1{
2 "method": "logout",
3 "id": 1,
4 "params": {
5 "token": "b9c13ffb-aa9d-4d5f-9005-165f2cd81e84"
6 },
7 "jsonrpc": "2.0"
8}

Logging Out Using Positional Parameters

Example:
JSON-RPC
1{
2 "method": "logout",
3 "id": 1,
4 "params": [
5 "920cdcdf-e48f-49b6-b1f8-3361cc099bce"
6 ],
7 "jsonrpc": "2.0"
8}

Parameter Descriptions

Parameter NameTypeDescription
tokenstrValid token from a call to login (JSON-RPC interface) or /account/login (HTTP interface). See Log In Using JSON-RPC and Log in Using the HTTP Interface, respectively.

Return Codes

  • 0: success
  • -1: invalid token
  • -2: operation not permitted
For a list of error codes not specific to logout, see Global Error Codes.

Response Data

Returns only the codes discussed in Return Codes. Does not return any data structures.

Python Sample Request

Log out:
Python
1>>> api.logout(token)
2
30