Skip to content
Discussion options

You must be logged in to vote

Finally found the API commands to add multiple interfaces from termination B to termination A

curl -v -H "Authorization: Token $TOKEN" -H "Content-Type: application/json" -X POST -d ' {
"a_terminations": [
{
"object_type": "dcim.interface",
"object_id": 60,
"object": {
"device": {
"name": "device2.site1.bitgravity.com"
},
"name": "eth1"
}
}
],
"b_terminations": [
{
"object_type": "dcim.interface",
"object_id": 58,
"object": {
"device": {

                        "name": "device3.site1.bitgravity.com"
                    },
                    "name": "xe-1-1"
                }
            },
            {
                "object_type": "dcim.interface",
				"object_id": 57,
               …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@candlerb
Comment options

@trs91km
Comment options

@trs91km
Comment options

Answer selected by trs91km
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants