Austin.Linode.LinodeClient.NodeBalancer_Node_Create C# (CSharp) Method

NodeBalancer_Node_Create() public method

possible errors: NOTFOUND,VALIDATION
public NodeBalancer_Node_Create ( string Address, int ConfigID, string Label, string Mode = null, int Weight = null ) : void
Address string The address:port combination used to communicate with this Node
ConfigID int The parent ConfigID to attach this Node to
Label string This backend Node's label
Mode string The connections mode for this node. One of 'accept', 'reject', or 'drain'
Weight int Load balancing weight, 1-255. Higher means more connections.
return void
        public void NodeBalancer_Node_Create(
                string Address,
                int ConfigID,
                string Label,
                string Mode = null,
                int? Weight = null)
        {
            var myParams = new Dictionary<string, string>();
            myParams.Add("Address", Address);
            myParams.Add("ConfigID", ConfigID.ToString(CultureInfo.InvariantCulture));
            myParams.Add("Label", Label);
            if (Mode != null)
                myParams.Add("Mode", Mode);
            if (Weight != null)
                myParams.Add("Weight", Weight.Value.ToString(CultureInfo.InvariantCulture));
            GetResponse<object>("nodebalancer.node.create", myParams);
        }