docs
api
Account Management(UAccount)
create_character

Create Role - CreateCharacter

Overview

Create Role

💡 Product List: Cloud Host UHOST, Physical Host UPHOST, Managed Cloud UHYBRID, Basic Network UNET, Load Balancing ULB, Cloud Database UDB, SSD Cloud Disk UDISK, Cloud Memory Storage UMEM, Object Storage UFILE, Distributed Data Processing UDDP, Managed HADOOP Cluster UHADOOP, Cloud Distribution UCDN, Cloud Video on Demand UVIDEO, Basic Security Protection USEC, Cloud Data Warehouse UDW, Distributed Messaging System UKAFKA, Private Zone Resource Pool UDSET, AI Online Service UAI, AI Training Service UAI-TRAINING, Cloud Live Broadcast ULIVE, Container Service UDOCKER, Public Image Repository UHUB, WEB Application Protection UWAF, Distributed Database UDDB, Database Audit DBAUDIT, Host Intrusion Detection UHIDS, Container Cloud UK8S, Key Management Service UKMS, Global Dynamic Acceleration Line PATHX, Elasticsearch Service UES.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateCharacter.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
CharacterNamestringRole name, must not be duplicated with existing roles.Yes
CharacterDescriptionstringRole DescriptionNo
Add.NstringRole's permission to the product (Add)No
Del.NstringRole's permissions on the product (Delete)No
Mod.NstringModification of product permissions by roleNo
Get.NstringRole's permissions on the product (View)No

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
CharacterIdstringRole IDYes

Example

Request Example

https://api.surfercloud.com/?Action=CreateCharacter
&CharacterName=PkUHnfTq
&CharacterDescription=sOLKZcSH
&Add.n=OKlGsPhP
&Del.n=cZzFveLT
&Mod.n=GrixHXoU
&Get.n=nAKRweHk

Response Example

{
  "Action": "CreateCharacterResponse",
  "CharacterId": "WDmuiLnc",
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved
  • Contact our sales to help your business.
  • Contact our sales to help your business.