Docs
api
Account Management(UAccount)
Describe Character List

Get Role List - DescribeCharacterList

Overview

Get Role List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeCharacterList.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
OffsetintOffset of the role list, default is 0No
LimitintMaximum number of role lists, default is 20No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
CharacterSetarray[CharacterSet]Examples of role lists in JSON format, see each parameter in the following ResponseItemYes
TotalCountintTotal Number of RolesYes

Data Model

CharacterSet

Field NameTypeDescription InformationRequired
CharacterIdstringRole IDYes
CharacterNamestringRole NameYes
CharacterDescriptionstringRole DescriptionYes
ModifiablebooleanModifiabilityYes
PermissionSetarray[PermissionSet]Permission ListYes

PermissionSet

Field NameTypeDescription InformationRequired
Addarray[string]Product list with added permissionsYes
Delarray[string]Product list with delete permissionsYes
Modarray[string]Product list with modification permissionsYes
Getarray[string]Product list with query permissionsYes

Example

Request Example

https://api.dezai.com/?Action=DescribeCharacterList
&Offset=0
&Limit=7

Response Example

{
  "Action": "DescribeCharacterListResponse",
  "CharacterSet": [
    {
      "CharacterDescription": "管理员",
      "CharacterId": "Admin",
      "CharacterName": "Admin",
      "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"
        ],
        "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"
        ],
        "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"
        ]
      }
    },
    {
      "CharacterDescription": "",
      "CharacterId": "lptabl",
      "CharacterName": "test",
      "Modifiable": true,
      "PermissionSet": {
        "Add": [
          "HYBRID",
          "PHOST",
          "UCDN",
          "UDB",
          "UDDP",
          "UDISK",
          "UFILE",
          "UHOST"
        ],
        "Del": [
          "HYBRID",
          "PHOST",
          "UCDN",
          "UDB",
          "UDDP",
          "UDISK",
          "UFILE",
          "UHOST"
        ],
        "Get": [
          "HYBRID",
          "PHOST",
          "UCDN",
          "UDB",
          "UDDP",
          "UDISK",
          "UFILE",
          "UHOST"
        ],
        "Mod": null
      }
    }
  ],
  "RetCode": 0,
  "TotalCount": 2
}