site-template with API using cURL or Postman


cURL
root@jkriker-T460:/mnt/c/Users/jkriker/Documents/GitHub/CSO_API# curl  -k -H "x-auth-token:$TOKEN" -H "content-type: application/json" https://contrail-juniper.net/tssm/site-template  -X GET | pyth
on -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   414  100   414    0     0    506      0 --:--:-- --:--:-- --:--:--   506
{
    "site-template": [
        {
            "fq_name": [
                "default-domain",
                "JEAN_LUC_KRIKER",
                "site-template-1"
            ],
            "uri": "/tssm/site-template/03474b29-75ce-47ee-914f-cfec1d7024c3",
            "uuid": "03474b29-75ce-47ee-914f-cfec1d7024c3"
        },
        {
            "fq_name": [
                "default-domain",
                "JEAN_LUC_KRIKER",
                "nxf250-sdwan-site-template"
            ],
            "uri": "/tssm/site-template/5823ec41-352b-46b4-85ed-f4b4273793aa",
            "uuid": "5823ec41-352b-46b4-85ed-f4b4273793aa"
        }
    ],
    "total": 2
}
root@jkriker-T460:/mnt/c/Users/jkriker/Documents/GitHub/CSO_API#