C# Class OpenStack.Compute.v2_1.ServerCreateDefinition

Exibir arquivo Open project: ONLYOFFICE/AppServer Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
ConfigureBootFromNewVolume ( Identifier volumeId, int volumeSize, bool deleteVolumeWithServer = false ) : void

Configures the server to boot from a copy of an existing volume.

ConfigureBootFromNewVolume ( int volumeSize, bool deleteVolumeWithServer = false ) : void

Configures the server to boot from a new volume, copied from the base server image.

ConfigureBootFromVolume ( Identifier volumeId, bool deleteVolumeWithServer = false ) : void

Configures the server to boot from an existing volume.

LoadUserDataFromFile ( string path ) : void

Load the UserData from the specified file path.

ServerCreateDefinition ( string name, Identifier imageId, Identifier flavorId ) : System

Initializes a new instance of the ServerCreateDefinition class.

Method Details

ConfigureBootFromNewVolume() public method

Configures the server to boot from a copy of an existing volume.
public ConfigureBootFromNewVolume ( Identifier volumeId, int volumeSize, bool deleteVolumeWithServer = false ) : void
volumeId Identifier The volume identifier.
volumeSize int Size of the volume.
deleteVolumeWithServer bool if set to true [delete volume with server].
return void

ConfigureBootFromNewVolume() public method

Configures the server to boot from a new volume, copied from the base server image.
public ConfigureBootFromNewVolume ( int volumeSize, bool deleteVolumeWithServer = false ) : void
volumeSize int Size of the volume.
deleteVolumeWithServer bool if set to true [delete volume with server].
return void

ConfigureBootFromVolume() public method

Configures the server to boot from an existing volume.
public ConfigureBootFromVolume ( Identifier volumeId, bool deleteVolumeWithServer = false ) : void
volumeId Identifier The volume identifier.
deleteVolumeWithServer bool if set to true [delete volume with server].
return void

LoadUserDataFromFile() public method

Load the UserData from the specified file path.
The specified path is invalid (for example, it is on an unmapped drive). An I/O error occurred while opening the file. This operation is not supported on the current platform.-or- specified a directory.-or- The caller does not have the required permission. The file specified in was not found. The caller does not have the required permission.
public LoadUserDataFromFile ( string path ) : void
path string The user data file path.
return void

ServerCreateDefinition() public method

Initializes a new instance of the ServerCreateDefinition class.
public ServerCreateDefinition ( string name, Identifier imageId, Identifier flavorId ) : System
name string The server name.
imageId Identifier The image identifier.
flavorId Identifier The flavor identifier.
return System