-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from mycloudrevolution/v1.2
V1.2
- Loading branch information
Showing
28 changed files
with
905 additions
and
15 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
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
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/) | ||
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,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 |
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,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/) | ||
Oops, something went wrong.