How to set tags in usage records #10607
-
Hey team! We started using the SharedFile System and from the usage point of view it's just 1 vm and 2 disks, however we would like to differentiate that specific use case, is it possible we can set tags in the usage records json response, field "tags": []. If so, where can we set it? we already created tags for the resource bit it's not there as you can see in this example { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, that's a possible to differentiate it currently. You can set resource tags on the shared filesystem VM and/or its volumes and check them on the Another option would be to call other APIs to check if the VM or the volume (specified by Ideally, though, CloudStack should be extended to add a new usage type for shared filesystem resources.
Via the UI, you can configure resource tags at the bottom of the VM/the volume's info card. Via the API, you can configure them through the Resource tags associated with a VM will be returned in the running/allocated VM usage records of that VM, and resource tags associated with a volume will be returned in the volume usage records of that volume.
Are you passing |
Beta Was this translation helpful? Give feedback.
Yes, that's a possible to differentiate it currently. You can set resource tags on the shared filesystem VM and/or its volumes and check them on the
listUsageRecords
response. However, keep in mind that if users have access to CloudStack, they can edit and remove these tags as long as they have permission to use thecreateTags
anddeleteTags
APIs.Another option would be to call other APIs to check if the VM or the volume (specified by
usageid
) is associated with a shared filesystem resource.Ideally, though, CloudStack should be extended to add a new usage type for s…