Skip to content

Commit

Permalink
Upgrade the KeyPair Management Page for AdminWeb2
Browse files Browse the repository at this point in the history
  • Loading branch information
powerkimhub committed Aug 12, 2024
1 parent 7bb046d commit a1f001d
Show file tree
Hide file tree
Showing 4 changed files with 959 additions and 284 deletions.
2 changes: 1 addition & 1 deletion api-runtime/rest-runtime/CBSpiderRuntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func RunServer() {
{"GET", "/adminweb/vpcmgmt/:ConnectConfig", aw.VPCMgmt},
{"GET", "/adminweb/securitygroup/:ConnectConfig", aw.SecurityGroupManagement},
{"GET", "/adminweb/securitygroupmgmt/:ConnectConfig", aw.SecurityGroupMgmt},
{"GET", "/adminweb/keypair/:ConnectConfig", aw.KeyPair},
{"GET", "/adminweb/keypair/:ConnectConfig", aw.KeyPairManagement},
{"GET", "/adminweb/keypairmgmt/:ConnectConfig", aw.KeyPairMgmt},
{"GET", "/adminweb/vm/:ConnectConfig", aw.VM},
{"GET", "/adminweb/vmmgmt/:ConnectConfig", aw.VMMgmt},
Expand Down
6 changes: 4 additions & 2 deletions api-runtime/rest-runtime/KeyPairRest.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func CreateKey(c echo.Context) error {
ConnectionName string
IDTransformMode string // ON | OFF, default is ON
ReqInfo struct {
Name string
Name string
TagList []cres.KeyValue
}
}

Expand All @@ -120,7 +121,8 @@ func CreateKey(c echo.Context) error {

// Rest RegInfo => Driver ReqInfo
reqInfo := cres.KeyPairReqInfo{
IId: cres.IID{NameId: req.ReqInfo.Name, SystemId: ""},
IId: cres.IID{NameId: req.ReqInfo.Name, SystemId: ""},
TagList: req.ReqInfo.TagList,
}

// Call common-runtime API
Expand Down
Loading

0 comments on commit a1f001d

Please sign in to comment.