Fixing the User Data Source docs (#11094)
This commit is contained in:
parent
dd1f930f4e
commit
c52b2cb8ad
|
@ -40,12 +40,12 @@ resource "azurerm_eventhub" "test" {
|
|||
}
|
||||
|
||||
resource "azurerm_eventhub_consumer_group" "test" {
|
||||
name = "acceptanceTestEventHubConsumerGroup"
|
||||
namespace_name = "${azurerm_eventhub_namespace.test.name}"
|
||||
eventhub_name = "${azurerm_eventhub.test.name}"
|
||||
name = "acceptanceTestEventHubConsumerGroup"
|
||||
namespace_name = "${azurerm_eventhub_namespace.test.name}"
|
||||
eventhub_name = "${azurerm_eventhub.test.name}"
|
||||
resource_group_name = "${azurerm_resource_group.test.name}"
|
||||
location = "${azurerm_resource_group.test.location}"
|
||||
user_metadata = "some-meta-data"
|
||||
location = "${azurerm_resource_group.test.location}"
|
||||
user_metadata = "some-meta-data"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -13,12 +13,17 @@ Use this data source to get information about a specific user within OpsGenie.
|
|||
## Example Usage
|
||||
|
||||
```
|
||||
data "opsgenie_user" "me" {
|
||||
data "opsgenie_user" "cookie_monster" {
|
||||
username = "me@cookie-monster.com"
|
||||
}
|
||||
|
||||
resource "opsgenie_team" "test" {
|
||||
TODO: example
|
||||
name = "cookieeaters"
|
||||
|
||||
member {
|
||||
username = "${data.opsgenie_user.cookie_monster.username}"
|
||||
role = "${data.opsgenie_user.cookie_monster.role}"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue