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

时间:2024-09-05 16:31:35

响应示例

状态码: 200

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

{
  "policies" : {
    "peripherals" : {
      "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" : "Classical mode"
        }
      },
      "device_redirection" : {
        "printer_redirection" : {
          "printer_enable" : true,
          "options" : {
            "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"
      },
      "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
        }
      }
    },
    "audio" : {
      "audio_redirection_enable" : true,
      "play_redirection_enable" : true,
      "play_classification" : "Music Play",
      "record_redirection_enable" : true,
      "record_classification" : "Speech Call"
    },
    "client" : {
      "automatic_reconnection_interval" : 5,
      "session_persistence_time" : 180,
      "forbid_screen_capture" : false
    },
    "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" : false,
        "video_optimization_enable" : false,
        "gpu_color_optimization_enable" : false
      },
      "video_card_memory_size" : 64,
      "driver_delegation_mode_enable" : false,
      "driver_delegation_latency" : 80,
      "video_latency" : 80,
      "change_resolution_vm" : false
    },
    "file_and_clipboard" : {
      "bypass_in_remote_app_enable" : true,
      "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" : "\\\\home",
          "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",
          "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
        }
      },
      "fd_mobile_client_redir_enable" : true,
      "clipboard_redirection" : "DISABLED",
      "clipboard_redirection_options" : {
        "rich_text_redirection_enable" : true,
        "rich_text_clipboard_redirection" : "DISABLED",
        "clipboard_file_redirection_enable" : true,
        "file_clipboard_redirection" : "DISABLED"
      }
    },
    "session" : {
      "sbc" : {
        "sbc_automatic_disconnection" : "AUTO_DISCONNECT",
        "sbc_automatic_disconnection_options" : {
          "disconnection_waiting_time" : 15,
          "sbc_auto_logout" : true,
          "auto_logout_options" : {
            "sbc_logout_waiting_time" : 480
          }
        }
      }
    },
    "virtual_channel" : {
      "virtual_channel_control_enable" : false,
      "options" : {
        "custom_virtual_channel_name" : "string",
        "virtual_channel_plugin_details" : "string",
        "third_party_plugin_name" : "string"
      }
    },
    "keyboard_mouse" : {
      "mouse_feedback" : "SELFADAPTION",
      "mouse_simulation_mode" : "ABSOLUTE_POSITION",
      "external_cursor_feedback" : 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
      }
    },
    "custom" : {
      "custom_configuration1_enable" : true,
      "options" : {
        "custom_configuration1_rule" : "string"
      }
    }
  }
}
support.huaweicloud.com/api-workspace/ShowOriginalPolicyInfo.html