I want to extend an IP range in one of the network profiles. This does not seem to be possible using the GUI, since the edit option is greyed out:
The network range extension can be done using REST. In the first step, I have built a small vRO workflow that would first create a new token which is passed to the next step, where an API call takes place, to list all network profiles. This is documented here:
Now I have stumpled upon a few problems:
// Add authorization header
request.setHeader("Authorization:Bearer ", token);
Each time I run it though, I get an error 401. Is there another way to pass the token in a workflow? I could try to build a rest client with var restClient = cafeHost.createRestClient(endpoint), but what would be the endpoint here?
Is the "edit network range by api" approach valid anyway? I fear there is a risk, when executing the PUT call to edit the range, the already assigned IPs will become unallocated.