<commit_before>---
layout: "cloudstack"
page_title: "CloudStack: cloudstack_network"
sidebar_current: "docs-cloudstack-resource-network"
description: |-
  Creates a network.
---

# cloudstack\_network

Creates a network.

## Example Usage

Basic usage:

```
resource "cloudstack_network" "default" {
    name = "test-network"
    cidr = "10.0.0.0/16"
    network_offering = "Default Network"
    zone = "zone-1"
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) The name of the network.

* `display_text` - (Optional) The display text of the network.

* `cidr` - (Required) The CIDR block for the network. Changing this forces a new
    resource to be created.

* `startip` - (Optional) Start of the IP block that will be available on the 
    network. It will be autocalculated to the second available IP in the range
    if it's left out.

* `endip` - (Optional) End of the IP block that will be available on the 
    network. It will be autocalculated to the last available IP in the range
    if it's left out.

* `gateway` - (Optional) Gateway that will be provided to the instances in this
    network. It defaults to the first usable IP if it's left empty.

* `network_offering` - (Required) The name or ID of the network offering to use
    for this network.

* `vlan` - (Optional) The VLAN number (1-4095) the network will use. This might be
    required by the Network Offering if specifyVlan=true is set.

* `vpc` - (Optional) The name or ID of the VPC to create this network for. Changing
    this forces a new resource to be created.

* `aclid` - (Optional) The ID of a network ACL that should be attached to the
    network. Changing this forces a new resource to be created.

* `project` - (Optional) The name or ID of the project to deploy this
    instance to. Changing this forces a new resource to be created.

* `zone` - (Required) The name or ID of the zone where this disk volume will be<commit_msg>Fix wording on the docs for resource_cloudstack_network<commit_after>---
layout: "cloudstack"
page_title: "CloudStack: cloudstack_network"
sidebar_current: "docs-cloudstack-resource-network"
description: |-
  Creates a network.
---

# cloudstack\_network

Creates a network.

## Example Usage

Basic usage:

```
resource "cloudstack_network" "default" {
    name = "test-network"
    cidr = "10.0.0.0/16"
    network_offering = "Default Network"
    zone = "zone-1"
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) The name of the network.

* `display_text` - (Optional) The display text of the network.

* `cidr` - (Required) The CIDR block for the network. Changing this forces a new
    resource to be created.

* `startip` - (Optional) Start of the IP block that will be available on the 
    network. Defaults to the second available IP in the range.

* `endip` - (Optional) End of the IP block that will be available on the 
    network. Defaults to the last available IP in the range.

* `gateway` - (Optional) Gateway that will be provided to the instances in this
    network. Defaults to the first usable IP in the range.

* `network_offering` - (Required) The name or ID of the network offering to use
    for this network.

* `vlan` - (Optional) The VLAN number (1-4095) the network will use. This might be
    required by the Network Offering if specifyVlan=true is set.

* `vpc` - (Optional) The name or ID of the VPC to create this network for. Changing
    this forces a new resource to be created.

* `aclid` - (Optional) The ID of a network ACL that should be attached to the
    network. Changing this forces a new resource to be created.

* `project` - (Optional) The name or ID of the project to deploy this
    instance to. Changing this forces a new resource to be created.

* `zone` - (Required) The name or ID of the zone where this disk volume will be
{'fraction_non_alphanumeric': 0.08318310584599536, 'fraction_numerical': 0.006695853721349472, 'mean_word_length': 3.428734321550741, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4939677', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1127, 'n_words': 543}