ipmcset -t user -d state
更新时间: 2026/07/16
在Gitcode上查看源码

ipmcset -t user -d state

返回总览 | 返回命令索引

命令功能

启用/禁用用户

命令格式

text
ipmcset -t user -d state -v <username> [enabled|disabled]

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
usernameReqBodystring-[{"Type": "Regex", "Formula": "^(?!.*[<>&,'/\%:" ])(?=[A-Za-z0-9~!@#$%^&amp;*()_+-={};[\\]?.|])(?!#)(?!\\+)(?!-)([A-Za-z0-9~!@#$%^&*()_+-={};[\\]?.|]{1,16})$"}]Contain any digits, letters, or characters except (:,&lt;>&"'/%) and space. User name's length is limitted to 1-16. User name cannot start with character "#" "+" or "-". User name cannot be just a dot (.) or two consecutive dots (..).
stateReqBodystring-[{"Type": "Enum", "Formula": ["enabled", "disabled"]}]-

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
StateRspBody----
UserNameRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Method/bmc/kepler/AccountService/Accountsbmc.kepler.AccountService.ManagerAccountsGetIdByUserName-{"AccountId": "Id"}
2Property/bmc/kepler/AccountService/Accounts/${ProcessingFlow[1]/Destination/Id}bmc.kepler.AccountService.ManagerAccount-{"Enabled": "${Statements/state_bool()}"}-

使用示例

text
ipmcset -t user -d state -v <username> [enabled|disabled]

输出样例

输出样例来源: interface_config/cli/echoes/ipmcset/user_state, interface_config/cli/echoes/

来源信息

ItemValue
命令类型ipmcset
targetuser
dataitemstate
URI/cli/v1/user/state
Interface TypePatch
配置来源interface_config/cli/ipmcset/user.json
请求版本26.06_2026.06.30
源码提交5606349e
生成时间2026-07-16T01:48:37