获取角色列表-DescribeCharacterList

获取角色列表

Request Parameters

Parameter nameTypeDescriptionRequired
Offsetint角色列表的偏移量,默认为0No
Limitint角色列表的最大数量,默认为20No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
CharacterSetarrayJSON格式的角色列表实例,每项参数参见下面的 ResponseItemYes
TotalCountint角色总数Yes

CharacterSet

Parameter nameTypeDescriptionRequired
CharacterIdstring角色IDYes
CharacterNamestring角色名Yes
CharacterDescriptionstring角色描述Yes
Modifiablebool可修改性Yes
PermissionSetarray权限列表Yes

PermissionSet

Parameter nameTypeDescriptionRequired
Addarray有增权限的产品列表Yes
Delarray有删权限的产品列表Yes
Modarray有改权限的产品列表Yes
Getarray有查权限的产品列表Yes

Request Example

https://api.ucloud.cn/?Action=DescribeCharacterList
&Offset=7
&Limit=7

Response Example

{
    "Action": "DescribeCharacterListResponse",
    "CharacterSet": [
        {
            "CharacterId": "Admin",
            "CharacterName": "Admin",
            "CharacterDescription": "管理员",
            "Modifiable": false,
            "PermissionSet": {
                "Add": [
                    "HYBRID",
                    "PHOST",
                    "UCDN",
                    "UDB",
                    "UDDP",
                    "UDISK",
                    "UFILE",
                    "UHOST",
                    "ULB",
                    "UMARKET",
                    "UMEM",
                    "UNET",
                    "USEC",
                    "UVIDEO",
                    "UHADOOP",
                    "UKAFKA",
                    "UDW",
                    "UDSET",
                    "UAI",
                    "UAI-TRAINING",
                    "ULIVE",
                    "UDOCKER",
                    "UHUB",
                    "UWAF",
                    "UDDB",
                    "UHIDS",
                    "DBAUDIT",
                    "UK8S",
                    "PATHX",
                    "UKMS",
                    "UES",
                    "UFLINK"
                ],
                "Del": [
                    "HYBRID",
                    "PHOST",
                    "UCDN",
                    "UDB",
                    "UDDP",
                    "UDISK",
                    "UFILE",
                    "UHOST",
                    "ULB",
                    "UMARKET",
                    "UMEM",
                    "UNET",
                    "USEC",
                    "UVIDEO",
                    "UHADOOP",
                    "UKAFKA",
                    "UDW",
                    "UDSET",
                    "UAI",
                    "UAI-TRAINING",
                    "ULIVE",
                    "UDOCKER",
                    "UHUB",
                    "UWAF",
                    "UDDB",
                    "UHIDS",
                    "DBAUDIT",
                    "UK8S",
                    "PATHX",
                    "UKMS",
                    "UES",
                    "UFLINK"
                ],
                "Mod": [
                    "HYBRID",
                    "PHOST",
                    "UCDN",
                    "UDB",
                    "UDDP",
                    "UDISK",
                    "UFILE",
                    "UHOST",
                    "ULB",
                    "UMARKET",
                    "UMEM",
                    "UNET",
                    "USEC",
                    "UVIDEO",
                    "UHADOOP",
                    "UKAFKA",
                    "UDW",
                    "UDSET",
                    "UAI",
                    "UAI-TRAINING",
                    "ULIVE",
                    "UDOCKER",
                    "UHUB",
                    "UWAF",
                    "UDDB",
                    "UHIDS",
                    "DBAUDIT",
                    "UK8S",
                    "PATHX",
                    "UKMS",
                    "UES",
                    "UFLINK"
                ],
                "Get": [
                    "HYBRID",
                    "PHOST",
                    "UCDN",
                    "UDB",
                    "UDDP",
                    "UDISK",
                    "UFILE",
                    "UHOST",
                    "ULB",
                    "UMARKET",
                    "UMEM",
                    "UNET",
                    "USEC",
                    "UVIDEO",
                    "UHADOOP",
                    "UKAFKA",
                    "UDW",
                    "UDSET",
                    "UAI",
                    "UAI-TRAINING",
                    "ULIVE",
                    "UDOCKER",
                    "UHUB",
                    "UWAF",
                    "UDDB",
                    "UHIDS",
                    "DBAUDIT",
                    "UK8S",
                    "PATHX",
                    "UKMS",
                    "UES",
                    "UFLINK"
                ]
            }
        },
        {
            "CharacterId": "lptabl",
            "CharacterName": "test",
            "CharacterDescription": "",
            "Modifiable": true,
            "PermissionSet": {
                "Add": [
                    "HYBRID",
                    "PHOST",
                    "UCDN",
                    "UDB",
                    "UDDP",
                    "UDISK",
                    "UFILE",
                    "UHOST"
                ],
                "Del": [
                    "HYBRID",
                    "PHOST",
                    "UCDN",
                    "UDB",
                    "UDDP",
                    "UDISK",
                    "UFILE",
                    "UHOST"
                ],
                "Mod": null,
                "Get": [
                    "HYBRID",
                    "PHOST",
                    "UCDN",
                    "UDB",
                    "UDDP",
                    "UDISK",
                    "UFILE",
                    "UHOST"
                ]
            }
        }
    ],
    "RetCode": 0,
    "TotalCount": 2
}