VMware {code} Community
Timber1979
Contributor
Contributor

Trying to add interface information using postman and VeloCloud Orchestrator API

Hi I was wondering if someone could help me/point me in the right direction. I've just started using Velocloud and have recently been looking at using it's API with postman. I've managed to find an earlier post by Vladimir Franca de Sousa (https://code.vmware.com/samples/5964/velocloud-api-postman-collection---using-data-files). Which has allowed me to created edges for a pre-existing customer and add information to them, using a CSV file.

I've been trying to add configuration to an edge using the API, I've manged to add site information for a specific edge. Though when it comes, to adding interface information, I'm having troubles. I've looked at the APIs, documentation and have managed to create some API calls, which run, though no updates take place. 

I imagine what I want to do is possible, though lack of experience is holding me back.

 

An example of my API call is below

 
{
    "jsonrpc": "2.0",
    "method": "edge/updateEdgeAttributes",
    "params": {
        "id": 21682,
        "enterpriseId":1055,
        "_update": {
            "device_settings_model": {
                "Device_settings_routed_inteface": {
                    "Overide": true,
                    "disabled":false,
                "Device_settings_routed_interface_addressing": {
                    "type": "STATIC",
                    "cidrPrefix": 24,
                    "cidrIp": "10.10.10.10",
                    "netmask": "255.255.255.0",
                    "gateway": "192.168.1.5",
                    "username": "USERNAME",
                    "password": "PASSWORD"
                },
                "device_settings_routed_interface_l2": {
                    "autonegotiation": true,
                    "speed": 100,
                    "Duplex": "full",
                    "MTU": 100
                },
                "name": "GE3",
                "segmentid": 3,
                "sfptype": "standard",
                "trusted": true,
                "underlayAccounting": true,
                "vlanId": 3,
                "WanOverlay": "AUTO-DISCOVERED"
                 } 

                }
            } 
        }, "id": 1055
    } 
 

 

Labels (2)
0 Kudos
0 Replies