-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add resource
cloudavenue_backup
- Loading branch information
David MICHENEAU
committed
Oct 6, 2023
1 parent
13aa297
commit 163db6e
Showing
11 changed files
with
487 additions
and
171 deletions.
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,3 @@ | ||
```release-note:feature | ||
`resource/cloudavenue_backup` - New resource to manage NetBackup feature. | ||
``` |
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,82 @@ | ||
--- | ||
page_title: "cloudavenue_backup Resource - cloudavenue" | ||
subcategory: "Backup" | ||
description: |- | ||
The cloudavenue_backup resource allows you to manage backup from NetBackup solution. | ||
--- | ||
|
||
# cloudavenue_backup (Resource) | ||
|
||
The `cloudavenue_backup` resource allows you to manage backup from NetBackup solution. | ||
|
||
## Examples | ||
### Example Usage of a VDC Backup with 2 policy sets | ||
```hcl | ||
resource "cloudavenue_backup" "example-vdc" { | ||
type = "vdc" | ||
target_name = cloudavenue_vdc.example.name | ||
policies = [{ | ||
policy_name = "D6" | ||
} ,{ | ||
policy_name = "M3" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### Example Usage of a VAPP Backup with a policy set | ||
```hcl | ||
resource "cloudavenue_backup" "example-vapp" { | ||
type = "vapp" | ||
target_name = cloudavenue_vapp.example.name | ||
policies = [{ | ||
policy_name = "D6" | ||
}] | ||
} | ||
``` | ||
|
||
### Example Usage of a VM Backup with a policy set | ||
```hcl | ||
resource "cloudavenue_backup" "example-vm" { | ||
type = "vm" | ||
target_name = "vmdemo" | ||
policies = [{ | ||
policy_name = "D6" | ||
}] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `policies` (Attributes Set) The backup policies of the target. Set must contain at least 1 elements. (see [below for nested schema](#nestedatt--policies)) | ||
- `type` (String) (ForceNew) Scope of the backup. Value must be one of : `vdc`, `vapp`, `vm`. | ||
|
||
### Optional | ||
|
||
- `target_id` (String) (ForceNew) The ID of the target. A target can be a VDC, a VApp or a VM. Ensure that one and only one attribute from this collection is set : `target_id`, `target_name`. | ||
- `target_name` (String) (ForceNew) The name of the target. A target can be a VDC, a VApp or a VM. Ensure that one and only one attribute from this collection is set : `target_id`, `target_name`. | ||
|
||
### Read-Only | ||
|
||
- `id` (Number) The ID of the backup. | ||
|
||
<a id="nestedatt--policies"></a> | ||
### Nested Schema for `policies` | ||
|
||
Required: | ||
|
||
- `policy_name` (String) The name of the backup policy. D = Daily, W = Weekly, M = Monthly, X = Replication, The number is the retention period. Please refer to the documentation for more information. https://wiki.cloudavenue.orange-business.com/wiki/Sauvegarde. Value must be one of : `D6`, `D30`, `D30NQ`, `D60`, `W4`, `M3`, `M12`, `XD6`, `XD30`, `XD60`, `XW4`, `XM3`, `XM12`. | ||
|
||
Read-Only: | ||
|
||
- `policy_id` (Number) The ID of the backup policy. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
```shell | ||
terraform import cloudavenue_backup.example type.targetName | ||
``` |
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 @@ | ||
terraform import cloudavenue_backup.example type.targetName |
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
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
Oops, something went wrong.