cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2502
Views
0
Helpful
2
Replies

Create Internal user with curl and json with windows command line

Richie20
Level 1
Level 1

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 Alumni
VIP Alumni

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 Alumni
VIP Alumni

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.

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