Skip to content

Commit

Permalink
Add consumer data source docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Castrianni authored and Shawn Castrianni committed Aug 30, 2023
1 parent ca1e038 commit 51ffe0d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/data-sources/consumer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
subcategory: "Runtime Configuration"
---
# Data Source: konnect_consumer
Represents a consumer
## Example usage
```hcl
data "konnect_runtime_group" "RuntimeGroup" {
name = "TestRuntimeGroup"
}
data "konnect_consumer" "example" {
runtime_group_id = data.konnect_runtime_group.RuntimeGroup.id
search_username = "Bob"
}
```
## Argument Reference
* `runtime_group_id` - **(Required, String)** The id of the runtime group containing consumer
* `search_username` - **(Optional, String)** The search string to apply to the username of the consumer. Uses contains.
* `username` - **(Optional, String)** The filter string to apply to the username of the consumer. Uses equality.
* `search_custom_id` - **(Optional, String)** The search string to apply to the custom_id of the consumer. Uses contains.
* `custom_id` - **(Optional, String)** The filter string to apply to the custom_id of the consumer. Uses equality.
## Attribute Reference
* `id` - **(String)** Same as `runtime_group_id`:`consumer_id`
* `consumer_id` - **(String)** Id of the consumer alone

0 comments on commit 51ffe0d

Please sign in to comment.