Skip to content

Commit

Permalink
Merge pull request #29 from mycloudrevolution/v1.2
Browse files Browse the repository at this point in the history
V1.2
  • Loading branch information
vMarkusK authored Sep 17, 2018
2 parents ff49c13 + 03cf304 commit 5fc7950
Show file tree
Hide file tree
Showing 28 changed files with 905 additions and 15 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,37 @@ The 'VMware-NSXvCD-Module' leverages the [vCloud Director API for NSX](https://c

[Get-NsxVcdDfwRule - Details](/docs/en-US/Get-NsxVcdDfwRule.md)

## Get-NsxVcdDfwSecurityGroups

![Get-NsxVcdDfwSecurityGroups](/media/Get-NsxVcdDfwSecurityGroups.png)

[Get-NsxVcdDfwSecurityGroups - Details](/docs/en-US/Get-NsxVcdDfwSecurityGroups.md)

## Get-NsxVcdDfwSecurityTags

![Get-NsxVcdDfwSecurityTags](/media/Get-NsxVcdDfwSecurityTags.png)

[Get-NsxVcdDfwSecurityTags - Details](/docs/en-US/Get-NsxVcdDfwSecurityTags.md)

## Get-NsxVcdDfwSecurityTagVMs

![Get-NsxVcdDfwSecurityTagVMs](/media/Get-NsxVcdDfwSecurityTagVMs.png)

[Get-NsxVcdDfwSecurityTagVMs - Details](/docs/en-US/Get-NsxVcdDfwSecurityTagVMs.md)

## Add-NsxVcdDfwSecurityTagVM

![Add-NsxVcdDfwSecurityTagVM](/media/Add-NsxVcdDfwSecurityTagVM.png)

[Add-NsxVcdDfwSecurityTagVM - Details](/docs/en-US/Add-NsxVcdDfwSecurityTagVM.md)

## Remove-NsxVcdDfwSecurityTagVM

![Remove-NsxVcdDfwSecurityTagVM](/media/Remove-NsxVcdDfwSecurityTagVM.png)

[Remove-NsxVcdDfwSecurityTagVM - Details](/docs/en-US/Remove-NsxVcdDfwSecurityTagVM.md)


# Tests

## Pester Example
Expand Down
10 changes: 10 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## What is New in VMware-NSXvCD-Module 1.2.0
Sep, 2018

### New Functions
- Get-NsxVcdDfwSecurityGroups
- Get-NsxVcdDfwSecurityTags
- Get-NsxVcdDfwSecurityTagVMs
- Add-NsxVcdDfwSecurityTagVM
- Remove-NsxVcdDfwSecurityTagVM

## What is New in VMware-NSXvCD-Module 1.1.0
May, 2018

Expand Down
15 changes: 12 additions & 3 deletions VMware-NSXvCD-Module.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# RootModule = 'VMware-NSXvCD-Module.psm1'

# Die Versionsnummer dieses Moduls
ModuleVersion = '1.1.0'
ModuleVersion = '1.2.0'

# ID zur eindeutigen Kennzeichnung dieses Moduls
GUID = 'f28410b0-eebf-4194-a647-c5e5337f5cd9'
Expand Down Expand Up @@ -64,6 +64,7 @@ Description = 'The VMware-NSXvCD-Module leverages the vCloud Director API for NS

# Die Module, die als geschachtelte Module des in "RootModule/ModuleToProcess" angegebenen Moduls importiert werden sollen.
NestedModules = @('functions\New-NsxVcdApiConnection.psm1',
'functions\Format-XML.psm1',
'functions\Invoke-NsxVcdApiCall.psm1',
'functions\Get-NsxVcdEdge.psm1',
'functions\Get-NsxVcdEdgeDetails.psm1',
Expand All @@ -72,11 +73,19 @@ NestedModules = @('functions\New-NsxVcdApiConnection.psm1',
'functions\Get-NsxVcdEdgeFirewallRuleStats.psm1',
'functions\Get-NsxVcdEdgeNatRule.psm1',
'functions\Enable-NsxVcdDfw.psm1',
'functions\Get-NsxVcdDfwRule.psm1'
'functions\Get-NsxVcdDfwRule.psm1',
'functions\Get-NsxVcdDfwSecurityGroups.psm1',
'functions\Get-NsxVcdDfwSecurityTags.psm1',
'functions\Get-NsxVcdDfwSecurityTagVMs.psm1',
'functions\Add-NsxVcdDfwSecurityTagVM.psm1',
'functions\Remove-NsxVcdDfwSecurityTagVM.psm1'
)

# Aus diesem Modul zu exportierende Funktionen
FunctionsToExport = 'New-NsxVcdApiConnection', 'Invoke-NsxVcdApiCall', 'Get-NsxVcdEdge', 'Get-NsxVcdEdgeDetails', 'Get-NsxVcdEdgeFirewallRule', 'Get-NsxVcdEdgeFirewallRuleDetails', 'Get-NsxVcdEdgeFirewallRuleStats', 'Get-NsxVcdEdgeNatRule', 'Enable-NsxVcdDfw', 'Get-NsxVcdDfwRule'
FunctionsToExport = 'New-NsxVcdApiConnection', 'Format-XML', 'Invoke-NsxVcdApiCall', 'Get-NsxVcdEdge', 'Get-NsxVcdEdgeDetails',
'Get-NsxVcdEdgeFirewallRule', 'Get-NsxVcdEdgeFirewallRuleDetails', 'Get-NsxVcdEdgeFirewallRuleStats',
'Get-NsxVcdEdgeNatRule', 'Enable-NsxVcdDfw', 'Get-NsxVcdDfwRule', 'Get-NsxVcdDfwSecurityGroups',
'Get-NsxVcdDfwSecurityTags', 'Get-NsxVcdDfwSecurityTagVMs', 'Add-NsxVcdDfwSecurityTagVM', 'Remove-NsxVcdDfwSecurityTagVM'

# Aus diesem Modul zu exportierende Cmdlets
#CmdletsToExport = '*'
Expand Down
76 changes: 76 additions & 0 deletions docs/en-US/Add-NsxVcdDfwSecurityTagVM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
external help file: Add-NsxVcdDfwSecurityTagVM-help.xml
Module Name: VMware-NSXvCD-Module
online version: https://mycloudrevolution.com/
schema: 2.0.0
---

# Add-NsxVcdDfwSecurityTagVM

## SYNOPSIS

## SYNTAX

```
Add-NsxVcdDfwSecurityTagVM [-SecurityTagId] <String> [[-VmId] <String>] [<CommonParameters>]
```

## DESCRIPTION
Add a VM to a Security Tag of the OrgVdc DFW.

## EXAMPLES

### EXAMPLE 1
```
Add-NsxVcdDfwSecurityTagVMs -SecurityTagId SecurityTagId -VmId
```

## PARAMETERS

### -SecurityTagId
Id (objectId) of the Security Tag

```yaml
Type: String
Parameter Sets: (All)
Aliases: objectId

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
### -VmId
Id (UUID) of the VM
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
## NOTES
File Name : Add-NsxVcdDfwSecurityTagVM.ps1
Author : Markus Kraus
Version : 1.0
State : Ready
## RELATED LINKS
[https://mycloudrevolution.com/](https://mycloudrevolution.com/)
87 changes: 87 additions & 0 deletions docs/en-US/Format-XML.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
external help file: Format-XML-help.xml
Module Name: VMware-NSXvCD-Module
online version: https://mycloudrevolution.com/
schema: 2.0.0
---

# Format-XML

## SYNOPSIS
Accepts a string containing valid XML tags or an XMLElement object and
outputs it as a formatted string including newline and indentation of child
nodes.

## SYNTAX

```
Format-XML [[-xml] <Object>] [-indent <Int32>] [<CommonParameters>]
```

## DESCRIPTION
Valid XML returned by the NSX API is a single string with no newlines or
indentation.
While PowerNSX cmdlets typicallly emit an XMLElement object,
which PowerShell outputs as formatted tables or lists when outputing to host,
making normal human interaction easy, for output to file or debug stream,
format-xml converts the API returned XML to more easily read formated XML
complete with linebreaks and indentation.

As a side effect, this has the added benefit of being useable as an
additional format handler on the PowerShell pipeline, so rather than
displaying output objects using familiar table and list output formats, the
user now has the option of displaying the native XML in a human readable
format.

## EXAMPLES

### EXAMPLE 1
```
Get-NsxTransportZone | Format-Xml
```

Displays the XMLElement object returned by Get-NsxTransportZone as formatted
XML.

## PARAMETERS

### -xml
String object containing valid XML, or XMLElement or XMLDocument object

```yaml
Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
### -indent
Number of whitespace charaters to indent child nodes by when formatting
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 2
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
## NOTES
## RELATED LINKS
2 changes: 1 addition & 1 deletion docs/en-US/Get-NsxVcdDfwRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Get-NsxVcdDfwRule -OrgVdcId <String> [-RuleId <String>] [-layer2Sections] [-Outp
```

## DESCRIPTION
Returnes the of the Firewall Rules the OrgVdc DFW.
Returnes the list of the Firewall Rules the OrgVdc DFW.

## EXAMPLES

Expand Down
86 changes: 86 additions & 0 deletions docs/en-US/Get-NsxVcdDfwSecurityGroups.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
external help file: Get-NsxVcdDfwSecurityGroups-help.xml
Module Name: VMware-NSXvCD-Module
online version: https://mycloudrevolution.com/
schema: 2.0.0
---

# Get-NsxVcdDfwSecurityGroups

## SYNOPSIS

## SYNTAX

```
Get-NsxVcdDfwSecurityGroups [-OrgVdcId] <String> [-OutputXML] [<CommonParameters>]
```

## DESCRIPTION
Returnes the Security Groups of the OrgVdc DFW.

## EXAMPLES

### EXAMPLE 1
```
Get-NsxVcdDfwSecurityGroups -OrgId OrgVdcId
```

### EXAMPLE 2
```
Get-NsxVcdDfwSecurityGroups -OrgId OrgVdcId -OutputXML
```

### EXAMPLE 3
```
Get-NsxVcdDfwSecurityGroups -OrgVdcId OrgVdcId | select objectId, name, @{N='type'; E= {$_.type.typeName}}
```

## PARAMETERS

### -OrgVdcId
Id of the OrgVdcId

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -OutputXML
Output the result as XML
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
## NOTES
File Name : Get-NsxVcdDfwSecurityGroups.ps1
Author : Markus Kraus
Version : 1.0
State : Ready
## RELATED LINKS
[https://mycloudrevolution.com/](https://mycloudrevolution.com/)
Loading

0 comments on commit 5fc7950

Please sign in to comment.