This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage resource added
- Loading branch information
Showing
16 changed files
with
1,067 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "gcore_storage Resource - terraform-provider-gcorelabs" | ||
subcategory: "" | ||
description: |- | ||
Represent storage resource. | ||
--- | ||
|
||
# gcore_storage (Resource) | ||
|
||
Represent storage resource. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
provider gcore { | ||
user_name = "test" | ||
password = "test" | ||
gcore_platform = "https://api.gcdn.co" | ||
gcore_storage_api = "https://storage.gcorelabs.com/api" | ||
} | ||
resource "gcore_storage" "tf_example_s3" { | ||
name = "tf_example" | ||
location = "s-ed1" | ||
type = "s3" | ||
link_key_id = 199 | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **location** (String) A location of new storage resource. One of (s-ed1, s-darz1, s-ws1, ams, sin, fra, mia) | ||
- **name** (String) A name of new storage resource. | ||
- **type** (String) A type of new storage resource. One of (sftp, s3) | ||
|
||
### Optional | ||
|
||
- **client_id** (Number) An client id of new storage resource. | ||
- **expires** (String) A expires date of storage resource. | ||
- **generate_sftp_password** (Boolean) An auto generated sftp password for new storage resource. | ||
- **id** (String) The ID of this resource. | ||
- **link_key_id** (Number) An key id to link with new storage resource. | ||
- **server_alias** (String) An alias of storage resource. | ||
- **sftp_password** (String) A sftp password for new storage resource. | ||
- **storage_id** (Number) An id of new storage resource. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "gcore_storage_key Resource - terraform-provider-gcorelabs" | ||
subcategory: "" | ||
description: |- | ||
Represent storage key resource. | ||
--- | ||
|
||
# gcore_storage_key (Resource) | ||
|
||
Represent storage key resource. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
provider gcore { | ||
user_name = "test" | ||
password = "test" | ||
gcore_platform = "https://api.gcdn.co" | ||
gcore_storage_api = "https://storage.gcorelabs.com/api" | ||
} | ||
resource "gcore_storage_key" "terraform_test_key" { | ||
name = "terraform_test_key" | ||
key = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q== [email protected]" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **key** (String) A body of of new storage key resource. | ||
- **name** (String) A name of new storage key resource. | ||
|
||
### Optional | ||
|
||
- **id** (String) The ID of this resource. | ||
- **key_id** (Number) An id of of new storage key resource. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
provider gcore { | ||
user_name = "test" | ||
password = "test" | ||
gcore_platform = "https://api.gcdn.co" | ||
gcore_storage_api = "https://storage.gcorelabs.com/api" | ||
} | ||
|
||
resource "gcore_storage" "tf_example_s3" { | ||
name = "tf_example" | ||
location = "s-ed1" | ||
type = "s3" | ||
link_key_id = 199 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
provider gcore { | ||
user_name = "test" | ||
password = "test" | ||
gcore_platform = "https://api.gcdn.co" | ||
gcore_storage_api = "https://storage.gcorelabs.com/api" | ||
} | ||
|
||
resource "gcore_storage_key" "terraform_test_key" { | ||
name = "terraform_test_key" | ||
key = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q== [email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.