Skip to content

Commit 7ae4c85

Browse files
committed
update doc and example
1 parent 921520d commit 7ae4c85

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

website/docs/r/network_offering.html.markdown

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,24 @@ A `cloudstack_network_offering` resource manages a network offering within Cloud
1616
resource "cloudstack_network_offering" "example" {
1717
name = "example-network-offering"
1818
display_text = "Example Network Offering"
19-
guest_ip_type = "Shared"
19+
guest_ip_type = "Isolated"
2020
traffic_type = "Guest"
21+
network_rate = 100
22+
network_mode = "NATTED"
23+
conserve_mode = true
24+
enable = true
25+
for_vpc = false
26+
specify_vlan = true
27+
specify_ip_ranges = true
28+
max_connections = 256
29+
supported_services = ["Dhcp", "Dns", "Firewall", "Lb", "SourceNat"]
30+
service_provider_list = {
31+
Dhcp = "VirtualRouter"
32+
Dns = "VirtualRouter"
33+
Firewall = "VirtualRouter"
34+
Lb = "VirtualRouter"
35+
SourceNat = "VirtualRouter"
36+
}
2137
}
2238
```
2339

@@ -30,6 +46,20 @@ The following arguments are supported:
3046
* `display_text` - (Required) The display text of the network offering.
3147
* `guest_ip_type` - (Required) The type of IP address allocation for the network offering. Possible values are "Shared" or "Isolated".
3248
* `traffic_type` - (Required) The type of traffic for the network offering. Possible values are "Guest" or "Management".
49+
* `network_rate` - (Optional) The network rate in Mbps for the network offering.
50+
* `network_mode` - (Optional) The network mode. Possible values are "DHCP" or "NATTED".
51+
* `conserve_mode` - (Optional) Whether to enable conserve mode. Defaults to `false`.
52+
* `enable` - (Optional) Whether to enable the network offering. Defaults to `false`.
53+
* `for_vpc` - (Optional) Whether this network offering is for VPC. Defaults to `false`.
54+
* `for_nsx` - (Optional) Whether this network offering is for NSX. Defaults to `false`.
55+
* `specify_vlan` - (Optional) Whether to allow specifying VLAN ID. Defaults to `false`.
56+
* `specify_ip_ranges` - (Optional) Whether to allow specifying IP ranges. Defaults to `false`.
57+
* `specify_as_number` - (Optional) Whether to allow specifying AS number. Defaults to `false`.
58+
* `internet_protocol` - (Optional) The internet protocol. Possible values are "IPv4" or "IPv6". Defaults to "IPv4".
59+
* `routing_mode` - (Optional) The routing mode. Possible values are "Static" or "Dynamic".
60+
* `max_connections` - (Optional) The maximum number of concurrent connections supported by the network offering.
61+
* `supported_services` - (Optional) A list of supported services for this network offering.
62+
* `service_provider_list` - (Optional) A map of service providers for the supported services.
3363

3464
## Attributes Reference
3565

0 commit comments

Comments
 (0)