Skip to content

Commit

Permalink
feat(dcs): add dcs data-source support. (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice1319 authored Apr 22, 2024
1 parent 927cda2 commit fbaca32
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 2,173 deletions.
34 changes: 34 additions & 0 deletions docs/data-sources/dcs_maintainwindow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
subcategory: "Distributed Cache Service (DCS)"
---

# hcso_dcs_maintainwindow

Use this data source to get the ID of an available DCS maintenance windows.

## Example Usage

```hcl
data "hcso_dcs_maintainwindow" "maintainwindow1" {
seq = 1
}
```

## Argument Reference

* `region` - (Optional, String) The region in which to obtain the dcs maintenance windows. If omitted, the provider-level
region will be used.

* `seq` - (Optional, Int) Specifies the sequential number of a maintenance time window.

* `begin` - (Optional, String) Specifies the time at which a maintenance time window starts.

* `end` - (Optional, String) Specifies the time at which a maintenance time window ends.

* `default` - (Optional, Bool) Specifies whether a maintenance time window is set to the default time segment.

## Attribute Reference

In addition to all arguments above, the following attributes are exported:

* `id` - The data source ID in UUID format.
3 changes: 3 additions & 0 deletions internal/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/antiddos"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/cbr"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/cce"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/dcs"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/dns"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/ecs"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/eip"
Expand Down Expand Up @@ -315,6 +316,8 @@ func Provider() *schema.Provider {
"hcso_cce_node_pool": cce.DataSourceCCENodePoolV3(),
"hcso_cce_nodes": cce.DataSourceNodes(),

"hcso_dcs_maintainwindow": dcs.DataSourceDcsMaintainWindow(),

"hcso_dns_zones": dns.DataSourceZones(),

"hcso_compute_flavors": ecs.DataSourceEcsFlavors(),
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit fbaca32

Please sign in to comment.