API
4.17.2
N/A
Enhance listTrafficTypes or add a new API (getTrafficType?) to return all fields used in addTrafficType.
Currently, there is no API to return fields for terraform to manage this resource. The various networks labels (eg. kvmnetworklabel) are inaccessible.
Thanks for opening your first issue here! Be sure to follow the issue template!
I do see network labels set but they aren't documented in ListApis.
{ "listtraffictypesresponse": { "count": 2, "traffictype": [ { "id": "0ffa5dd7-12a1-4ac0-b37f-e85a3b90ac9a", "traffictype": "Management", "physicalnetworkid": "05fcfaee-1504-4f8e-b77a-34669e78372a", "kvmnetworklabel": "123" },
@poddm to be clear on this; you want the request parameters from https://cloudstack.apache.org/api/apidocs-4.18/apis/addTrafficType.html to be added to the respons parameters of listTrafficTypes ?
Yup -
To make it clear, the list API current returns this:
> list traffictypes physicalnetworkid=6a20338e-f16f-4333-a96f-2d110888d016 { "count": 2, "traffictype": [ { "id": "8d785d45-c198-45b7-a857-1bddccb6e3bf", "kvmnetworklabel": "cloudbr0", "physicalnetworkid": "6a20338e-f16f-4333-a96f-2d110888d016", "traffictype": "Guest" }, { "id": "9f6bf8c0-f834-46e6-9edf-bdeb22e00629", "kvmnetworklabel": "cloudbr0", "physicalnetworkid": "6a20338e-f16f-4333-a96f-2d110888d016", "traffictype": "Public" } ] }
The issue/task is to add the following fields in response of the above API (that are request parameters of the add API https://cloudstack.apache.org/api/apidocs-4.18/apis/addTrafficType.html)
If the following are returned already when specified, then they may be skipped:
Ultimately, we would like to manage more of cloudstack with terraform. The mismatch between addTrafficType and listTrafficType is preventing me from enhancing the terraform provider.
Fixes:#7837: Add isolationMethods and vlan to TrafficTypeResponse (#8151
fixed in #8151
Merge branch 'main' into gk/develocityIntegration
Fixes:apache#7837: Add isolationMethods and vlan to TrafficTypeRespon…
Activity
boring-cyborg commented on Aug 9, 2023
Thanks for opening your first issue here! Be sure to follow the issue template!
poddm commented on Aug 9, 2023
I do see network labels set but they aren't documented in ListApis.
{ "listtraffictypesresponse": { "count": 2, "traffictype": [ { "id": "0ffa5dd7-12a1-4ac0-b37f-e85a3b90ac9a", "traffictype": "Management", "physicalnetworkid": "05fcfaee-1504-4f8e-b77a-34669e78372a", "kvmnetworklabel": "123" },DaanHoogland commented on Sep 22, 2023
@poddm to be clear on this; you want the request parameters from https://cloudstack.apache.org/api/apidocs-4.18/apis/addTrafficType.html to be added to the respons parameters of listTrafficTypes ?
poddm commented on Oct 6, 2023
Yup -
yadvr commented on Oct 17, 2023
To make it clear, the list API current returns this:
> list traffictypes physicalnetworkid=6a20338e-f16f-4333-a96f-2d110888d016 { "count": 2, "traffictype": [ { "id": "8d785d45-c198-45b7-a857-1bddccb6e3bf", "kvmnetworklabel": "cloudbr0", "physicalnetworkid": "6a20338e-f16f-4333-a96f-2d110888d016", "traffictype": "Guest" }, { "id": "9f6bf8c0-f834-46e6-9edf-bdeb22e00629", "kvmnetworklabel": "cloudbr0", "physicalnetworkid": "6a20338e-f16f-4333-a96f-2d110888d016", "traffictype": "Public" } ] }The issue/task is to add the following fields in response of the above API (that are request parameters of the add API https://cloudstack.apache.org/api/apidocs-4.18/apis/addTrafficType.html)
If the following are returned already when specified, then they may be skipped:
poddm commented on Oct 17, 2023
Ultimately, we would like to manage more of cloudstack with terraform. The mismatch between addTrafficType and listTrafficType is preventing me from enhancing the terraform provider.
21 remaining items
Fixes:#7837: Add isolationMethods and vlan to TrafficTypeResponse (#8151
DaanHoogland commented on Nov 12, 2025
fixed in #8151
Merge branch 'main' into gk/develocityIntegration
Fixes:apache#7837: Add isolationMethods and vlan to TrafficTypeRespon…
Fixes:apache#7837: Add isolationMethods and vlan to TrafficTypeRespon…