You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Azure Dev Ops to store our network configurations/backups based on the devices name.
I am able to create a custom link that points to the correct path for each device based on the name (ex https://my.dev.azure.com/repository/Config_backups/{{object.name}}.cfg ) and the link works as expected.
I would like to hide the link for devices (like patch panels) if they 1) don't have any configurations stored or 2) have a device role in "Access Switch, Distribution Switch, Router, Core Switch" etc.
I know I can create a custom field with the exact URL, and create an if statement on the link like below, but I would like to keep it dynamic.
I did find a test URL https://dev.azure.com//Items?path=/Config_backups/{{object.name}}.cfg&recursionLevel=0&includeContentMetadata=true&versionDescriptor.versionOptions=0&versionDescriptor.versionType=0&versionDescriptor.version=main&includeContent=true&resolveLfs=true that returns a 404 if it doesn't exist and a 200 if it does.
If a url check is not possible, how can I set the link to only show if the device role is apart of Access Switch, Router, Distribution Switch, etc?
{% if object.cf.secretserver is not none %}
View Passwords in SecretServer
{% endif %}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Howdy,
We are using Azure Dev Ops to store our network configurations/backups based on the devices name.
I am able to create a custom link that points to the correct path for each device based on the name (ex https://my.dev.azure.com/repository/Config_backups/{{object.name}}.cfg ) and the link works as expected.
I would like to hide the link for devices (like patch panels) if they 1) don't have any configurations stored or 2) have a device role in "Access Switch, Distribution Switch, Router, Core Switch" etc.
I know I can create a custom field with the exact URL, and create an if statement on the link like below, but I would like to keep it dynamic.
I did find a test URL https://dev.azure.com//Items?path=/Config_backups/{{object.name}}.cfg&recursionLevel=0&includeContentMetadata=true&versionDescriptor.versionOptions=0&versionDescriptor.versionType=0&versionDescriptor.version=main&includeContent=true&resolveLfs=true that returns a 404 if it doesn't exist and a 200 if it does.
If a url check is not possible, how can I set the link to only show if the device role is apart of Access Switch, Router, Distribution Switch, etc?
Thanks!
-Jake
Beta Was this translation helpful? Give feedback.
All reactions