From 771afcf2a537003510ac21fe2049c5b1f11dfe2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Arild=20T=C3=B8rresdal?= Date: Sat, 25 Aug 2018 13:48:41 +0200 Subject: [PATCH] replaced custom_properties section with security section --- azurerm/data_source_api_management.go | 42 +++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/azurerm/data_source_api_management.go b/azurerm/data_source_api_management.go index 1e304c98d934..05b4c1e8d328 100644 --- a/azurerm/data_source_api_management.go +++ b/azurerm/data_source_api_management.go @@ -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": { @@ -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 {