Skip to content

Commit

Permalink
provider - set "host" to "Required"
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Jul 30, 2024
1 parent 0acb0ba commit 198908a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ provider "mist" {
<!-- schema generated by tfplugindocs -->
## Schema

### Optional
### Required

- `apitoken` (String) For Api Token authentication, the Mist API Token
- `host` (String) URL of the Mist Cloud, e.g. `api.mist.com`
.The preferred approach is to pass the credentials as environment variables `

### Optional

- `apitoken` (String) For Api Token authentication, the Mist API Token
- `password` (String) For username/password authentication, the Mist Account password
- `username` (String) For username/password authentication, the Mist Account username
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (p *mistProvider) Schema(ctx context.Context, req provider.SchemaRequest, r
"host": schema.StringAttribute{
MarkdownDescription: "URL of the Mist Cloud, e.g. `api.mist.com`\n." +
"The preferred approach is to pass the credentials as environment variables `",
Optional: true,
Required: true,
},
"apitoken": schema.StringAttribute{
MarkdownDescription: "For Api Token authentication, the Mist API Token",
Expand Down

0 comments on commit 198908a

Please sign in to comment.