Node Balance create API

Dear Linode members,

I am writing script and using linode API to create linode servers & Node balancers. I am attaching Linode servers(nodes) with the Node balancers. My rest of workflow is dependent of given name convention.

My question is -

I am trying to create a NodeBalancer through the api i,e. nodebalancer.create. I passed DatacenterID & Label parameters.

//php code to create node balancer through api

$linode = new ServicesLinode($apikey);

$params = array('DatacenterID'=> '9', 'Label'=>'PERF-NB');

$a = $linode->nodebalancer_create($params);

The NodeBalancer is being created under given datacenterid i,.e Singapore but Label is still 'balancer21858'. Label is not taking from given parameter. Even I tried nodebalancer_update with custom Label 'Label'=>'PERF-NB' but also it is not updating the label name.

//php code

$updateparams = array('NodeBalancerID' => $nodebalancerid, 'Label'=>'PERF-NB' );

$a = $linode->nodebalancer_update($updateparams);

Can any one please guide where I am doing wrong?

Thanks in advance.

1 Reply

Everything in your create code appears to be correct. I would recommend reaching out to our support team directly to inquire about this.

Same goes for your Update code as well.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct