Information

This site will undergo a brief period of maintenance on Friday, 18 December at 12:30 AM Central/12:00 PM IST. During a 30 minute window, site availability may be intermittent.

Create Organization operation


The Create Organization operation enables the vCloud system administrator to create a vCloud organization. The top level of your virtual infrastructure is called the organization. This topic describes the adapter elements and sample requests and responses for different versions of vCloud API:

Adapter elements and sample requests and responses for vCloud API version 1.0

The following table describes the elements for the adapter request by using vCloud API version 1.0:

Adapter request elements for the Create Organization operation using vCloud API version 1.0

The following figure shows a sample <items> XML element for the Create Organization operation using vCloud API version 1.0:

Sample <items> XML element for the Create Organization operation using vCloud API version 1.0
<items>
 <item>
   <parameters>
     <create-organization-params>
       <organization-name></organization-name>
       <full-name></full-name>
       <description></description>
       <settings>
         <is-enabled></is-enabled>
         <can-publish-catalogs></can-publish-catalogs>
         <org-lease-settings>
           <delete-on-storage-lease-expiration>
           </delete-on-storage-lease-expiration>
           <deployment-lease-seconds></deployment-lease-seconds>
           <storage-lease-seconds></storage-lease-seconds>
         </org-lease-settings>
         <org-ldap-mode></org-ldap-mode>
         <org-ldap-settings>
           <host-name></host-name>
           <port></port>
           <is-ssl></is-ssl>
           <is-ssl-accept-all></is-ssl-accept-all>
           <realm></realm>
           <search-base></search-base>
           <ldap-user-name></ldap-user-name>
           <ldap-password>root@</ldap-password>
           <authentication-mechanism></authentication-mechanism>
           <group-search-base></group-search-base>
           <authentication-mechanism></authentication-mechanism>
           <is-group-search-base-enabled></is-group-search-base-enabled>
           <connector-type>_</connector-type>
           <user-attributes>
             <user-object-class></user-object-class>
             <user-object-identifier></user-object-identifier>
             <user-email></user-email>
             <user-name></user-name>
             <user-full-name></user-full-name>
             <user-given-name></user-given-name>
             <user-surname></user-surname>
             <user-telephone></user-telephone>
             <group-membership-identifier></group-membership-identifier>
             <group-back-link-identifier></group-back-link-identifier>
           </user-attributes>
           <group-attributes>
             <group-object-identifier></group-object-identifier>
             <group-object-class></group-object-class>
             <group-name></group-name>
             <memberships></memberships>
             <membership-identifier></membership-identifier>
             <back-link-identifier></back-link-identifier>
           </group-attributes>
         </org-ldap-settings>
         <org-email-settings>
           <is-default-smtp-server></is-default-smtp-server>
           <is-default-org-email></is-default-org-email>
           <from-email-address></from-email-address>
           <default-subject-prefix></default-subject-prefix>
           <is-alert-email-to-all-admins></is-alert-email-to-all-admins>
           <smtp-server-settings>
             <is-use-authentication></is-use-authentication>
             <smtp-server-name></smtp-server-name>
             <smtp-server-user-name></smtp-server-user-name>
             <smtp-server-password></smtp-server-password>
           </smtp-server-settings>
         </org-email-settings>
         <use-server-boot-sequence></use-server-boot-sequence>
         <delay-after-power-on-seconds></delay-after-power-on-seconds>
       </settings>
     </create-organization-params>
   <parameters>
 <item>
<items>

The following figure shows the sample adapter request for the Create Organization operation using vCloud API version 1.0:

