文档

alicloud_dms_enterprise_proxy_access

更新时间:
一键部署

Provides a DMS Enterprise Proxy Access resource.

For information about DMS Enterprise Proxy Access and how to use it, see What is Proxy Access.

-> NOTE: Available since v1.195.0+.

Example Usage

Basic Usage

data "alicloud_dms_enterprise_users" "dms_enterprise_users_ds" {
  role   = "USER"
  status = "NORMAL"
}
data "alicloud_dms_enterprise_proxies" "ids" {}

resource "alicloud_dms_enterprise_proxy_access" "default" {
  proxy_id = data.alicloud_dms_enterprise_proxies.ids.proxies.0.id
  user_id  = data.alicloud_dms_enterprise_users.dms_enterprise_users_ds.users.0.user_id
}

Argument Reference

The following arguments are supported:

  • indep_account - (ForceNew, Optional) Database account.
  • indep_password - (ForceNew, Optional) Database password.
  • proxy_id - (Required, ForceNew) The ID of the security agent.
  • user_id - (Required, ForceNew) The user ID.

Attributes Reference

The following attributes are exported:

  • id - The key of the proxy access resource.
  • access_id - The authorized account of the security agent.
  • access_secret - Secure access agent authorization password.
  • gmt_create - The authorization time of the security access agent permission.
  • instance_id - The ID of the instance.
  • origin_info - The source information of the security access agent permission is enabled, and the return value is as follows:
    • Owner Authorization: The UID of the owner in parentheses.
    • Work Order Authorization: The ticket number in parentheses is the number of the user to apply for permission.
  • proxy_access_id - Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
  • user_name - User nickname.
  • user_uid - User UID.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 5 mins) Used when create the Proxy Access.
  • delete - (Defaults to 5 mins) Used when delete the Proxy Access.

Import

DMS Enterprise Proxy Access can be imported using the id, e.g.

$terraform import alicloud_dms_enterprise_proxy_access.example <id>

  • 本页导读 (0)
文档反馈