Add registerExistingSSHKey
feature
#1016
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
앞선
registerExistingVNet
feature #983에서는
option=register
이면 Spider 에 Get 하고 그 결과를 이용하여 TB object를 생성했지만,SSH Key는 Spider에 Get 해도 Spider가 Private key 등을 리턴하지 않기 때문에
사용자가 TB에 registerExistingSSHKey 할 때 모든 정보를 제공하도록 하였습니다.
[특이사항]
TbSshKeyReq
struct에 field 추가(사용자가 모든 필드를 채워야 하는 것은 아니며, 일부만 채워도 되지만,
register 시
Username
과PrivateKey
는 필수 필드로 지정했음)CspSshKeyName
Fingerprint
Username
VerifiedUsername
PublicKey
PrivateKey
기존의 "Create SSH Key"
[Request]
[Response]
(@powerkimhub : Spider에서
VMUserID
필드에cb-user
로 채워서 주면 좋을 것 같은데, 지금은 빈 값으로 주는 것 같습니다. 😊)TB object만 삭제하고,
registerExistingSSHKey
시도[Request]
[Response]