The following are schema examples for the supported REST-based API commands:
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
The following example is an HTTP POST body content to create an account:
<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
The following example is an HTTP PUT body content to update an account:
<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
Copyright © 2013 CA Technologies.
All rights reserved.
|
|