In this article, we will cover how to attach a Dedicated Server to your vRack utilizing the OVHcloud API. For information on how to do this within the OVHcloud Control Panel, check out our Configuring the vRack on Your Dedicated Servers article.
Requirements
Instructions
Setting up vRack Using the OVHcloud API
To begin, log in to the OVHcloud API. Then, scroll down to the /vrack section and select it to expand all of the vRack options.
First, retrieve the vRack ID by selecting the GET /vrack option and clicking the Execute button. In this example, the vRack ID is: pn-2000021
.
Then, select the GET /vrack/{serviceName}/allowedServices option, type in the vRack ID that was previously retrieved, and click the Execute button.
The output lists the Dedicated Server(s) that is(are) available to be added to vRack. Using the POST /vrack/{serviceName}/dedicatedServerInterface option, enter the vRack ID and the dedicatedServerInterface
string obtained from the previous command, and click the Execute button.
Note: Repeat the previous action for each Dedicated Server you wish to add to vRack.
To verify that the server was added to vRack, select the GET /vrack/{serviceName}/dedicatedServerInterfaceDetails option, enter the vRack ID, and click the Execute button.
Now that the Dedicated Server is added to vRack, you are able to set up the private network adapters to network your servers together. This article will assist you with this, depending on your operating system.
Conclusion
Having read this article, you should be able to utilize the OVHcloud API to connect your Dedicated Servers to vRack. Utilizing vRack for your private networking purposes is crucial for the security and speed of your services.