以下内容是支持的基于 REST API 命令的架构示例:
POST /iam/api/1.0/restapi/environments/ac/endpoints/endpointname/accounts HTTP/1.1 Content-type: application/xml; charset=UTF-8 Authorization: Basic YWRtaW46ZGVmYXVsdA== Cache-Control: no-cache Pragma: no-cache Host: 10.112.196.244 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-Length: 79
以下示例是创建帐户的 HTTP POST 正文内容:
<Account> <Name>myaccount_name</Name> <Disconnected>true</Disconnected> <Type>Shared</Type> <Container>MS SQL Logins</Container> <PasswordPolicy>default password policy</PasswordPolicy> <PasswordState>CheckedIn</PasswordState> <Exclusive>false</Exclusive> <ChangePasswordOnCheckOut>false</ChangePasswordOnCheckOut> <ChangePasswordOnCheckIn>false</ChangePasswordOnCheckIn> <LoginApplicationCheckoutOnly>false</LoginApplicationCheckoutOnly> <Owner ownerType="Group">my_group</Owner> </Account>
GET /iam/api/1.0/restapi/environments/ac/endpoints/endpointname HTTP/1.1 Authorization: Basic YWRtaW46ZGVmYXVsdA== Host: 10.112.196.169:9998
PUT /iam/api/1.0/restapi/environments/ac/endpoints/endpointname/accounts HTTP/1.1 Content-type: application/xml; charset=UTF-8 Authorization: Basic YWRtaW46ZGVmYXVsdA== Cache-Control: no-cache Pragma: no-cache Host: 10.112.196.244 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-Length: 959
以下示例是更新帐户的 HTTP PUT 正文内容:
<Account> <Name>myaccount_name</Name> <Disconnected>true</Disconnected> <Type>Shared</Type> <Container>MS SQL Logins</Container> <PasswordPolicy>default password policy</PasswordPolicy> <PasswordState>CheckedIn</PasswordState> <Exclusive>false</Exclusive> <ChangePasswordOnCheckOut>false</ChangePasswordOnCheckOut> <ChangePasswordOnCheckIn>false</ChangePasswordOnCheckIn> <LoginApplicationCheckoutOnly>false</LoginApplicationCheckoutOnly> <Owner ownerType="Group">my_group</Owner> </Account>
DELETE /iam/api/1.0/restapi/environments/ac/endpoints/endpointname HTTP/1.1 Content-type: application/xml; charset=UTF-8 Authorization: Basic YWRtaW46ZGVmYXVsdA== Cache-Control: no-cache Pragma: no-cache Host: 10.112.196.244 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive
版权所有 © 2013 CA。
保留所有权利。
|
|