C# Класс OpenStack.Compute.v2_1.ServerCreateDefinition

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Описание методов

ConfigureBootFromNewVolume() публичный Метод

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].
Результат void

ConfigureBootFromNewVolume() публичный Метод

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].
Результат void

ConfigureBootFromVolume() публичный Метод

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].
Результат void

LoadUserDataFromFile() публичный Метод

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.
Результат void

ServerCreateDefinition() публичный Метод

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.
Результат System