From 1e9db8f869a771474476c82c168e2a4fdf11b912 Mon Sep 17 00:00:00 2001 From: gds2 Date: Thu, 27 Nov 2025 11:07:57 +0100 Subject: [PATCH 1/2] Update README with domain module usage.md --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d29fcf1..2b4b88c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The Previder Powershell Module can be used to interact with resources on the Previder IaaS environment. The provider needs to be configured with an API token. This token can be acquired by loggin in and navigationg to your user setting page. -## Example Usage +## Example IaaS Usage ``` Import-Module Previder-Powershell-Module @@ -18,6 +18,23 @@ Wait-VmTask -Task $task $task = Invoke-Vm -Name "Virtual Server 01" -Action "POWERON" Wait-VmTask -Task $task ``` +## Example Domain Usage + +### Register multiple domains from a file + +Import-Module Previder-Powershell-Domain-Module +Connect-Annexus -token 1234ewassddwadsfdgw3442aaaaaw4 +foreach($line in Get-Content .\domains.txt) { + Echo "Register $line" + Register_Domain -DomainName $line -Registrant "RegistrantContactId" +} + +### Transfer with specific domain contacts +Import-Module ./Previder-Powershell-Domain-Module.psm1 +Connect-Annexus -token 1234ewassddwadsfdgw3442aaaaaw4 +Register_Domain -DomainName "previder.nl" -Registrant "RegistrantContactId" -AdministrativeContact "AdminContactId" -TechnicalContact "TechContactId" -TransferToken "ExampleToken" + + ## Argument reference From 42a84357dc98367f48592cb3a3d3c356a603f622 Mon Sep 17 00:00:00 2001 From: gds2 Date: Mon, 1 Dec 2025 11:31:59 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2b4b88c..2d6cb29 100644 --- a/README.md +++ b/README.md @@ -23,16 +23,16 @@ Wait-VmTask -Task $task ### Register multiple domains from a file Import-Module Previder-Powershell-Domain-Module -Connect-Annexus -token 1234ewassddwadsfdgw3442aaaaaw4 +Connect-Annexus -token foreach($line in Get-Content .\domains.txt) { Echo "Register $line" - Register_Domain -DomainName $line -Registrant "RegistrantContactId" + Register-Domain -DomainName $line -Registrant "RegistrantContactId" } ### Transfer with specific domain contacts Import-Module ./Previder-Powershell-Domain-Module.psm1 -Connect-Annexus -token 1234ewassddwadsfdgw3442aaaaaw4 -Register_Domain -DomainName "previder.nl" -Registrant "RegistrantContactId" -AdministrativeContact "AdminContactId" -TechnicalContact "TechContactId" -TransferToken "ExampleToken" +Connect-Annexus -token +Register-Domain -DomainName "previder.nl" -Registrant "RegistrantContactId" -AdministrativeContact "AdminContactId" -TechnicalContact "TechContactId" -TransferToken "ExampleToken"