Last active
May 10, 2020 09:04
-
-
Save goffinet/4ff59775ec6dfb5d22ef3dabce1b452f to your computer and use it in GitHub Desktop.
GNS3 Duplicate Project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
project="$1" | |
name="$2" | |
curl --location --request POST "http://172.16.253.1:3080/v2/projects/${project}/duplicate" \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{"name": "'"$name"'"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment