Skip to content

Commit ce86da9

Browse files
committed
request GET /server. error while parsing the response
1 parent 1223f21 commit ce86da9

33 files changed

+471
-771
lines changed

.copywrite.hcl

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
schema_version = 1
2+
3+
project {
4+
license = "MIT"
5+
copyright_year = 2025
6+
copyright_holder = "Digitec Galaxus AG"
7+
# (OPTIONAL) A list of globs that should not have copyright/license headers.
8+
# Supports doublestar glob patterns for more flexibility in defining which
9+
# files or folders should be ignored
10+
header_ignore = [
11+
".idea/**"
12+
# "vendor/**",
13+
# "**autogen**",
14+
]
15+
}

.gitignore

+40
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,43 @@ fabric.properties
102102
# Android studio 3.1+ serialized cache file
103103
.idea/caches/build_file_checksums.ser
104104

105+
106+
107+
# Local .terraform directories
108+
**/.terraform/*
109+
110+
# .tfstate files
111+
*.tfstate
112+
*.tfstate.*
113+
114+
# Crash log files
115+
crash.log
116+
crash.*.log
117+
118+
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
119+
# password, private keys, and other secrets. These should not be part of version
120+
# control as they are data points which are potentially sensitive and subject
121+
# to change depending on the environment.
122+
*.tfvars
123+
*.tfvars.json
124+
125+
# Ignore override files as they are usually used to override resources locally and so
126+
# are not checked in
127+
override.tf
128+
override.tf.json
129+
*_override.tf
130+
*_override.tf.json
131+
132+
# Ignore transient lock info files created by terraform apply
133+
.terraform.tfstate.lock.info
134+
135+
# Include override files you do wish to add to version control using negated pattern
136+
# !example_override.tf
137+
138+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
139+
# example: *tfplan*
140+
141+
# Ignore CLI configuration files
142+
.terraformrc
143+
terraform.rc
144+

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/terraform-provider-hetznerrobot.iml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/terraform.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-sources/example.md

-30
This file was deleted.

docs/data-sources/servers.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "hetznerrobot_servers Data Source - hetznerrobot"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# hetznerrobot_servers (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Read-Only
19+
20+
- `servers` (Attributes List) the list of all your hetzner servers. calls GET /server. (see [below for nested schema](#nestedatt--servers))
21+
22+
<a id="nestedatt--servers"></a>
23+
### Nested Schema for `servers`
24+
25+
Read-Only:
26+
27+
- `cancelled` (Boolean)
28+
- `datacenter` (String)
29+
- `paid_until` (String)
30+
- `product` (String)
31+
- `server_ipv4` (String)
32+
- `server_ipv6` (String)
33+
- `server_name` (String)
34+
- `server_number` (Number)
35+
- `status` (String)
36+
- `traffic` (String)

docs/ephemeral-resources/example.md

-30
This file was deleted.

docs/functions/example.md

-26
This file was deleted.

docs/index.md

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,39 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "scaffolding Provider"
3+
page_title: "hetznerrobot Provider"
44
subcategory: ""
55
description: |-
66
77
---
88

9-
# scaffolding Provider
9+
# hetznerrobot Provider
1010

1111

1212

1313
## Example Usage
1414

1515
```terraform
16-
provider "scaffolding" {
17-
# example configuration here
16+
# Copyright (c) Digitec Galaxus AG
17+
# SPDX-License-Identifier: MIT
18+
19+
terraform {
20+
required_providers {
21+
hetznerrobot = {
22+
source = "DigitecGalaxus/hetznerrobot"
23+
}
24+
}
25+
}
26+
27+
provider "hetznerrobot" {
28+
username = ""
29+
password = ""
1830
}
1931
```
2032

2133
<!-- schema generated by tfplugindocs -->
2234
## Schema
2335

24-
### Optional
36+
### Required
2537

26-
- `endpoint` (String) Example provider attribute
38+
- `password` (String) Password for the robot webservice
39+
- `username` (String) Username for the robot webservice

docs/resources/example.md

-31
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) Digitec Galaxus AG
2+
# SPDX-License-Identifier: MIT
3+
4+
data "hetznerrobot_servers" "example" {}
5+
6+

examples/data-sources/scaffolding_example/data-source.tf

-3
This file was deleted.

examples/ephemeral-resources/scaffolding_example/ephemeral-resource.tf

-3
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) Digitec Galaxus AG
2+
# SPDX-License-Identifier: MIT
3+
4+
5+
16
terraform {
27
required_providers {
38
hetznerrobot = {
@@ -6,6 +11,18 @@ terraform {
611
}
712
}
813

9-
provider "hetznerrobot" {}
14+
/*
15+
To test this with working call create a secrets.tfvars file and add it to your terraform plan command
16+
Filecontents of secrets.tfvars
17+
hetzner_username = ""
18+
hetzner_password = ""
19+
20+
terraform plan -var-file secrets.tfvars
21+
*/
22+
23+
provider "hetznerrobot" {
24+
username = var.hetzner_username
25+
password = var.hetzner_password
26+
}
1027

11-
data "hetznerrobot_server" "example" {}
28+
data "hetznerrobot_servers" "servers" {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) Digitec Galaxus AG
2+
# SPDX-License-Identifier: MIT
3+
4+
5+
6+
variable "hetzner_username" {
7+
description = "Username for the hetzner robot webservice"
8+
type = string
9+
sensitive = true
10+
}
11+
12+
variable "hetzner_password" {
13+
description = "Password for the hetzner robot webservice"
14+
type = string
15+
sensitive = true
16+
}

examples/provider/provider.tf

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
provider "scaffolding" {
2-
# example configuration here
1+
# Copyright (c) Digitec Galaxus AG
2+
# SPDX-License-Identifier: MIT
3+
4+
terraform {
5+
required_providers {
6+
hetznerrobot = {
7+
source = "DigitecGalaxus/hetznerrobot"
8+
}
9+
}
10+
}
11+
12+
provider "hetznerrobot" {
13+
username = ""
14+
password = ""
315
}

examples/resources/scaffolding_example/resource.tf

-3
This file was deleted.

0 commit comments

Comments
 (0)