cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

This community is for technical, feature, configuration and deployment questions.
For production deployment issues, please contact the TAC! We will not comment or assist with your TAC case in these forums.
Please see How to Ask the Community for Help for other best practices.

1207
Views
0
Helpful
2
Replies
Richie20
Beginner

Create Internal user with curl and json with windows command line

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

1 ACCEPTED SOLUTION

Accepted Solutions
Mike.Cifelli
VIP Advocate

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.

View solution in original post

2 REPLIES 2
Mike.Cifelli
VIP Advocate

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.

View solution in original post

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 

Create
Recognize Your Peers
Polls
Which of these topics should we host an event in the Community?

Top Choice: pxGrid (38%)

Content for Community-Ad

ISE Webinars



Did you miss a previous ISE webinar?

CiscoISE YouTube Channel