SL API帐户服务createuse方法

2024-06-01 19:16:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我想知道事情的标题。你知道吗

此服务有一个createuser()方法,它需要templateObject参数(SoftLayer\u User\u Customer type)。我检查了这个类型,我想知道(1)localeId(2)permissionSystemVersion属性的详细信息。请告诉我这些的意思。你知道吗

敬礼。你知道吗

SoftLayer\u帐户 https://sldn.softlayer.com/reference/services/SoftLayer_Account/createUser

SoftLayer\用户\客户 https://sldn.softlayer.com/reference/datatypes/softlayer_user_customer


Tags: 方法httpscom标题参数typecustomer事情
1条回答
网友
1楼 · 发布于 2024-06-01 19:16:01

关于localeId属性

用于设置用户的语言信息。您可以使用该方法获得所需语言的localeidSoftLayer_Locale::getClosestToLanguageTag如下所示:

https://[userName]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Locale/getClosestToLanguageTag

Method: POST

{
    "parameters": [
        "it-IT"
    ]
}

下面是使用SoftLayer_Locale::getClosestToLanguageTag时可以使用的语言标记

  • en-US (English)
  • es-Es (Spanish)
  • fr-FR (French)
  • zh-TW (Chinese Traditional)
  • ko-KR (Korean)
  • ja-JP (Japanese)
  • it-IT (Italian)
  • pt-BR (Brazilian Portuguese)
  • zh-CN (Chinese Simplified)
  • de-DE (German)

关于permissionSystemVersion

此属性引用用户的权限系统,系统将自动将其设置为当前SL管理的默认值,因此在创建新用户时不需要设置此值。你知道吗

相关问题 更多 >