批量编辑设备的账号密码等。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DeviceIds | array | 是 | 设备ID列表。 | |
string | 是 | 设备ID。 | device-evve560juend5owh | |
LoginType | string | 否 | 登录类型。 | SSH或TELNET |
LoginUsername | string | 否 | 登录账号。 | admin |
LoginPassword | string | 否 | 登录密码。 | pasword****** |
EnablePassword | string | 否 | Enable密码。 | pasword****** |
SnmpAccountVersion | string | 否 | SNMP 版本,支持v1,v2c,v3。 | v3 |
SnmpCommunity | string | 否 | 团体字,SNMP v1和v2c需要。 | communit**** |
SnmpAccountType | string | 否 | SNMP 账号类型。 | get |
SnmpSecurityLevel | string | 否 | SNMP安全级别,SNMP v3需要。 | AUTH_PRIV |
SnmpUsername | string | 否 | 用户名,SNMP v3需要。 | admin |
SnmpAuthPassphrase | string | 否 | 用户认证密码,SNMP v3需要。 | password**** |
SnmpAuthProtocol | string | 否 | 用户认证协议,SNMP v3需要。 | MD5 |
SnmpPrivacyPassphrase | string | 否 | 用户加密密码,SNMP v3需要。 | password**** |
SnmpPrivacyProtocol | string | 否 | 用户加密协议,SNMP v3需要。 | DES |
InstanceId | string | 是 | 实例ID。 | cmn-cn-xxx |
PhysicalSpaceId | string | 否 | 物理空间ID。 | space-1hk5p29yvvzuh9cp |
PhysicalSpaceName | string | 否 | 物理空间名称。 | xxx园区 |
ServiceStatus | string | 否 | 设备状态。 | online |
Vendor | string | 否 | 设备厂商。 | H3C |
Model | string | 否 | 设备型号。 | RG-S5750-48GT4XS-HP-H |
SecurityDomain | string | 否 | 设备安全域。 | CMN-IT |
ExtAttributes | string | 否 | 设备额外属性。 | {\"Role\":\"WIFI-ASW\"} |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "fdb2af01-bd56-4034-812b-f257f73b4690"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Missing%s | You must specify the parameter %s. | 必填参数没有填。请检查调用时是否填写了此参数,并重试请求。 |
400 | InvalidParameter%s | The specified parameter %s is invalid. | 参数无效,请检查参数 |
400 | ActionNotAvailable | The action is not available. | 操作不可用 |
400 | Duplicate%s%s | The %s %s value is already occupied. | 资源属性值已经被占用 |
400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. | 用了一个已经使用过的 ClientToken,但此次请求内容却又与上一次使用该 Token 的 request 不一样。 |
400 | InvalidMonitorItem.NotSame | The selected list contains different monitoring items. Please select the subscription items of the same monitoring item. | 列表中包含不同的监控项,请选择相同监控项 |
400 | InvalidParameter.TooMuch | You cannot fill in device whitelist and blacklist at the same time. | 设备白名单和设备黑名单不能同时填写 |
400 | InvalidScheme.NotEnable | The scheme is not enabled. | 方案未启用 |
400 | InvalidScheme.StepNotAvailable | Some steps of the scheme are unavailable. | 方案存在不可用步骤 |
400 | InvalidTimeStamp | The timestamp value must not be earlier than the current time. | 传入时间不得早于当前时间 |
400 | InvalidTimeStamp.Format | The format of specified timestamp or date value is invalid. | 时间戳格式不对。请检查您的时间戳的格式是否正确。 |
400 | NoAccess.ResourceInUse | The resource % is used by resource %s. | 使用中的资源不支持该操作 |
400 | NoMoreResources | No more resources are available. %s | 无更多资源 |
400 | QuotaTooMuch | Quota exceeds limit. | 资源配额超过限制。 |
400 | ScriptCompileError.Line%s | A compile error occurred at line %s. | 脚本编译错误 |
400 | SignatureDoesNotMatch | 签名不通过 | - |
403 | NoAccess.BuiltIn%s | The built in configuration does not permit the operation. | 内置配置不允许操作 |
403 | NoPermission | 没有权限 | - |
404 | Invalid%s.NotFound | The specified resource %s does not exist. | 找不到对应资源 |
404 | ServiceNotFound | 后端服务未找到 | - |
500 | InternalError | 服务器内部错误 | - |
503 | ServiceUnavailable | 服务不可用 | - |
访问错误中心查看更多错误码。