Skip to content

Update arguments for codefresh_api_key resource #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/resources/api-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "random_string" "random" {

resource "codefresh_api_key" "new" {
account_id = codefresh_account.test.id

user_id = data.codefresh_account.test_account_user.user_id
name = "tfkey_${random_string.random.result}"

scopes = [
Expand Down Expand Up @@ -66,7 +66,8 @@ resource "codefresh_team" "team_1" {
## Argument Reference

- `name` - (Required) The display name for the API key.
- `account_id` - (Required) The ID of account than should own the new API key.
- `account_id` - (Required) The ID of account in which the API key will be created.
- `user_id` - (Required) The ID of a user within the referenced `account_id` that will own the API key.
- `scopes` - (Optional) A list of access scopes, that can be targeted. The possible values:
- `agent`
- `agents`
Expand Down