ovh / terraform-provider-ovh

Terraform OVH provider
https://registry.terraform.io/providers/ovh/ovh/latest/docs
Mozilla Public License 2.0
182 stars 136 forks source link

[DOCS] Import a vRack #618

Closed vparpoil closed 4 months ago

vparpoil commented 5 months ago

Following this issue https://github.com/ovh/terraform-provider-ovh/issues/512, this PR https://github.com/ovh/terraform-provider-ovh/pull/513 has added documentation on how to import a vrack. However, it's really complicated in real life to find the vrack order_id. My account has about 1 000 entries in the orders page (https://www.ovh.com/manager/#/dedicated/billing/orders/orders)

Please provide a more straightforward way to import a vrack or to find the associated order_id

[Edit] later on the documentation : when importing the link between a vrack and a cloud project, you need to provide the attach_id, which is not documented at all, and not available using Ovh API.

amstuta commented 4 months ago

@vparpoil thanks for opening this issue, we'll check shortly what can be done to simplify the import of a vrack and its link.

vparpoil commented 4 months ago

I finally found the order id somewhere. Using openstack Ids may be an idea ? They are easily accessible using openstack CLI

amstuta commented 4 months ago

I still think what you said is valid, we should be able to import a vrack using its ID instead of it's orderID.

For the attachment, we should be able to retrieve everything using only OVH API and not rely on the openstack cli, we'll check what can be done.

amstuta commented 4 months ago

Closing this issue, in the next release: