Class XenClient.StorageOperations
Implements the XenClient virtual machine template operations.
Namespace: Neon.XenServer
Assembly: Neon.XenServer.dll
Syntax
public class XenClient.StorageOperations
Methods
Find(string, string, bool)
Finds a specific storage repository by name or unique ID.
Declaration
public XenStorageRepository Find(string name = null, string uuid = null, bool mustExist = false)
Parameters
Type | Name | Description |
---|---|---|
string | name | Specifies the target name. |
string | uuid | Specifies the target unique ID. |
bool | mustExist | Optionally specifies that the request repository must exist. This defaults to |
Returns
Type | Description |
---|---|
XenStorageRepository | The named item or |
Remarks
note
One of name
or uuid
must be specified.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if neither |
KeyNotFoundException | Thrown if |
GetTargetStorageRepository(string)
Returns the XenServer storage repository where the image template and virtual machine disk images will be stored.
Declaration
public XenStorageRepository GetTargetStorageRepository(string nameOrUuid)
Parameters
Type | Name | Description |
---|---|---|
string | nameOrUuid | The storage repository name or UUID. |
Returns
Type | Description |
---|---|
XenStorageRepository | The local storage repository. |
Exceptions
Type | Condition |
---|---|
XenException | Thrown if the operation failed. |
List()
Lists the XenServer storage repositories.
Declaration
public List<XenStorageRepository> List()
Returns
Type | Description |
---|---|
List<XenStorageRepository> | The list of storage repositories. |