Skip to content

Commit

Permalink
docs: Fixes documentation of required argument for using api key data…
Browse files Browse the repository at this point in the history
… sources (#1807)
  • Loading branch information
AgustinBettati committed Jan 4, 2024
1 parent a5a2333 commit d9b3092
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions website/docs/d/api_key.html.markdown
Expand Up @@ -33,13 +33,13 @@ data "mongodbatlas_api_key" "test" {

## Argument Reference

* `org_id` - (Required) The unique ID for the project.
* `org_id` - (Required) Unique identifier for the organization.
* `api_key_id` - (Required) Unique identifier for the organization API key.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `org_id` - Unique identifier for the organization whose API keys you want to retrieve. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access.
* `description` - Description of this Organization API key.
* `public_key` - Public key for this Organization API key.
* `private_key` - Private key for this Organization API key.
Expand Down
5 changes: 3 additions & 2 deletions website/docs/d/api_keys.html.markdown
Expand Up @@ -25,16 +25,17 @@ resource "mongodbatlas_api_key" "test" {
}
data "mongodbatlas_api_keys" "test" {
org_id = "<ORG_ID>"
page_num = 1
items_per_page = 5
}
```

## Argument Reference
* `page_num` - (Optional) The page to return. Defaults to `1`.
* `org_id` - (Required) Unique identifier for the organization whose API keys you want to retrieve.
* `page_num` - (Optional) The page to return. Defaults to `1`.
* `items_per_page` - (Optional) Number of items to return per page, up to a maximum of 500. Defaults to `100`.


* `id` - Autogenerated Unique ID for this data source.
* `results` - A list where each represents a List of API Keys.

Expand Down

0 comments on commit d9b3092

Please sign in to comment.