forked from flyte/terraform-provider-influxdb-v2
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from hasanhakkaev/updates
updated deps, added bucket data source, fixed typos and some houskeeping
- Loading branch information
Showing
23 changed files
with
597 additions
and
130 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
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
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,62 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "influxdb-v2_bucket Data Source - terraform-provider-influxdb-v2" | ||
subcategory: "" | ||
description: |- | ||
Lookup a Bucket in InfluxDB2. | ||
--- | ||
|
||
# influxdb-v2_bucket (Data Source) | ||
|
||
Lookup a Bucket in InfluxDB2. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "influxdb-v2_bucket" "bucket" { | ||
name = "newName" | ||
} | ||
output "influxdb-v2_bucket4" { | ||
value = data.influxdb-v2_bucket.bucket | ||
} | ||
terraform { | ||
required_providers { | ||
influxdb-v2 = { | ||
source = "local/local/influxdb-v2" | ||
version = "0.4.5" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Bucket name. | ||
|
||
### Read-Only | ||
|
||
- `created_at` (String) The string time that the Bucket was created. | ||
- `created_timestamp` (Number) The timestamp that the Bucket was created. | ||
- `description` (String) Description of the bucket. | ||
- `id` (String) Bucket id. | ||
- `org_id` (String) ID of organization in which to create a bucket. | ||
- `retention_rules` (Set of Object) Rules to expire or retain data. No rules means data never expires. (see [below for nested schema](#nestedatt--retention_rules)) | ||
- `type` (String) Bucket type. | ||
- `updated_at` (String) The string time that the Bucket was last updated. | ||
- `updated_timestamp` (Number) The timestamp that the Bucket was last updated. | ||
|
||
<a id="nestedatt--retention_rules"></a> | ||
### Nested Schema for `retention_rules` | ||
|
||
Read-Only: | ||
|
||
- `every_seconds` (Number) | ||
- `shard_group_duration_seconds` (Number) | ||
- `type` (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 |
---|---|---|
@@ -1,36 +1,69 @@ | ||
--- | ||
layout: "influxdb-v2" | ||
page_title: "InfluxDB V2: influxdb-v2_organization" | ||
sidebar_current: "docs-influxdb-v2-datasource-organization" | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "influxdb-v2_organization Data Source - terraform-provider-influxdb-v2" | ||
subcategory: "" | ||
description: |- | ||
The influxdb-v2_organization data source returns influxdb status. | ||
Lookup an Organization in InfluxDB2. | ||
--- | ||
|
||
# influxdb-v2\_organization (Data Source) | ||
# influxdb-v2_organization (Data Source) | ||
|
||
The influxdb-v2_organization data source retrieves influxdb organization information. | ||
Lookup an Organization in InfluxDB2. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
```terraform | ||
data "influxdb-v2_organization" "organization" { | ||
name = "my-org" | ||
name = "testorg" | ||
} | ||
output "influxdb-v2_organization_id" { | ||
value = data.influxdb-v2_organization.organization.id | ||
value = data.influxdb-v2_organization.organization.id | ||
} | ||
output "influxdb-v2_organization_name" { | ||
value = data.influxdb-v2_organization.organization.name | ||
} | ||
output "influxdb-v2_organization_description" { | ||
value = data.influxdb-v2_organization.organization.description | ||
} | ||
output "influxdb-v2_organization_created_at" { | ||
value = data.influxdb-v2_organization.organization.created_at | ||
} | ||
output "influxdb-v2_organization_updated_at" { | ||
value = data.influxdb-v2_organization.organization.updated_at | ||
} | ||
terraform { | ||
required_providers { | ||
influxdb-v2 = { | ||
source = "local/local/influxdb-v2" | ||
version = "0.4.5" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Name of the Organization. | ||
|
||
### Optional | ||
|
||
* ``name`` (Required) The organization name | ||
- `id` (String) ID of the Organization. | ||
|
||
### Read-Only | ||
|
||
## Attributes Reference | ||
- `created_at` (String) The string time that the Organization was created. | ||
- `created_timestamp` (Number) The timestamp that the Organization was created. | ||
- `description` (String) The description of the Organization. | ||
- `updated_at` (String) The string time that the Organization was last updated. | ||
- `updated_timestamp` (Number) The timestamp that the Organization was last updated. | ||
|
||
The following attributes are exported: | ||
|
||
* ``id`` - The ID of the Influx organization. | ||
* ``name`` - The name of the Influx organization. | ||
* ``description`` - The description of the Influx organization. |
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 |
---|---|---|
@@ -1,32 +1,31 @@ | ||
--- | ||
layout: "influxdb-v2" | ||
page_title: "InfluxDB V2: influxdb-v2_ready" | ||
sidebar_current: "docs-influxdb-v2-datasource-ready" | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "influxdb-v2_ready Data Source - terraform-provider-influxdb-v2" | ||
subcategory: "" | ||
description: |- | ||
The influxdb-v2_ready data source returns influxdb status. | ||
--- | ||
|
||
# influxdb-v2\_ready (Data Source) | ||
# influxdb-v2_ready (Data Source) | ||
|
||
|
||
The influxdb-v2_ready data source retrieves influxdb instance status information. | ||
If the endpoint server is online, the function will output its URL, otherwise, the field will be empty. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
```terraform | ||
data "influxdb-v2_ready" "test" {} | ||
output "influxdb-v2_ready" { | ||
value = data.influxdb-v2_ready.test.output["url"] | ||
value = data.influxdb-v2_ready.test.output["url"] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
This data source doesn't support arguments. | ||
### Read-Only | ||
|
||
## Attributes Reference | ||
- `id` (String) The ID of this resource. | ||
- `output` (Map of String) | ||
|
||
The following attributes are exported: | ||
|
||
* ``url`` - The URL of the influx instance (empty if not ready). |
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
Oops, something went wrong.