Austin.Linode.LinodeClient.Linode_Clone C# (CSharp) Метод

Linode_Clone() публичный Метод

Creates a new Linode, assigns you full privileges, and then clones the specified LinodeID to the new Linode. There is a limit of 5 active clone operations per source Linode. It is recommended that the source Linode be powered down during the clone.
possible errors: NOACCESS,NOTFOUND,CCFAILED,VALIDATION,LINODELIMITER,ACCOUNTLIMIT
public Linode_Clone ( int DatacenterID, int LinodeID, int PlanID, int PaymentTerm = null ) : Austin.Linode.LinodeIdResponse
DatacenterID int The DatacenterID from avail.datacenters() where you wish to place this new Linode
LinodeID int The LinodeID that you want cloned
PlanID int The desired PlanID available from avail.LinodePlans()
PaymentTerm int Subscription term in months for prepaid customers. One of: 1, 12, or 24
Результат Austin.Linode.LinodeIdResponse
        public Austin.Linode.LinodeIdResponse Linode_Clone(
                int DatacenterID,
                int LinodeID,
                int PlanID,
                int? PaymentTerm = null)
        {
            var myParams = new Dictionary<string, string>();
            myParams.Add("DatacenterID", DatacenterID.ToString(CultureInfo.InvariantCulture));
            myParams.Add("LinodeID", LinodeID.ToString(CultureInfo.InvariantCulture));
            myParams.Add("PlanID", PlanID.ToString(CultureInfo.InvariantCulture));
            if (PaymentTerm != null)
                myParams.Add("PaymentTerm", PaymentTerm.Value.ToString(CultureInfo.InvariantCulture));
            return GetResponse<Austin.Linode.LinodeIdResponse>("linode.clone", myParams);
        }