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
Copy file name to clipboardExpand all lines: examples/variables.tf
+8-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,14 @@
1
-
variable"api_token" {
2
-
description="API token used to authenticate when calling the VMware Cloud Services API."
1
+
variable"client_id" {
2
+
description="ID of an OAuth App associated with the organization. It is recommended to use an OAuth App with least-privileged roles in automated environments."
3
3
default=""
4
4
}
5
5
6
+
variable"client_secret" {
7
+
description="Secret of the OAuth App, associated with the organization. It is recommended to use an OAuth App with least-privileged roles in automated environments."
Copy file name to clipboardExpand all lines: website/docs/index.html.markdown
+8-4
Original file line number
Diff line number
Diff line change
@@ -21,18 +21,22 @@ resources.
21
21
In order to use the provider you need to obtain the authentication
22
22
token from the Cloud Service Provider by providing the org scoped API token.
23
23
The provider client uses Cloud Service Provider (CSP) API
24
-
to exchange this org scoped API token for user access token.
24
+
to exchange this org scoped API token/OAuth App Id and Secret for user access token.
25
25
26
-
Note that in all of the examples you will need to update the `api_token` and `org_id` settings
27
-
in the variables.tf file to match those configured in your VMC environment.
26
+
Note that in all the examples you will need to update the `client_id` and `client_secret` or `api_token`
27
+
and `org_id` settings in the variables.tf file to match those configured in your VMC environment.
28
28
29
29
30
30
## Argument Reference
31
31
32
32
The following arguments are used to configure the VMware Cloud on AWS Provider:
33
33
34
-
*`api_token` - (Required) API token is used to authenticate when calling VMware Cloud Services APIs.
34
+
*`api_token` - (Required, in conflict with "client_id" and "client_secret") API token is used to authenticate when calling VMware Cloud Services APIs.
35
35
This token is scoped within the organization.
36
+
*`client_id` - (Required in pair with "client_secret", in conflict with "api_token") ID of OAuth App associated with the organization. The combination with
37
+
"client_secret" is used to authenticate when calling VMware Cloud Services APIs.
38
+
*`client_secret` - (Required in pair with "client_id", in conflict with "api_token") Secret of OAuth App associated with the organization. The combination with
39
+
"client_id" is used to authenticate when calling VMware Cloud Services APIs.
0 commit comments