Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit f50698c

Browse files
committed
data-sources added
1 parent 2910831 commit f50698c

File tree

78 files changed

+4675
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+4675
-37
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gcore_floatingip Data Source - terraform-provider-gcorelabs"
4+
subcategory: ""
5+
description: |-
6+
A floating IP is a static IP address that points to one of your Instances. It allows you to redirect network traffic to any of your Instances in the same datacenter.
7+
---
8+
9+
# gcore_floatingip (Data Source)
10+
11+
A floating IP is a static IP address that points to one of your Instances. It allows you to redirect network traffic to any of your Instances in the same datacenter.
12+
13+
## Example Usage
14+
15+
```terraform
16+
provider gcore {
17+
user_name = "test"
18+
password = "test"
19+
gcore_platform = "https://api.gcdn.co"
20+
gcore_api = "https://api.cloud.gcorelabs.com"
21+
}
22+
23+
data "gcore_project" "pr" {
24+
name = "test"
25+
}
26+
27+
data "gcore_region" "rg" {
28+
name = "ED-10 Preprod"
29+
}
30+
31+
data "gcore_floatingip" "ip" {
32+
floating_ip_address = "10.100.179.172"
33+
region_id = data.gcore_region.rg.id
34+
project_id = data.gcore_project.pr.id
35+
}
36+
37+
output "view" {
38+
value = data.gcore_floatingip.ip
39+
}
40+
```
41+
42+
<!-- schema generated by tfplugindocs -->
43+
## Schema
44+
45+
### Required
46+
47+
- **floating_ip_address** (String)
48+
49+
### Optional
50+
51+
- **id** (String) The ID of this resource.
52+
- **port_id** (String)
53+
- **project_id** (Number)
54+
- **project_name** (String)
55+
- **region_id** (Number)
56+
- **region_name** (String)
57+
58+
### Read-Only
59+
60+
- **fixed_ip_address** (String)
61+
- **router_id** (String)
62+
- **status** (String)
63+
64+

