05-06-2021 02:52 AM - edited 05-06-2021 02:55 AM
Hi Everyone
I am trying to Create an Internal User with cURL and JSON on window command prompt for cisco ise. prompt but I am get these errors over again . can anyone help me out
this is curl command
curl --insecure --include \ --header 'Content-Type:application/josn' \ --header 'Accept:application/json' \ --user username:password \ --request POST https://ise.pan/ers/config/internaluser \ --data "{ \InternalUser\" : {\"name\" : "\b100\", "\password\" : "\C1sco12345\", "\changePassword\" : false, "\email\" : "\thomas.mensah@gmail.com\", "\firstName\" : "\Robert\", "\lastName\"= "\Mensah\", "\identityGroups\" : "\ Employee\", "\expiryDateEnabled\" : false} } }"
this is my error
curl: (6) Could not resolve host: \
curl: (6) Could not resolve host: \
curl: (6) Could not resolve host: \
curl: (6) Could not resolve host: \
HTTP/1.1 302
Strict-Transport-Security: max-age=31536000; includeSubDomains
Content-Length: 0
Date: Thu, 06 May 2021 09:44:27 GMT
Server:
curl: (6) Could not resolve host: \
curl: (3) Port number ended with ' '
curl: (3) Port number ended with ' '
curl: (3) Bad URL, colon is first character
curl: (6) Could not resolve host: gmail.com", \firstName"
curl: (3) Bad URL, colon is first character
curl: (6) Could not resolve host: \Robert", \lastName"=
curl: (6) Could not resolve host: \Mensah", \identityGroups"
curl: (3) Bad URL, colon is first character
curl: (6) Could not resolve host: \ Employee", \expiryDateEnabled"
curl: (3) Bad URL, colon is first character
curl: (3) [globbing] unmatched close brace/bracket in column 6
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (3) [globbing] unmatched close brace/bracket in column 1
All suggestions are welcomed to help me fix my problem
Solved! Go to Solution.
05-06-2021 05:07 AM
curl: (6) Could not resolve host = does your ise.pan fqdn resolve to the correct ISE address? Seems to be an issue with DNS resolution.
05-06-2021 05:07 AM
curl: (6) Could not resolve host = does your ise.pan fqdn resolve to the correct ISE address? Seems to be an issue with DNS resolution.
05-06-2021 08:35 AM
Hi @Mike.Cifelli Is my curl command for windows okay to create internal users for ISE or I have to make some change to my command
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide