Click or drag to resize
ServerBaseRebuild Method
Initiates an asynchronous rebuild of the server.

Namespace: net.openstack.Core.Domain
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public bool Rebuild(
	string name,
	string imageId,
	string flavor,
	string adminPassword,
	IPAddress accessIPv4 = null,
	IPAddress accessIPv6 = null,
	Metadata metadata = null,
	DiskConfiguration diskConfig = null,
	Personality personality = null
)

Parameters

name
Type: SystemString
The new name for the server. If the value is , the server name is not changed.
imageId
Type: SystemString
The image to rebuild the server from. This is specified as an image ID (see Id) or a full URL.
flavor
Type: SystemString
The new flavor for server. This is obtained from Id.
adminPassword
Type: SystemString
The new admin password for the server.
accessIPv4 (Optional)
Type: System.NetIPAddress
The new IP v4 address for the server, or None to remove the configured IP v4 address for the server. If the value is , the server's IP v4 address is not updated.
accessIPv6 (Optional)
Type: System.NetIPAddress
The new IP v6 address for the server, or None to remove the configured IP v6 address for the server. If the value is , the server's IP v6 address is not updated.
metadata (Optional)
Type: net.openstack.Core.DomainMetadata
The list of metadata to associate with the server. If the value is , the metadata associated with the server is not changed during the rebuild operation.
diskConfig (Optional)
Type: net.openstack.Core.DomainDiskConfiguration
The disk configuration. If the value is , the default configuration for the specified image is used.
personality (Optional)
Type: net.openstack.Core.DomainPersonality
The path and contents of a file to inject in the target file system during the rebuild operation. If the value is , no file is injected.

Return Value

Type: Boolean
if the rebuild operation was successfully initiated; otherwise .
Exceptions
ExceptionCondition
ArgumentNullException If imageId is .

-or-

If flavor is .

-or-

If adminPassword is .

ArgumentException If name is empty.

-or-

If flavor is empty.

-or-

If adminPassword is empty.

-or-

If accessIPv4 is not None and the AddressFamily of accessIPv4 is not InterNetwork.

-or-

If accessIPv6 is not None and the AddressFamily of accessIPv6 is not InterNetworkV6.

NotSupportedException If the provider does not support the given diskConfig.
ResponseExceptionIf the REST API request failed.
Remarks
When the method returns, the current instance is updated to reflect the state of the server at the end of the operation.
Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also