Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/2.1/data protection v2 #748

Open
wants to merge 369 commits into
base: release/2.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
369 commits
Select commit Hold shift + click to select a range
5eb851f
use nutanix_clusters_v2, fix template actions resource, increase the …
Haroon-Dweikat-Ntx Nov 26, 2024
fa09fe3
add acc tests for operations datasource, fix other test cases
Haroon-Dweikat-Ntx Nov 26, 2024
8f2cfba
fix vm names created during the test case
Haroon-Dweikat-Ntx Nov 26, 2024
1886bbb
handling guestCustomisation for custom key value pairs
abhimutant Nov 27, 2024
79b2371
add multi_env_isolation_rule_spec to network security rule
Haroon-Dweikat-Ntx Nov 28, 2024
4312d38
Merge remote-tracking branch 'origin/v4-temp-design-2.0' into v4-temp…
Haroon-Dweikat-Ntx Nov 28, 2024
9e41fce
add multi_env_isolation_rule_spec to network security rule
Haroon-Dweikat-Ntx Nov 28, 2024
ac28c73
fix creating Role and acp, uses only operations of type Create
Haroon-Dweikat-Ntx Nov 28, 2024
e6cf8d9
in v4.0 we have name, expirationTime, status, recoveryPointType insid…
Haroon-Dweikat-Ntx Dec 1, 2024
30ef5ef
separate schema For Guest Customization between vm and template, beca…
Haroon-Dweikat-Ntx Dec 1, 2024
2b8b75e
Fix examples for recovery points and acp
Haroon-Dweikat-Ntx Dec 1, 2024
54707d7
change project structure
Haroon-Dweikat-Ntx Dec 2, 2024
c7ffb1f
add more examples, fix typo in examples and docs
Haroon-Dweikat-Ntx Dec 4, 2024
ee96aa2
remove vm cdrom, disks, gpu, power, categories and serial port docs
Haroon-Dweikat-Ntx Dec 4, 2024
a6dc61a
restructure v2 modules, now its under services directly
Haroon-Dweikat-Ntx Dec 4, 2024
8ab8e83
test_config_v2 template file
Haroon-Dweikat-Ntx Dec 4, 2024
b1af786
exclude vendor, bin folder
Haroon-Dweikat-Ntx Dec 4, 2024
7038fea
remove cluster snmp resource
Haroon-Dweikat-Ntx Dec 4, 2024
3b9730d
adding v4 resource datasource in readme
abhimutant Dec 6, 2024
9400491
changing the SDKs from internal to GA SDKs
abhimutant Dec 6, 2024
b5d3888
commenting the params for GA release
abhimutant Dec 9, 2024
f56ccaa
fixing lint
abhimutant Dec 9, 2024
5738ab2
lint fixes
abhimutant Dec 9, 2024
6881987
lint fixes
abhimutant Dec 9, 2024
68acf84
skip gocritic lint for ifElseChain
abhimutant Dec 9, 2024
84162c1
fixing lint issues
abhimutant Dec 9, 2024
aec7237
fixing all lint from cli
abhimutant Dec 9, 2024
b9280bd
gofmt
abhimutant Dec 10, 2024
10e95cd
golint fixes
abhimutant Dec 10, 2024
3931163
fixing golint and unnecessary conversion
abhimutant Dec 10, 2024
a9eec5a
golint fixes
abhimutant Dec 10, 2024
51806a4
fix
abhimutant Dec 10, 2024
4819a52
gomnd fix
abhimutant Dec 10, 2024
704125b
fixing testname
abhimutant Dec 10, 2024
4d467d7
markdown spelling mistake
abhimutant Dec 10, 2024
7b63563
V4 design 2.0 sdk fixes (#700)
Haroon-Dweikat-Ntx Dec 10, 2024
7060820
adding runners configurations
abhimutant Dec 10, 2024
059f0dc
dummy run
abhimutant Dec 10, 2024
9a3b368
Deploy PC Dev [Create PC and Read PC Configuration]
Haroon-Dweikat-Ntx Dec 10, 2024
6fe9b5e
lint fixes
Haroon-Dweikat-Ntx Dec 10, 2024
1f17760
fix networking test cases name from TestAccNutanix to TestAccV2Nutanix
Haroon-Dweikat-Ntx Dec 10, 2024
6a07a7c
lint fixes
Haroon-Dweikat-Ntx Dec 10, 2024
fb00f22
lint fixes
Haroon-Dweikat-Ntx Dec 10, 2024
494e482
adding check for cluster resource test cases
abhimutant Dec 10, 2024
241feec
Merge branch 'v4-temp-design-2.0-structure' of github.com:nutanix/ter…
abhimutant Dec 10, 2024
6d0a9c6
fix TestAccV2NutanixUsersResource_LDAPUser, delete user using V3 api …
Haroon-Dweikat-Ntx Dec 10, 2024
3a21d15
fix TestAccV2NutanixClusterAddNodeResource_Basic, we need four nodes …
Haroon-Dweikat-Ntx Dec 10, 2024
898597e
remove unnecessary check in pc registration test cases
Haroon-Dweikat-Ntx Dec 10, 2024
43387c4
Merge branch 'master' of github.com:nutanix/terraform-provider-nutani…
abhimutant Dec 10, 2024
ea99668
fixing goimport error
abhimutant Dec 10, 2024
35d09b2
rename vmmv2 test case to TestAccV2Nutanix...
Haroon-Dweikat-Ntx Dec 10, 2024
7ceb413
Merge remote-tracking branch 'origin/v4-temp-design-2.0-structure' in…
Haroon-Dweikat-Ntx Dec 10, 2024
723d869
debugging pipeline
abhimutant Dec 11, 2024
088bf33
Merge branch 'v4-temp-design-2.0-structure' of github.com:nutanix/ter…
abhimutant Dec 11, 2024
cb07a65
adding lines to debug pipeline issue
abhimutant Dec 11, 2024
e9bd475
fix cluster entity test cases
Haroon-Dweikat-Ntx Dec 11, 2024
0a0e5f5
Merge branch 'v4-temp-design-2.0-structure' into feat/2.1/deploy-pc
Haroon-Dweikat-Ntx Dec 11, 2024
11791cd
unregister cluster dev
Haroon-Dweikat-Ntx Dec 11, 2024
168d853
Backup Target CRUD Development
Haroon-Dweikat-Ntx Dec 11, 2024
49e7189
fetch and list pc configuration details data sources dev
Haroon-Dweikat-Ntx Dec 15, 2024
33edd71
fetch and list pc configuration details data sources dev
Haroon-Dweikat-Ntx Dec 15, 2024
5b82749
lint fixes
Haroon-Dweikat-Ntx Dec 16, 2024
48a6def
restore source CRUD dev
Haroon-Dweikat-Ntx Dec 16, 2024
c94cff8
add "PENDING" to the task state list
Haroon-Dweikat-Ntx Dec 16, 2024
4c798f5
restore source info dev
Haroon-Dweikat-Ntx Dec 16, 2024
a5f9a8c
lint fix
Haroon-Dweikat-Ntx Dec 16, 2024
a5d739b
lint fix
Haroon-Dweikat-Ntx Dec 16, 2024
4bdb65f
lint fix
Haroon-Dweikat-Ntx Dec 16, 2024
c55a4b1
lint fix
Haroon-Dweikat-Ntx Dec 16, 2024
1f122b2
Merge branch 'feat/2.1/backup-target' into feat/2.1/restore-pc
Haroon-Dweikat-Ntx Dec 16, 2024
52cff18
Merge branch 'feat/2.1/restore-source' into feat/2.1/restore-pc
Haroon-Dweikat-Ntx Dec 16, 2024
6099aba
merge deploy pc branch
Haroon-Dweikat-Ntx Dec 16, 2024
7401ace
restore pc module dev
Haroon-Dweikat-Ntx Dec 18, 2024
fce46ed
add to [num_vcpus, memory_size_bytes, data_disk_size_bytes] resource_…
Haroon-Dweikat-Ntx Dec 18, 2024
ee7737d
restore point info dev
Haroon-Dweikat-Ntx Dec 19, 2024
37584d1
add restore point and restore pc to provider
Haroon-Dweikat-Ntx Dec 19, 2024
a8b6453
unregister cluster pc dev , move register pc module under prism package
Haroon-Dweikat-Ntx Dec 19, 2024
18face6
lint fixes
Haroon-Dweikat-Ntx Dec 19, 2024
690d70e
lint fixes
Haroon-Dweikat-Ntx Dec 19, 2024
615e76d
merge other prism branches
Haroon-Dweikat-Ntx Dec 19, 2024
92c2b35
lint fixes
Haroon-Dweikat-Ntx Dec 19, 2024
e309ab8
acc tests for deploy pc, backup target, restore a source, restore pc …
Haroon-Dweikat-Ntx Dec 22, 2024
1fa9f20
deploy pc resource docs and pc details data sources docs
Haroon-Dweikat-Ntx Dec 23, 2024
a1063fc
deploy pc resource docs and pc details data sources docs
Haroon-Dweikat-Ntx Dec 24, 2024
0a416d5
backup target resource and data sources docs
Haroon-Dweikat-Ntx Dec 24, 2024
2e6bbb0
restore source resource and data sources docs
Haroon-Dweikat-Ntx Dec 24, 2024
9d44274
restore pc resource docs
Haroon-Dweikat-Ntx Dec 24, 2024
8dd0faa
unregister cluster resource docs
Haroon-Dweikat-Ntx Dec 24, 2024
0080273
unregister cluster example
Haroon-Dweikat-Ntx Dec 25, 2024
215310c
restore pc example
Haroon-Dweikat-Ntx Dec 25, 2024
48b4c2b
restore source example
Haroon-Dweikat-Ntx Dec 25, 2024
fe5209c
backup target example
Haroon-Dweikat-Ntx Dec 25, 2024
5a65734
restore source example
Haroon-Dweikat-Ntx Dec 25, 2024
9837a7c
deploy pc example
Haroon-Dweikat-Ntx Dec 25, 2024
8aefc76
lint fixes
Haroon-Dweikat-Ntx Dec 25, 2024
0e91d15
lint fixes
Haroon-Dweikat-Ntx Dec 25, 2024
d2551ef
Merge branches 'feat/2.1/backup-target', 'feat/2.1/register-unregiste…
Haroon-Dweikat-Ntx Dec 29, 2024
f118472
protection policies create development
Haroon-Dweikat-Ntx Dec 30, 2024
7c9f206
fix config and network schema
Haroon-Dweikat-Ntx Dec 30, 2024
3c4a0a8
fix config and network expander
Haroon-Dweikat-Ntx Dec 30, 2024
9d7c4cb
protection policy development
Haroon-Dweikat-Ntx Jan 5, 2025
144ae2a
Merge remote-tracking branch 'origin/feat/2.1/deploy-pc' into feat/2.…
Haroon-Dweikat-Ntx Jan 5, 2025
f66eba8
protection policy info development
Haroon-Dweikat-Ntx Jan 5, 2025
473798b
protection policy info development
Haroon-Dweikat-Ntx Jan 5, 2025
5e67914
promote/restore and get protected resource development
Haroon-Dweikat-Ntx Jan 6, 2025
34860b5
rename the data source to fetch/list domain manager from pc to domain…
Haroon-Dweikat-Ntx Jan 6, 2025
08a00a7
Merge remote-tracking branch 'origin/feat/2.1/deploy-pc' into feat/2.…
Haroon-Dweikat-Ntx Jan 6, 2025
f77311f
rename the data source to fetch/list domain manager from pc to domain…
Haroon-Dweikat-Ntx Jan 6, 2025
4a18ee9
Merge remote-tracking branch 'origin/feat/2.1/deploy-pc' into feat/2.…
Haroon-Dweikat-Ntx Jan 6, 2025
f6e35e7
protection policies acc tests
Haroon-Dweikat-Ntx Jan 7, 2025
b9ddb62
protection policy updates multiple attributes in the protection polic…
Haroon-Dweikat-Ntx Jan 8, 2025
e091687
protection policy linear retention and auto rollup retention test cas…
Haroon-Dweikat-Ntx Jan 8, 2025
26680ea
protection policy linear retention and auto rollup retention test cas…
Haroon-Dweikat-Ntx Jan 13, 2025
1a67d5c
protection policy fetch and list data source docs
Haroon-Dweikat-Ntx Jan 13, 2025
c67991b
protection policy resource docs
Haroon-Dweikat-Ntx Jan 13, 2025
bc476b8
initialize promote/restore acc tests
Haroon-Dweikat-Ntx Jan 13, 2025
c485a9b
Merge remote-tracking branch 'origin/feat/2.1/protection-policies' in…
Haroon-Dweikat-Ntx Jan 13, 2025
800bf9c
promote/restore acc tests
Haroon-Dweikat-Ntx Jan 15, 2025
827bb3e
create another provider for second host to promote vm into remote pc
Haroon-Dweikat-Ntx Jan 15, 2025
22100d2
fix typo and log messages in VG module
Haroon-Dweikat-Ntx Jan 15, 2025
d3246e1
fix typo and log messages in VG module
Haroon-Dweikat-Ntx Jan 15, 2025
0e5437e
implement associate/disassociate category to/from volume group
Haroon-Dweikat-Ntx Jan 15, 2025
f0693ea
merge latest changes from master
Haroon-Dweikat-Ntx Jan 15, 2025
68da64d
DiffSuppressFunc for category_ids
Haroon-Dweikat-Ntx Jan 15, 2025
d7a3cec
acc test case for promote vm, create another instance of provider to …
Haroon-Dweikat-Ntx Jan 15, 2025
17ed366
acc test case for the promote/restore/get protected source operations…
Haroon-Dweikat-Ntx Jan 16, 2025
95dff07
backup target info and list
Haroon-Dweikat-Ntx Jan 16, 2025
22ad89a
acc test backup target resource for cluster location and object store…
Haroon-Dweikat-Ntx Jan 17, 2025
5ba7d69
kup target info and list test
Haroon-Dweikat-Ntx Jan 18, 2025
b7f8aa6
remove unnecessary files
Haroon-Dweikat-Ntx Jan 18, 2025
b99f50c
lint fixes
Haroon-Dweikat-Ntx Jan 18, 2025
30e6470
lint fixes
Haroon-Dweikat-Ntx Jan 18, 2025
8fba584
lint fixes
Haroon-Dweikat-Ntx Jan 18, 2025
fd0c2d7
remove unnecessary files
Haroon-Dweikat-Ntx Jan 18, 2025
34617c3
add helper and main_test file
Haroon-Dweikat-Ntx Jan 18, 2025
bf53d9f
merge backup target
Haroon-Dweikat-Ntx Jan 18, 2025
9955161
initialize restore source test file
Haroon-Dweikat-Ntx Jan 18, 2025
07f8b78
fix backup targets schema
Haroon-Dweikat-Ntx Jan 18, 2025
8e1faac
Merge remote-tracking branch 'origin/feat/2.1/backup-target' into fea…
Haroon-Dweikat-Ntx Jan 18, 2025
807b274
tests for create/delete and get The restore source
Haroon-Dweikat-Ntx Jan 18, 2025
cec5200
remove unnecessary files
Haroon-Dweikat-Ntx Jan 19, 2025
b94cf8b
setup test files
Haroon-Dweikat-Ntx Jan 19, 2025
0cd62d4
remove unnecessary files
Haroon-Dweikat-Ntx Jan 19, 2025
3fc028a
test for the list and fetch pc configuration
Haroon-Dweikat-Ntx Jan 19, 2025
d370227
fix pc configuration data source module name
Haroon-Dweikat-Ntx Jan 19, 2025
6a4dbb4
Fix TestAccEraPreCheck Name
Haroon-Dweikat-Ntx Jan 19, 2025
0e9625d
lint fixes
Haroon-Dweikat-Ntx Jan 19, 2025
635cec3
Merge remote-tracking branch 'origin/feat/2.1/associate-category-to-v…
Haroon-Dweikat-Ntx Jan 19, 2025
2cae429
lint fixes
Haroon-Dweikat-Ntx Jan 19, 2025
1c711b7
Merge remote-tracking branch 'origin/feat/2.1/protection-policies' in…
Haroon-Dweikat-Ntx Jan 19, 2025
0128d53
lint fixes
Haroon-Dweikat-Ntx Jan 19, 2025
d3f76b7
lint fixes
Haroon-Dweikat-Ntx Jan 19, 2025
1f597fe
Merge remote-tracking branch 'origin/feat/2.1/protection-policies' in…
Haroon-Dweikat-Ntx Jan 19, 2025
1e2e08f
Merge remote-tracking branch 'origin/feat/2.1/promote-restore-protect…
Haroon-Dweikat-Ntx Jan 19, 2025
aa98c0f
remove unnecessary files
Haroon-Dweikat-Ntx Jan 19, 2025
6e4ef47
lint fixes
Haroon-Dweikat-Ntx Jan 19, 2025
72faaab
lint fixes
Haroon-Dweikat-Ntx Jan 19, 2025
86f8551
lint fixes
Haroon-Dweikat-Ntx Jan 19, 2025
77ffc70
implement dev and test for restorable pcs
Haroon-Dweikat-Ntx Jan 19, 2025
ea5286d
merge deploy-pc, register-unregister, restore-pc, backup-target, rest…
Haroon-Dweikat-Ntx Jan 19, 2025
93cf540
merge deploy-pc, register-unregister, restore-pc, backup-target, rest…
Haroon-Dweikat-Ntx Jan 19, 2025
858026b
merge deploy-pc, register-unregister, restore-pc, backup-target, rest…
Haroon-Dweikat-Ntx Jan 19, 2025
6fbf2cb
merge deploy-pc, register-unregister, restore-pc, backup-target, rest…
Haroon-Dweikat-Ntx Jan 19, 2025
a2d09c0
merge deploy-pc, register-unregister, restore-pc, backup-target, rest…
Haroon-Dweikat-Ntx Jan 19, 2025
f2ac841
test List Restorable Domain Managers
Haroon-Dweikat-Ntx Jan 20, 2025
e65ecc5
test List/Fetch Restore Point
Haroon-Dweikat-Ntx Jan 21, 2025
2c138e3
test Unregister remote cluster
Haroon-Dweikat-Ntx Jan 21, 2025
622e18e
lint fixes
Haroon-Dweikat-Ntx Jan 21, 2025
a41bf64
Merge remote-tracking branch 'origin/feat/2.1/promote-restore-protect…
Haroon-Dweikat-Ntx Jan 21, 2025
1ed2573
remove unnecessary files
Haroon-Dweikat-Ntx Jan 21, 2025
c1f5687
fix TestAccEraPreCheck method name
Haroon-Dweikat-Ntx Jan 21, 2025
37d692f
remove unnecessary files
Haroon-Dweikat-Ntx Jan 21, 2025
6d9cc47
lint fixes
Haroon-Dweikat-Ntx Jan 21, 2025
15a609c
lint fixes
Haroon-Dweikat-Ntx Jan 21, 2025
7c9af77
Merge remote-tracking branch 'origin/feat/2.1/data-protection-v2' int…
Haroon-Dweikat-Ntx Jan 21, 2025
0cd0960
lint fixes
Haroon-Dweikat-Ntx Jan 21, 2025
069acf8
lint fixes
Haroon-Dweikat-Ntx Jan 21, 2025
cd9da18
lint fixes
Haroon-Dweikat-Ntx Jan 21, 2025
0f459bf
lint fixes
Haroon-Dweikat-Ntx Jan 21, 2025
c8b358d
test for associate category to VG
Haroon-Dweikat-Ntx Jan 21, 2025
e847a69
Fix TestAccEraPreCheck func Name
Haroon-Dweikat-Ntx Jan 21, 2025
9d010aa
remove unnecessary files
Haroon-Dweikat-Ntx Jan 21, 2025
9473403
lint fixes
Haroon-Dweikat-Ntx Jan 21, 2025
ccd9aa8
delete unnecessary files
Haroon-Dweikat-Ntx Jan 21, 2025
b0cf6e6
docs and examples for associate category to VG
Haroon-Dweikat-Ntx Jan 21, 2025
0e73393
fix test_config_v2.json file
Haroon-Dweikat-Ntx Jan 21, 2025
7749c1e
docs and examples for promote/restore protected resource
Haroon-Dweikat-Ntx Jan 21, 2025
eedcab6
docs and examples for get protected resource datasource
Haroon-Dweikat-Ntx Jan 21, 2025
ada2101
examples for protection policy
Haroon-Dweikat-Ntx Jan 21, 2025
cee54f6
fix promote test
Haroon-Dweikat-Ntx Jan 22, 2025
e03db86
remove unnecessary files
Haroon-Dweikat-Ntx Jan 23, 2025
a538124
remove unnecessary files
Haroon-Dweikat-Ntx Jan 23, 2025
a0087c2
remove unnecessary files
Haroon-Dweikat-Ntx Jan 23, 2025
e99db93
remove unnecessary files
Haroon-Dweikat-Ntx Jan 23, 2025
618fb7d
remove unnecessary files
Haroon-Dweikat-Ntx Jan 23, 2025
ba844ac
remove unnecessary files
Haroon-Dweikat-Ntx Jan 23, 2025
04db310
fix backup target bug in get the ext id after creating backup target
Haroon-Dweikat-Ntx Feb 2, 2025
da81b4f
fix backup target bug in get the ext id after creating backup target
Haroon-Dweikat-Ntx Feb 2, 2025
2682515
list restore points test
Haroon-Dweikat-Ntx Feb 4, 2025
b06e0fc
unregister pc-pc test
Haroon-Dweikat-Ntx Feb 4, 2025
8f26af2
test fetch restore point
Haroon-Dweikat-Ntx Feb 4, 2025
37b821e
acc test for deploy PC
Haroon-Dweikat-Ntx Feb 11, 2025
1e57a7b
backup target update test
Haroon-Dweikat-Ntx Feb 11, 2025
0b5d3ee
acc test restore pc
Haroon-Dweikat-Ntx Feb 11, 2025
e5ac4ea
acc test restore pc
Haroon-Dweikat-Ntx Feb 11, 2025
85978cc
lint fixes
Haroon-Dweikat-Ntx Feb 11, 2025
3408429
lint fixes
Haroon-Dweikat-Ntx Feb 11, 2025
34b25d2
add docs & examples
Haroon-Dweikat-Ntx Feb 11, 2025
4257446
add docs & examples
Haroon-Dweikat-Ntx Feb 11, 2025
d870616
add docs & examples
Haroon-Dweikat-Ntx Feb 11, 2025
f17d49c
add docs & examples
Haroon-Dweikat-Ntx Feb 11, 2025
d809c92
add docs & examples
Haroon-Dweikat-Ntx Feb 11, 2025
7cca936
add docs & examples
Haroon-Dweikat-Ntx Feb 11, 2025
53e43bf
prismv2 fixes
Haroon-Dweikat-Ntx Feb 11, 2025
3252c70
fix list pcs data source name
Haroon-Dweikat-Ntx Feb 11, 2025
63df6f5
addd docs and Examples
Haroon-Dweikat-Ntx Feb 11, 2025
27f4403
fix protection policy tests
Haroon-Dweikat-Ntx Feb 11, 2025
69b23b6
fix promote/restore tests and get protected resource test
Haroon-Dweikat-Ntx Feb 11, 2025
2bf35a3
merge prism-v2 changes
Haroon-Dweikat-Ntx Feb 11, 2025
1bfe044
vmmv2 lint fixes
Haroon-Dweikat-Ntx Feb 11, 2025
7b217d4
add deleted files after merge prism-v2
Haroon-Dweikat-Ntx Feb 11, 2025
4d9b850
merge associate-category-to-vg
Haroon-Dweikat-Ntx Feb 11, 2025
ac073ea
add data policies sdk
Haroon-Dweikat-Ntx Feb 11, 2025
4eefc94
fix data protection policies
Haroon-Dweikat-Ntx Feb 11, 2025
0d83721
rename data protection variable file from data_protection to availabi…
Haroon-Dweikat-Ntx Feb 12, 2025
02f7af2
fix data policies test cases
Haroon-Dweikat-Ntx Feb 17, 2025
88af144
test cases promote/restore and get protected resources
Haroon-Dweikat-Ntx Feb 17, 2025
ea29a4e
docs and examples for promote/restore and get protected resources
Haroon-Dweikat-Ntx Feb 17, 2025
fd0a7e1
update test_config_v2.json file
Haroon-Dweikat-Ntx Feb 17, 2025
54cdbf1
update test variable data_protection to availability_zone
Haroon-Dweikat-Ntx Feb 17, 2025
6ed141d
update powerOffPC func to choose the correct vm pc
Haroon-Dweikat-Ntx Feb 17, 2025
6872f87
lint fixes
Haroon-Dweikat-Ntx Feb 17, 2025
41e7fa8
lint fixes
Haroon-Dweikat-Ntx Feb 17, 2025
1b892a9
update restore pc examples
Haroon-Dweikat-Ntx Feb 17, 2025
125336a
update restore pc test case
Haroon-Dweikat-Ntx Feb 17, 2025
d070eb4
update backup target and restore source examples
Haroon-Dweikat-Ntx Feb 17, 2025
90174c4
update restore pc test
Haroon-Dweikat-Ntx Feb 17, 2025
e3fad03
lint fixes
Haroon-Dweikat-Ntx Feb 17, 2025
1cc1ab1
lint fixes
Haroon-Dweikat-Ntx Feb 17, 2025
69f2ebe
lint fixes
Haroon-Dweikat-Ntx Feb 17, 2025
99c6d3b
fix restore pc test
Haroon-Dweikat-Ntx Feb 18, 2025
20876e6
fix restore pc test
Haroon-Dweikat-Ntx Feb 24, 2025
ea9e84e
fix restore source, if the restore source auto-deleted it will be cre…
Haroon-Dweikat-Ntx Feb 24, 2025
3fa4fb4
lint fix
Haroon-Dweikat-Ntx Feb 24, 2025
6d8183b
lint fix
Haroon-Dweikat-Ntx Feb 24, 2025
63c00b8
restore pc example fix
Haroon-Dweikat-Ntx Feb 24, 2025
930e868
fix restore source example
Haroon-Dweikat-Ntx Feb 24, 2025
d01aec8
refactor prism test cases, skip deploy pc and restore pc tests
Haroon-Dweikat-Ntx Feb 25, 2025
5ab6344
Merge remote-tracking branch 'origin/feat/2.1/prism-v2' into feat/2.1…
Haroon-Dweikat-Ntx Feb 25, 2025
e19842c
fix protection policy test case
Haroon-Dweikat-Ntx Feb 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions examples/associate_category_to_volume_group_v2/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
terraform {
required_providers {
nutanix = {
source = "nutanix/nutanix"
version = "2.1"
}
}
}

#defining nutanix configuration
provider "nutanix" {
username = var.nutanix_username
password = var.nutanix_password
endpoint = var.nutanix_endpoint
port = 9440
insecure = true
}

// Create a volume group
resource "nutanix_volume_group_v2" "example"{
name = "test_volume_group"
description = "Test Volume group with min spec and no Auth"
should_load_balance_vm_attachments = false
sharing_status = "SHARED"
target_name = "volumegroup-test-0"
created_by = "Test"
cluster_reference = "<Cluster uuid>"
iscsi_features {
enabled_authentications = "CHAP"
target_secret = "1234567891011"
}

storage_features {
flash_mode {
is_enabled = true
}
}
usage_type = "USER"
is_hidden = false

lifecycle {
ignore_changes = [
iscsi_features[0].target_secret
]
}
}


# List categories
data "nutanix_categories_v2" "categories"{}

# Associate categories to volume group
resource "nutanix_associate_category_to_volume_group_v2" "example"{
ext_id = nutanix_volume_group_v2.example.id
categories{
ext_id = data.nutanix_categories_v2.categories.categories.0.ext_id
}
categories{
ext_id = data.nutanix_categories_v2.categories.categories.1.ext_id
}
categories{
ext_id = data.nutanix_categories_v2.categories.categories.2.ext_id
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define values to the variables to be used in terraform file
nutanix_username = "admin"
nutanix_password = "password"
nutanix_endpoint = "10.xx.xx.xx"
nutanix_port = 9440
32 changes: 32 additions & 0 deletions examples/associate_category_to_volume_group_v2/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#define the type of variables to be used in terraform file
variable "nutanix_username" {
type = string
}
variable "nutanix_password" {
type = string
}
variable "nutanix_endpoint" {
type = string
}
variable "nutanix_port" {
type = string
}

variable "pc_ext_id" {
type = string
}
variable "cluster_ext_id" {
type = string
}
variable "bucket_name" {
type = string
}
variable "region" {
type = string
}
variable "access_key_id" {
type = string
}
variable "secret_access_key" {
type = string
}
87 changes: 87 additions & 0 deletions examples/backup_target_v2/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
terraform {
required_providers {
nutanix = {
source = "nutanix/nutanix"
version = "2.1.0"
}
}
}

#defining nutanix configuration
provider "nutanix" {
username = var.nutanix_username
password = var.nutanix_password
endpoint = var.nutanix_endpoint
port = 9440
insecure = true
}

data "nutanix_clusters_v2" "clusters" {}

locals {
domainManagerExtID = [
for cluster in data.nutanix_clusters_v2.clusters.cluster_entities :
cluster.ext_id if cluster.config[0].cluster_function[0] == "PRISM_CENTRAL"
][
0
]
clusterExtID = [
for cluster in data.nutanix_clusters_v2.clusters.cluster_entities :
cluster.ext_id if cluster.config[0].cluster_function[0] != "PRISM_CENTRAL"
][
0
]
}

// using cluster_location
resource "nutanix_backup_target_v2" "cluster-location"{
domain_manager_ext_id = local.domainManagerExtID
location {
cluster_location {
config {
ext_id = local.clusterExtID
}
}
}
}



//using object store location
resource "nutanix_backup_target_v2" "object-store-location"{
domain_manager_ext_id = local.domainManagerExtID
location {
object_store_location {
provider_config {
bucket_name = var.bucket_name
region = var.region
credentials {
access_key_id = var.access_key_id
secret_access_key = var.secret_access_key
}
}
backup_policy {
rpo_in_minutes = 120
}
}
}
lifecycle {
ignore_changes = [
location[0].object_store_location[0].provider_config[0].credentials
]
}
}


// list backup targets
data "nutanix_backup_targets_v2" "backup-targets" {
domain_manager_ext_id = local.domainManagerExtID
}

// get backup target
data "nutanix_backup_target_v2" "backup-target" {
domain_manager_ext_id = local.domainManagerExtID
ext_id = nutanix_backup_target_v2.cluster-location.id
}


79 changes: 79 additions & 0 deletions examples/deploy_pc_v2/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
terraform {
required_providers {
nutanix = {
source = "nutanix/nutanix"
version = "2.1.0"
}
}
}

#defining nutanix configuration
provider "nutanix" {
username = var.nutanix_username
password = var.nutanix_password
endpoint = var.nutanix_endpoint
port = 9440
insecure = true
}


// deploy pc
resource "nutanix_deploy_pc_v2" "example"{
timeouts {
create = "120m"
}
config {
build_info {
version = local.deploy_pc.version
}
size = "STARTER"
name = "PC_EXAMPLE"
}
network {
external_networks {
network_ext_id = "ba416f8d-00f2-499d-bc4c-19da8d104af9"
default_gateway {
ipv4 {
value = "10.97.64.1"
}
}
subnet_mask {
ipv4 {
value = "255.255.252.0"
}
}
ip_ranges {
begin {
ipv4 {
value = "10.97.64.91"
}
}
end {
ipv4 {
value = "10.97.64.91"
}
}
}
}
name_servers {
ipv4 {
value = "10.40.64.16"
}
}
name_servers {
ipv4 {
value = "10.40.64.15"
}
}
ntp_servers {
fqdn {
value = "2.centos.pool.ntp.org"
}
}
ntp_servers {
fqdn {
value = "3.centos.pool.ntp.org"
}
}
}
}
13 changes: 13 additions & 0 deletions examples/deploy_pc_v2/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#define values to the variables to be used in terraform file
nutanix_username = "admin"
nutanix_password = "password"
nutanix_endpoint = "10.xx.xx.xx"
nutanix_port = 9440

pe_username = "ntnx"
pe_password = "password"

cvm_ip = "10.xx.xx.xx"

new_username = "new_admin"
new_password = "new_password"
31 changes: 31 additions & 0 deletions examples/deploy_pc_v2/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#define the type of variables to be used in terraform file
variable "nutanix_username" {
type = string
}
variable "nutanix_password" {
type = string
}
variable "nutanix_endpoint" {
type = string
}
variable "nutanix_port" {
type = string
}
variable "pe_username" {
type = string
}
variable "pe_password" {
type = string
}

variable "cvm_ip" {
type = string
}

variable "new_username" {
type = string
}

variable "new_password" {
type = string
}
30 changes: 30 additions & 0 deletions examples/pc_v2/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
terraform {
required_providers {
nutanix = {
source = "nutanix/nutanix"
version = "2.1.0"
}
}
}

#defining nutanix configuration
provider "nutanix" {
username = var.nutanix_username
password = var.nutanix_password
endpoint = var.nutanix_endpoint
port = 9440
insecure = true
}

// list all PC (Domain Managers)
data "nutanix_pcs_v2" "example" {}

// Fetch a single PC (Domain Manager) from the list
data "nutanix_pc_v2" "example" {
ext_id = data.nutanix_pcs_v2.test.pcs.0.ext_id
}

// Fetch a single PC (Domain Manager) by its external ID
data "nutanix_pc_v2" "example" {
ext_id = "75dde184-3a0e-4f59-a185-03ca1efead17"
}
13 changes: 13 additions & 0 deletions examples/pc_v2/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#define values to the variables to be used in terraform file
nutanix_username = "admin"
nutanix_password = "password"
nutanix_endpoint = "10.xx.xx.xx"
nutanix_port = 9440

pe_username = "ntnx"
pe_password = "password"

cvm_ip = "10.xx.xx.xx"

new_username = "new_admin"
new_password = "new_password"
Loading
Loading