You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
req.Password=flags.String("password", "", "Required. Password of the uhost user(root/ubuntu)")
478
+
flags.StringVar(&password, "password", "", "Optional. Password of the uhost user(root/ubuntu)")
479
+
flags.StringVar(&keyPairId, "key-pair-id", "", "Optional. Resource ID of ssh key pair. See 'ucloud api --Action DescribeUHostKeyPairs' Where both password and key-pair-id are set, the key-pair-id is ignored")
450
480
req.ImageId=flags.String("image-id", "", "Required. The ID of image. see 'ucloud image list'")
451
481
flags.BoolVar(&async, "async", false, "Optional. Do not wait for the long-running operation to finish.")
452
482
flags.IntVar(&count, "count", 1, "Optional. Number of uhost to create.")
req.Disks[1].Type=flags.String("data-disk-type", "CLOUD_SSD", "Optional. Accept values: 'LOCAL_NORMAL','LOCAL_SSD','CLOUD_NORMAL',CLOUD_SSD','CLOUD_RSSD','EXCLUSIVE_LOCAL_DISK' and 'NONE'. 'LOCAL_NORMAL', Ordinary local disk; 'CLOUD_NORMAL', Ordinary cloud disk; 'LOCAL_SSD',local ssd disk; 'CLOUD_SSD',cloud ssd disk; 'CLOUD_RSSD', coud rssd disk; 'EXCLUSIVE_LOCAL_DISK',big data. The disk only supports a limited combination. 'NONE', create uhost without data disk. More details https://docs.ucloud.cn/api/uhost-api/disk_type")
481
511
req.Disks[1].Size=flags.Int("data-disk-size-gb", 20, "Optional. Disk size. Unit GB")
482
512
req.Disks[1].BackupType=flags.String("data-disk-backup-type", "NONE", "Optional. Enumeration value, 'NONE' or 'DATAARK'. DataArk supports real-time backup, which can restore the disk back to any moment within the last 12 hours. (Normal Local Disk and Normal Cloud Disk Only)")
483
-
req.SecurityGroupId=flags.String("firewall-id", "", "Optional. Firewall Id, default: Web recommended firewall. see 'ucloud firewall list'.")
513
+
flags.StringVar(&firewallId, "firewall-id", "", "Optional. Firewall Id, default: Web recommended firewall. see 'ucloud firewall list'.")
514
+
flags.StringSliceVar(&secGroupIds, "security-group-id", nil, "Optional. Security Group Id. Before using security group function, please confirm the account has such permission. When both firewall-id and security-group-id are set, the security-group-id will be ignored")
484
515
req.Tag=flags.String("group", "Default", "Optional. Business group")
485
516
req.IsolationGroup=flags.String("isolation-group", "", "Optional. Resource ID of isolation group. see 'ucloud uhost isolation-group list")
486
517
req.GpuType=flags.String("gpu-type", "", "Optional. The type of GPU instance. Required if defined the `machine-type` as 'G'. Accept values: 'K80', 'P40', 'V100'. Forward to https://docs.ucloud.cn/api/uhost-api/uhost_type for details.")
uhostID=flags.String("uhost-id", "", "Required. Resource ID of the uhost to clone from")
1301
-
req.Password=flags.String("password", "", "Required. Password of the uhost user(root/ubuntu)")
1350
+
flags.StringVar(&password, "password", "", "Optional. Password of the uhost user(root/ubuntu)")
1351
+
flags.StringVar(&keyPairId, "key-pair-id", "", "Optional. Resource ID of ssh key pair. See 'ucloud api --Action DescribeUHostKeyPairs' Where both password and key-pair-id are set, the key-pair-id is ignored")
1352
+
1302
1353
req.Name=flags.String("name", "", "Optional. Name of the uhost to clone")
req.UHostId=flags.String("uhost-id", "", "Required. Resource ID of the uhost to reinstall operating system")
1518
-
req.Password=flags.String("password", "", "Required. Password of the administrator")
1580
+
flags.StringVar(&password, "password", "", "Optional. Password of the uhost user(root/ubuntu)")
1581
+
flags.StringVar(&keyPairId, "key-pair-id", "", "Optional. Resource ID of ssh key pair. See 'ucloud api --Action DescribeUHostKeyPairs' Where both password and key-pair-id are set, the key-pair-id is ignored")
1519
1582
req.ImageId=flags.String("image-id", "", "Optional. Resource ID the image to install. See 'ucloud image list'. Default is original image of the uhost")
0 commit comments