Skip to content

Commit

Permalink
replaced custom_properties section with security section
Browse files Browse the repository at this point in the history
  • Loading branch information
torresdal committed Sep 1, 2018
1 parent 021ffae commit 771afcf
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions azurerm/data_source_api_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,41 @@ func dataSourceApiManagementService() *schema.Resource {
},
},

"custom_properties": {
Type: schema.TypeMap,
Computed: true,
"security": {
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"disable_backend_ssl30": {
Type: schema.TypeBool,
Computed: true,
},
"disable_backend_tls10": {
Type: schema.TypeBool,
Computed: true,
},
"disable_backend_tls11": {
Type: schema.TypeBool,
Computed: true,
},
"disable_triple_des_chipers": {
Type: schema.TypeBool,
Computed: true,
},
"disable_frontend_ssl30": {
Type: schema.TypeBool,
Computed: true,
},
"disable_frontend_tls10": {
Type: schema.TypeBool,
Computed: true,
},
"disable_frontend_tls11": {
Type: schema.TypeBool,
Computed: true,
},
},
},
},

"hostname_configuration": {
Expand Down Expand Up @@ -201,8 +233,8 @@ func dataSourceApiManagementRead(d *schema.ResourceData, meta interface{}) error
return err
}

if err := d.Set("custom_properties", customProps); err != nil {
return fmt.Errorf("Error setting `custom_properties`: %+v", err)
if err := d.Set("security", customProps); err != nil {
return fmt.Errorf("Error setting `security`: %+v", err)
}

if err := d.Set("hostname_configuration", flattenApiManagementHostnameConfigurations(d, props.HostnameConfigurations)); err != nil {
Expand Down

0 comments on commit 771afcf

Please sign in to comment.