获取帐号下的项目列表-GetProjectList

获取项目列表

Request Parameters

Parameter nameTypeDescriptionRequired
IsFinancestring是否是财务账号(Yes:是,No:否)No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
ProjectCountint项目总数Yes
ProjectSetarrayJSON格式的项目列表实例Yes

ProjectListInfo

Parameter nameTypeDescriptionRequired
ProjectIdstring项目IDYes
ProjectNamestring项目名称Yes
CreateTimeint创建时间(Unix时间戳)Yes
IsDefaultbool是否为默认项目Yes
ResourceCountint项目下资源数量(已废弃,不建议使用)Yes
MemberCountint项目下成员数量Yes
ParentIdstring父项目ID(已废弃)No
ParentNamestring父项目名称(已废弃)No

Request Example

https://api.ucloud.cn/?Action=GetProjectList

Response Example

{
    "Action": "GetProjectListResponse",
    "ProjectCount": 2,
    "ProjectSet": [
        {
            "ProjectId": "org-1",
            "ProjectName": "ucloud",
            "CreateTime": 1342434682,
            "IsDefault": true,
            "MemberCount": 1,
            "ResourceCount": 52
        },
        {
            "ProjectId": "org-2",
            "ProjectName": "test",
            "CreateTime": 1468225814,
            "IsDefault": false,
            "MemberCount": 0,
            "ResourceCount": 10
        }
    ],
    "RetCode": 0
}