Skip to content

Commit 97bd6f6

Browse files
authored
feat: add api token resource (#62)
* feat: add api token resource * style: lint fixes
1 parent 1facd56 commit 97bd6f6

14 files changed

+616
-41
lines changed

docs/resources/api_token.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "turso_api_token Resource - terraform-provider-turso"
4+
subcategory: ""
5+
description: |-
6+
API Token resource
7+
---
8+
9+
# turso_api_token (Resource)
10+
11+
API Token resource
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "turso_api_token" "example_api_token" {
17+
name = "example_api_token"
18+
}
19+
```
20+
21+
<!-- schema generated by tfplugindocs -->
22+
## Schema
23+
24+
### Required
25+
26+
- `name` (String) The name of the api token.
27+
28+
### Read-Only
29+
30+
- `id` (String) The ID for the token.
31+
- `token` (String, Sensitive) The actual token contents as a JWT. This is used with the `Bearer` header, see [Authentication](https://docs.turso.tech/authentication) for more details.
32+
33+
## Import
34+
35+
Import is supported using the following syntax:
36+
37+
```shell
38+
terraform import turso_api_token.example_api_token example_api_token/token_value
39+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
terraform import turso_api_token.example_api_token example_api_token/token_value
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
resource "turso_api_token" "example_api_token" {
2+
name = "example_api_token"
3+
}

internal/client/oas_client_gen.go

+6-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/client/oas_handlers_gen.go

+4-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)