Previous Topic: Managing Credentials: add_credentials_ex()Next Topic: Updating Scenario Properties: update_scenario()


Integrating with Arcserve Backup: add_bab_credentials()

The add_bab_credentials API function lets you add credentials so that you can access Arcserve Backup.

Arguments

The add_bab_credentials API function includes the arguments described in the following table:

Name

Type

Description

session_id

uint

The session ID that was returned by calling the create_session API.

scenario_id

uint

The scenario ID to which you want to add Arcserve credentails.

username

string

The user name.

Example: Administrator

password

string

The password for the user name.

Example: Arcserve

async_id

out ulong

When this API function is called asynchronously, the async_id argument will contain a nonzero value, which allows the function to wait for the operation to complete complete and retrieve the result.

Return Values

The return type is Boolean. When the return value is true, the API completed successfully. When the return value is false, the API did not complete successfully.

Example

public bool add_bab_credentials_example()
        {
            try
            {
                uint scenario_id = _scenario_id;
                string username = "admin";
                string password = "caworld";
                ulong async_id = 0;
                bool res = get_mng().add_bab_credentials(_session_id, scenario_id,username,password,out async_id);
                return res;
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
            return false;
        }