Remote API - folder_directive_snippets_id?

Discussion in 'Developers' Forum' started by Steveorevo, May 28, 2022.

  1. Steveorevo

    Steveorevo Member

    I've been creating websites using the remote API; very cool feature. However, I'm puzzled as to what
    folder_directive_snippets_id is; I see in the UI -> System -> Directive Snippets that I can create snippets for:
    * Apache
    * nginx
    * PHP
    * Proxy

    But what is the corresponding value for "folder" directive snippets? Any clue greatly appreciated.
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    What do you mean with "folder" directive snippets?
     
  3. Steveorevo

    Steveorevo Member

    Ahh, it looks like I was interpreting the results from sites_web_domain_get which returns more than what is needed for sites_web_domain_add. This is what I saw from the initial 'get' call:
    Code:
                [backup_copies] => 1
                [backup_format_web] => default
                [backup_format_db] => gzip
                [backup_encrypt] => n
                [backup_password] => 
                [backup_excludes] => 
                [active] => y
                [traffic_quota_lock] => n
                [proxy_directives] => 
                [last_quota_notification] => 
                [rewrite_rules] => 
                [added_date] => 2022-04-20
                [added_by] => example
                [directive_snippets_id] => 1
                [enable_pagespeed] => n
                [http_port] => 80
                [https_port] => 443
                [folder_directive_snippets] => 
                [log_retention] => 10
                [proxy_protocol] => n
                [server_php_id] => 1
                [jailkit_chroot_app_sections] => 
                [jailkit_chroot_app_programs] => 
                [delete_unused_jailkit] => y
                [last_jailkit_update] => 2022-05-29
    
     

Share This Page