获取项目ID

GetProjectList

获取项目列表

Request Parameters

Parameter nameType Description Required
ProjectId.n Integer项目ID, n代表自然数No

Response Elements

Name Type Description
Action String 响应动作: GetProjectListResponse
RetCode Integer执行成功与否,0表示成功,其他值则为错误代码
ProjectSet Array JSON格式的项目列表实例,每项参数参见下面的 ProjectSet
ProjectCountInteger项目总数

ProjectSet —-

Name Type Description
ProjectId Integer项目ID
ProjectName String 项目名称
CreateTime Integer创建时间(Unix时间戳)
IsDefault Bool 是否为默认项目
ResourceCountInteger项目下资源数量
MemberCount Integer项目下成员数量

Request Example

https://api.ucloud.cn/usub_account/?Action=GetProjectList
&ResourceCount=Yes
&MemberCount=Yes

Response Example

{
    "Action" : "GetProjectResponse",
    "RetCode" : 0,
    "ProjectCount" : 2,
    "ResourceCount" : 20,
    "MemberCount" : 3,
    "ProjectSet" : [
        {
            "ProjectId":"test2",
            "ProjectName":"test1",
            "ParentId":"test4",
            "ParentName":"test4",
            "IsDefult":"Yes",
            "CreateTime":"1438574262",
            "ResourceCount":12,
            "MemberCount":2
        },
        {
            "ProjectId":"test6",
            "ProjectName":"test5",
            "ParentId":"test8",
            "ParentName":"test8",
            "IsDefult":"No",
            "CreateTime":"1438574262",
            "ResourceCount":8,
            "MemberCount":2
        }
    ]
}
如有疑问请联系 技术支持