docs/data-sources/gcore_image.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gcore_image Data Source - terraform-provider-gcorelabs"
4+
subcategory: ""
5+
description: |-
6+
Represent image data
7+
---
8+
9+
# gcore_image (Data Source)
10+
11+
Represent image data
12+
13+
## Example Usage
14+
15+
```terraform
16+
provider gcore {
17+
user_name = "test"
18+
password = "test"
19+
gcore_platform = "https://api.gcdn.co"
20+
gcore_api = "https://api.cloud.gcorelabs.com"
21+
}
22+
23+
data "gcore_project" "pr" {
24+
name = "test"
25+
}
26+
27+
data "gcore_region" "rg" {
28+
name = "ED-10 Preprod"
29+
}
30+
31+
data "gcore_image" "ubuntu" {
32+
name = "ubuntu-20.04"
33+
region_id = data.gcore_region.rg.id
34+
project_id = data.gcore_project.pr.id
35+
}
36+
37+
output "view" {
38+
value = data.gcore_image.ubuntu
39+
}
40+
```
41+
42+
<!-- schema generated by tfplugindocs -->
43+
## Schema
44+
45+
### Required
46+
47+
- **name** (String) use 'os-version', for example 'ubuntu-20.04'
48+
49+
### Optional
50+
51+
- **id** (String) The ID of this resource.
52+
- **project_id** (Number)
53+
- **project_name** (String)
54+
- **region_id** (Number)
55+
- **region_name** (String)
56+
57+
### Read-Only
58+
59+
- **description** (String)
60+
- **min_disk** (Number)
61+
- **min_ram** (Number)
62+
- **os_distro** (String)
63+
- **os_version** (String)
64+
65+
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gcore_instance Data Source - terraform-provider-gcorelabs"
4+
subcategory: ""
5+
description: |-
6+
Represent instance. Could be used with baremetal also
7+
---
8+
9+
# gcore_instance (Data Source)
10+
11+
Represent instance. Could be used with baremetal also
12+
13+
## Example Usage
14+
15+
```terraform
16+
provider gcore {
17+
user_name = "test"
18+
password = "test"
19+
gcore_platform = "https://api.gcdn.co"
20+
gcore_api = "https://api.cloud.gcorelabs.com"
21+
}
22+
23+
data "gcore_project" "pr" {
24+
name = "test"
25+
}
26+
27+
data "gcore_region" "rg" {
28+
name = "ED-10 Preprod"
29+
}
30+
31+
data "gcore_instance" "vm" {
32+
name = "test-vm"
33+
region_id = data.gcore_region.rg.id
34+
project_id = data.gcore_project.pr.id
35+
}
36+
37+
output "view" {
38+
value = data.gcore_instance.vm
39+
}
40+
```
41+
42+
<!-- schema generated by tfplugindocs -->
43+
## Schema
44+
45+
### Required
46+
47+
- **name** (String)
48+
49+
### Optional
50+
51+
- **id** (String) The ID of this resource.
52+
- **project_id** (Number)
53+
- **project_name** (String)
54+
- **region_id** (Number)
55+
- **region_name** (String)
56+
57+
### Read-Only
58+
59+
- **addresses** (List of Object) (see [below for nested schema](#nestedatt--addresses))
60+
- **flavor** (Map of String)
61+
- **flavor_id** (String)
62+
- **interface** (List of Object) (see [below for nested schema](#nestedatt--interface))
63+
- **metadata** (List of Object) (see [below for nested schema](#nestedatt--metadata))
64+
- **security_group** (List of Object) Firewalls list (see [below for nested schema](#nestedatt--security_group))
65+
- **status** (String)
66+
- **vm_state** (String)
67+
- **volume** (Set of Object) (see [below for nested schema](#nestedatt--volume))
68+
69+
<a id="nestedatt--addresses"></a>
70+
### Nested Schema for `addresses`
71+
72+
Read-Only:
73+
74+
- **net** (List of Object) (see [below for nested schema](#nestedobjatt--addresses--net))
75+
76+
<a id="nestedobjatt--addresses--net"></a>
77+
### Nested Schema for `addresses.net`
78+
79+
Read-Only:
80+
81+
- **addr** (String)
82+
- **type** (String)
83+
84+
85+
86+
<a id="nestedatt--interface"></a>
87+
### Nested Schema for `interface`
88+
89+
Read-Only:
90+
91+
- **ip_address** (String)
92+
- **network_id** (String)
93+
- **port_id** (String)
94+
- **subnet_id** (String)
95+
96+
97+
<a id="nestedatt--metadata"></a>
98+
### Nested Schema for `metadata`
99+
100+
Read-Only:
101+
102+
- **key** (String)
103+
- **value** (String)
104+
105+
106+
<a id="nestedatt--security_group"></a>
107+
### Nested Schema for `security_group`
108+
109+
Read-Only:
110+
111+
- **name** (String)
112+
113+
114+
<a id="nestedatt--volume"></a>
115+
### Nested Schema for `volume`
116+
117+
Read-Only:
118+
119+
- **delete_on_termination** (Boolean)
120+
- **volume_id** (String)
121+
122+
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gcore_lblistener Data Source - terraform-provider-gcorelabs"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# gcore_lblistener (Data Source)
10+
11+
12+
13+
## Example Usage
14+
15+
```terraform
16+
provider gcore {
17+
user_name = "test"
18+
password = "test"
19+
gcore_platform = "https://api.gcdn.co"
20+
gcore_api = "https://api.cloud.gcorelabs.com"
21+
}
22+
23+
data "gcore_project" "pr" {
24+
name = "test"
25+
}
26+
27+
data "gcore_region" "rg" {
28+
name = "ED-10 Preprod"
29+
}
30+
31+
data "gcore_lblistener" "l" {
32+
name = "test-listener"
33+
loadbalancer_id = "59b2eabc-c0a8-4545-8081-979bd963c6ab" //optional
34+
region_id = data.gcore_region.rg.id
35+
project_id = data.gcore_project.pr.id
36+
}
37+
38+
output "view" {
39+
value = data.gcore_lblistener.l
40+
}
41+
```
42+
43+
<!-- schema generated by tfplugindocs -->
44+
## Schema
45+
46+
### Required
47+
48+
- **name** (String)
49+
50+
### Optional
51+
52+
- **id** (String) The ID of this resource.
53+
- **loadbalancer_id** (String)
54+
- **project_id** (Number)
55+
- **project_name** (String)
56+
- **region_id** (Number)
57+
- **region_name** (String)
58+
59+
### Read-Only
60+
61+
- **operating_status** (String)
62+
- **pool_count** (Number)
63+
- **protocol** (String) Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
64+
- **protocol_port** (Number)
65+
- **provisioning_status** (String)
66+
67+

0 commit comments

Comments
 (0)