Skip to content

Transfer Node to Project / Transfer image to another project

POST
/api/v1/resource-transfer/
curl --request POST \
--url 'https://api.e2enetworks.com/myaccount/api/v1/resource-transfer/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"current_project_id": 12345,
"target_project_id": 12345,
"resource_type": "node",
"resource_id": 12345
}'

Transfers a node, and the reserved IPs, volumes, and saved images attached to it, from one project to another project owned by the same customer. This is a shared endpoint: resource_type also accepts image, reserveip, blockstorage, dbaas, and parameter_group, each transferring a different resource kind. The node is refused only in these states: Terminating, Creating, Failed, Suspended, Powering off, Powering on, Saving, Reinstalling, or Undeploying; every other state, including Powered off and Running, is allowed.

Transfer an image from one project to another within the same account.

Transfer Node to Project and Transfer image to another project share this request; the body you send decides which one runs.

project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used for authenticating the request

Example

<API_KEY>
location
required
string

The region of the node being transferred.

Example

<LOCATION>
Media typeapplication/json
One of:
object
current_project_id
required

ID of the project the node currently belongs to.

integer

Example

12345
target_project_id
required

ID of the destination project. Must belong to the same customer as the source project.

integer

Example

12345
resource_type
required

Resource type identifier. Always node for this endpoint.

string
Allowed values: node

Example

node
resource_id
required

ID of the node being transferred.

integer

Example

12345

Successful response

Media typeapplication/json
object
code

HTTP status code of the transfer operation.

integer
data

Identifier of the transferred resource. May be an empty string when the platform does not return an ID for transfer operations.

string
errors
object
message

Status message indicating the result of the transfer.

string

Example

{
"code": 200,
"data": "",
"message": "Resource is transferred successfully."
}