cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2007
Views
5
Helpful
2
Replies

Cisco ISE External RESTful Services APIs

Steven4699
Level 1
Level 1

Hi, Guys,

 

i wonder which HTTP header is valid when the Cisco ISE External RESTful Services APIs are used?

1 Accepted Solution

Accepted Solutions

Hi,

Here is sample script which I use for authentication ISE REST. It includes
the required header.

def ise_auth(username, password):

creds = str.encode(':'.join((username, password)))
encodedAuth = bytes.decode(base64.b64encode(creds))
authorization_header = {'Content-Type':'application/json',
'authorization' : " ".join(("Basic",encodedAuth)),
'Accept': 'application/json'
}

return (authorization_header)

Basically, content-type, authorization, and accept. These are the main
required ones.

**** please remember to rate useful posts

View solution in original post

2 Replies 2

Mike.Cifelli
VIP Alumni
VIP Alumni

Take a look at the ISE ERS SDK by browsing to: https://<ISE_PAN>:9060/ers/sdk#_ 

You can see examples, and a lot of good information there.  Also, take a peek here for good examples: https://community.cisco.com/t5/security-documents/ise-ers-api-examples/ta-p/3622623#toc-hId--1652157075

Lastly, here are some handy filters you can use/reference:

EQ: Equals
NEQ: Not Equals
GT: Greater Than
LT: Less Then
STARTW: Starts With
NSTARTSW: Not Starts With
ENDSW: Ends With
NENDSW: Not Ends With
CONTAINS: Contains
NCONTAINS: Not Contains

HTH!

Hi,

Here is sample script which I use for authentication ISE REST. It includes
the required header.

def ise_auth(username, password):

creds = str.encode(':'.join((username, password)))
encodedAuth = bytes.decode(base64.b64encode(creds))
authorization_header = {'Content-Type':'application/json',
'authorization' : " ".join(("Basic",encodedAuth)),
'Accept': 'application/json'
}

return (authorization_header)

Basically, content-type, authorization, and accept. These are the main
required ones.

**** please remember to rate useful posts