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 Manager, check out the Setting up vRack Using the OVHcloud Manager section of our How to Connect a Dedicated Server to vRack article.
Prerequisites
Topics
- Setting up vRack Using the OVHcloud API
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. The following articles will assist you with this depending on your operating system.
- How to Connect Ubuntu 16.04 to vRack
- How to Connect Ubuntu 18.04 to vRack
- How to Connect CentOS 7 to vRack
- How to Connect Windows Server 2016 to vRack
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.