Skip to content

Commit b8bf93d

Browse files
authored
Merge pull request #74 from MagaluCloud/update-files-32bce8256b1ee73e136550c28be7945be73d1ab7
Update files from source repository
2 parents b1cc9e9 + 47bb90b commit b8bf93d

30 files changed

+687
-565
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ The provider is currently under development, so new Magalu Cloud resources will
1717
- You can contribute to an [open issue](https://github.com/MagaluCloud/terraform-provider-mgc/issues) to report a bug or suggest improvements and new features
1818
- You can open tópic in our [Dicussions Forum](https://github.com/MagaluCloud/terraform-provider-mgc/discussions)
1919
- See our roadmap in [projects](https://github.com/orgs/MagaluCloud/projects/2/views/7)
20-
- For the time being, the source code is on our [monorepo](https://github.com/MagaluCloud/magalu) (separation in progress).
2120

2221

2322
# References
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "mgc_availability_zones Data Source - terraform-provider-mgc"
4+
subcategory: "Availability Zones"
5+
description: |-
6+
List of available regions and availability zones.
7+
---
8+
9+
# mgc_availability_zones (Data Source)
10+
11+
List of available regions and availability zones.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "mgc_availability_zones" "availability_zones" {
17+
}
18+
19+
output "availability_zones" {
20+
value = data.mgc_availability_zones.availability_zones.regions
21+
}
22+
```
23+
24+
<!-- schema generated by tfplugindocs -->
25+
## Schema
26+
27+
### Read-Only
28+
29+
- `regions` (Attributes List) (see [below for nested schema](#nestedatt--regions))
30+
31+
<a id="nestedatt--regions"></a>
32+
### Nested Schema for `regions`
33+
34+
Read-Only:
35+
36+
- `availability_zones` (Attributes List) (see [below for nested schema](#nestedatt--regions--availability_zones))
37+
- `region` (String)
38+
39+
<a id="nestedatt--regions--availability_zones"></a>
40+
### Nested Schema for `regions.availability_zones`
41+
42+
Optional:
43+
44+
- `block_type` (String)
45+
46+
Read-Only:
47+
48+
- `availability_zone` (String)

docs/data-sources/block_storage_snapshot.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,4 @@ output "snapshot" {
4040
- `status` (String) The status of the virtual machine instance.
4141
- `type` (String) The type of the snapshot.
4242
- `updated_at` (String) The timestamp when the block storage was last updated.
43-
- `volume` (Attributes) (see [below for nested schema](#nestedatt--volume))
44-
45-
<a id="nestedatt--volume"></a>
46-
### Nested Schema for `volume`
47-
48-
Read-Only:
49-
50-
- `id` (String) ID of block storage volume
43+
- `volume_id` (String) ID of block storage volume

docs/data-sources/block_storage_snapshots.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,4 @@ Read-Only:
4444
- `status` (String) The status of the virtual machine instance.
4545
- `type` (String) The type of the snapshot.
4646
- `updated_at` (String) The timestamp when the block storage was last updated.
47-
- `volume` (Attributes) (see [below for nested schema](#nestedatt--snapshots--volume))
48-
49-
<a id="nestedatt--snapshots--volume"></a>
50-
### Nested Schema for `snapshots.volume`
51-
52-
Read-Only:
53-
54-
- `id` (String) ID of block storage volume
47+
- `volume_id` (String) ID of block storage volume

docs/data-sources/block_storage_volume.md

+10-13
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
page_title: "mgc_block_storage_volume Data Source - terraform-provider-mgc"
44
subcategory: "Block Storage"
55
description: |-
6-
Block storage volumes
6+
Block storage volume
77
---
88

99
# mgc_block_storage_volume (Data Source)
1010

11-
Block storage volumes
11+
Block storage volume
1212

1313
## Example Usage
1414

@@ -32,21 +32,18 @@ output "my-volume" {
3232

3333
### Read-Only
3434

35+
- `attached_at` (String) The timestamp when the block storage was attached.
36+
- `attached_device` (String) The device path of the attachment.
37+
- `attached_instance_id` (String) The unique identifier of the instance.
38+
- `attached_instance_name` (String) The name of the instance.
3539
- `availability_zone` (String) The availability zones where the block storage is available.
3640
- `created_at` (String) The timestamp when the block storage was created.
41+
- `disk_type` (String) The disk type of the block storage.
3742
- `name` (String) The name of the block storage.
3843
- `size` (Number) The size of the block storage in GB.
3944
- `state` (String) The current state of the virtual machine instance.
4045
- `status` (String) The status of the virtual machine instance.
41-
- `type` (Attributes) The type of the block storage. (see [below for nested schema](#nestedatt--type))
46+
- `type_id` (String) The unique identifier of the block storage type.
47+
- `type_name` (String) The name of the block storage type.
48+
- `type_status` (String) The status of the block storage type.
4249
- `updated_at` (String) The timestamp when the block storage was last updated.
43-
44-
<a id="nestedatt--type"></a>
45-
### Nested Schema for `type`
46-
47-
Read-Only:
48-
49-
- `disk_type` (String) The disk type of the block storage.
50-
- `id` (String) The unique identifier of the block storage type.
51-
- `name` (String) The name of the block storage type.
52-
- `status` (String) The status of the block storage type.

docs/data-sources/block_storage_volumes.md

+1-11
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,5 @@ Read-Only:
4141
- `size` (Number) The size of the block storage in GB.
4242
- `state` (String) The current state of the virtual machine instance.
4343
- `status` (String) The status of the virtual machine instance.
44-
- `type` (Attributes) The type of the block storage. (see [below for nested schema](#nestedatt--volumes--type))
44+
- `type_id` (String) The unique identifier of the block storage type.
4545
- `updated_at` (String) The timestamp when the block storage was last updated.
46-
47-
<a id="nestedatt--volumes--type"></a>
48-
### Nested Schema for `volumes.type`
49-
50-
Read-Only:
51-
52-
- `disk_type` (String) The disk type of the block storage.
53-
- `id` (String) The unique identifier of the block storage type.
54-
- `name` (String) The name of the block storage type.
55-
- `status` (String) The status of the block storage type.
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "mgc_container_credentials Data Source - terraform-provider-mgc"
4+
subcategory: "Container Registry"
5+
description: |-
6+
Credentials for Container Registry authentication
7+
---
8+
9+
# mgc_container_credentials (Data Source)
10+
11+
Credentials for Container Registry authentication
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "mgc_container_credentials" "creds"{
17+
}
18+
```
19+
20+
<!-- schema generated by tfplugindocs -->
21+
## Schema
22+
23+
### Read-Only
24+
25+
- `email` (String) Email address for the credentials
26+
- `password` (String, Sensitive) Password for authentication
27+
- `username` (String) Username for authentication

docs/data-sources/container_images.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "mgc_container_images Data Source - terraform-provider-mgc"
4+
subcategory: "Container Registry"
5+
description: |-
6+
Data source for Container Registry Images
7+
---
8+
9+
# mgc_container_images (Data Source)
10+
11+
Data source for Container Registry Images
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "mgc_container_images" "image"{
17+
registry_id = mgc_container_registries.registry.id
18+
repository_name = "alohomora"
19+
}
20+
```
21+
22+
<!-- schema generated by tfplugindocs -->
23+
## Schema
24+
25+
### Required
26+
27+
- `registry_id` (String) ID of the registry
28+
- `repository_name` (String) Name of the repository
29+
30+
### Read-Only
31+
32+
- `images` (Attributes List) List of container images (see [below for nested schema](#nestedatt--images))
33+
34+
<a id="nestedatt--images"></a>
35+
### Nested Schema for `images`
36+
37+
Read-Only:
38+
39+
- `digest` (String) The digest hash of the image
40+
- `pullet_at` (String) The timestamp when the image was last pulled
41+
- `pushed_at` (String) The timestamp when the image was pushed
42+
- `size_bytes` (Number) The size of the image in bytes
43+
- `tags` (List of String) List of tags associated with the image
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "mgc_container_registries Data Source - terraform-provider-mgc"
4+
subcategory: "Container Registry"
5+
description: |-
6+
Data source for Container Registry lists
7+
---
8+
9+
# mgc_container_registries (Data Source)
10+
11+
Data source for Container Registry lists
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "mgc_container_registries" "registry"{
17+
}
18+
```
19+
20+
<!-- schema generated by tfplugindocs -->
21+
## Schema
22+
23+
### Read-Only
24+
25+
- `registries` (Attributes List) List of container registries (see [below for nested schema](#nestedatt--registries))
26+
27+
<a id="nestedatt--registries"></a>
28+
### Nested Schema for `registries`
29+
30+
Read-Only:
31+
32+
- `created_at` (String) The timestamp when the registry was created
33+
- `id` (String) The unique identifier of the registry
34+
- `name` (String) The name of the registry
35+
- `storage_usage_bytes` (Number) The storage usage in bytes
36+
- `updated_at` (String) The timestamp when the registry was last updated
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "mgc_container_repositories Data Source - terraform-provider-mgc"
4+
subcategory: "Container Registry"
5+
description: |-
6+
Data source for Container Registry Repositories
7+
---
8+
9+
# mgc_container_repositories (Data Source)
10+
11+
Data source for Container Registry Repositories
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "mgc_container_repositories" "repository"{
17+
registry_id = mgc_container_registries.registry.id
18+
}
19+
```
20+
21+
<!-- schema generated by tfplugindocs -->
22+
## Schema
23+
24+
### Required
25+
26+
- `registry_id` (String) ID of the registry
27+
28+
### Read-Only
29+
30+
- `repositories` (Attributes List) List of container repositories (see [below for nested schema](#nestedatt--repositories))
31+
32+
<a id="nestedatt--repositories"></a>
33+
### Nested Schema for `repositories`
34+
35+
Read-Only:
36+
37+
- `created_at` (String) The timestamp when the repository was created
38+
- `image_count` (Number) The number of images in the repository
39+
- `name` (String) The name of the repository
40+
- `registry_name` (String) The name of the registry containing this repository
41+
- `updated_at` (String) The timestamp when the repository was last updated

docs/data-sources/dbaas_engines.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "mgc_dbaas_engines Data Source - terraform-provider-mgc"
4+
subcategory: "Database"
5+
description: |-
6+
A list of available database engines.
7+
---
8+
9+
# mgc_dbaas_engines (Data Source)
10+
11+
A list of available database engines.
12+
13+
## Example Usage
14+
15+
```terraform
16+
# Data sources
17+
data "mgc_dbaas_engines" "active_engines" {
18+
status = "ACTIVE"
19+
}
20+
21+
data "mgc_dbaas_engines" "deprecated_engines" {
22+
status = "DEPRECATED"
23+
}
24+
25+
data "mgc_dbaas_engines" "all_engines" {}
26+
```
27+
28+
<!-- schema generated by tfplugindocs -->
29+
## Schema
30+
31+
### Optional
32+
33+
- `status` (String) Filter to return engines based on their status. If set to ACTIVE, returns only active engines. If set to DEPRECATED, returns only deprecated engines.
34+
35+
### Read-Only
36+
37+
- `engines` (Attributes List) List of available database engines (see [below for nested schema](#nestedatt--engines))
38+
39+
<a id="nestedatt--engines"></a>
40+
### Nested Schema for `engines`
41+
42+
Read-Only:
43+
44+
- `engine` (String) The type of the database engine
45+
- `id` (String) The ID of the database engine
46+
- `name` (String) The name of the database engine
47+
- `status` (String) The status of the database engine
48+
- `version` (String) The version of the database engine

docs/data-sources/dbaas_instance.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "mgc_dbaas_instance Data Source - terraform-provider-mgc"
4+
subcategory: "Database"
5+
description: |-
6+
Get a database instance by ID.
7+
---
8+
9+
# mgc_dbaas_instance (Data Source)
10+
11+
Get a database instance by ID.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "mgc_dbaas_instance" "test_instance" {
17+
id = "test_instance_id"
18+
}
19+
```
20+
21+
<!-- schema generated by tfplugindocs -->
22+
## Schema
23+
24+
### Required
25+
26+
- `id` (String) ID of the instance to fetch
27+
28+
### Read-Only
29+
30+
- `addresses` (Attributes List) List of instance addresses (see [below for nested schema](#nestedatt--addresses))
31+
- `backup_retention_days` (Number) Number of days to retain backups
32+
- `created_at` (String) Creation timestamp of the instance
33+
- `engine_id` (String) ID of the engine
34+
- `instance_type_id` (String) ID of the instance type
35+
- `name` (String) Name of the instance
36+
- `parameters` (Map of String) Map of parameters
37+
- `status` (String) Status of the instance
38+
- `volume_size` (Number) Size of the volume
39+
- `volume_type` (String) Type of the volume
40+
41+
<a id="nestedatt--addresses"></a>
42+
### Nested Schema for `addresses`
43+
44+
Read-Only:
45+
46+
- `access` (String) Access type of the address
47+
- `address` (String) IP address
48+
- `type` (String) Type of the address

0 commit comments

Comments
 (0)