You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/d/vra_network.html.markdown
+24-8
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,43 @@ description: |-
9
9
10
10
This is an example of how to read a network data source.
11
11
12
+
**Network data source by id:**
13
+
12
14
```hcl
15
+
data "vra_network" "test-network" {
16
+
id = var.network_id
17
+
}
18
+
```
13
19
20
+
**Network data source by name:**
21
+
22
+
```hcl
14
23
data "vra_network" "test-network" {
15
24
name = var.network_name
16
25
}
26
+
```
27
+
28
+
**Network data source by filter:**
17
29
30
+
```hcl
31
+
data "vra_network" "test-network" {
32
+
filter = "name eq '${var.network_name}'"
33
+
}
18
34
```
19
35
20
36
## Argument Reference
21
37
22
-
*`id` - (Optional) The id of the image profile instance.
38
+
*`id` - (Optional) The id of the network instance. Only one of 'id', 'name' or 'filter' must be specified.
39
+
40
+
*`name` - (Optional) The human-friendly name of the network instance. Only one of 'id', 'name' or 'filter' must be specified.
23
41
24
-
*`name` - (Optional) A human-friendly name used as an identifier in APIs that support this option.
42
+
*`filter` - (Optional) The search criteria to narrow down the network instance. Only one of 'id', 'name' or 'filter' must be specified.
25
43
26
44
## Attribute Reference
27
45
28
46
*`cidr` - IPv4 address range of the network in CIDR format.
29
47
30
-
*`constraints` - List of storage, network and extensibility constraints to be applied when provisioning through this project.
48
+
*`cloud_account_ids` - Set of ids of the cloud accounts this resource belongs to.
31
49
32
50
*`custom_properties` - Additional properties that may be used to extend the base resource.
33
51
@@ -37,20 +55,18 @@ data "vra_network" "test-network" {
37
55
38
56
*`external_id` - External entity Id on the provider side.
39
57
58
+
*`external_region_id` - The external regionId of the resource.
59
+
40
60
*`external_zone_id` - The external zoneId of the resource.
41
61
42
62
*`links` - HATEOAS of the entity
43
63
44
64
*`organization_id` - The id of the organization this entity belongs to.
45
65
46
-
*`outbound_access` - Flag to indicate if the network needs to have outbound access or not. Default is true. This field will be ignored if there is proper input for networkType customProperty
47
-
48
-
*`owner` - Email of the user that owns the entity.
66
+
*`owner` - Email of the user or display name of the group that owns the entity.
49
67
50
68
*`project_id` - The id of the project this resource belongs to.
51
69
52
-
*`self_link` - Self link of this request.
53
-
54
70
*`tags` - A set of tag keys and optional values that were set on this resource.
0 commit comments