Organization settings define organization policies such as default lease settings for vApps and how incorrect login attempts are handled. They also configure how the organization uses services such as email, LDAP, and identity providers.
An AdminOrg element contains an OrgSettings element, which contains the following elements, each of which represents a group of related organization settings. Default settings are inherited from the system.
- GeneralOrgSettings
- Specifies storage and deployment quotas and other behaviors for virtual machines that members of this organization own. Sets the scope of catalog publication and subscription in this organization.
- VAppLeaseSettings
- Controls storage and deployment leases for vApps.
- VAppTemplateLeaseSettings
- Controls storage and deployment leases for vApp templates.
- OrgLdapSettings
- Defines whether this organization is connected to an LDAP service, and whether it uses the service defined in the system LdapSettings or a custom LDAP service. See Configuring and Managing Federation with LDAP.
- OrgOAuthSettings
- Defines the OAuth identity provider used by this organization. See Configuring and Managing Federation with OAuth Configuring and Managing Federation with OAuth.
- OrgEmailSettings
- Defines whether this organization uses the email service defined in the system EmailSettings or a custom email service.
- OrgPasswordPolicySettings
- Specifies policies to be followed when a user in this organization enters an incorrect password. Initial values are inherited from the system PasswordPolicySettings.
- OrgOperationLimitsSettings
- Specifies limits to be placed on simultaneous resource-intensive operations and console sessions for members of this organization.
- OrgGuestPersonalizationSettings
- Default values for GuestCustomizationSection elements in virtual machines created by this organization. See Retrieve or Modify the GuestCustomizationSection of a Virtual Machine
- OrgFederationSettings
- Settings related to any SAML identity provider that this organization shares with other applications or enterprises to enable single sign-on. See Configuring and Managing Federation with SAML.
Prerequisites
This operation requires the rights included in the predefined Organization Administrator role or an equivalent set of rights. Verify that you are logged in to the vCloud Air Compute Service as an Account Administrator.
Procedure
Example: Update Organization General Settings
This example updates the general settings of the organization created in Create an Organization. When you create or retrieve an AdminOrg, these settings are contained in the OrgGeneralSettings element. To update them, you must use a GeneralOrgSettings element, which has the same contents as OrgGeneralSettings. This update changes the limits on deployed and stored virtual machines. The request includes all members of the GeneralOrgSettings element, even those that are not changing. It is a best practice to include all members of the GeneralOrgSettings element in an update request. Optional elements that are missing or empty in the request are reset to their default values.
PUT https://vcloud.example.com/api/admin/org/26/settings/general Content-Type: application/vnd.vmware.admin.organizationGeneralSettings+xml ... <?xml version="1.0" encoding="UTF-8"?> <GeneralOrgSettings xmlns="http://www.vmware.com/vcloud/v1.5" type="application/vnd.vmware.admin.organizationGeneralSettings+xml"> <CanPublishCatalogs>false</CanPublishCatalogs> <CanPublishExternally>true</CanPublishExternally> <CanSubscribe>false</CanSubscribe> <DeployedVMQuota>10</DeployedVMQuota> <StoredVmQuota>100</StoredVmQuota> <UseServerBootSequence>false</UseServerBootSequence> <DelayAfterPowerOnSeconds>0</DelayAfterPowerOnSeconds> </GeneralOrgSettings>
The response contains information extracted from the request, and includes a rel="edit" link and other attributes that the server creates.
200 OK Content-Type: application/vnd.vmware.admin.organizationGeneralSettings+xml ... <GeneralOrgSettings type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://vcloud.example.com/api/admin/org/26/settings/general"> <Link rel="edit" type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://vcloud.example.com/api/admin/org/26/settings/general" /> <CanPublishCatalogs>false</CanPublishCatalogs> <CanPublishExternally>true</CanPublishExternally> <CanSubscribe>false</CanSubscribe> <DeployedVMQuota>10</DeployedVMQuota> <StoredVmQuota>100</StoredVmQuota> <UseServerBootSequence>false</UseServerBootSequence> <DelayAfterPowerOnSeconds>0</DelayAfterPowerOnSeconds> </GeneralOrgSettings>
When you retrieve the organization after updating its GeneralOrgSettings, you can see the results of the update in the OrgGeneralSettings element of the AdminOrg.
GET https://vcloud.example.com/api/admin/org/26 ... <AdminOrg ...> ... <OrgGeneralSettings type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://vcloud.example.com/api/admin/org/26/settings/general"> <Link rel="edit" type="application/vnd.vmware.admin.organizationGeneralSettings+xml" href="https://vcloud.example.com/api/admin/org/26/settings/general" /> <CanPublishCatalogs>false</CanPublishCatalogs> <CanPublishExternally>true</CanPublishExternally> <CanSubscribe>false</CanSubscribe> <DeployedVMQuota>10</DeployedVMQuota> <StoredVmQuota>100</StoredVmQuota> <UseServerBootSequence>false</UseServerBootSequence> <DelayAfterPowerOnSeconds>0</DelayAfterPowerOnSeconds> </OrgGeneralSettings> ... </AdminOrg>