alicloud_cloud_sso_user_provisioning_events
更新时间:
This data source provides Cloud Sso User Provisioning Event available to the user.What is User Provisioning Event
-> NOTE: Available since v1.261.0.
Example Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-shanghai"
}
resource "alicloud_cloud_sso_directory" "defaultQSrGmc" {
directory_global_access_status = "Disabled"
password_policy {
min_password_length = "8"
min_password_different_chars = "8"
max_password_age = "90"
password_reuse_prevention = "1"
max_login_attempts = "5"
}
mfa_authentication_setting_info {
mfa_authentication_advance_settings = "OnlyRiskyLogin"
operation_for_risk_login = "EnforceVerify"
}
directory_name = "tfexample"
}
data "alicloud_cloud_sso_user_provisioning_events" "default" {
directory_id = alicloud_cloud_sso_directory.defaultQSrGmc.id
}
output "alicloud_cloud_sso_user_provisioning_event_example_id" {
value = data.alicloud_cloud_sso_user_provisioning_events.default.events.0.id
}
Argument Reference
The following arguments are supported:
directory_id- (Required, ForceNew) Directory IDuser_provisioning_id- (ForceNew, Optional) The ID of the User Provisioning.ids- (Optional, ForceNew, Computed) A list of User Provisioning Event IDs. The value is formulated as<directory_id>:<event_id>.output_file- (Optional, ForceNew) File name where to save data source results (after runningterraform plan).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids- A list of User Provisioning Event IDs.events- A list of User Provisioning Event Entries. Each element contains the following attributes:content- Event contentcreate_time- The creation time of the resourcedeletion_strategy- Processing policy when you delete a RAM userdirectory_id- Directory IDduplication_strategy- Conflict strategyerror_count- Number of manual retry failureserror_info- Error message for last failureevent_id- Dead letter event IDlast_sync_time- Last synchronization timeprincipal_id- User Provisioning body IDprincipal_name- User Provisioning body nameprincipal_type- User Provisioning body typesource_type- The type of the source action that triggered the event.target_id- User Provisioning target IDtarget_name- User Provisioning target nametarget_path- RD path of User Provisioning targettarget_type- User Provisioning target typeupdate_time- Event update timeuser_provisioning_id- The ID of the User Provisioning.id- The ID of the resource supplied above.
该文章对您有帮助吗?