get_snapshot_list API 関数を使用すると、ホストから VSS スナップショットのリストを取得できます。
引数
get_snapshot_list API 関数には、以下のテーブルに記述されている引数が含まれています。
名前 |
タイプ |
説明 |
---|---|---|
session_id |
uint |
create_session API をコールすることで返されたセッション ID。 |
host_name |
string |
エンジンのホスト名 |
ip_string |
string |
host_name の IP アドレス。 |
host_port |
ushort |
エンジンのポート番号。 通常、ポート番号は 25000 です。 |
snapshot_list |
out string |
ボリューム スナップショット リスト。 |
why_not_reason |
out string |
この API が失敗する時に、その失敗の理由が含まれます。 |
戻り値
戻り値のタイプはブールです。 戻り値が true の場合、API は正常に完了しています。 戻り値が false の場合、API は正常に完了しませんでした。 戻り値が false の場合は、メッセージを確認して API が失敗した理由を特定してください。
例
public bool get_snapshot_list_example() { try { string host_name = "155.35.66.142"; string ip_string = "155.35.66.142"; ushort host_port = 25000; string snapshot_list = ""; string why_not_reason = ""; return get_mng().get_snapshot_list(session_id, host_name, ip_string, host_port, out snapshot_list, out why_not_reason); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message); } return false; }
Copyright © 2015 Arcserve.
All rights reserved.
|
|