Sample adapter request for the Create Organization operation using vCloud API version 1.0
<vmware-vcloud-request>
 <operation-name>Create_Organization</operation-name>
 <vcloud-organization>TestOrg</vcloud-organization>
 <user-name>TestUser</user-name>
 <password>Password</password>
 <parameters>
   <create-organization-params>
     <organization-name>abc1</organization-name>
       <full-name>Test Organization</full-name>
       <description>Test Organization</description>
       <settings>
         <is-enabled>true</is-enabled>
         <can-publish-catalogs>true</can-publish-catalogs>
         <org-lease-settings>
           <delete-on-storage-lease-expiration>false
           </delete-on-storage-lease-expiration>
           <deployment-lease-seconds>7200</deployment-lease-seconds>
           <storage-lease-seconds>7200</storage-lease-seconds>
         </org-lease-settings>
         <org-ldap-mode>CUSTOM</org-ldap-mode>
         <org-ldap-settings>
           <host-name>10.128.248.76</host-name>
           <port>389</port>
           <is-ssl>true</is-ssl>
           <is-ssl-accept-all>true</is-ssl-accept-all>
           <realm>userrealm</realm>
           <search-base>cn=Users,dc=BMCDEV1,dc=com</search-base>
           <ldap-user-name>administrator</ldap-user-name>
           <ldap-password>root@123</ldap-password>
           <authentication-mechanism>SIMPLE</authentication-mechanism>
           <group-search-base>usergrpsearch</group-search-base>
           <authentication-mechanism>SIMPLE</authentication-mechanism>
           <is-group-search-base-enabled>false</is-group-search-base-enabled>
           <connector-type>OPEN_LDAP</connector-type>
           <user-attributes>
             <user-object-class>Useruser</user-object-class>
             <user-object-identifier>name</user-object-identifier>
             <user-email>usermail</user-email>
             <user-name>username</user-name>
             <user-full-name>uservardhan</user-full-name>
             <user-given-name>usergiven</user-given-name>
             <user-surname>singh</user-surname>
             <user-telephone>12345</user-telephone>
             <group-membership-identifier>js</group-membership-identifier>
             <group-back-link-identifier>Guser back link
             </group-back-link-identifier>
           </user-attributes>
           <group-attributes>
             <group-object-identifier>usergroupId</group-object-identifier>
             <group-object-class>groupuser</group-object-class>
             <group-name>groupnameuser</group-name>
             <memberships>memberuser</memberships>
             <membership-identifier>dnuser</membership-identifier>
             <back-link-identifier>user back link </back-link-identifier>
           </group-attributes>
         </org-ldap-settings>
         <org-email-settings>
           <is-default-smtp-server>true</is-default-smtp-server>
           <is-default-org-email>true</is-default-org-email>
           <from-email-address>vcloud@abc.com</from-email-address>
           <default-subject-prefix>Mail from vCloud</default-subject-prefix>
           <is-alert-email-to-all-admins>true</is-alert-email-to-all-admins>
           <smtp-server-settings>
             <is-use-authentication>false</is-use-authentication>
             <smtp-server-name>smtp.abc.com</smtp-server-name>
             <smtp-server-user-name>SMTPtestUse2r</smtp-server-user-name>
             <smtp-server-password>userpassword</smtp-server-password>
           </smtp-server-settings>
         </org-email-settings>
         <use-server-boot-sequence>true</use-server-boot-sequence>
         <delay-after-power-on-seconds>2</delay-after-power-on-seconds>
       </settings>
   </create-organization-params>
 </parameters>
</vmware-vcloud-request>

The following figure shows the response for the sample request using vCloud API version 1.0:

Sample request using vCloud API version 1.0
<vmware-vcloud-response>
 <metadata>
   <status>success</status>
 </metadata>
 <status-line>
   <code>201</code>
   <reason>Created</reason>
 </status-line>
 <message-body>
   <AdminOrg name="abc1" type="application/vnd.vmware.admin.organization+xml"
href="https://10.128.248.112/api/v1.0/admin/org/874599458">
     <Link rel="add" type="application/vnd.vmware.admin.catalog+xml"
href="https://10.128.248.112/api/v1.0/admin/org/874599458/catalogs" />
     <Link rel="add" type="application/vnd.vmware.admin.user+xml"
href="https://10.128.248.112/api/v1.0/admin/org/874599458/users" />
     <Link rel="add" type="application/vnd.vmware.admin.group+xml"
href="https://10.128.248.112/api/v1.0/admin/org/874599458/groups" />
     <Link rel="add" type="application/vnd.vmware.admin.vdc+xml"
href="https://10.128.248.112/api/v1.0/admin/org/874599458/vdcs" />
     <Link rel="add" type="application/vnd.vmware.admin.network+xml"
href="https://10.128.248.112/api/v1.0/admin/org/874599458/networks" />
     <Link rel="edit" type="application/vnd.vmware.admin.organization+xml"
href="https://10.128.248.112/api/v1.0/admin/org/874599458" />
     <Link rel="remove" href="https://10.128.248.112/api/v1.0/admin/org
/874599458"
/>
     <Link rel="disable" href="https://10.128.248.112/api/v1.0/admin/org
/874599458/action/disable"
/>
     <Link rel="alternate" type="application/vnd.vmware.vcloud.org+xml"
