sites

You can use the account/sites method to get a list of sites of the top account and to update a site branch.

Getting a list of sites

To get a list of sites (wialon_web) of the top account, set callMode to list.

Copied!
svc=account/sites&params={"callMode":"list"}

Updating a site

To update a branch, you can use the request that applies active branches (ADF + CMS) to wialon_web websites.

Only the branch_mode site option can be modified by this request.

The request is submitted as a JSON object, where the keys are the site names.

Set callMode to update, specify the site name and branch:

Copied!
svc=account/sites&params={"callMode":"update","sites":{"<site_name>":"<branch_value>"}}

where <site_name> is the text value of the site name and <branch_value> is the site branch mode value described below.

The values stand for the following branches:

Value Site branch
0 Stable.
1 Beta.
2 Stable and beta.

Response

If the request is completed successfully, a response of the following format is returned:

Copied!
[  
    {  
        "n":"video-hosting.wialon.com",         /* Site address. */  
        "cn":"hosting_video",                   /* Site common name. */  
        "bm":0                                  /* Branch mode 0, 1, 2. */  
    },  
    {  
        "n":"night-hosting.wialon.com",  
        "cn":"default_night",  
        "bm":0  
    },  
    {  
        "n":"beta-hosting.wialon.com",  
        "cn":"hosting_beta",  
        "bm":0  
    },  
    {  
        "n":"wialonb3.gurtam.com",  
        "cn":"GurtamTest",  
        "bm":0  
    },  
    {  
        "n":"my-hosting.wialon.com",  
        "cn":"GurtamTest7",  
        "bm":0  
    },  
    {  
        "n":"us.hosting.wialon.net",  
        "cn":"GurtamTest5",  
        "bm":0  
    },  
    {  
        "n":"qa.wialon.com",  
        "cn":"GurtamTest_3",  
        "bm":0  
    },  
    {  
        "n":"sales-hosting.wialon.com",  
        "cn":"GurtamTest6",  
        "bm":0  
    }  
]

If the request fails, an error code is returned.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also