import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.private_networks.update(vlan_id="vlan_VaNmodjeObE8W", data={
"id": "vlan_VaNmodjeObE8W",
"type": latitudesh_python_sdk.UpdateVirtualNetworkPrivateNetworksType.VIRTUAL_NETWORKS,
"attributes": {
"tags": [
"tag_RjLvG6oe84IAw7BxxEGaFAXK4l4",
"tag_lpPQ21kXEYfb9az3jRoVIVw4RBk",
],
},
})
# Handle response
print(res){
"data": {
"id": "vlan_VaNmodjeObE8W",
"type": "virtual_networks",
"attributes": {
"tags": [
{
"id": "tag_RjLvG6oe84IAw7BxxEGaFAXK4l4",
"name": "Tal-Elmar",
"description": "Placeat non sit velit.",
"color": "#e5e53e"
},
{
"id": "tag_lpPQ21kXEYfb9az3jRoVIVw4RBk",
"name": "Great Eagle",
"description": "Voluptatem aut in corrupti.",
"color": "#502f50"
}
],
"vid": 2040,
"name": "cupiditate",
"description": "Perspiciatis molestiae laborum quae.",
"site": "SAO",
"created_at": null
}
},
"meta": {}
}Update a Virtual Network.
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.private_networks.update(vlan_id="vlan_VaNmodjeObE8W", data={
"id": "vlan_VaNmodjeObE8W",
"type": latitudesh_python_sdk.UpdateVirtualNetworkPrivateNetworksType.VIRTUAL_NETWORKS,
"attributes": {
"tags": [
"tag_RjLvG6oe84IAw7BxxEGaFAXK4l4",
"tag_lpPQ21kXEYfb9az3jRoVIVw4RBk",
],
},
})
# Handle response
print(res){
"data": {
"id": "vlan_VaNmodjeObE8W",
"type": "virtual_networks",
"attributes": {
"tags": [
{
"id": "tag_RjLvG6oe84IAw7BxxEGaFAXK4l4",
"name": "Tal-Elmar",
"description": "Placeat non sit velit.",
"color": "#e5e53e"
},
{
"id": "tag_lpPQ21kXEYfb9az3jRoVIVw4RBk",
"name": "Great Eagle",
"description": "Voluptatem aut in corrupti.",
"color": "#502f50"
}
],
"vid": 2040,
"name": "cupiditate",
"description": "Perspiciatis molestiae laborum quae.",
"site": "SAO",
"created_at": null
}
},
"meta": {}
}Was this page helpful?