{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"ApplyRuleInfo":{"description":"认证应用对象信息,为null时代表对所有应用对象生效。","properties":{"rule":{"description":"认证应用对象。\n- INTERNET:互联网接入,rule_type为ACCESS_MODE时可选该值\n- PRIVATE:专线接入,rule_type为ACCESS_MODE时可选该值","maxLength":255,"minLength":0,"type":"string"},"rule_type":{"description":"认证应用对象类型。\n- ACCESS_MODE:接入类型","maxLength":255,"minLength":0,"type":"string"}}},"AssistAuthMethodConfigRequest":{"description":"辅助认证策略请求","properties":{"auth_type":{"$ref":"#/definitions/AuthAssistEnum"},"otp_config_info":{"$ref":"#/definitions/OtpConfigInfo"}}},"AuthAssistEnum":{"description":"认证类型。\nOTP:OTP辅助认证","enum":["OTP","RADIUS_GATEWAY","RADIUS"],"maxLength":24,"minLength":0,"type":"string"},"AuthServerAccessMode":{"description":"辅助认证服务接入模式\nINTERNET:互联网接入\nDEDICATED:专线接入\nSYSTEM_DEFAULT:系统默认","enum":["INTERNET","DEDICATED","SYSTEM_DEFAULT"],"type":"string"},"BaseResponse":{"description":"API响应基类","properties":{"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"OtpConfigInfo":{"description":"OTP辅助认证方式配置","properties":{"app_id":{"description":"认证服务接入账号","maxLength":24,"minLength":0,"type":"string"},"app_secret":{"description":"认证服务接入密码","maxLength":128,"minLength":0,"type":"string","x-isSensitive":true},"apply_rule":{"$ref":"#/definitions/ApplyRuleInfo"},"auth_server_access_mode":{"$ref":"#/definitions/AuthServerAccessMode"},"auth_url":{"description":"辅助认证服务器地址","maxLength":255,"minLength":0,"type":"string"},"cert_content":{"description":"pem格式证书内容","maxLength":8192,"minLength":0,"type":"string","x-isSensitive":true},"enable":{"description":"是否启用","type":"boolean"},"receive_mode":{"$ref":"#/definitions/ReceiveModeEnum"}}},"ReceiveModeEnum":{"description":"验证码接收模式\nVMFA:虚拟MFA设备\nHMFA:硬件MFA设备","enum":["VMFA","HMFA"],"type":"string"}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"412c426f07694d73a337ccba0f095d35","info_version":"v2","method":"put","name":"UpdateAssistAuthMethodConfig","parameters":{},"paths":{"/v2/{project_id}/assist-auth-config/method-config":{"put":{"description":"更新辅助认证策略配置","operationId":"UpdateAssistAuthMethodConfig","parameters":[{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":40000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},{"description":"发送的实体的MIME类型","in":"header","maxLength":255,"minLength":1,"name":"Content-Type","required":true,"type":"string","x-example":"application/json"},{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"更新认证策略配置请求","in":"body","name":"UpdateAssistAuthMethodConfigRequestBody","required":true,"schema":{"$ref":"#/definitions/AssistAuthMethodConfigRequest"}}],"responses":{"204":{"description":"正常"},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResponse"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResponse"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResponse"}}},"schemes":["https"],"summary":"更新辅助认证策略配置","tags":["AuthConfig"],"x-apiexplorer-hide":"N","x-apig-group":"internal_token,public","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-text-1":{"auth_type":"OTP","otp_config_info":{"apply_rule":{"rule":"INTERNET","rule_type":"ACCESS_MODE"},"enable":true,"receive_mode":"VMFA"}},"x-request-examples-text-2":{"auth_type":"OTP","otp_config_info":{"app_id":123,"app_secret":123,"apply_rule":{"rule":"INTERNET","rule_type":"ACCESS_MODE"},"auth_server_access_mode":"DEDICATED","auth_url":"https://10.0.0.128:8443/api/um/login","cert_content":"cert_content","enable":true,"receive_mode":"HMFA"}},"x-request-examples-url-1":"PUT /v2/fb2e5ec048384c8f9469d22db0037908/assist-auth-config/method-config","x-request-examples-url-2":"PUT /v2/fb2e5ec048384c8f9469d22db0037908/assist-auth-config/method-config","x-support-sdk":"Y"}}},"product_short":"Workspace","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"更新辅助认证策略配置","tags":"认证配置","uri":null,"version":"2.0"}