-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
```release-note:new-data-source | ||
tencentcloud_postgresql_base_backups | ||
``` | ||
|
||
```release-note:new-resource | ||
tencentcloud_postgresql_base_backup | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
subcategory: "TencentDB for PostgreSQL(PostgreSQL)" | ||
layout: "tencentcloud" | ||
page_title: "TencentCloud: tencentcloud_postgresql_base_backups" | ||
sidebar_current: "docs-tencentcloud-datasource-postgresql_base_backups" | ||
description: |- | ||
Use this data source to query detailed information of postgresql base_backups | ||
--- | ||
|
||
# tencentcloud_postgresql_base_backups | ||
|
||
Use this data source to query detailed information of postgresql base_backups | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "tencentcloud_postgresql_base_backups" "base_backups" { | ||
min_finish_time = "%s" | ||
max_finish_time = "%s" | ||
order_by = "StartTime" | ||
order_by_type = "asc" | ||
} | ||
data "tencentcloud_postgresql_base_backups" "base_backups" { | ||
filters { | ||
name = "db-instance-id" | ||
values = [local.pgsql_id] | ||
} | ||
order_by = "Size" | ||
order_by_type = "asc" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `filters` - (Optional, List) Filter instances using one or more criteria. Valid filter names:db-instance-id: Filter by instance ID (in string format).db-instance-name: Filter by instance name (in string format).db-instance-ip: Filter by instance VPC IP (in string format). | ||
* `max_finish_time` - (Optional, String) Maximum end time of a backup in the format of `2018-01-01 00:00:00`. It is the current time by default. | ||
* `min_finish_time` - (Optional, String) Minimum end time of a backup in the format of `2018-01-01 00:00:00`. It is 7 days ago by default. | ||
* `order_by_type` - (Optional, String) Sorting order. Valid values: `asc` (ascending), `desc` (descending). | ||
* `order_by` - (Optional, String) Sorting field. Valid values: `StartTime`, `FinishTime`, `Size`. | ||
* `result_output_file` - (Optional, String) Used to save results. | ||
* `tags` - (Optional, Map) Tag description list. | ||
|
||
The `filters` object supports the following: | ||
|
||
* `name` - (Optional, String) Filter name. | ||
* `values` - (Optional, Set) One or more filter values. | ||
|
||
## Attributes Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `base_backup_set` - List of full backup details. | ||
* `backup_method` - Backup method, including physical and logical. | ||
* `backup_mode` - Backup mode, including automatic and manual. | ||
* `db_instance_id` - Instance ID. | ||
* `expire_time` - Backup expiration time. | ||
* `finish_time` - Backup end time. | ||
* `id` - Unique ID of a backup file. | ||
* `name` - Backup file name. | ||
* `size` - Backup set size in bytes. | ||
* `start_time` - Backup start time. | ||
* `state` - Backup task status. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
subcategory: "TencentDB for PostgreSQL(PostgreSQL)" | ||
layout: "tencentcloud" | ||
page_title: "TencentCloud: tencentcloud_postgresql_base_backup" | ||
sidebar_current: "docs-tencentcloud-resource-postgresql_base_backup" | ||
description: |- | ||
Provides a resource to create a postgresql base_backup | ||
--- | ||
|
||
# tencentcloud_postgresql_base_backup | ||
|
||
Provides a resource to create a postgresql base_backup | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "tencentcloud_postgresql_base_backup" "base_backup" { | ||
db_instance_id = "" | ||
new_expire_time = "" | ||
tags = { | ||
"createdBy" = "terraform" | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `db_instance_id` - (Required, String) Instance ID. | ||
* `new_expire_time` - (Optional, String) New expiration time. | ||
* `tags` - (Optional, Map) Tag description list. | ||
|
||
## Attributes Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `id` - ID of the resource. | ||
* `base_backup_id` - Base backup ID. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters