Querying Project List

Last updated: 2020-06-07 19:53:22

    Note:

    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new About Aaccount API 3.0 which is standardized and faster.

    API Description

    • Domain name: account.api.qcloud.com.
    • API name: DescribeProject
    • API description: this API is used to query the project list. Project is a virtual concept. You can create multiple projects under one account and manage different resources in each project.

    Input Parameters

    Parameter Name Required Type Description
    allList No Int If this parameter is 1, all projects (including hidden ones) will be queried. If it is left empty or 0, only non-hidden projects will be queried.

    Output Parameters

    Parameter Type Description
    code Int Error code. 0: success, other values: failure
    message String Error message
    data Array Array of returned results

    Data structure

    Parameter Name Type Description
    projectName String Project name
    projectId String Project ID
    createTime String Project creation time
    creatorUin String Project creator
    projectInfo String Project description

    Samples

    Input

      https://account.api.qcloud.com/v2/index.php?Action=DescribeProject
      &Common request parameters
    

    Output

    {
        "code": 0,
        "message": "",
        "data": [
            {
                "projectName": "test1",
                "projectId": 1002189,
                "createTime": "2015-04-28 14:42:53",
                "creatorUin": 670569769,
                "projectInfo": "info1"
            },  
            {
                "projectName": "test2",
                "projectId": 1002190,
                "createTime": "2015-04-28 14:42:57",
                "creatorUin": 670569769,
                "projectInfo": "info2"
            }   
        ]
    }

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help