Cisco Cisco Identity Services Engine 1.3 전단

다운로드
페이지 164
 
7-32
思科身份服务引擎 API 参考指南,版本 1.4
OL-26134-01
 7       外部 RESTful 服务 API 操作
  适用于访客用户的外部 RESTful 服务 API
        <emailAddress>email@some.uri.com</emailAddress>
        <enabled>true</enabled>
        <password>asdlkj324ew</password>
        <phoneNumber>3211239034</phoneNumber>
        <smsServiceProvider>GLobal Default</smsServiceProvider>
        <userName>DS3ewdsa34wWE</userName>
    </guestInfo>
    <guestType>Contractor</guestType>
    <portalId>23423432523</portalId>
    <sponsorUserName>Mr Spons</sponsorUserName>
</ns3:guestuser>
创建访客用户示例
请求 
POST https://<ISE-ADMIN-NODE>:9060/ers/config/guestuser/ 
Content-Type - application/vnd.com.cisco.ise.identity.guestuser.2.0+xml
Accept - application/vnd.com.cisco.ise.identity.guestuser.2.0+xml
Authorization - Basic xxxxxxxxxxxxxxxxxxx
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:guestuser xmlns:ns2="identity.ers.ise.cisco.com">
    <guestAccessInfo>
        <fromDate>08/08/2014 08:15</fromDate>
        <toDate>08/09/2014 08:15</toDate>
        <validDays>1</validDays>
    </guestAccessInfo>
    <guestInfo>
        <company>New Company</company>
        <emailAddress>doe@example.com</emailAddress>
        <firstName>John</firstName>
        <lastName>Doe</lastName>
        <notificationLanguage>English</notificationLanguage>
        <phoneNumber>9999998877</phoneNumber>
        <smsServiceProvider>Global Default</smsServiceProvider>
        <userName>guestuser1</userName>
    </guestInfo>
    <guestType>Daily (default)</guestType>
    <personBeingVisited>sponsor@example.com</personBeingVisited>
    <portalId>ff2d99e0-2101-11e4-b5cf-005056bf2f0a</portalId>
    <reasonForVisit>Interview</reasonForVisit>
</ns2:guestuser>
响应 
HTTP/1.1 201 Created;
Date:Sat, 15 Dec 2012 21:20:51 GMT;
Content-Length:0;
Location:https://<ISE-ADMIN-NODE>/ers/config/guestuser/e1bb8290-6ccb-11e3-8cdf-000c29c56fc
6;
Set-Cookie:JSESSIONID=28CF43F1ACCC7448BED7255DC7B787EE; Path=/ers; 
Secure;JSESSIONIDSSO=DB6D6900088D1863CA84863570392E4C; Path=/; Secure;
Content-Type:application/xml;
相关主题
有关在 API 中是否显示密码的详细信息,请参阅