Apache CloudStack 4.15.0.0 Root Admin API Reference

linkAccountToLdap

link a cloudstack account to a group or OU in ldap

Request parameters

Parameter NameDescriptionRequired
accountname of the account, it will be created if it does not existtrue
accounttypeType of the account to auto import. Specify 0 for user and 2 for domain admintrue
domainidThe id of the domain that is to contain the linked account.true
ldapdomainname of the group or OU in LDAPtrue
admindomain admin username in LDAP false
typetype of the ldap name. GROUP or OU, defaults to GROUPfalse

Response Tags

Response NameDescription
accountidDomain Admin accountId that is created
accounttypeType of the account to auto import
domainidid of the Domain which is linked to LDAP
ldapdomainname of the group or OU in LDAP which is linked to the domain
namename of the group or OU in LDAP which is linked to the domain
typetype of the name in LDAP which is linke to the domain