Hello,
I was wondering why I would get this error when creating a subscription for a customer using the API.
I am attempting to create the web space, set all limits and permissions, etc all in one go - according to the documentation it seems like this should work.
I was wondering why I would get this error when creating a subscription for a customer using the API.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.5">
<webspace>
<add>
<result>
<status>error</status>
<errcode>2308</errcode>
<errtext>Limits for the resource type max_dom cannot be set.</errtext>
</result>
</add>
</webspace>
</packet>
I am attempting to create the web space, set all limits and permissions, etc all in one go - according to the documentation it seems like this should work.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.5">
<webspace>
<add>
<gen_setup>
<name>mytestuser9.shared-domain.com</name>
<owner-id>11</owner-id>
<htype>vrt_hst</htype>
<ip_address>10.11.28.157</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<property>
<name>ssl</name>
<value>false</value>
</property>
<property>
<name>ftp_login</name>
<value>vedebe</value>
</property>
<property>
<name>ftp_password</name>
<value>7B8ZbUy9</value>
</property>
<ip_address>10.11.28.157</ip_address>
</vrt_hst>
</hosting>
<limits>
<limit>
<name>max_cf_dsn</name>
<value>5</value>
</limit>
<limit>
<name>max_odbc</name>
<value>5</value>
</limit>
<limit>
<name>max_shared_ssl_links</name>
<value>5</value>
</limit>
<limit>
<name>max_fpse_users</name>
<value>5</value>
</limit>
<limit>
<name>max_unity_mobile_sites</name>
<value>0</value>
</limit>
<limit>
<name>max_dom</name>
<value>50</value>
</limit>
<limit>
<name>max_subdom</name>
<value>-1</value>
</limit>
<limit>
<name>max_webapps</name>
<value>-1</value>
</limit>
<limit>
<name>max_redir</name>
<value>-1</value>
</limit>
<limit>
<name>max_wu</name>
<value>3</value>
</limit>
<limit>
<name>max_dom_aliases</name>
<value>10</value>
</limit>
<limit>
<name>max_subftp_users</name>
<value>10</value>
</limit>
<limit>
<name>expiration</name>
<value>-1</value>
</limit>
<limit>
<name>max_resp</name>
<value>50</value>
</limit>
<limit>
<name>max_box</name>
<value>20</value>
</limit>
<limit>
<name>max_db</name>
<value>20</value>
</limit>
<limit>
<name>mysql_dbase_space</name>
<value>-1</value>
</limit>
<limit>
<name>max_site_builder</name>
<value>1</value>
</limit>
<limit>
<name>max_maillists</name>
<value>0</value>
</limit>
<limit>
<name>total_mboxes_quota</name>
<value>0</value>
</limit>
<limit>
<name>max_traffic</name>
<value>2147483648</value>
</limit>
<limit>
<name>disk_space</name>
<value>2147483648</value>
</limit>
</limits>
<prefs>
<www>true</www>
<stat_ttl>18</stat_ttl>
</prefs>
<performance>
<bandwidth>307200</bandwidth>
<max_connections>100</max_connections>
</performance>
<permissions>
<permission>
<name>create_domains</name>
<value>true</value>
</permission>
<permission>
<name>manage_phosting</name>
<value>true</value>
</permission>
<permission>
<name>manage_php_settings</name>
<value>false</value>
</permission>
<permission>
<name>manage_performance</name>
<value>false</value>
</permission>
<permission>
<name>manage_subdomains</name>
<value>true</value>
</permission>
<permission>
<name>manage_sh_access</name>
<value>false</value>
</permission>
<permission>
<name>manage_mail_settings</name>
<value>false</value>
</permission>
<permission>
<name>manage_virusfilter</name>
<value>false</value>
</permission>
<permission>
<name>manage_dns</name>
<value>true</value>
</permission>
<permission>
<name>manage_log</name>
<value>true</value>
</permission>
<permission>
<name>manage_crontab</name>
<value>true</value>
</permission>
<permission>
<name>manage_anonftp</name>
<value>false</value>
</permission>
<permission>
<name>manage_webapps</name>
<value>true</value>
</permission>
<permission>
<name>manage_maillists</name>
<value>false</value>
</permission>
<permission>
<name>manage_spamfilter</name>
<value>false</value>
</permission>
<permission>
<name>manage_quota</name>
<value>false</value>
</permission>
<permission>
<name>manage_additional_permissions</name>
<value>false</value>
</permission>
<permission>
<name>manage_webstat</name>
<value>true</value>
</permission>
<permission>
<name>manage_iis_app_pool</name>
<value>false</value>
</permission>
<permission>
<name>manage_domain_aliases</name>
<value>true</value>
</permission>
<permission>
<name>manage_shared_ssl</name>
<value>false</value>
</permission>
<permission>
<name>select_db_server</name>
<value>true</value>
</permission>
<permission>
<name>access_appcatalog</name>
<value>true</value>
</permission>
<permission>
<name>manage_subftp</name>
<value>true</value>
</permission>
<permission>
<name>allow_ftp_backups</name>
<value>true</value>
</permission>
<permission>
<name>allow_local_backups</name>
<value>false</value>
</permission>
<permission>
<name>allow_insecure_sites</name>
<value>true</value>
</permission>
<permission>
<name>manage_website_maintenance</name>
<value>true</value>
</permission>
<permission>
<name>manage_protected_dirs</name>
<value>true</value>
</permission>
<permission>
<name>access_service_users</name>
<value>true</value>
</permission>
<permission>
<name>allow_license_stubs</name>
<value>false</value>
</permission>
</permissions>
<php-settings>
<setting>
<name>memory_limit</name>
<value>128M</value>
</setting>
<setting>
<name>safe_mode</name>
<value>off</value>
</setting>
</php-settings>
</add>
</webspace>
</packet>