You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "A list of the [OAuth scopes](https://docs.commercetools.com/http-api-authorization.html#scopes)",
37
+
Description: "A list of the [OAuth scopes](https://docs.commercetools.com/api/scopes)",
38
38
Type: schema.TypeSet,
39
39
Elem: &schema.Schema{Type: schema.TypeString},
40
40
Required: true,
41
41
ForceNew: true,
42
42
},
43
+
"accessTokenValiditySeconds": {
44
+
Description: "Expiration time in seconds for each access token obtained by the APIClient. Only present when set with the APIClientDraft. If not present the default value applies.",
45
+
Type: schema.TypeSet,
46
+
Elem: &schema.Schema{Type: schema.TypeInt},
47
+
Required: false,
48
+
ForceNew: true,
49
+
},
50
+
"refreshTokenValiditySeconds": {
51
+
Description: "Inactivity expiration time in seconds for each refresh token obtained by the APIClient. Only present when set with the APIClientDraft. If not present the default value applies.",
Create a new API client. Note that Commercetools might return slightly different scopes, resulting in a new API client being created everytime Terraform is run. In this case, fix your scopes accordingly to match what is returned by Commercetools.
7
-
Also see the API client HTTP API documentation https://docs.commercetools.com//http-api-projects-api-clients.
7
+
Also see the API client HTTP API documentation https://docs.commercetools.com/api/projects/api-clients.
8
8
---
9
9
10
10
# commercetools_api_client (Resource)
@@ -19,6 +19,8 @@ Also see the [API client HTTP API documentation](https://docs.commercetools.com/
-`scope` (Set of String) A list of the [OAuth scopes](https://docs.commercetools.com/http-api-authorization.html#scopes)
32
+
-`name` (String) Name of the API client.
33
+
-`scope` (Set of String) A list of the [OAuth scopes](https://docs.commercetools.com/api/scopes).
34
+
35
+
36
+
### Optional
37
+
38
+
-`accessTokenValiditySeconds` (Int) Expiration time in seconds for each access token obtained by the APIClient. See the latest CommerceTools documentation for [API Clients](https://docs.commercetools.com/api/projects/api-clients) for valid number ranges.
39
+
-`refreshTokenValiditySeconds` (Int) Inactivity expiration time in seconds for each refresh token obtained by the APIClient. See the latest CommerceTools documentation for [API Clients](https://docs.commercetools.com/api/projects/api-clients) for valid number ranges.
0 commit comments