Add Site For Volume Replication

This functionality is used to associate a sSite with a vVolume where, that volumeVolume can be replicated. UserUser has to specify the physical path where the volumeVolume will be replicated at the siteSite.

 

Usage in Visual C++/Visual Basic Application

Usage in Java Application

Error

 

Usage in Visual C++/Visual Basic Application

Prototype

int WINAPI NGISAddSiteForVolReplication (  LPTSTR cabinetName, short VolumeId,

                                                short ReplicaSite, LPTSTR ReplicaPath

                                             )

 

Input Parameters description

Name

Description

Valid Values

Type Of Parameter

cabinetName

Name of the Image cCabinet to which the User wants to connect.

NOT NULL

Input Parameter

VolumeId

Index of the volumeVolume to be replicated.

Integer > 0

Input Parameter

ReplicaSite

Index of the siteSite where the volumeVolume is to be replicated.

Integer > 0

Input Parameter

ReplicaPath

Label where replication of the volumeVolume is to be done. Specified as SMS:Label.

Length of path <= 35

Input Parameter

 

Output Parameters

This method return 1 if the call is successful, otherwise, it returns an error code.

 

 

Usage in Java Application

 

Prototype

public int JPISAddSiteForVolReplication ( String cabinetName, short VolumeId,

                                          short ReplicaSite, String ReplicatePath

                                     )

 

Input Parameters description

Name

Description

Valid Values

Type Of Parameter

cabinetName

Name of the Image cCabinet to which the User wants to connect.

NOT NULL

Input Parameter

VolumeId

Index of the volumeVolume to be replicated.

Integer > 0

Input Parameter

ReplicaSite

Index of the siteSite where the volumeVolume is to be replicated.

Integer > 0

Input Parameter

ReplicatePath

Path of the siteSite where the volumeVolume will be replicated. Format is SMS:Label.

Length of path <= 35

Input Parameter

 

Output Parameters

This method return 1 if the call is successful, otherwise, it returns an error code.