Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
micahlmartin committed Oct 8, 2021
1 parent 188da3f commit 0a4eac6
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 21 deletions.
44 changes: 44 additions & 0 deletions docs/data-sources/delegate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "harness_delegate Data Source - terraform-provider-harness"
subcategory: ""
description: |-
Data source for retrieving a Harness delegate. If more than one delegate matches the query the first one will be returned.
---

# harness_delegate (Data Source)

Data source for retrieving a Harness delegate. If more than one delegate matches the query the first one will be returned.

## Example Usage

```terraform
data "harness_delegate" "example" {
name = "harness-delegate"
type = "KUBERNETES"
status = "ENABLED"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **name** (String) The name of the delegate to query for.
- **status** (String) The status of the delegate to query for. Valid values are DELETED, ENABLED, WAITING_FOR_APPROVAL
- **type** (String) The type of the delegate to query for. Valid values are DOCKER, ECS, HELM_DELEGATE, KUBERNETES, SHELL_SCRIPT

### Read-Only

- **account_id** (String) The account id the delegate belongs to.
- **description** (String) The description of the delegate.
- **host_name** (String) The host name of the delegate.
- **id** (String) Unique identifier of the delegate
- **ip** (String) The ip address of the delegate.
- **last_heartbeat** (String) The last time the delegate was heard from.
- **polling_mode_enabled** (Boolean) Whether the delegate is in polling mode.
- **profile_id** (String) The id of the profile assigned to the delegate.
- **version** (String) The version of the delegate.


21 changes: 0 additions & 21 deletions examples/data-sources/data-source.tf

This file was deleted.

5 changes: 5 additions & 0 deletions examples/data-sources/harness_delegate/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
data "harness_delegate" "example" {
name = "harness-delegate"
type = "KUBERNETES"
status = "ENABLED"
}

0 comments on commit 0a4eac6

Please sign in to comment.