href="https://10.128.248.112/api/v1.0/org/874599458" />
     <Description>Test Organization</Description>
     <FullName>Test Organization</FullName>
     <Settings>
       <IsEnabled>true</IsEnabled>
       <CanPublishCatalogs>true</CanPublishCatalogs>
       <DeployedVMQuota>0</DeployedVMQuota>
       <StoredVmQuota>0</StoredVmQuota>
       <OrgLeaseSettings>
         <DeleteOnStorageLeaseExpiration>false</DeleteOnStorageLeaseExpiration>
         <DeploymentLeaseSeconds>7200</DeploymentLeaseSeconds>
         <StorageLeaseSeconds>7200</StorageLeaseSeconds>
       </OrgLeaseSettings>
       <OrgLdapMode>CUSTOM</OrgLdapMode>
       <OrgLdapSettings>
         <HostName>10.128.248.76</HostName>
         <Port>389</Port>
         <IsSsl>true</IsSsl>
         <IsSslAcceptAll>true</IsSslAcceptAll>
         <Realm>jairealm</Realm>
         <SearchBase>cn=Users,dc=BMCDEV1,dc=com</SearchBase>
         <UserName>administrator</UserName>
         <AuthenticationMechanism>SIMPLE</AuthenticationMechanism>
         <GroupSearchBase>jaigrpsearch</GroupSearchBase>
         <IsGroupSearchBaseEnabled>false</IsGroupSearchBaseEnabled>
         <ConnectorType>OPEN_LDAP</ConnectorType>
         <UserAttributes>
           <ObjectClass>Userjai</ObjectClass>
           <ObjectIdentifier>name</ObjectIdentifier>
           <UserName>jainame</UserName>
           <Email>jaimail</Email>
           <FullName>jaivardhan</FullName>
           <GivenName>jaigiven</GivenName>
           <Surname>singh</Surname>
           <Telephone>12345</Telephone>
           <GroupMembershipIdentifier>js</GroupMembershipIdentifier>
         </UserAttributes>
         <GroupAttributes>
           <ObjectClass>groupjai</ObjectClass>
           <ObjectIdentifier>jaigroupId</ObjectIdentifier>
           <GroupName>groupnamejai</GroupName>
           <Membership>memberjai</Membership>
           <MembershipIdentifier>dnjai</MembershipIdentifier>
         </GroupAttributes>
       </OrgLdapSettings>
       <OrgEmailSettings>
         <IsDefaultSmtpServer>true</IsDefaultSmtpServer>
         <IsDefaultOrgEmail>true</IsDefaultOrgEmail>
         <FromEmailAddress />
         <DefaultSubjectPrefix />
         <IsAlertEmailToAllAdmins>true</IsAlertEmailToAllAdmins>
         <SmtpServerSettings>
           <IsUseAuthentication>false</IsUseAuthentication>
           <Host />
           <Username />
         </SmtpServerSettings>
       </OrgEmailSettings>
       <DelayAfterPowerOnSeconds>2</DelayAfterPowerOnSeconds>
     </Settings>
   </AdminOrg>
 </message-body>
</vmware-vcloud-response>

Adapter elements and sample requests and responses for vCloud API version 1.5

The following table describes the elements for the adapter request using vCloud API version 1.5:

Adapter request elements for the Create Organization operation using vCloud API version 1.5

The following figure shows a sample <items> XML element for the Create Organization operation using vCloud API version 1.5:

