-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add rooms support and space claim token
- Loading branch information
1 parent
af1d316
commit bf328e5
Showing
26 changed files
with
739 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ Initial version. | |
FEATURES: | ||
|
||
- support for the Netdata Cloud Spaces | ||
- support for the Netdata Cloud Rooms |
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,33 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "netdata_room Data Source - terraform-provider-netdata" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# netdata_room (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "netdata_room" "test" { | ||
spaceid = "<spaceid>" | ||
id = "<roomid>" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) The ID of the room | ||
- `spaceid` (String) The ID of the space | ||
|
||
### Read-Only | ||
|
||
- `description` (String) The description of the room | ||
- `name` (String) The name of the room |
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,47 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "netdata_room Resource - terraform-provider-netdata" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# netdata_room (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "netdata_room" "test" { | ||
spaceid = "<spaceid>" | ||
name = "MyTestingSpace" | ||
description = "Created by Terraform" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the room | ||
- `spaceid` (String) The ID of the space | ||
|
||
### Optional | ||
|
||
- `description` (String) The description of the room | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of the room | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
#!/bin/sh | ||
|
||
terraform import netdata_room.test spaceid,roomid | ||
``` |
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 @@ | ||
terraform { | ||
required_providers { | ||
netdata = { | ||
# TODO: Update this string with the published name of your provider. | ||
source = "netdata.cloud/todo/netdata" | ||
} | ||
} | ||
required_version = ">= 1.1.0" | ||
} | ||
|
||
provider "netdata" {} | ||
|
||
resource "netdata_space" "test" { | ||
name = "MyTestingSpace" | ||
description = "Created by Terraform" | ||
} | ||
|
||
resource "netdata_room" "test" { | ||
spaceid = netdata_space.test.id | ||
name = "MyTestingRoom" | ||
description = "Created by Terraform2" | ||
} | ||
|
||
data "netdata_space" "test" { | ||
id = netdata_space.test.id | ||
} | ||
|
||
data "netdata_room" "test" { | ||
id = netdata_room.test.id | ||
spaceid = netdata_space.test.id | ||
} | ||
|
||
output "datasource" { | ||
value = data.netdata_space.test.name | ||
} |
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,4 @@ | ||
data "netdata_room" "test" { | ||
spaceid = "<spaceid>" | ||
id = "<roomid>" | ||
} |
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,3 +1,3 @@ | ||
data "netdata_space" "test" { | ||
id = "ee3ec76d-0180-4ef4-93ae-c94c1e7ed2f1" | ||
id = "<spaceid>" | ||
} |
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 @@ | ||
#!/bin/sh | ||
|
||
terraform import netdata_room.test spaceid,roomid |
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,5 @@ | ||
resource "netdata_room" "test" { | ||
spaceid = "<spaceid>" | ||
name = "MyTestingSpace" | ||
description = "Created by Terraform" | ||
} |
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,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
terraform import netdata_space.test ee3ec76d-0180-4ef4-93ae-c94c1e7ed2f1 | ||
terraform import netdata_space.test spaceid |
This file was deleted.
Oops, something went wrong.
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.