Feature request: slug in platform
rybakovanton-metta opened this issue · 0 comments
rybakovanton-metta commented
Hello!
Feature request
Provide "platform slug" in data_source_netbox_virtual_machines.go (better)
or make possibility not only filter by name here data_source_netbox_platform.go (worse), but by ID
because you provide platform_id in virtual_machine but as I see it's for nothing
We can't get name or slug for platform, because for data_source_netbox_virtual_machines.go we need to use name that no one knows (it's not provided).
Case
"platform": {
"id": 2,
"url": "/api/dcim/platforms/2/",
"display": "Windows Server 2019 Standard UI",
"name": "Windows Server 2019 Standard UI",
"slug": "win-2019-std-ui"
},
The slug enables the calculation of the complete platform name for this machine.
As example it can be suffix in VM name "srv-nginx" and then - win-2019-std-ui-nginx-latest or maybe role plus suffix
win-2019-std-ui-LB-nginx