Sample <items> XML element for the Create Organization operation using vCloud API version 1.5
<items>
   <item>
     <parameters>
     <create-organization-params>
       <organization-name></organization-name>
       <full-name></full-name>
       <is-enabled></is-enabled>
       <settings>
         <org-general-settings>
           <can-publish-catalogs></can-publish-catalogs>
           <deployed-vm-quote></deployed-vm-quote>
           <stored-vm-quota></stored-vm-quota>
           <use-server-boot-sequence></use-server-boot-sequence>
           <delay-after-power-on-seconds></delay-after-power-on-seconds>
         </org-general-settings>
         <vapp-lease-settings>
           <delete-on-storage-lease-expiration></delete-on-storage-lease-expiration>
           <deployment-lease-seconds></deployment-lease-seconds>
           <storage-lease-seconds></storage-lease-seconds>
         </vapp-lease-settings>
         <vapp-template-lease-settings>
           <delete-on-storage-lease-expiration></delete-on-storage-lease-expiration>
           <storage-lease-seconds></storage-lease-seconds>
         </vapp-template-lease-settings>
         <org-ldap-settings>
           <org-ldap-mode></org-ldap-mode>
           <custom-users-ou></custom-users-ou>
           <custom-org-ldap-settings>
             <host-name></host-name>
             <port></port>
             <authentication-mechanism></authentication-mechanism>
             <is-group-search-base-enabled></is-group-search-base-enabled>
             <connector-type></connector-type>
             <search-base></search-base>
             <user-attributes>
               <user-object-class></user-object-class>
               <user-object-identifier></user-object-identifier>
               <user-name></user-name>
               <user-email></user-email>
               <user-full-name></user-full-name>
               <user-given-name></user-given-name>
               <user-surname></user-surname>
               <user-telephone></user-telephone>
               <group-membership-identifier></group-membership-identifier>
               <group-back-link-identifier></group-back-link-identifier>
             </user-attributes>
             <group-attributes>
               <group-object-class></group-object-class>
               <group-object-identifier></group-object-identifier>
               <group-name></group-name>
               <memberships></memberships>
               <membership-identifier></membership-identifier>
               <back-link-identifier></back-link-identifier>
             </group-attributes>
           </custom-org-ldap-settings>
         </org-ldap-settings>
         <org-email-settings>
           <is-default-smtp-server></is-default-smtp-server>
           <is-default-org-email></is-default-org-email>
           <from-email-address></from-email-address>
           <default-subject-prefix></default-subject-prefix>
           <is-alert-email-to-all-admins></is-alert-email-to-all-admins>
           <alert-email-to></alert-email-to>
           <alert-email-to></alert-email-to>
           <smtp-server-settings>
             <is-use-authentication></is-use-authentication>
             <smtp-server-name></smtp-server-name>
             <smtp-server-user-name></smtp-server-user-name>
             <smtp-server-password></smtp-server-password>
           </smtp-server-settings>
         </org-email-settings>
         <org-password-policy-settings>
           <account-lockout-enabled></account-lockout-enabled>
           <invalid-logins-before-lockout></invalid-logins-before-lockout>
           <account-lockout-interval-minutes></account-lockout-interval-minutes>
         </org-password-policy-settings>
       </settings>
     </create-organization-params>
   </parameters>
   </item>
</items>

The following figure shows the sample adapter request for the Create Organization operation using vCloud API version 1.5:

Sample adapter request for the Create Organization operation using vCloud API version 1.5
<vmware-vcloud-request>
   <operation-name>Create_Organization</operation-name>
   <parameters>
     <create-organization-params>
       <organization-name>TestOrg_1</organization-name>
       <full-name>Test Organization</full-name>
       <is-enabled>false</is-enabled>
       <settings>
         <org-general-settings>
           <can-publish-catalogs>true</can-publish-catalogs>
           <deployed-vm-quote>10</deployed-vm-quote>
           <stored-vm-quota>11</stored-vm-quota>
           <use-server-boot-sequence>true</use-server-boot-sequence>
           <delay-after-power-on-seconds>2</delay-after-power-on-seconds>
         </org-general-settings>
         <vapp-lease-settings>
           <delete-on-storage-lease-expiration>true</delete-on-storage-lease-expiration>
           <deployment-lease-seconds>3600</deployment-lease-seconds>
           <storage-lease-seconds>3600</storage-lease-seconds>
         </vapp-lease-settings>
         <vapp-template-lease-settings>
           <delete-on-storage-lease-expiration>true</delete-on-storage-lease-expiration>
           <storage-lease-seconds>3600</storage-lease-seconds>
         </vapp-template-lease-settings>
         <org-ldap-settings>
           <org-ldap-mode>CUSTOM</org-ldap-mode>
           <custom-users-ou>cn</custom-users-ou>
           <custom-org-ldap-settings>
             <host-name>abcLDAP</host-name>
             <port>1433</port>
             <authentication-mechanism>SIMPLE</authentication-mechanism>
             <is-group-search-base-enabled>false</is-group-search-base-enabled>
             <connector-type>ACTIVE_DIRECTORY</connector-type>
             <search-base>cn=peter</search-base>
             <user-attributes>
               <user-object-class>user</user-object-class>
               <user-object-identifier>objectGuid</user-object-identifier>
               <user-name>username</user-name>
               <user-email>mail</user-email>
               <user-full-name>fullname</user-full-name>
               <user-given-name>givenname</user-given-name>
               <user-surname>surname</user-surname>
               <user-telephone>telephone</user-telephone>
               <group-membership-identifier>dn</group-membership-identifier>
               <group-back-link-identifier>abc</group-back-link-identifier>
             </user-attributes>
             <group-attributes>
               <group-object-class>group</group-object-class>
               <group-object-identifier>objectGuid</group-object-identifier>
               <group-name>groupname</group-name>
               <memberships>member</memberships>
               <membership-identifier>dn</membership-identifier>
               <back-link-identifier>abc</back-link-identifier>
             </group-attributes>
           </custom-org-ldap-settings>
         </org-ldap-settings>
         <org-email-settings>
           <is-default-smtp-server>false</is-default-smtp-server>
           <is-default-org-email>true</is-default-org-email>
           <from-email-address>vcloud@abc.com</from-email-address>
           <default-subject-prefix>Mail from vCloud</default-subject-prefix>
           <is-alert-email-to-all-admins>false</is-alert-email-to-all-admins>
           <alert-email-to>admin@gl.com</alert-email-to>
           <alert-email-to>root@gl.com</alert-email-to>
           <smtp-server-settings>
             <is-use-authentication>true</is-use-authentication>
             <smtp-server-name>smtp.abc.com</smtp-server-name>
             <smtp-server-user-name>testUser</smtp-server-user-name>
             <smtp-server-password>password</smtp-server-password>
           </smtp-server-settings>
         </org-email-settings>
         <org-password-policy-settings>
           <account-lockout-enabled>true</account-lockout-enabled>
           <invalid-logins-before-lockout>5</invalid-logins-before-lockout>
           <account-lockout-interval-minutes>5</account-lockout-interval-minutes>
         </org-password-policy-settings>
       </settings>
     </create-organization-params>
   </parameters>
 </vmware-vcloud-request>

