alicloud_cloud_phone_policy
更新时间:
Provides a Cloud Phone Policy resource.
Cloud phone policy.
For information about Cloud Phone Policy and how to use it, see What is Policy.
-> NOTE: Available since v1.243.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_cloud_phone_policy" "default" {
policy_group_name = "NewPolicyName"
resolution_width = "720"
lock_resolution = "on"
camera_redirect = "on"
resolution_height = "1280"
clipboard = "read"
net_redirect_policy {
net_redirect = "on"
custom_proxy = "on"
proxy_type = "socks5"
host_addr = "192.168.12.13"
port = "8888"
proxy_user_name = "user1"
proxy_password = "123456"
}
}
Argument Reference
The following arguments are supported:
camera_redirect
- (Optional) Whether to turn on local camera redirection.clipboard
- (Optional) Clipboard permissions.lock_resolution
- (Optional) Whether to lock the resolution.net_redirect_policy
- (Optional, List) Network redirection. Seenet_redirect_policy
below.policy_group_name
- (Optional, Computed) The policy name.resolution_height
- (Optional, Int) The height of the resolution. Unit: Pixels.resolution_width
- (Optional, Int) The width of the resolution. Unit: Pixels.
net_redirect_policy
The net_redirect_policy supports the following:
custom_proxy
- (Optional) Whether to manually configure the transparent proxy.host_addr
- (Optional) The transparent proxy IP address. The format is IPv4 address.net_redirect
- (Optional) Whether to enable network redirection.port
- (Optional) Transparent proxy port. The Port value range is 1~ 65535.proxy_password
- (Optional) The proxy password. The length range is 1~ 256. Chinese characters and white space characters are not allowed.proxy_type
- (Optional) Agent protocol type.proxy_user_name
- (Optional) The proxy user name. The length range is 1~ 256. Chinese characters and white space characters are not allowed.
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Policy.delete
- (Defaults to 5 mins) Used when delete the Policy.update
- (Defaults to 5 mins) Used when update the Policy.
Import
Cloud Phone Policy can be imported using the id, e.g.
$ terraform import alicloud_cloud_phone_policy.example <id>
该文章对您有帮助吗?