POST Project/AddMigration

Add a single migration to a project

Request Information

Header Parameters

NameDescriptionAdditional information
X-OVH-Authorization
Basic authorization (Basic Id:Password) in a base64form header

None.

Parameters

NameDescriptionAdditional information
migrationInfo
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "SourceMail": "sample string 1",
  "SourcePassword": "sample string 2",
  "AdminSourceMail": "sample string 3",
  "DestinationMail": "sample string 4",
  "DestinationPassword": "sample string 5",
  "AdminDestinationMail": "sample string 6"
}

application/xml, text/xml

Sample:
<SimpleMigrationPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OMM_API.Models.Project">
  <AdminDestinationMail>sample string 6</AdminDestinationMail>
  <AdminSourceMail>sample string 3</AdminSourceMail>
  <DestinationMail>sample string 4</DestinationMail>
  <DestinationPassword>sample string 5</DestinationPassword>
  <SourceMail>sample string 1</SourceMail>
  <SourcePassword>sample string 2</SourcePassword>
</SimpleMigrationPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "NewMigrationsIds": [
    1,
    2,
    3
  ],
  "Errors": [
    "sample string 1",
    "sample string 2",
    "sample string 3"
  ]
}

application/xml, text/xml

Sample:
<CreateMigrationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OMM_API.Models.Project">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
    <d2p1:string>sample string 3</d2p1:string>
  </Errors>
  <NewMigrationsIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
    <d2p1:int>3</d2p1:int>
  </NewMigrationsIds>
</CreateMigrationResult>