The following figure shows the response for the sample request using vCloud API version 1.5:

Sample adapter response for the sample request using vCloud API version 1.5
<vmware-vcloud-response>
 <metadata>
   <status>success</status>
 </metadata>
 <status-line>
   <code>201</code>
   <reason>Created</reason>
 </status-line>
 <message-body>
   <AdminOrg name="TestOrg_1" id="urn:vcloud:org:01bdac8a-cf72-4ec8-8d44-4cc8c606431a" type="application/vnd.vmware.admin.organization+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a">
     <Link rel="add" type="application/vnd.vmware.admin.catalog+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/catalogs" />
     <Link rel="add" type="application/vnd.vmware.admin.user+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/users" />
     <Link rel="add" type="application/vnd.vmware.admin.group+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/groups" />
     <Link rel="add" type="application/vnd.vmware.admin.vdc+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/vdcs" />
     <Link rel="add" type="application/vnd.vmware.admin.orgNetwork+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/networks" />
     <Link rel="edit" type="application/vnd.vmware.admin.organization+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a" />
     <Link rel="remove" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a" />
     <Link rel="enable" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/action/enable" />
     <Link rel="alternate" type="application/vnd.vmware.vcloud.org+xml" href="https://10.128.249.64/api/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a" />
     <FullName>Test Organization</FullName>
     <IsEnabled>false</IsEnabled>
     <Settings type="application/vnd.vmware.admin.orgSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings">
       <Link rel="down" type="application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/vAppTemplateLeaseSettings" />
       <Link rel="down" type="application/vnd.vmware.admin.organizationEmailSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/email" />
       <Link rel="down" type="application/vnd.vmware.admin.vAppLeaseSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/vAppLeaseSettings" />
       <Link rel="down" type="application/vnd.vmware.admin.organizationPasswordPolicySettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/passwordPolicy" />
       <Link rel="down" type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/general" />
       <Link rel="down" type="application/vnd.vmware.admin.organizationLdapSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/ldap" />
       <Link rel="edit" type="application/vnd.vmware.admin.orgSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings" />
       <OrgGeneralSettings type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/general">
         <Link rel="edit" type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/general" />
         <CanPublishCatalogs>true</CanPublishCatalogs>
         <DeployedVMQuota>0</DeployedVMQuota>
         <StoredVmQuota>11</StoredVmQuota>
         <UseServerBootSequence>true</UseServerBootSequence>
         <DelayAfterPowerOnSeconds>2</DelayAfterPowerOnSeconds>
       </OrgGeneralSettings>
       <VAppLeaseSettings type="application/vnd.vmware.admin.vAppLeaseSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/vAppLeaseSettings">
         <Link rel="edit" type="application/vnd.vmware.admin.vAppLeaseSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/vAppLeaseSettings" />
         <DeleteOnStorageLeaseExpiration>true</DeleteOnStorageLeaseExpiration>
         <DeploymentLeaseSeconds>3600</DeploymentLeaseSeconds>
         <StorageLeaseSeconds>3600</StorageLeaseSeconds>
       </VAppLeaseSettings>
       <VAppTemplateLeaseSettings type="application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/vAppTemplateLeaseSettings">
         <Link rel="edit" type="application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/vAppTemplateLeaseSettings" />
         <DeleteOnStorageLeaseExpiration>true</DeleteOnStorageLeaseExpiration>
         <StorageLeaseSeconds>3600</StorageLeaseSeconds>
       </VAppTemplateLeaseSettings>
       <OrgLdapSettings type="application/vnd.vmware.admin.organizationLdapSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/ldap">
         <Link rel="edit" type="application/vnd.vmware.admin.organizationLdapSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/ldap" />
         <OrgLdapMode>CUSTOM</OrgLdapMode>
         <CustomOrgLdapSettings>
           <HostName>abcLDAP</HostName>
           <Port>1433</Port>
           <IsSsl>false</IsSsl>
           <IsSslAcceptAll>false</IsSslAcceptAll>
           <SearchBase>cn=kushal</SearchBase>
           <AuthenticationMechanism>SIMPLE</AuthenticationMechanism>
           <IsGroupSearchBaseEnabled>false</IsGroupSearchBaseEnabled>
           <ConnectorType>ACTIVE_DIRECTORY</ConnectorType>
           <UserAttributes>
             <ObjectClass>user</ObjectClass>
             <ObjectIdentifier>objectGuid</ObjectIdentifier>
             <UserName>username</UserName>
             <Email>mail</Email>
             <FullName>fullname</FullName>
             <GivenName>givenname</GivenName>
             <Surname>surname</Surname>
             <Telephone>telephone</Telephone>
             <GroupMembershipIdentifier>dn</GroupMembershipIdentifier>
             <GroupBackLinkIdentifier>abc</GroupBackLinkIdentifier>
           </UserAttributes>
           <GroupAttributes>
             <ObjectClass>group</ObjectClass>
             <ObjectIdentifier>objectGuid</ObjectIdentifier>
             <GroupName>groupname</GroupName>
             <Membership>member</Membership>
             <MembershipIdentifier>dn</MembershipIdentifier>
             <BackLinkIdentifier>abc</BackLinkIdentifier>
           </GroupAttributes>
         </CustomOrgLdapSettings>
       </OrgLdapSettings>
       <OrgEmailSettings type="application/vnd.vmware.admin.organizationEmailSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/email">
         <Link rel="edit" type="application/vnd.vmware.admin.organizationEmailSettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/email" />
         <IsDefaultSmtpServer>false</IsDefaultSmtpServer>
         <IsDefaultOrgEmail>true</IsDefaultOrgEmail>
         <FromEmailAddress />
         <DefaultSubjectPrefix />
         <IsAlertEmailToAllAdmins>true</IsAlertEmailToAllAdmins>
         <SmtpServerSettings>
           <IsUseAuthentication>true</IsUseAuthentication>
           <Host>smtp.abc.com</Host>
           <Username>testUser</Username>
         </SmtpServerSettings>
       </OrgEmailSettings>
       <OrgPasswordPolicySettings type="application/vnd.vmware.admin.organizationPasswordPolicySettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/passwordPolicy">
         <Link rel="edit" type="application/vnd.vmware.admin.organizationPasswordPolicySettings+xml" href="https://10.128.249.64/api/admin/org/01bdac8a-cf72-4ec8-8d44-4cc8c606431a/settings/passwordPolicy" />
         <AccountLockoutEnabled>true</AccountLockoutEnabled>
         <InvalidLoginsBeforeLockout>5</InvalidLoginsBeforeLockout>
         <AccountLockoutIntervalMinutes>5</AccountLockoutIntervalMinutes>
       </OrgPasswordPolicySettings>
     </Settings>
   </AdminOrg>
 </message-body>
