Skip to content

Commit

Permalink
docs(as/cbr/cse): processing Fields Referencing Huawei Cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Zippo-Wang committed Sep 18, 2023
1 parent e32e132 commit 847d043
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/data-sources/as_groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ subcategory: "Auto Scaling (AS)"
Use this data source to get a list of AS groups.

```hcl
variable "ep_id" {}
data "flexibleengine_as_groups" "groups" {
}
```
Expand All @@ -30,6 +32,9 @@ The following arguments are supported:
- **DELETING**: indicates that the AS group is being deleted.
- **FREEZED**: indicates that the AS group has been frozen.

* `enterprise_project_id` - (Optional, String) Specifies the enterprise project id of the AS group.
Changing this will create a new resource.

## Attribute Reference

In addition to all arguments above, the following attributes are exported:
Expand Down
3 changes: 3 additions & 0 deletions docs/resources/cbr_vault.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ The following arguments are supported:
+ **disk** (EVS Disks)
+ **turbo** (SFS Turbo file systems)

* `enterprise_project_id` - (Optional, String, ForceNew) Specifies the enterprise project id of the cbr vault resource.
Changing this will create a new resource.

* `protection_type` - (Required, String, ForceNew) Specifies the protection type of the CBR vault.
The valid values are **backup** and **replication**. Vaults of type **disk** don't support **replication**.
Changing this will create a new vault.
Expand Down
3 changes: 3 additions & 0 deletions docs/resources/cse_microservice_engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ The following arguments are supported:
The name must start with a letter and cannot end with a hyphen (-).
Changing this will create a new engine.

* `enterprise_project_id` - (Optional, String, ForceNew) Specifies the enterprise project id of the cse microservice
engine resource. Changing this will create a new resource.

* `flavor` - (Required, String, ForceNew) Specifies the flavor of the dedicated microservice engine.
Changing this will create a new engine.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ func TestAccDataSourceASGroup_basic(t *testing.T) {
resource.TestCheckResourceAttr(dataSourceName, "groups.0.scaling_group_name", name),
),
},
{
Config: testAccDataSourceASGroup_enterpriseProjectId(name),
Check: resource.ComposeTestCheckFunc(
dc.CheckResourceExists(),
),
},
},
})
}
Expand All @@ -42,3 +48,12 @@ data "flexibleengine_as_groups" "groups" {
}
`, testASGroup_basic(name))
}

func testAccDataSourceASGroup_enterpriseProjectId(name string) string {
return fmt.Sprintf(`
%s
data "flexibleengine_as_groups" "groups" {
enterprise_project_id = 0
}
`, testASGroup_basic(name))
}

0 comments on commit 847d043

Please sign in to comment.