FlexibleEngineCloud / terraform-provider-flexibleengine

Terraform flexibleengine provider
https://www.terraform.io/docs/providers/flexibleengine/
Mozilla Public License 2.0
30 stars 53 forks source link

[CBR] Cannot set both backup policy id and replication id #940

Closed thivr closed 1 year ago

thivr commented 1 year ago

Terraform Provider Version

1.37.0

Affected Resource(s)

Issue

A CBR vault can be associated with a backup policy and a replication policy at the same time. However the provider accepts only one string for policy_id:

https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/cbr_vault#policy_id

ShiChangkuo commented 1 year ago

A CBR vault can be associated with a backup policy and a replication policy at the same time.

@thivr how do we do this action via console or API? I cannot find it.

thivr commented 1 year ago

@ShiChangkuo You can do it using console or API I did it with the console, using this https://docs.prod-cloud-ocb.orange-business.com/usermanual/cbr/cbr_03_0029.html With the API, doc is not very detailed bu here we can see that multiple policies can be set at the same time https://docs.prod-cloud-ocb.orange-business.com/api/cbr/AssociateVaultPolicy.html <<< add_policy_ids

ShiChangkuo commented 1 year ago

ok, I got it and this feature will be released in v1.39.0

thivr commented 1 year ago

@ShiChangkuo sounds good, thanks :-)