</vmware-vcloud-response>

Adapter elements and sample requests and responses for vCloud API version 5.1

The following table describes the elements for the adapter request using vCloud API version 5.1:

Adapter request elements for the Create Organization operation using vCloud API version 5.1

The following figure shows a sample <items> XML element for the Create Organization operation using vCloud API version 5.1:

Sample <items> XML element for the Create Organization operation using vCloud API version 5.1
<vmware-vcloud-request>
   <vcloud-organization />
   <user-name />
   <password />
   <operation-name>Create_Organization</operation-name>
   <parameters>
     <create-organization-params>
       <organization-name>TestOrgRajat1</organization-name>
       <full-name>Test Organization</full-name>
       <description>sasas</description>
       <is-enabled>true</is-enabled>
       <settings>
         <org-general-settings>
           <can-publish-catalogs>true</can-publish-catalogs>
           <deployed-vm-quote>10</deployed-vm-quote>
           <stored-vm-quota>11</stored-vm-quota>
           <use-server-boot-sequence>true</use-server-boot-sequence>
           <delay-after-power-on-seconds>2</delay-after-power-on-seconds>
         </org-general-settings>
         <vapp-lease-settings>
           <delete-on-storage-lease-expiration>true</delete-on-storage-lease-expiration>
           <deployment-lease-seconds>3600</deployment-lease-seconds>
           <storage-lease-seconds>3600</storage-lease-seconds>
         </vapp-lease-settings>
         <vapp-template-lease-settings>
           <delete-on-storage-lease-expiration>true</delete-on-storage-lease-expiration>
           <storage-lease-seconds>3600</storage-lease-seconds>
         </vapp-template-lease-settings>
         <org-email-settings>
           <is-default-smtp-server>false</is-default-smtp-server>
           <is-default-org-email>false</is-default-org-email>
           <from-email-address>vcloud@abc.com</from-email-address>
           <default-subject-prefix>Mail from vCloud</default-subject-prefix>
           <is-alert-email-to-all-admins>false</is-alert-email-to-all-admins>
           <alert-email-to>admin@gl.com</alert-email-to>
           <alert-email-to>root@gl.com</alert-email-to>
           <smtp-server-settings>
             <is-use-authentication>true</is-use-authentication>
             <smtp-server-name>smtp.abc.com</smtp-server-name>
             <smtp-server-user-name>testUser</smtp-server-user-name>
             <smtp-server-port>55</smtp-server-port>
             <smtp-server-password>password</smtp-server-password>
           </smtp-server-settings>
         </org-email-settings>
         <org-password-policy-settings>
           <account-lockout-enabled>true</account-lockout-enabled>
           <invalid-logins-before-lockout>5</invalid-logins-before-lockout>
           <account-lockout-interval-minutes>5</account-lockout-interval-minutes>
         </org-password-policy-settings>
         <org-operation-limits-settings>
           <consoles-per-vm-limit>1</consoles-per-vm-limit>
           <operations-per-user>2</operations-per-user>
           <operations-per-org>3</operations-per-org>
         </org-operation-limits-settings>
       </settings>
     </create-organization-params>
   </parameters>
 </vmware-vcloud-request>

