Skip to content

Commit

Permalink
Merge pull request #217 from Ccaswell42/master
Browse files Browse the repository at this point in the history
Added NEW resources
  • Loading branch information
Ccaswell42 authored Aug 1, 2023
2 parents bb6ae59 + e2188dc commit 9ba6197
Show file tree
Hide file tree
Showing 32 changed files with 2,561 additions and 359 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ terraform-provider-sbercloud

.idea/


sbercloud/services/rds_new
#sbercloud/acceptance/dcs
sbercloud/acceptance/rds
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
## 1.11.4 (August 1, 2023)

FEATURES:

* **New Data Source:** `sbercloud_evs_volumes` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Data Source:** `sbercloud_cbr_backup` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Data Source:** `sbercloud_compute_servergroups` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Data Source:** `sbercloud_css_flavors` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Data Source:** `sbercloud_identity_users` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Data Source:** `sbercloud_networking_secgroups` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Data Source:** `sbercloud_rds_engine_versions` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Data Source:** `sbercloud_rds_storage_types` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Resource:** `sbercloud_vpc_address_group` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Resource:** `sbercloud_dcs_backup` ([#216](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/216))
* **New Resource:** `sbercloud_dcs_parameters` ([#195](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/195))
* **New Resource:** `sbercloud_dcs_restore` ([#196](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/196))

## 1.11.3 (July 05, 2023)

ENHANCEMENTS:

* Update documentation for all data source and resource objects ([#211](https://github.com/sbercloud-terraform/terraform-provider-sbercloud/issues/211))
Expand Down
180 changes: 180 additions & 0 deletions docs/data-sources/cbr_backup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
---
subcategory: "Cloud Backup and Recovery (CBR)"
---

# sbercloud_cbr_backup

Use this data source to query the backup detail using its ID within Sbercloud.

## Example Usage

### Using backup ID to query the backup detail

```hcl
variable "backup_id" {}
data "sbercloud_cbr_backup" "test" {
id = "backup_id"
}
```

## Argument reference

The following arguments are supported:

* `region` - (Optional, String) Specifies the region in which to query the backup detail.
If omitted, the provider-level region will be used.

* `id` - (Required, String) Specifies the backup ID.

## Attributes Reference

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

* `parent_id` - The parent backup ID.

* `type` - The backup type.

* `name` - The backup name.

* `description` - The backup description.

* `checkpoint_id` - The restore point ID.

* `resource_id` - The backup resource ID.

* `resource_type` - The backup resource type.

* `resource_size` - The backup resource size, in GB.

* `resource_name` - The backup resource name.

* `resource_az` - The availability zone where the backup resource is located.

* `enterprise_project_id` - The enterprise project to which the backup resource belongs.

* `vault_id` - The vault to which the backup resource belongs.

* `replication_records` - The replication records.
The [object](#cbr_backup_replication_records) structure is documented below.

* `children` - The backup list of the sub-backup resources.
The [object](#cbr_backup_children) structure is documented below.

* `extend_info` - The extended information.
The [object](#cbr_backup_extend_info) structure is documented below.

* `status` - The backup status.

* `created_at` - The creation time of the backup.

* `updated_at` - The latest update time of the backup.

* `expired_at` - The expiration time of the backup.

<a name="cbr_backup_replication_records"></a>
The `replication_records` block supports:

* `id` - The replication record ID.

* `destination_backup_id` - The ID of the destination backup used for replication.

* `destination_checkpoint_id` - The record ID of the destination backup used for replication.

* `destination_project_id` - The ID of the replication destination project.

* `destination_region` - The replication destination region.

* `destination_vault_id` - The destination vault ID.

* `source_backup_id` - The ID of the source backup used for replication.

* `source_checkpoint_id` - The ID of the source backup record used for replication.

* `source_project_id` - The ID of the replication source project.

* `source_region` - The replication source region.

* `status` - The replication status.

* `vault_id` - The ID of the vault where the backup resides.

* `extra_info` - The additional information of the replication.
The [object](#cbr_backup_replication_record_extra_info) structure is documented below.

* `created_at` - The creation time of the replication.

<a name="cbr_backup_replication_record_extra_info"></a>
The `extra_info` block supports:

* `progress` - The replication progress.

* `fail_code` - The error code.

* `fail_reason` - The error cause.

* `auto_trigger` - Whether replication is automatically scheduled.

* `destination_vault_id` - The destination vault ID.

<a name="cbr_backup_children"></a>
The `children` block supports:

* `id` - The sub-backup ID.

* `name` - The sub-backup name.

* `description` - The sub-backup description.

* `type` - The sub-backup type.

* `checkpoint_id` - The restore point ID of the sub-backup resource.

* `resource_id` - The sub-backup resource ID.

* `resource_type` - The sub-backup resource type.

* `resource_size` - The sub-backup resource size, in GB.

* `resource_name` - The sub-backup resource name.

* `resource_az` - The availability zone where the backup sub-backup resource is located.

* `enterprise_project_id` - The enterprise project to which the backup sub-backup resource belongs.

* `vault_id` - The vault to which the backup resource belongs.

* `replication_records` - The replication records.

* `extend_info` - The extended information.

* `status` - The sub-backup status.

* `created_at` - The creation time of the sub-backup.

* `updated_at` - The latest update time of the sub-backup.

* `expired_at` - The expiration time of the sub-backup.

<a name="cbr_backup_extend_info"></a>
The `extend_info` block supports:

* `auto_trigger` - Whether the backup is automatically generated.

* `bootable` - Whether the backup is a system disk backup.

* `incremental` - Whether the backup is an incremental backup.

* `snapshot_id` - Snapshot ID of the disk backup.

* `support_lld` - Whether to allow lazyloading for fast restoration.

* `supported_restore_mode` - The restoration mode.

* `os_registry_images` - The ID list of images created using backups.

* `contain_system_disk` - Whether the VM backup data contains system disk data.

* `encrypted` - Whether the backup is encrypted.

* `is_system_disk` - Whether the disk is a system disk.
44 changes: 44 additions & 0 deletions docs/data-sources/compute_servergroups.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
subcategory: "Elastic Cloud Server (ECS)"
---

# sbercloud_compute_servergroups

Use this data source to get the list of the compute server groups.

## Example Usage

```hcl
variable "name" {}
data "sbercloud_compute_servergroups" "test" {
name = var.name
}
```

## Argument Reference

The following arguments are supported:

* `region` - (Optional, String) Specifies the region in which to obtain the server groups.
If omitted, the provider-level region will be used.

* `name` - (Optional, String) Specifies the server group name.

## Attributes Reference

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

* `id` - The data source ID.

* `servergroups` - List of ECS server groups details. The object structure of each server group is documented below.

The `servergroups` block supports:

* `id` - The server group ID in UUID format.

* `name` - The server group name.

* `policies` - The set of policies for the server group.

* `members` - An array of one or more instance ID attached to the server group.
54 changes: 54 additions & 0 deletions docs/data-sources/css_flavors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
subcategory: "Cloud Search Service (CSS)"
---

# sbercloud_css_flavors

Use this data source to get available flavors of SberCloud CSS node instance.

## Example Usage

```hcl
data "sbercloud_css_flavors" "test" {
type = "ess"
version = "7.9.3"
vcpus = 4
memory = 32
}
```

## Argument Reference

* `region` - (Optional, String) Specifies the region in which to obtain the CSS flavors. If omitted, the
provider-level region will be used.

* `type` - (Optional, String) Specifies the node instance type. The options are `ess`, `ess-cold`, `ess-master`
and `ess-client`.

* `version` - (Optional, String) Specifies the engine version. The options are `5.5.1`, `6.2.3`, `6.5.4`, `7.1.1`,
`7.6.2` and `7.9.3`.

* `name` - (Optional, String) Specifies the name of the CSS flavor.

* `vcpus` - (Optional, Int) Specifies the number of vCPUs in the CSS flavor.

* `memory` - (Optional, Int) Specifies the memory size(GB) in the CSS flavor.

## Attributes Reference

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

* `id` - Indicates a data source ID in UUID format.

* `flavors` - Indicates the flavors information. Structure is documented below.

The `flavors` block contains:

* `name` - The name of the CSS flavor. It is referenced by `node_config.flavor` in `sbercloud_css_cluster`.
* `id` - The ID of CSS flavor.
* `region` - The region where the node resides.
* `type` - The node instance type.
* `version` - The engine version.
* `vcpus` - The number of vCPUs.
* `memory` - The memory size in GB.
* `disk_range` - The disk capacity range of an instance, in GB.
Loading

0 comments on commit 9ba6197

Please sign in to comment.