powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-CIRole



NAME
Get-CIRole

SYNOPSIS
Retrieves roles in the cloud.

SYNTAX
Get-CIRole [[-Name] ] [-User ] [-Server ] []

Get-CIRole -Id [-Server ] []


DESCRIPTION
Retrieves roles in the cloud. You can filter the output by using the cmdlet parameters.


PARAMETERS
-Name
Specify the names of the cloud roles you want to retrieve.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? true

-User
Specify cloud users to view their roles.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Server
Specify the cloud servers on which you want to run the cmdlet. If no value is given to this parameter, the comm
and runs on the default servers. For more information about default servers, see the description of Connect-CIS
erver.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Id
Specify the Ids of the cloud roles you want to retrieve.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
CIRole


NOTES




-------------- Example 1 --------------

C:\PS>Get-CIRole


Get all roles visible for the cloud administrator. You must be connected as a cloud administrator.





-------------- Example 2 --------------

C:\PS>Get-CIUser -Name User | Get-CIRole


Get the roles assigned to a cloud user.





-------------- Example 3 --------------

C:\PS>Get-CIRole -Name Role


Gets a role by name.





-------------- Example 4 --------------

C:\PS>Get-CIRole -Id roleId


Gets a role by Id.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-CIRole.html
Get-CIUser