The following figure shows the response for the sample request using vCloud API version 5.1:

Sample adapter response for the sample request using vCloud API version 5.1
<vmware-vcloud-response>
 <metadata>
   <status>success</status>
 </metadata>
 <status-line>
   <code>201</code>
   <reason>Created</reason>
 </status-line>
 <message-body>
   <AdminOrg name="TestOrgRajat1" id="urn:vcloud:org:d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c" type="application/vnd.vmware.admin.organization+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c">
     <Link rel="add" type="application/vnd.vmware.admin.user+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/users" />
     <Link rel="add" type="application/vnd.vmware.admin.group+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/groups" />
     <Link rel="add" type="application/vnd.vmware.admin.vdc+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/vdcs" />
     <Link rel="add" type="application/vnd.vmware.admin.createVdcParams+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/vdcsparams" />
     <Link rel="edit" type="application/vnd.vmware.admin.organization+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c" />
     <Link rel="disable" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/action/disable" />
     <Link rel="alternate" type="application/vnd.vmware.vcloud.org+xml" href="https://10.128.37.5/api/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c" />
     <Description>sasas</Description>
     <FullName>Test Organization</FullName>
     <IsEnabled>true</IsEnabled>
     <Settings type="application/vnd.vmware.admin.orgSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings">
       <Link rel="down" type="application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/vAppTemplateLeaseSettings" />
       <Link rel="down" type="application/vnd.vmware.admin.organizationEmailSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/email" />
       <Link rel="down" type="application/vnd.vmware.admin.vAppLeaseSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/vAppLeaseSettings" />
       <Link rel="down" type="application/vnd.vmware.admin.organizationPasswordPolicySettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/passwordPolicy" />
       <Link rel="down" type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/general" />
       <Link rel="down" type="application/vnd.vmware.admin.organizationLdapSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/ldap" />
       <Link rel="down" type="application/vnd.vmware.admin.guestPersonalizationSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/guestPersonalizationSettings" />
       <Link rel="down" type="application/vnd.vmware.admin.operationLimitsSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/operationLimitsSettings" />
       <Link rel="edit" type="application/vnd.vmware.admin.orgSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings" />
       <OrgGeneralSettings type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/general">
         <Link rel="edit" type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/general" />
         <CanPublishCatalogs>true</CanPublishCatalogs>
         <DeployedVMQuota>0</DeployedVMQuota>
         <StoredVmQuota>11</StoredVmQuota>
         <UseServerBootSequence>true</UseServerBootSequence>
         <DelayAfterPowerOnSeconds>2</DelayAfterPowerOnSeconds>
       </OrgGeneralSettings>
       <VAppLeaseSettings type="application/vnd.vmware.admin.vAppLeaseSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/vAppLeaseSettings">
         <Link rel="edit" type="application/vnd.vmware.admin.vAppLeaseSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/vAppLeaseSettings" />
         <DeleteOnStorageLeaseExpiration>true</DeleteOnStorageLeaseExpiration>
         <DeploymentLeaseSeconds>3600</DeploymentLeaseSeconds>
         <StorageLeaseSeconds>3600</StorageLeaseSeconds>
       </VAppLeaseSettings>
       <VAppTemplateLeaseSettings type="application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/vAppTemplateLeaseSettings">
         <Link rel="edit" type="application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/vAppTemplateLeaseSettings" />
         <DeleteOnStorageLeaseExpiration>true</DeleteOnStorageLeaseExpiration>
         <StorageLeaseSeconds>3600</StorageLeaseSeconds>
       </VAppTemplateLeaseSettings>
       <OrgLdapSettings type="application/vnd.vmware.admin.organizationLdapSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/ldap">
         <Link rel="edit" type="application/vnd.vmware.admin.organizationLdapSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/ldap" />
         <OrgLdapMode>NONE</OrgLdapMode>
       </OrgLdapSettings>
       <OrgEmailSettings type="application/vnd.vmware.admin.organizationEmailSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/email">
         <Link rel="edit" type="application/vnd.vmware.admin.organizationEmailSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/email" />
         <IsDefaultSmtpServer>false</IsDefaultSmtpServer>
         <IsDefaultOrgEmail>false</IsDefaultOrgEmail>
         <FromEmailAddress>vcloud@abc.com</FromEmailAddress>
         <DefaultSubjectPrefix>Mail from vCloud</DefaultSubjectPrefix>
         <IsAlertEmailToAllAdmins>false</IsAlertEmailToAllAdmins>
         <AlertEmailTo>admin@gl.com</AlertEmailTo>
         <AlertEmailTo>root@gl.com</AlertEmailTo>
         <SmtpServerSettings>
           <IsUseAuthentication>true</IsUseAuthentication>
           <Host>smtp.abc.com</Host>
           <Port>55</Port>
           <Username>testUser</Username>
         </SmtpServerSettings>
       </OrgEmailSettings>
       <OrgPasswordPolicySettings type="application/vnd.vmware.admin.organizationPasswordPolicySettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/passwordPolicy">
         <Link rel="edit" type="application/vnd.vmware.admin.organizationPasswordPolicySettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/passwordPolicy" />
         <AccountLockoutEnabled>true</AccountLockoutEnabled>
         <InvalidLoginsBeforeLockout>5</InvalidLoginsBeforeLockout>
         <AccountLockoutIntervalMinutes>5</AccountLockoutIntervalMinutes>
       </OrgPasswordPolicySettings>
       <OrgOperationLimitsSettings type="application/vnd.vmware.admin.operationLimitsSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/operationLimitsSettings">
         <Link rel="up" type="application/vnd.vmware.admin.orgSettings+xml" name="TestOrgRajat1" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings" />
         <Link rel="edit" type="application/vnd.vmware.admin.operationLimitsSettings+xml" href="https://10.128.37.5/api/admin/org/d1c34e7a-0e5d-47c2-a7e3-3b9f3c66544c/settings/operationLimitsSettings" />
         <ConsolesPerVmLimit>1</ConsolesPerVmLimit>
         <OperationsPerUser>2</OperationsPerUser>
         <OperationsPerOrg>3</OperationsPerOrg>
       </OrgOperationLimitsSettings>
       <OrgFederationSettings>
         <Enabled>false</Enabled>
       </OrgFederationSettings>
     </Settings>
   </AdminOrg>
 </message-body>
</vmware-vcloud-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Content 21.02