in cloudstack/data_source_cloudstack_pod.go [33:166]
func dataSourceCloudstackPod() *schema.Resource {
return &schema.Resource{
Read: datasourceCloudStackPodRead,
Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
//Computed values
"pod_id": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Computed: true,
},
"zone_id": {
Type: schema.TypeString,
Computed: true,
},
"end_ip": {
Type: schema.TypeString,
Computed: true,
},
"gateway": {
Type: schema.TypeString,
Computed: true,
},
"netmask": {
Type: schema.TypeString,
Computed: true,
},
"start_ip": {
Type: schema.TypeString,
Computed: true,
},
"allocation_state": {
Type: schema.TypeString,
Computed: true,
},
"zone_name": {
Type: schema.TypeString,
Computed: true,
},
"vlan_id": {
Type: schema.TypeString,
Computed: true,
},
"capacity": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"capacity_allocated": {
Type: schema.TypeInt,
Computed: true,
},
"capacity_total": {
Type: schema.TypeInt,
Computed: true,
},
"capacity_used": {
Type: schema.TypeInt,
Computed: true,
},
"cluster_id": {
Type: schema.TypeString,
Computed: true,
},
"cluster_name": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Computed: true,
},
"percent_used": {
Type: schema.TypeInt,
Computed: true,
},
"pod_id": {
Type: schema.TypeString,
Computed: true,
},
"pod_name": {
Type: schema.TypeString,
Computed: true,
},
"type": {
Type: schema.TypeString,
Computed: true,
},
"zone_id": {
Type: schema.TypeString,
Computed: true,
},
"zone_name": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"ip_ranges": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"end_ip": {
Type: schema.TypeString,
Computed: true,
},
"gateway": {
Type: schema.TypeString,
Computed: true,
},
"for_system_vms": {
Type: schema.TypeString,
Computed: true,
},
"start_ip": {
Type: schema.TypeString,
Computed: true,
},
"vlan_id": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
},
}
}