Cisco Cisco Identity Services Engine 1.3 전단

다운로드
페이지 164
 
7-28
思科身份服务引擎 API 参考指南,版本 1.4
OL-26134-01
 7       外部 RESTful 服务 API 操作
  适用于访客用户的外部 RESTful 服务 API
            <link type="application/xml" 
href="https://ISE-ADMIN-NODE:9060/ers/config/guestuser/2e1ac600-6227-11e3-9bc2-000c2932c73
c" rel="self"/>
        </resource>
    </resources>
</ns2:searchResult>
通过名字“John”进行过滤并按用户名进行排序的示例
请求
GET 
https://<ISE-Admin-node>:9060/ers/config/guestuser/?page=0&size=10&sortdsc=name&filter=fir
stName.eq.john
响应
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:searchResult 
    xmlns:ns2="ers.ise.cisco.com" total="2">
    <resources>
        <resource name="jdoe0002" id="886f5b40-5ece-11e3-8faf-000c29c56fc6">
            <link type="application/xml" 
href="https://ISE-ADMIN-NODE:9060/ers/config/guestuser/886f5b40-5ece-11e3-8faf-000c29c56fc
6" rel="self"/>
        </resource>
        <resource name="jdoe0001" id="79e5a5a0-5df9-11e3-84f5-000c29c56fc6">
            <link type="application/xml" 
href="https://ISE-ADMIN-NODE:9060/ers/config/guestuser/79e5a5a0-5df9-11e3-84f5-000c29c56fc
6" rel="self"/>
        </resource>
    </resources>
</ns2:searchResult>
使用 curl 的访客用户请求和响应示例
以下示例介绍使用 
curl
 Linux 命令通过向 ISE 发送的 ID 获取访客用户的请求及其响应。
curl 命令
$ curl -v -k -H 'ACCEPT:application/vnd.com.cisco.ise.identity.guestuser.2.0+xml' 
https://username:password@<ISE-ADMIN-NODE>:9060/ers/config/guestuser/user1
* About to connect() to <ISE-ADMIN-NODE> port 9060
*   Trying 111.11.11.111... * connected
* Connected to <ISE-ADMIN-NODE> (<ISE-ADMin-NODE-IP>) port 9060
* successfully set certificate verify locations:
*   CAfile: /usr/share/ssl/certs/ca-bundle.crt
  CApath: none
* SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
*        subject: /CN=<ISE-ADMIN-NODE>
*        start date: 2013-11-26 00:56:55 GMT
*        expire date: 2014-11-26 00:56:55 GMT
*        common name: <ISE-ADMIN-NODE> 
*        issuer: /CN=<ISE-ADMIN-NODE>
* Server auth using Basic with user 'username'