-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kopicloud_user_password_reset element
- Loading branch information
Showing
6 changed files
with
450 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "kopicloud_user_password_reset Resource - kopicloud-ad-tf-provider" | ||
subcategory: "" | ||
description: |- | ||
Element to create, update, delete Users from Active Directory | ||
--- | ||
|
||
# kopicloud_user_password_reset (Resource) | ||
|
||
Element to create, update, delete Users from Active Directory | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `new_password` (String) | ||
- `username` (String) | ||
|
||
### Optional | ||
|
||
- `change_password_net_logon` (Boolean) | ||
- `show_fields` (String) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `result` (List of Object) Single Element List of User (see [below for nested schema](#nestedatt--result)) | ||
|
||
<a id="nestedatt--result"></a> | ||
### Nested Schema for `result` | ||
|
||
Read-Only: | ||
|
||
- `change_password_next_logon` (Boolean) | ||
- `city` (String) | ||
- `company` (String) | ||
- `country` (String) | ||
- `department` (String) | ||
- `description` (String) | ||
- `display_name` (String) | ||
- `email_address` (String) | ||
- `first_name` (String) | ||
- `home_folder_directory` (String) | ||
- `home_folder_drive` (String) | ||
- `home_folder_path` (String) | ||
- `home_phone` (String) | ||
- `initials` (String) | ||
- `job_title` (String) | ||
- `last_name` (String) | ||
- `manager` (String) | ||
- `middle_name` (String) | ||
- `mobile_phone` (String) | ||
- `office` (String) | ||
- `office_phone` (String) | ||
- `ou_path` (String) | ||
- `postal_code` (String) | ||
- `profile_logon_script` (String) | ||
- `profile_path` (String) | ||
- `rds_allow_logon` (Boolean) | ||
- `rds_connect_drive` (Boolean) | ||
- `rds_home_folder_drive` (String) | ||
- `rds_home_folder_path` (String) | ||
- `rds_profile_path` (String) | ||
- `sam_username` (String) | ||
- `state` (String) | ||
- `street_address` (String) | ||
- `street_po_box` (String) | ||
- `username` (String) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"api_alias": "kcapi", | ||
"api_package": "github.com/KopiCloud-AD-API/terraform-provider-ad/api", | ||
"package": "provider", | ||
"data_sources" : [], | ||
"resources" : [ | ||
{ | ||
"name": "UserPasswordReset", | ||
"description" : "Element to create, update, delete Users from Active Directory", | ||
"terraform": { | ||
"name": "kopicloud_user_password_reset", | ||
"arguments": [ | ||
{ | ||
"name": "username", | ||
"type": "schema.TypeString", | ||
"required": true | ||
}, | ||
{ | ||
"name": "new_password", | ||
"type": "schema.TypeString", | ||
"required": true | ||
}, | ||
{ | ||
"name": "change_password_net_logon", | ||
"type": "schema.TypeBool", | ||
"optional": true | ||
}, | ||
{ | ||
"name": "show_fields", | ||
"type": "schema.TypeString", | ||
"optional": true | ||
} | ||
] | ||
}, | ||
"result_schemas": { | ||
"result": { | ||
"schema_function": "schemaOfUser", | ||
"schema_function_arguments": "(``)" | ||
} | ||
}, | ||
|
||
"element_name": "UserPasswordReset", | ||
"create": { | ||
"api_function": { | ||
"name": "PostApiADUserUsernameResetPasswordWithResponse", | ||
"isPointer": true, | ||
"arguments": [ | ||
{ | ||
"name": "username", | ||
"type": "string" | ||
} | ||
], | ||
"params": { | ||
"name": "PostApiADUserUsernameResetPasswordParams", | ||
"fields": [ | ||
{ | ||
"api_name": "NewPassword", | ||
"name": "new_password", | ||
"type": "*string" | ||
}, | ||
{ | ||
"api_name": "ChangePassword", | ||
"name": "change_password_net_logon", | ||
"type": "*bool" | ||
}, | ||
{ | ||
"api_name": "ShowFields", | ||
"name": "show_fields", | ||
"type": "*string" | ||
} | ||
] | ||
} | ||
}, | ||
"result": { | ||
"msg_field": "Output", | ||
"result_field": "Result", | ||
"api_to_terraform": "UserToTerraform", | ||
"result_wrapper": "wrapInArray", | ||
"terraform_field": "result", | ||
"api_to_terraform_id": "getId_for_User" | ||
} | ||
}, | ||
"read": { | ||
"api_function": { | ||
"name": "GetApiADUserUsernameWithResponse", | ||
"arguments": [ | ||
{ | ||
"name": "username", | ||
"type": "string" | ||
} | ||
], | ||
"params": { | ||
"name": "GetApiADUserUsernameParams", | ||
"fields": [] | ||
} | ||
}, | ||
"result": { | ||
"msg_field": "Output", | ||
"result_field": "Result", | ||
"api_to_terraform": "UserToTerraform", | ||
"result_wrapper": "wrapInArray", | ||
"terraform_field": "result", | ||
"api_to_terraform_id": "getId_for_User" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.