-
Notifications
You must be signed in to change notification settings - Fork 51
[Info] Go struct JSON field name match table
Yunkon Kim edited this page Aug 2, 2023
·
1 revision
[As of 2020-07-01]
Ref: #180
[VM Create Request flow]
-
RestPostMcisVm()
in api/rest/server/mcis/control.go
TbVmReq struct | TbVmInfo struct | |||
---|---|---|---|---|
(Name→) | Id | |||
Description | Description | |||
Status="Creating" | ||||
Name | Name | |||
ConnectionName | ConnectionName | |||
SpecId | SpecId | |||
ImageId | ImageId | |||
VNetId | VNetId | |||
SubnetId | SubnetId | |||
SecurityGroupIds | SecurityGroupIds | |||
SshKeyId | SshKeyId | |||
-
CreateVm()
in mcis/control.go
TbVmInfo JSON (#180) | TbVmInfo struct |
Req to Spider [struct = JSON] |
---|---|---|
name | Name→ | ReqInfo.Name |
connectionName | ConnectionName→ | ConnectionName |
specId | SpecId→ | (ReqInfo.VMSpecName) |
imageId | ImageId→ | (ReqInfo.ImageName) |
securityGroupIds | SecurityGroupIds→ | ReqInfo.SecurityGroupNames |
vNetId | VNetId→ | ReqInfo.VPCName |
subnetId | SubnetId→ | ReqInfo.SubnetName |
sshKeyId | SshKeyId→ | ReqInfo.KeyPairName |
vmUserAccount | VmUserAccount→ | ReqInfo.VMUserId |
vmUserPassword | VmUserPassword→ | ReqInfo.VMUserPasswd |
description | Description | (no Description) |
Resp from Spider [struct = JSON] |
TbVmInfo struct | TbVmInfo JSON | ||
---|---|---|---|---|
[Whole struct]→ | CspViewVmDetail | cspViewVmDetail | ||
IId | ||||
(no ConnectionName) | ||||
VMSpecName | ||||
ImageIId | ||||
SecurityGroupIIds | ||||
VpcIID | ||||
SubnetIID | ||||
KeyPairIId | ||||
VMUserId→ | VmUserAccount | vmUserAccount | ||
VMUserPasswd→ | VmUserPassword | vmUserPassword | ||
StartTime | ||||
Region→ | Region | region | ||
NetworkInterface | ||||
PublicIP→ | PublicIP | publicIP | ||
PublicDNS→ | PublicDNS | publicDNS | ||
PrivateIP→ | PrivateIP | privateIP | ||
PrivateDNS→ | PrivateDNS | privateDNS | ||
VMBootDisk→ | VMBootDisk | vmBootDisk | ||
VMBlockDisk→ | VMBlockDisk | vmBlockDisk | ||
KeyValueList | ||||
(no Description) |
- Design
- Features & Usage
- Install & Start Guide
- User Interface
- Developer Guide
- Test Reports