diff --git a/docs/index.md b/docs/index.md index be1ac48a..015036e8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -30,10 +30,13 @@ provider "mist" { ## 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 diff --git a/internal/provider/provider.go b/internal/provider/provider.go index a43fa626..ddb520e5 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -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",