-
Notifications
You must be signed in to change notification settings - Fork 32
/
datasource_avi_ipaddrgroup.go
77 lines (74 loc) · 1.68 KB
/
datasource_avi_ipaddrgroup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Copyright 2019 VMware, Inc.
// SPDX-License-Identifier: Mozilla Public License 2.0
package avi
import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
// nolint
func dataSourceAviIpAddrGroup() *schema.Resource {
return &schema.Resource{
Read: ResourceAviIpAddrGroupRead,
Schema: map[string]*schema.Schema{
"addrs": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceIpAddrSchema(),
},
"configpb_attributes": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceConfigPbAttributesSchema(),
},
"country_codes": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"description": {
Type: schema.TypeString,
Computed: true,
},
"ip_ports": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceIpAddrPortSchema(),
},
"marathon_app_name": {
Type: schema.TypeString,
Computed: true,
},
"marathon_service_port": {
Type: schema.TypeString,
Computed: true,
},
"markers": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceRoleFilterMatchLabelSchema(),
},
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"prefixes": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceIpAddrPrefixSchema(),
},
"ranges": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceIpAddrRangeSchema(),
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"uuid": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
}