{"base_path":null,"components":null,"consumes":"","definitions":{"ServerJob":{"description":"云手机服务器任务。","properties":{"error_code":{"description":"错误码。","maxLength":1024,"minLength":0,"type":"string"},"error_msg":{"description":"错误说明。","maxLength":1024,"minLength":0,"type":"string"},"job_id":{"description":"任务的唯一标识。","maxLength":32,"minLength":32,"type":"string"},"server_id":{"description":"云手机服务器的唯一标识ID,云手机服务器相关任务包含此字段。","maxLength":32,"minLength":32,"type":"string"}},"type":"object"},"ServerKeypair":{"description":"服务器密钥对。","properties":{"keypair_name":{"description":"密钥对名称。","maxLength":1024,"minLength":0,"type":"string"},"server_id":{"description":"云手机服务器ID,不得超过32个字节。","maxLength":32,"minLength":32,"type":"string"}},"required":["server_id","keypair_name"],"type":"object"},"UpdateKeypairRequestBody":{"properties":{"servers":{"description":"待更改密钥对的云手机服务器信息。","items":{"$ref":"#/definitions/ServerKeypair"},"maxItems":8096,"minItems":0,"type":"array"}},"required":["servers"],"type":"object"},"UpdateKeypairResponseBody":{"properties":{"jobs":{"description":"任务信息。","items":{"$ref":"#/definitions/ServerJob"},"maxItems":1024,"minItems":1,"type":"array"},"request_id":{"description":"请求的唯一标识ID。","maxLength":32,"minLength":32,"type":"string"}},"type":"object"}},"description":null,"group_id":"309fd78cfbaf4fc7b0138ba244051bf6","host":"cph.cn-north-4.myhuaweicloud.com","id":"20dbbf2304084581a18976cd41f84dc2","info_version":"v1","method":"put","name":"UpdateKeypair","parameters":{"X-Auth-Token":{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":8096,"minLength":0,"name":"X-Auth-Token","required":true,"type":"string"},"project_id":{"description":"项目id。","in":"path","maxLength":32,"minLength":32,"name":"project_id","required":true,"type":"string"}},"paths":{"/v1/{project_id}/cloud-phone/servers/open-access":{"put":{"description":"修改连接云手机的密钥对。","operationId":"UpdateKeypair","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/X-Auth-Token"},{"description":"更新秘钥请求体","in":"body","name":"UpdateKeypairRequestBody","required":true,"schema":{"$ref":"#/definitions/UpdateKeypairRequestBody"}}],"responses":{"200":{"description":"OK","examples":{"application/json":{"jobs":[{"job_id":"1564567b8bab40f34711234cb80d0123","server_id":"ae4d231e44d2a4ccf612660a473fe1e3"},{"job_id":"1564567b8bab40f34711234cb80d5678","server_id":"2347275010d3440d963d3fcb8931ff55"}],"request_id":"6837531fd3f54550927b930180a706bf"}},"schema":{"$ref":"#/definitions/UpdateKeypairResponseBody"}}},"schemes":["https"],"summary":"更改密钥对","tags":["密钥管理"],"x-apiexplorer-hide":false,"x-first-open-time":"2019-3-30","x-hybridcloud":false,"x-is-registered":"Y","x-open-region-cloud":"hc,hk,cmcc,fcs","x-order":1,"x-publishpath":"cph_api_0524","x-request-examples-1":{"servers":[{"keypair_name":"mykeypair","server_id":"ae4d231e44d2a4ccf612660a473fe1e3"},{"keypair_name":"mykeypair","server_id":"2347275010d3440d963d3fcb8931ff55"}]},"x-request-examples-description-1":"修改服务器列表中对应服务器的密钥对","x-request-examples-text-1":{"servers":[{"keypair_name":"mykeypair","server_id":"ae4d231e44d2a4ccf612660a473fe1e3"},{"keypair_name":"mykeypair","server_id":"2347275010d3440d963d3fcb8931ff55"}]},"x-request-examples-url-1":"PUT https://{CPH Endpoint}/v1/{project_id}/cloud-phone/servers/open-access","x-source":"SelfDeveloped","x-support-sdk":"Y"}}},"product_short":"CPH","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"更改密钥对","tags":"密钥管理","uri":null,"version":"2.0"}