@@ -24,15 +24,16 @@ type FailOver struct {
2424}
2525
2626type MetaportFailover struct {
27- ID string `json:"id,omitempty"`
28- Name string `json:"name,omitempty"`
29- Description string `json:"description,omitempty"`
30- MappedElements []string `json:"mapped_elements"`
31- Cluster1 * string `json:"cluster_1"`
32- Cluster2 * string `json:"cluster_2"`
33- ActiveCluster * string `json:"active_cluster,omitempty"`
34- FailBack * FailBack `json:"failback,omitempty"`
35- FailOver * FailOver `json:"failover,omitempty"`
27+ ID string `json:"id,omitempty"`
28+ Name string `json:"name,omitempty"`
29+ Description string `json:"description,omitempty"`
30+ MappedElements []string `json:"mapped_elements"`
31+ Cluster1 * string `json:"cluster_1"`
32+ Cluster2 * string `json:"cluster_2"`
33+ ActiveCluster * string `json:"active_cluster,omitempty"`
34+ FailBack * FailBack `json:"failback,omitempty"`
35+ FailOver * FailOver `json:"failover,omitempty"`
36+ NotificationChannels []string `json:"notification_channels"`
3637}
3738
3839func (mf * MetaportFailover ) ReqBody () ([]byte , error ) {
@@ -80,6 +81,12 @@ func NewMetaportFailover(d *schema.ResourceData) *MetaportFailover {
8081 res .FailOver = & FailOver {Delay : uint8 (delay ), Threshold : uint8 (threshold ), Trigger : trigger }
8182 }
8283 }
84+ nc := d .Get ("notification_channels" ).([]interface {})
85+ nChannel := make ([]string , len (nc ))
86+ for i , org := range nc {
87+ nChannel [i ] = org .(string )
88+ }
89+ res .NotificationChannels = nChannel
8390 return res
8491}
8592
0 commit comments