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}'import requests
response = requests.post( "https://api.e2enetworks.com/myaccount/api/v1/resource-transfer/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "current_project_id": 12345, "target_project_id": 12345, "resource_type": "node", "resource_id": 12345, },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/resource-transfer/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", apikey: "<API_KEY>", location: "<LOCATION>" });
const response = await fetch(url, { method: "POST", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "current_project_id": 12345, "target_project_id": 12345, "resource_type": "node", "resource_id": 12345 }),});console.log(await response.json());curl --request POST \ --url 'https://api.e2enetworks.com/myaccount/api/v1/resource-transfer/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "current_project_id": 43695, "target_project_id": 46162, "resource_type": "image", "resource_id": "36622"}'import requests
response = requests.post( "https://api.e2enetworks.com/myaccount/api/v1/resource-transfer/", params={"project_id": "<PROJECT_ID>", "location": "<LOCATION>", "apikey": "<API_KEY>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "current_project_id": 43695, "target_project_id": 46162, "resource_type": "image", "resource_id": "36622", },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/resource-transfer/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", location: "<LOCATION>", apikey: "<API_KEY>" });
const response = await fetch(url, { method: "POST", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "current_project_id": 43695, "target_project_id": 46162, "resource_type": "image", "resource_id": "36622" }),});console.log(await response.json());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.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifier of the project to scope the request to. Required integer project ID.
Example
<PROJECT_ID>API key used for authenticating the request
Example
<API_KEY>The region of the node being transferred.
Example
<LOCATION>Request Body
Section titled “Request Body”object
ID of the project the node currently belongs to.
Example
12345ID of the destination project. Must belong to the same customer as the source project.
Example
12345Resource type identifier. Always node for this endpoint.
Example
nodeID of the node being transferred.
Example
12345object
ID of the source project from which the image will be transferred
Example
43695ID of the destination project to which the image will be transferred
Example
46162Type of resource being transferred
Example
imageUnique identifier of the image resource
Example
36622Responses
Section titled “Responses”Successful response
object
HTTP status code of the transfer operation.
Identifier of the transferred resource. May be an empty string when the platform does not return an ID for transfer operations.
object
Status message indicating the result of the transfer.
Example
{ "code": 200, "data": "", "message": "Resource is transferred successfully."}