Skip to content

Commit 67c89c1

Browse files
authored
Add host_id to device (#31)
The updated API client also has a new type for POST /accounts.
1 parent fd59ba6 commit 67c89c1

File tree

14 files changed

+1082
-353
lines changed

14 files changed

+1082
-353
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.6.1
2+
3+
CHANGES:
4+
* Add host_id to smallstep_device resource and data source.
5+
16
## 0.6.0
27

38
FEATURES:

docs/data-sources/account.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ data "smallstep_account" "wifi" {
2121
<!-- schema generated by tfplugindocs -->
2222
## Schema
2323

24+
### Required
25+
26+
- `id` (String) A UUID identifying this account. Read only.
27+
2428
### Read-Only
2529

2630
- `browser` (Attributes) Configuration to use a client certificate. (see [below for nested schema](#nestedatt--browser))
2731
- `certificate` (Attributes) Details on a managed certificate. (see [below for nested schema](#nestedatt--certificate))
2832
- `ethernet` (Attributes) Configuration to connect a device to a protected LAN. (see [below for nested schema](#nestedatt--ethernet))
29-
- `id` (String) The ID of this resource.
3033
- `key` (Attributes) The attributes of the cryptographic key. (see [below for nested schema](#nestedatt--key))
31-
- `name` (String)
34+
- `name` (String) A human-friendly name for this account.
3235
- `policy` (Attributes) Policy to select the devices an account is assigned to. An empty policy indicates an account will be provisioned for all devices. (see [below for nested schema](#nestedatt--policy))
3336
- `reload` (Attributes) The properties used to reload a service. (see [below for nested schema](#nestedatt--reload))
3437
- `vpn` (Attributes) Configuration to connect a device to a VPN. (see [below for nested schema](#nestedatt--vpn))

docs/data-sources/device.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ This field may be populated with a value derived from data synced from your team
3737
Setting this value explicitly will mask any MDM-derived value.
3838
- `enrolled_at` (String) Timestamp in RFC3339 format when the device first connected to Smallstep. Read only.
3939
- `high_assurance` (Boolean) The device has been issued certificates using high assurance device attestation. Read only.
40+
- `host_id` (String) The identifier for the smallstep agent on the device.
4041
- `last_seen` (String) Timestamp in RFC3339 format when the device last connected to Smallstep. Read only.
4142
- `metadata` (Map of String) A map of key-value pairs available as template data when a provisioner with a webhook is used to issue a certificate to a device.
4243
- `os` (String) The device operating system.

docs/resources/account.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ resource "smallstep_account" "ssh" {
134134

135135
### Required
136136

137-
- `name` (String)
137+
- `name` (String) A human-friendly name for this account.
138138

139139
### Optional
140140

@@ -149,7 +149,7 @@ resource "smallstep_account" "ssh" {
149149

150150
### Read-Only
151151

152-
- `id` (String) The ID of this resource.
152+
- `id` (String) A UUID identifying this account. Read only.
153153

154154
<a id="nestedatt--browser"></a>
155155
### Nested Schema for `browser`

docs/resources/device.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Setting this value explicitly will mask any MDM-derived value.
6666
- `connected` (Boolean) The device is currently connected to Smallstep. Read only.
6767
- `enrolled_at` (String) Timestamp in RFC3339 format when the device first connected to Smallstep. Read only.
6868
- `high_assurance` (Boolean) The device has been issued certificates using high assurance device attestation. Read only.
69+
- `host_id` (String) The identifier for the smallstep agent on the device.
6970
- `id` (String) A UUID identifying this device. Read only.
7071
- `last_seen` (String) Timestamp in RFC3339 format when the device last connected to Smallstep. Read only.
7172

0 commit comments

Comments
 (0)