-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
851 additions
and
3 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
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,35 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_user Data Source - terraform-provider-catalystcenter" | ||
subcategory: "System" | ||
description: |- | ||
This data source can read the User. | ||
--- | ||
|
||
# catalystcenter_user (Data Source) | ||
|
||
This data source can read the User. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "catalystcenter_user" "example" { | ||
id = "76d24097-41c4-4558-a4d0-a8c07ac08470" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) The id of the object | ||
|
||
### Read-Only | ||
|
||
- `email` (String) Email address | ||
- `first_name` (String) The first name | ||
- `last_name` (String) The last name | ||
- `password` (String) The password | ||
- `role_ids` (List of String) List of role IDs | ||
- `username` (String) The username |
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
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,51 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_user Resource - terraform-provider-catalystcenter" | ||
subcategory: "System" | ||
description: |- | ||
This resource can manage an User. | ||
--- | ||
|
||
# catalystcenter_user (Resource) | ||
|
||
This resource can manage an User. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "catalystcenter_user" "example" { | ||
first_name = "john" | ||
last_name = "doe" | ||
username = "johndoe" | ||
password = "Cisco123" | ||
email = "[email protected]" | ||
role_ids = ["5f8d9a3a-3c6a-4a1c-9a1b-1a4f5a4a4a4a"] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `password` (String) The password | ||
- `role_ids` (List of String) List of role IDs | ||
- `username` (String) The username | ||
|
||
### Optional | ||
|
||
- `email` (String) Email address | ||
- `first_name` (String) The first name | ||
- `last_name` (String) The last name | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import catalystcenter_user.example "4b0b7a80-44c0-4bf2-bab5-fc24b4e0a17e" | ||
``` |
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,3 @@ | ||
data "catalystcenter_user" "example" { | ||
id = "76d24097-41c4-4558-a4d0-a8c07ac08470" | ||
} |
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 @@ | ||
terraform import catalystcenter_user.example "4b0b7a80-44c0-4bf2-bab5-fc24b4e0a17e" |
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,8 @@ | ||
resource "catalystcenter_user" "example" { | ||
first_name = "john" | ||
last_name = "doe" | ||
username = "johndoe" | ||
password = "Cisco123" | ||
email = "[email protected]" | ||
role_ids = ["5f8d9a3a-3c6a-4a1c-9a1b-1a4f5a4a4a4a"] | ||
} |
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,46 @@ | ||
--- | ||
name: User | ||
rest_endpoint: /dna/system/api/v1/user | ||
put_no_id: true | ||
put_id_include_path: userId | ||
id_path: response.userId | ||
id_from_query_path: response.users | ||
id_from_query_path_attribute: userId | ||
get_from_all: true | ||
doc_category: System | ||
attributes: | ||
- model_name: firstName | ||
type: String | ||
description: The first name | ||
example: john | ||
- model_name: lastName | ||
type: String | ||
description: The last name | ||
example: doe | ||
- model_name: username | ||
type: String | ||
mandatory: true | ||
description: The username | ||
example: johndoe | ||
- model_name: password | ||
type: String | ||
mandatory: true | ||
write_only: true | ||
description: The password | ||
example: Cisco123 | ||
- model_name: email | ||
type: String | ||
description: Email address | ||
example: [email protected] | ||
- model_name: roleList | ||
tf_name: role_ids | ||
type: StringList | ||
mandatory: true | ||
description: List of role IDs | ||
example: 5f8d9a3a-3c6a-4a1c-9a1b-1a4f5a4a4a4a | ||
test_value: "[data.catalystcenter_role.test.id]" | ||
|
||
test_prerequisites: | | ||
data "catalystcenter_role" "test" { | ||
name = "OBSERVER-ROLE" | ||
} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.