云桌面 WORKSPACE-新增策略模板:请求示例

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

请求示例

POST /v1/29dfe82ada564ac2b927e1ff036d9a9b/policy-templates

{
  "policy_group" : {
    "policy_group_name" : "policy_group_name1926076252",
    "policies" : {
      "peripherals" : {
        "device_redirection" : {
          "session_printer" : {
            "session_printer_enable" : false,
            "options" : {
              "session_printer_customization_policy" : ""
            }
          },
          "printer_redirection" : {
            "options" : {
              "universal_printer_driver" : "Default",
              "sync_client_default_printer_enable" : true
            },
            "printer_enable" : true
          }
        }
      },
      "session" : {
        "sbc" : {
          "sbc_automatic_disconnection" : "DISABLED",
          "sbc_automatic_disconnection_options" : {
            "auto_logout_options" : {
              "sbc_logout_waiting_time" : 1440
            },
            "sbc_auto_logout" : false,
            "disconnection_waiting_time" : 10
          }
        }
      },
      "display" : {
        "change_resolution_vm" : false,
        "video_card_memory_size" : 64,
        "driver_delegation_mode_enable" : false,
        "options" : {
          "color_enhancement_enable" : false,
          "encoding_preset" : "Preset 1",
          "smoothing_factor" : 60,
          "video_quality_options" : {
            "lowest_video_quality" : 25,
            "highest_video_quality" : 7,
            "average_video_quality" : 15
          },
          "peak_video_bit_rate" : 18000,
          "gop_size" : 100,
          "video_frame_rate" : 30,
          "lossy_compression_quality" : 85,
          "video_bit_rate_options" : {
            "average_video_bit_rate" : 18000
          },
          "deep_compression_options" : {
            "deep_compression_level" : "Compression grade 0"
          },
          "quality_bandwidth_first" : "Quality First",
          "lossless_compression_mode" : "Basic Compression",
          "frame_rate" : 25,
          "display_bandwidth" : 20000,
          "min_image_cache" : 200
        },
        "driver_delegation_latency" : 80,
        "video_latency" : 80,
        "display_level" : "LEVEL4"
      },
      "client" : {
        "automatic_reconnection_interval" : 5,
        "session_persistence_time" : 180
      },
      "virtual_channel" : {
        "options" : {
          "custom_virtual_channel_name" : "",
          "virtual_channel_plugin_details" : "",
          "third_party_plugin_name" : ""
        },
        "virtual_channel_control_enable" : false
      },
      "keyboard_mouse" : {
        "mouse_simulation_mode" : "ABSOLUTE_POSITION",
        "external_cursor_feedback" : false,
        "mouse_feedback" : "SELFADAPTION"
      },
      "file_and_clipboard" : {
        "file_redirection" : {
          "redirection_mode" : "DISABLED",
          "redirection_send_file_options" : {
            "read_write_speed" : 0
          },
          "options" : {
            "fixed_drive_enable" : true,
            "fluid_control_switch_enable" : false,
            "compression_switch_options" : {
              "compression_threshold" : 512,
              "minimum_compression_rate" : 900
            },
            "removable_drive_enable" : true,
            "linux_fixed_drive_file_system_format" : "",
            "compression_switch_enable" : false,
            "linux_removable_drive_file_system_format" : "vfat|ntfs|msdos|fuseblk|sdcardfs|exfat|fuse.fdredir",
            "linux_cdrom_drive_file_system_format" : "cd9660|iso9660|udf",
            "linux_root_mount_switch_enable" : true,
            "path_separator" : "|",
            "network_drive_enable" : true,
            "linux_file_mount_path" : "\\\\media|\\\\Volumes|\\\\swdb\\\\mnt|\\\\home|\\\\storage|\\\\tmp|\\\\run\\\\media",
            "linux_root_dir_list" : "\\\\var\\\\log",
            "cd_rom_drive_enable" : true,
            "fluid_control_options" : {
              "poor_network_latency" : 100,
              "reducing_step" : 20,
              "test_time_gap" : 10000,
              "test_block_size" : 64,
              "start_speed" : 1024,
              "normal_network_latency" : 70,
              "slow_increasing_step" : 10,
              "good_network_latency" : 30,
              "quick_increasing_step" : 20
            },
            "linux_file_size_supported_enable" : true,
            "linux_network_drive_file_system_format" : "smbfs|afpfs|cifs",
            "linux_file_size_supported_options" : {
              "linux_file_size_supported_threshold" : 100
            }
          },
          "vm_send_file_client" : false
        },
        "clipboard_redirection" : "DISABLED",
        "clipboard_redirection_options" : {
          "rich_text_redirection_enable" : true,
          "file_clipboard_redirection" : "DISABLED",
          "rich_text_clipboard_redirection" : "DISABLED",
          "clipboard_file_redirection_enable" : true
        },
        "fd_mobile_client_redir_enable" : true
      },
      "audio" : {
        "record_classification" : "Speech Call",
        "play_redirection_enable" : true,
        "play_classification" : "Music Play",
        "record_redirection_enable" : true,
        "audio_redirection_enable" : true
      }
    },
    "description" : "策略组description1713560713"
  }
}
support.huaweicloud.com/api-workspace/CreatePolicyTemplate.html