VMware Cloud Director API - POST-CreateOrganization
POST /admin/orgs
- Operation:
- POST /admin/orgs
- Description:
- Create an organization.
- Since:
- 0.9
- Input parameters
-
- Consume media type(s):
-
application/vnd.vmware.admin.organization+xml
application/vnd.vmware.admin.organization+json
- Input type:
- AdminOrgType
- Output parameters
-
AdminOrgType
- Produce media type(s):
-
application/vnd.vmware.admin.organization+xml
application/vnd.vmware.admin.organization+json
- Output type:
- AdminOrgType
- Examples
-
- Request
-
HTTP 1.1
POST /api/admin/orgs
Headers:
Content-Length: 676
Content-Type: application/vnd.vmware.admin.organization+xml; charset=ISO-8859-1
x-vcloud-authorization: FQMWZgFq5mhMRSpt2ecxnsAXTxRpxdbZ/z2u6uwEH+w=
Body:
<?xml version="1.0" encoding="UTF-8"?><vcloud:AdminOrg
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
name="OrgName">
<vcloud:FullName>Organization Full Name</vcloud:FullName>
<vcloud:Settings>
<vcloud:OrgGeneralSettings>
<vcloud:CanPublishCatalogs>true</vcloud:CanPublishCatalogs>
<vcloud:DeployedVMQuota>10</vcloud:DeployedVMQuota>
<vcloud:StoredVmQuota>15</vcloud:StoredVmQuota>
<vcloud:UseServerBootSequence>false</vcloud:UseServerBootSequence>
<vcloud:DelayAfterPowerOnSeconds>1</vcloud:DelayAfterPowerOnSeconds>
</vcloud:OrgGeneralSettings>
</vcloud:Settings>
</vcloud:AdminOrg>
- Response
-
HTTP/1.1 201 Created
Headers:
Content-Length: 8731
Content-Type: application/vnd.vmware.admin.organization+xml;version=5.5
Location: https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?><AdminOrg
xmlns="http://www.vmware.com/vcloud/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a"
id="urn:vcloud:org:7cc8d565-1203-49bd-b50c-24e0acbaeb5a"
name="OrgName"
type="application/vnd.vmware.admin.organization+xml"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/users"
rel="add"
type="application/vnd.vmware.admin.user+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/groups"
rel="add"
type="application/vnd.vmware.admin.group+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/vdcs"
rel="add"
type="application/vnd.vmware.admin.vdc+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/vdcsparams"
rel="add"
type="application/vnd.vmware.admin.createVdcParams+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a"
rel="edit"
type="application/vnd.vmware.admin.organization+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a"
rel="remove"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/action/enable"
rel="enable"/>
<Link
href="https://vcloud.example.com/api/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a"
rel="alternate"
type="application/vnd.vmware.vcloud.org+xml"/>
<FullName>Organization Full Name</FullName>
<IsEnabled>false</IsEnabled>
<Settings
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings"
type="application/vnd.vmware.admin.orgSettings+xml">
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/vAppTemplateLeaseSettings"
rel="down"
type="application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/email"
rel="down"
type="application/vnd.vmware.admin.organizationEmailSettings+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/vAppLeaseSettings"
rel="down"
type="application/vnd.vmware.admin.vAppLeaseSettings+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/passwordPolicy"
rel="down"
type="application/vnd.vmware.admin.organizationPasswordPolicySettings+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/general"
rel="down"
type="application/vnd.vmware.admin.organizationGeneralSettings+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/ldap"
rel="down"
type="application/vnd.vmware.admin.organizationLdapSettings+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/guestPersonalizationSettings"
rel="down"
type="application/vnd.vmware.admin.guestPersonalizationSettings+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/operationLimitsSettings"
rel="down"
type="application/vnd.vmware.admin.operationLimitsSettings+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings"
rel="edit"
type="application/vnd.vmware.admin.orgSettings+xml"/>
<OrgGeneralSettings
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/general"
type="application/vnd.vmware.admin.organizationGeneralSettings+xml">
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/general"
rel="edit"
type="application/vnd.vmware.admin.organizationGeneralSettings+xml"/>
<CanPublishCatalogs>true</CanPublishCatalogs>
<CanPublishExternally>false</CanPublishExternally>
<CanSubscribe>false</CanSubscribe>
<DeployedVMQuota>10</DeployedVMQuota>
<StoredVmQuota>15</StoredVmQuota>
<UseServerBootSequence>false</UseServerBootSequence>
<DelayAfterPowerOnSeconds>1</DelayAfterPowerOnSeconds>
</OrgGeneralSettings>
<VAppLeaseSettings
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/vAppLeaseSettings"
type="application/vnd.vmware.admin.vAppLeaseSettings+xml">
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/vAppLeaseSettings"
rel="edit"
type="application/vnd.vmware.admin.vAppLeaseSettings+xml"/>
<DeleteOnStorageLeaseExpiration>false</DeleteOnStorageLeaseExpiration>
<DeploymentLeaseSeconds>604800</DeploymentLeaseSeconds>
<StorageLeaseSeconds>2592000</StorageLeaseSeconds>
</VAppLeaseSettings>
<VAppTemplateLeaseSettings
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/vAppTemplateLeaseSettings"
type="application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml">
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/vAppTemplateLeaseSettings"
rel="edit"
type="application/vnd.vmware.admin.vAppTemplateLeaseSettings+xml"/>
<DeleteOnStorageLeaseExpiration>false</DeleteOnStorageLeaseExpiration>
<StorageLeaseSeconds>2592000</StorageLeaseSeconds>
</VAppTemplateLeaseSettings>
<OrgLdapSettings
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/ldap"
type="application/vnd.vmware.admin.organizationLdapSettings+xml">
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/ldap"
rel="edit"
type="application/vnd.vmware.admin.organizationLdapSettings+xml"/>
<OrgLdapMode>NONE</OrgLdapMode>
</OrgLdapSettings>
<OrgEmailSettings
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/email"
type="application/vnd.vmware.admin.organizationEmailSettings+xml">
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/email"
rel="edit"
type="application/vnd.vmware.admin.organizationEmailSettings+xml"/>
<IsDefaultSmtpServer>true</IsDefaultSmtpServer>
<IsDefaultOrgEmail>true</IsDefaultOrgEmail>
<FromEmailAddress/>
<DefaultSubjectPrefix/>
<IsAlertEmailToAllAdmins>true</IsAlertEmailToAllAdmins>
<SmtpServerSettings>
<IsUseAuthentication>false</IsUseAuthentication>
<Host/>
<Port>25</Port>
<Username/>
</SmtpServerSettings>
</OrgEmailSettings>
<OrgPasswordPolicySettings
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/passwordPolicy"
type="application/vnd.vmware.admin.organizationPasswordPolicySettings+xml">
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/passwordPolicy"
rel="edit"
type="application/vnd.vmware.admin.organizationPasswordPolicySettings+xml"/>
<AccountLockoutEnabled>false</AccountLockoutEnabled>
<InvalidLoginsBeforeLockout>5</InvalidLoginsBeforeLockout>
<AccountLockoutIntervalMinutes>10</AccountLockoutIntervalMinutes>
</OrgPasswordPolicySettings>
<OrgOperationLimitsSettings
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/operationLimitsSettings"
type="application/vnd.vmware.admin.operationLimitsSettings+xml">
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings"
name="OrgName"
rel="up"
type="application/vnd.vmware.admin.orgSettings+xml"/>
<Link
href="https://vcloud.example.com/api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/settings/operationLimitsSettings"
rel="edit"
type="application/vnd.vmware.admin.operationLimitsSettings+xml"/>
<ConsolesPerVmLimit>0</ConsolesPerVmLimit>
<OperationsPerUser>0</OperationsPerUser>
<OperationsPerOrg>0</OperationsPerOrg>
</OrgOperationLimitsSettings>
<OrgFederationSettings>
<Enabled>false</Enabled>
</OrgFederationSettings>
</Settings>
</AdminOrg>