Overview
Error Handling

Methods

API Documentation (API Version bleed)

Migration/Account/

DESCRIPTION

Methods to interact with the hosting account level data for a migration.

create

URL:

https://api.liquidweb.com/bleed/Migration/Account/create

Description:

Create a migration account.

Parameters:

ParameterTypeNotes
current_lw_accountA boolean value (0 or 1).
hosting_companyA string of text, containing no newlines or other control characters.* Required
migration_idA valid id number (a positive integer).* Required
nameA string of text, containing no newlines or other control characters.
passwordA string permitting tabs, carriage returns and newlines
usernameA string of text, containing no newlines or other control characters.

Returns:

FieldTypeNotes
current_lw_accountA boolean value (0 or 1).* Optional
hosting_companyA string of text, containing no newlines or other control characters.
idA valid id number (a positive integer).
migration_idA valid id number (a positive integer).
nameA string of text, containing no newlines or other control characters.* Optional
passwordEither: a boolean value (0 or 1).; or a string permitting tabs, carriage returns and newlines* Optional
touched_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
usernameA string of text, containing no newlines or other control characters.* Optional

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

delete

URL:

https://api.liquidweb.com/bleed/Migration/Account/delete

Description:

Delete an existing migration server

Parameters:

ParameterTypeNotes
idA valid id number (a positive integer).* Required

Returns:

FieldType
deletedAn associative array containing the fields:
 
current_lw_accountA boolean value (0 or 1).* Optional
hosting_companyA string of text, containing no newlines or other control characters.
idA valid id number (a positive integer).
migration_idA valid id number (a positive integer).
nameA string of text, containing no newlines or other control characters.* Optional
passwordEither: a boolean value (0 or 1).; or a string permitting tabs, carriage returns and newlines* Optional
touched_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
usernameA string of text, containing no newlines or other control characters.* Optional

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

details

URL:

https://api.liquidweb.com/bleed/Migration/Account/details

Description:

Returns the details for a specific migration server

Parameters:

ParameterTypeNotes
alsowithAn array of The value: 'servers'
idA valid id number (a positive integer).* Required

Returns:

FieldTypeNotes
current_lw_accountA boolean value (0 or 1).* Optional
hosting_companyA string of text, containing no newlines or other control characters.
idA valid id number (a positive integer).
migration_idA valid id number (a positive integer).
nameA string of text, containing no newlines or other control characters.* Optional
passwordEither: a boolean value (0 or 1).; or a string permitting tabs, carriage returns and newlines* Optional
touched_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
usernameA string of text, containing no newlines or other control characters.* Optional

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

list

URL:

https://api.liquidweb.com/bleed/Migration/Account/list

Description:

Return a list of migration servers.

Parameters:

ParameterTypeNotes
hosting_companyA string of text, containing no newlines or other control characters.
idA valid id number (a positive integer).
migration_idA valid id number (a positive integer).
nameA string of text, containing no newlines or other control characters.
order_byAn associative array containing the fields:
 
fieldOne of: 'access', 'hostname', 'id', 'migration_id', 'type'* Optional
  • Defaults to: migration_id
sortOne of: 'asc', 'desc'* Optional
  • Defaults to: desc
page_numA positive integer value (i.e. 1 and up).* Optional
  • Defaults to: 1
page_sizeA positive integer value (i.e. 1 and up).* Optional
  • Defaults to: 25
usernameA string of text, containing no newlines or other control characters.

Returns:

FieldType
item_countA non-negative integer value (i.e. 0 and up).
item_totalA non-negative integer value (i.e. 0 and up).
itemsAn array of associative arrays containing
 
current_lw_accountA boolean value (0 or 1).* Optional
hosting_companyA string of text, containing no newlines or other control characters.
idA valid id number (a positive integer).
migration_idA valid id number (a positive integer).
nameA string of text, containing no newlines or other control characters.* Optional
passwordEither: a boolean value (0 or 1).; or a string permitting tabs, carriage returns and newlines* Optional
touched_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
usernameA string of text, containing no newlines or other control characters.* Optional
page_numA positive integer value (i.e. 1 and up).
page_sizeA positive integer value (i.e. 1 and up).
page_totalA positive integer value (i.e. 1 and up).

Possible Errors:

Refer to the Error Handling documentation for the list of exception types

update

URL:

https://api.liquidweb.com/bleed/Migration/Account/update

Description:

Update an existing migration server.

Parameters:

ParameterTypeNotes
current_lw_accountA boolean value (0 or 1).
hosting_companyA string of text, containing no newlines or other control characters.
idA valid id number (a positive integer).* Required
nameA string of text, containing no newlines or other control characters.
passwordA string permitting tabs, carriage returns and newlines
usernameA string of text, containing no newlines or other control characters.

Returns:

FieldTypeNotes
current_lw_accountA boolean value (0 or 1).* Optional
hosting_companyA string of text, containing no newlines or other control characters.
idA valid id number (a positive integer).
migration_idA valid id number (a positive integer).
nameA string of text, containing no newlines or other control characters.* Optional
passwordEither: a boolean value (0 or 1).; or a string permitting tabs, carriage returns and newlines* Optional
touched_dateA valid date and time in YYYY-MM-DD HH:MM:SS format.
usernameA string of text, containing no newlines or other control characters.* Optional

Possible Errors:

Refer to the Error Handling documentation for the list of exception types