Changeset 81398 in vbox
- Timestamp:
- Oct 21, 2019 11:18:35 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 134111
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/SDKRef.xml
r81093 r81398 2655 2655 <listitem> 2656 2656 <para>VirtualSystemDescriptionType::CloudPublicIP - Whether the instance will have a public IP or not.</para> 2657 </listitem> 2658 <listitem> 2659 <para>VirtualSystemDescriptionType::CloudPublicSSHKey - Public SSH key which is used to connect to an instance via SSH</para> 2657 2660 </listitem> 2658 2661 </itemizedlist> -
trunk/doc/manual/en_US/man_VBoxManage-cloudinstance.xml
r81093 r81398 49 49 <arg rep="norepeat">--publicip=<replaceable>true/false</replaceable></arg> 50 50 <arg rep="norepeat">--privateip=<replaceable>IP address</replaceable></arg> 51 <arg rep="norepeat">--public-ssh-key=<replaceable>key string</replaceable></arg> 51 52 <arg rep="norepeat">--launch-mode=<replaceable>NATIVE/EMULATED/PARAVIRTUALIZED</replaceable></arg> 52 53 </cmdsynopsis> … … 147 148 </varlistentry> 148 149 <varlistentry> 150 <term><option>--public-ssh-key</option></term><listitem><para>Public SSH key used to connect to the instance via SSH</para></listitem> 151 </varlistentry> 152 <varlistentry> 149 153 <term><option>--launch-mode</option></term><listitem><para>The most known values here may be EMULATED, NATIVE, PARAVIRTUALIZED. </para></listitem> 150 154 </varlistentry> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp
r81119 r81398 480 480 { "--privateip", 'P', RTGETOPT_REQ_STRING }, 481 481 { "--launch", 'l', RTGETOPT_REQ_STRING }, 482 { "--public-ssh-key", 'k', RTGETOPT_REQ_STRING }, 482 483 }; 483 484 RTGETOPTSTATE GetState; … … 496 497 ComPtr<IVirtualSystemDescription> pVSD = virtualSystemDescriptions[0]; 497 498 498 Utf8Str strDisplayName, strImageId, strBootVolumeId ;499 Utf8Str strDisplayName, strImageId, strBootVolumeId, strPublicSSHKey; 499 500 int c; 500 501 while ((c = RTGetOpt(&GetState, &ValueUnion)) != 0) … … 565 566 break; 566 567 } 568 case 'k': 569 strPublicSSHKey = ValueUnion.psz; 570 pVSD->AddDescription(VirtualSystemDescriptionType_CloudPublicSSHKey, 571 Bstr(ValueUnion.psz).raw(), 572 Bstr(ValueUnion.psz).raw()); 573 break; 567 574 case VINF_GETOPT_NOT_OPTION: 568 575 return errorUnknownSubcommand(ValueUnion.psz); … … 571 578 } 572 579 } 580 581 if (strPublicSSHKey.isEmpty()) 582 RTPrintf("Warning!!! Public SSH key doesn't present in the passed arguments...\n"); 573 583 574 584 if (strImageId.isNotEmpty() && strBootVolumeId.isNotEmpty()) -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r81299 r81398 4037 4037 <enum 4038 4038 name="VirtualSystemDescriptionType" 4039 uuid=" eca6989c-1de0-456b-8c4f-49c609791156"4039 uuid="29c2299c-2c40-44b5-9775-2927f20763f3" 4040 4040 > 4041 4041 <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of … … 4103 4103 <const name="CloudOCIVCNCompartment" value="46" /> 4104 4104 <const name="CloudOCISubnetCompartment" value="47" /> 4105 <const name="CloudPublicSSHKey" value="48" /> 4105 4106 </enum> 4106 4107
Note:
See TracChangeset
for help on using the changeset viewer.