CVMs
Replace CVM SSH keys
Changed onReplaces the set of SSH keys this CVM authorizes. Optional usernames are resolved to that member's keys and unioned into the set. Keys take effect at the next power-on, or immediately when apply_now restarts the CVM.
put/api/v1/cvms/{cvm_id}/ssh-keys
Request
- Base URLhttps://cloud-api.phala.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cvm_idstring required
Request body
Response
Updated authorized keys
Example response
{
"keys": [
{
"id": "sshkey_0123abcd",
"owner_user_id": "usr_0123abcd",
"added_by_user_id": "usr_0123abcd"
}
]
}Changes
- info
endpoint added
- info