云桌面 WORKSPACE-查询初始策略项:响应示例

时间:2024-12-27 15:06:27

响应示例

状态码: 200

查询策略组策略项信息的响应。

{
  "policies" : {
    "peripherals" : {
      "usb_custom_policy_debug" : "string",
      "usb_port_redirection" : {
        "usb_enable" : true,
        "options" : {
          "usb_image_enable" : true,
          "usb_video_enable" : true,
          "usb_printer_enable" : true,
          "usb_storage_enable" : false,
          "wireless_devices_enable" : false,
          "network_devices_enable" : false,
          "usb_smart_card_enable" : true,
          "other_usb_devices_enable" : false,
          "usb_redirection_customization_policy" : "string",
          "usb_redirection_mode" : "Common mode"
        }
      },
      "device_redirection" : {
        "printer_redirection" : {
          "printer_enable" : true,
          "options" : {
            "mobile_printer_enable" : false,
            "print_data_compression_mode" : false,
            "sync_client_default_printer_enable" : true,
            "universal_printer_driver" : "Default"
          }
        },
        "session_printer" : {
          "session_printer_enable" : false,
          "options" : {
            "session_printer_customization_policy" : "string"
          }
        },
        "camera_redirection" : {
          "video_compress_enable" : true,
          "options" : {
            "camera_frame_rate" : 15,
            "camera_max_width" : 3000,
            "camera_max_heigth" : 3000,
            "camera_compression_method" : "H.264"
          }
        },
        "twain_redirection_enable" : true,
        "image_compression_level" : "medium",
        "hid_redirection" : {
          "hid_redirection_enable" : false,
          "options" : {
            "hid_redirection_customization_policy" : "string"
          }
        }
      },
      "usb_device_common" : {
        "pcsc_smart_card_enable" : "Disable",
        "common_options" : {
          "remove_smart_card_disconnect_enable" : false
        }
      },
      "serial_port_redirection" : {
        "serial_port_enable" : false,
        "options" : {
          "auto_connect_enable" : false
        }
      },
      "parallel_port_redirection" : {
        "parallel_port_enable" : false
      },
      "driver_interface_redirection" : {
        "api_redir_driver_list" : "string"
      }
    },
    "audio" : {
      "audio_redirection_enable" : true,
      "play_volume" : "Do Not Set Volume",
      "play_volume_ratio" : "Do Not Set Volume Ratio",
      "record_volume" : "100",
      "record_volume_ratio" : "Do Not Set Volume Ratio",
      "audio_transmission_mode" : "Reliable Transmission",
      "play_redirection_enable" : true,
      "play_classification" : "Music Play",
      "play_quality" : "Middle",
      "play_denoising" : "Disable Denoising",
      "play_agc" : "Disable AGC",
      "play_crc" : "Disable CRC",
      "play_device_mode" : "Play Device In Shared Mode",
      "play_delay_threshold" : "240",
      "play_amplitude_threshold" : "4096",
      "play_prefill_data" : "Do Not Prefill Data",
      "record_redirection_enable" : true,
      "record_classification" : "Speech Call",
      "record_quality" : "Middle",
      "record_denoising" : "-25",
      "record_agc" : "Disable AGC",
      "record_crc" : "Disable CRC",
      "record_device_mode" : "Record Device In Shared Mode",
      "record_delay_threshold" : "200",
      "record_amplitude_threshold" : "4096"
    },
    "client" : {
      "automatic_reconnection_interval" : 5,
      "session_persistence_time" : 180,
      "autoclose_monitor_after_locked" : false,
      "autoclose_monitor_options" : {
        "autoclose_monitor_wait_time" : 300
      },
      "forbid_screen_capture" : false,
      "client_machine_join_domain" : true,
      "client_type" : {
        "client_type_limit" : true,
        "options" : {
          "sc_type_window" : true,
          "sc_type_mac" : true,
          "sc_type_android" : true,
          "sc_type_linux" : true,
          "sc_type_h5" : true,
          "sc_type_ios" : true,
          "sc_type_harmony_os" : true,
          "tc_type_all" : true
        }
      }
    },
    "display" : {
      "display_level" : "LEVEL4",
      "options" : {
        "display_bandwidth" : 20000,
        "frame_rate" : 25,
        "video_frame_rate" : 30,
        "min_image_cache" : 200,
        "smoothing_factor" : 60,
        "lossless_compression_mode" : "Basic Compression",
        "deep_compression_options" : {
          "deep_compression_level" : "Compression grade 0"
        },
        "lossy_compression_quality" : 85,
        "color_enhancement_enable" : false,
        "quality_bandwidth_first" : "Quality First",
        "video_bit_rate_options" : {
          "average_video_bit_rate" : 18000
        },
        "peak_video_bit_rate" : 18000,
        "video_quality_options" : {
          "average_video_quality" : 15,
          "lowest_video_quality" : 25,
          "highest_video_quality" : 7
        },
        "gop_size" : 100,
        "encoding_preset" : "Preset 1"
      },
      "rendering_acceleration_enable" : false,
      "rendering_acceleration_options" : {
        "video_acceleration_enhancement_enable" : true,
        "video_optimization_enable" : false,
        "gpu_color_optimization_enable" : false,
        "video_recognition_threshold" : 10,
        "frame_rate_statistical_length" : 4,
        "image_quality_threshold" : 0,
        "refresh_frequency_threshold" : 3,
        "exiting_video_area_threshold" : 8,
        "min_video_width" : 191,
        "min_video_length" : 191,
        "single_frame_natural_percentage" : "0.3",
        "cyclical_natural_images_number" : 2,
        "non_natural_image_percentage" : "0.85",
        "non_natural_images_number" : 25
      },
      "adaptive_bitrate_control_enable" : false,
      "adaptive_bitrate_control_options" : {
        "peak_bandwidth_suppression_enable" : false,
        "expected_average_network_latency" : 160,
        "network_latency_threshold1" : 160,
        "network_latency_threshold2" : 300,
        "min_dynamic_frame_rate" : 17,
        "min_dynamic_frame_rate_lv1" : 17,
        "min_dynamic_frame_rate_lv2" : 10,
        "rtt_threshold" : 20,
        "min_add_framerate" : 8,
        "max_add_framerate" : 20,
        "sub_framerate" : 25,
        "adaptive_bandwidth_lower_limit" : 500,
        "adaptive_compression_quality_lower_limit" : 60,
        "adaptive_compression_quality_upper_limit" : 85,
        "adaptive_compression_quality_increase_limit" : 5,
        "adaptive_compression_quality_decrease_limit" : 10,
        "adaptive_average_quality_lower_limit" : 15,
        "adaptive_average_quality_upper_limit" : 25,
        "adaptive_average_quality_increase_limit" : 3,
        "adaptive_average_quality_decrease_limit" : 1,
        "adaptive_min_quality_lower_limit" : 25,
        "adaptive_min_quality_upper_limit" : 30,
        "adaptive_min_quality_increase_limit" : 3,
        "adaptive_min_quality_decrease_limit" : 1
      },
      "video_card_memory_size" : 64,
      "configuration1_enable" : false,
      "driver_delegation_mode_enable" : false,
      "driver_delegation_latency" : 80,
      "video_latency" : 80,
      "change_resolution_vm" : false,
      "application_recognition" : "string",
      "duplicate_display_enable" : false,
      "default_mapping_order" : "1,2,3,4",
      "duplicate_display_mode" : "One-to-One"
    },
    "file_and_clipboard" : {
      "file_redirection" : {
        "redirection_mode" : "DISABLED",
        "options" : {
          "fluid_control_switch_enable" : false,
          "fluid_control_options" : {
            "good_network_latency" : 30,
            "normal_network_latency" : 70,
            "poor_network_latency" : 100,
            "reducing_step" : 20,
            "slow_increasing_step" : 10,
            "quick_increasing_step" : 20,
            "start_speed" : 1024,
            "test_block_size" : 64,
            "test_time_gap" : 10000
          },
          "compression_switch_enable" : false,
          "compression_switch_options" : {
            "compression_threshold" : 512,
            "minimum_compression_rate" : 900
          },
          "linux_file_size_supported_enable" : true,
          "linux_file_size_supported_options" : {
            "linux_file_size_supported_threshold" : 100
          },
          "linux_root_mount_switch_enable" : true,
          "linux_root_dir_list" : "\\\\var\\\\log",
          "linux_file_mount_path" : "\\\\media|\\\\Volumes|\\\\swdb\\\\mnt|\\\\home|\\\\storage|\\\\tmp|\\\\run\\\\media",
          "linux_fixed_drive_file_system_format" : "string",
          "linux_removable_drive_file_system_format" : "vfat|ntfs|msdos|fuseblk|sdcardfs|exfat|fuse.fdredir|lifs",
          "linux_cdrom_drive_file_system_format" : "cd9660|iso9660|udf",
          "linux_network_drive_file_system_format" : "smbfs|afpfs|cifs",
          "path_separator" : "|",
          "fixed_drive_enable" : true,
          "removable_drive_enable" : true,
          "cd_rom_drive_enable" : true,
          "network_drive_enable" : true
        },
        "vm_send_file_client" : true,
        "redirection_send_file_options" : {
          "read_write_speed" : 0
        }
      },
      "clip_length_limit_flag_c2s" : true,
      "clip_length_limit_c2s" : 180,
      "clip_length_limit_flag_s2c" : true,
      "clip_length_limit_s2c" : 180,
      "fd_mobile_client_redir_enable" : true,
      "clipboard_redirection" : "DISABLED",
      "clipboard_redirection_options" : {
        "rich_text_redirection_enable" : true,
        "clipboard_file_redirection_enable" : true
      }
    },
    "access_control" : {
      "ip_access_control" : "string"
    },
    "session" : {
      "vdi" : {
        "auto_lock_enable" : true,
        "auto_lock_options" : {
          "auto_lock_minutes" : 10,
          "auto_disconnect" : "DISABLED",
          "options" : {
            "auto_disconnect_minutes" : 1440
          }
        },
        "disconnect_logout_enable" : 0,
        "disconnect_logout_options" : {
          "disconnect_logout_minutes" : 10
        },
        "disconnect_hibernate_enable" : false,
        "disconnect_hibernate_options" : {
          "disconnect_hibernate_minutes" : 0
        },
        "no_operation_hibernate_enable" : false,
        "no_operation_hibernate_options" : {
          "no_operation_hibernate_minutes" : 0
        }
      },
      "self_help_console" : true,
      "disconnect_on_lock_flag" : false
    },
    "bandwidth" : {
      "intelligent_data_transport_flag" : "DISABLE",
      "total_bandwidth_control_enable" : false,
      "options" : {
        "total_bandwidth_control_value" : 30000,
        "display_bandwidth_percentage_enable" : false,
        "display_bandwidth_percentage_options" : {
          "display_bandwidth_percentage_value" : 65
        },
        "multimedia_bandwidth_percentage_enable" : false,
        "multimedia_bandwidth_percentage_options" : {
          "multimedia_bandwidth_percentage_value" : 50
        },
        "usb_bandwidth_percentage_enable" : false,
        "usb_bandwidth_percentage_options" : {
          "usb_bandwidth_percentage_value" : 100
        },
        "pcsc_bandwidth_percentage_enable" : false,
        "pcsc_bandwidth_percentage_options" : {
          "pcsc_bandwidth_percentage_value" : 5
        },
        "twain_bandwidth_percentage_enable" : false,
        "twain_bandwidth_percentage_options" : {
          "twain_bandwidth_percentage_value" : 15
        },
        "printer_bandwidth_percentage_enable" : false,
        "printer_bandwidth_percentage_options" : {
          "printer_bandwidth_percentage_value" : 5
        },
        "com_bandwidth_percentage_enable" : false,
        "com_bandwidth_percentage_options" : {
          "com_bandwidth_percentage_value" : 3
        },
        "file_redirection_bandwidth_percentage_enable" : false,
        "file_redirection_bandwidth_percentage_options" : {
          "file_redirection_bandwidth_percentage_value" : 30
        },
        "clipboard_bandwidth_percentage_enable" : false,
        "clipboard_bandwidth_percentage_options" : {
          "clipboard_bandwidth_percentage_value" : 3
        },
        "secure_channel_bandwidth_percentage_enable" : false,
        "secure_channel_bandwidth_percentage_options" : {
          "secure_channel_bandwidth_percentage_value" : 30
        },
        "camera_bandwidth_percentage_enable" : false,
        "camera_bandwidth_percentage_options" : {
          "camera_bandwidth_percentage_value" : 30
        },
        "virtual_channel_bandwidth_percentage_enable" : false,
        "virtual_channel_bandwidth_percentage_options" : {
          "virtual_channel_bandwidth_percentage_value" : 65
        }
      },
      "display_bandwidth_control_enable" : false,
      "display_bandwidth_control_options" : {
        "display_bandwidth_control_value" : 20000
      },
      "multimedia_bandwidth_control_enable" : false,
      "multimedia_bandwidth_control_options" : {
        "multimedia_bandwidth_control_value" : 15000
      },
      "usb_bandwidth_control_enable" : false,
      "usb_bandwidth_control_options" : {
        "usb_bandwidth_control_value" : 30000
      },
      "pcsc_bandwidth_control_enable" : false,
      "pcsc_bandwidth_control_options" : {
        "pcsc_bandwidth_control_value" : 2000
      },
      "twain_bandwidth_control_enable" : false,
      "twain_bandwidth_control_options" : {
        "twain_bandwidth_control_value" : 5000
      },
      "printer_bandwidth_control_enable" : false,
      "printer_bandwidth_control_options" : {
        "printer_bandwidth_control_value" : 2000
      },
      "com_bandwidth_control_enable" : false,
      "com_bandwidth_control_options" : {
        "com_bandwidth_control_value" : 1000
      },
      "file_redirection_bandwidth_control_enable" : false,
      "file_redirection_bandwidth_control_options" : {
        "file_redirection_bandwidth_control_value" : 10000
      },
      "clipboard_bandwidth_control_enable" : false,
      "clipboard_bandwidth_control_options" : {
        "clipboard_bandwidth_control_value" : 1000
      },
      "secure_channel_bandwidth_control_enable" : false,
      "secure_channel_bandwidth_control_options" : {
        "secure_channel_bandwidth_control_value" : 10000
      },
      "camera_bandwidth_control_enable" : false,
      "camera_bandwidth_control_options" : {
        "camera_bandwidth_control_value" : 10000
      },
      "virtual_channel_bandwidth_control_enable" : false,
      "virtual_channel_bandwidth_control_options" : {
        "virtual_channel_bandwidth_control_value" : 20000
      }
    },
    "virtual_channel" : {
      "virtual_channel_control_enable" : false,
      "options" : {
        "custom_virtual_channel_name" : "string",
        "virtual_channel_plugin_details" : "string",
        "third_party_plugin_name" : "string"
      }
    },
    "watermark" : {
      "watermark_enable" : false,
      "options" : {
        "show_style" : "RANDOM",
        "color" : "2a2a2a",
        "font_size" : 30,
        "opacity_setting" : "12.5",
        "content_item_count" : 1,
        "display_format" : "{\"AlignMode\":\"left\",\"DateTimeFormat\":\"DT\",\"DateFormat\":\"yyyy-mm-dd\",\"TimeFormat\":\"hh:mm:ss\",\"RepeatCount\":2,\"RepeatInterval\":10,\"DisplayFormat\":{\"Content1\":\"CustomContent\",\"Interval1\":\"n\",\"Content2\":\"UserName\",\"Interval2\":\"4\",\"Content3\":\"DateTime\"}}",
        "lean" : -45,
        "content_customized" : "string",
        "content_color" : 522857002,
        "watermark_security_access" : false,
        "user_extend_info_switch" : false,
        "user_extend_info" : "string"
      }
    },
    "keyboard_mouse" : {
      "mouse_feedback" : "SELFADAPTION",
      "mouse_simulation_mode" : "ABSOLUTE_POSITION",
      "external_cursor_feedback" : false,
      "selfhelp_console_enable" : true,
      "client_mouse_send_interval" : 30,
      "windows_client_keyboard_mode" : "GLOBAL",
      "windows_client_mouse_mode" : "WINDOW",
      "linux_client_keyboard_mode" : "EVENT",
      "linux_client_mouse_mode" : "EVENT",
      "special_keyboard" : false,
      "joy_stick_flag" : false
    },
    "seamless" : {
      "seamless_enable" : false,
      "options" : {
        "seamless_apply_path" : "string"
      }
    },
    "personalizedDataMgmt" : {
      "personalized_data_mgmt_path" : "string",
      "user_data_roaming_enable" : false,
      "user_data_roaming_options" : {
        "profile_streaming_enable" : false,
        "roamed_files_local_path" : "string",
        "exclude_folders_path" : "string",
        "roaming_registry_method" : "string",
        "roaming_registry_path" : "string"
      },
      "user_folder_redirection_enable" : false,
      "user_folder_redirection_options" : {
        "restore_local_directories_enable" : false,
        "appData_roaming_enale" : false,
        "redirec_desktop" : false,
        "redirec_start_menu" : false,
        "redirec_documents" : false,
        "redirec_pictures" : false,
        "redirec_music" : false,
        "redirec_videos" : false,
        "redirec_favorites" : false,
        "redirec_contacts" : false,
        "redirec_downloads" : false,
        "redirec_links" : false,
        "redirec_searches" : false,
        "redirec_saved_games" : false
      },
      "logoff_delete_user_configuration" : false,
      "network_drive_mapping_enable" : false,
      "network_drive_mapping_options" : {
        "network_drive_mapping_path" : "string",
        "drive_letter" : "string"
      }
    },
    "custom" : {
      "custom_configuration1_enable" : false,
      "options" : {
        "custom_configuration1_rule" : "string"
      }
    },
    "record_audit" : {
      "enable" : true,
      "rules" : {
        "rule" : {
          "record_type" : "string",
          "interval_record_start_time" : "string",
          "interval_record_end_time" : "string",
          "op_type" : "string",
          "audio_record" : true,
          "fps" : 0,
          "duration" : 0,
          "resolution" : "string",
          "retention_duration" : 0
        }
      }
    }
  }
}
support.huaweicloud.com/api-workspace/ListOriginalPolicyInfo.html