PowerCLI Reference

Get-CIRole

Synopsis

This cmdlet retrieves roles in the cloud.

Syntax

Get-CIRole -Id <String[]> [-Server <CIServer[]>] [<CommonParameters>]

Get-CIRole [[-Name] <String[]>] [-Server <CIServer[]>] [-User <CIUser[]>] [-Org <Org[]>] [<CommonParameters>]

Related Commands

Online Version
Get-CIUser

Detailed Description

This cmdlet retrieves roles in the cloud. You can filter the output by using the cmdlet parameters.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specifies the names of the cloud roles you want to retrieve.falseFalse
IdString[]Specifies the IDs of the cloud roles you want to retrieve.


Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list.
trueFalse
OrgOrg[]Specifies cloud orgs to view their roles.falseTrue (ByValue)
ServerCIServer[]Specifies the cloud servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-CIServer.falseFalse
UserCIUser[]Specifies cloud users to view their roles.falseTrue (ByValue)

Return Type

Zero or more CIRole objects

Notes

Examples

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

Get-CIRole

Retrieves all roles that are visible to the current user.

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

Get-CIUser -Name User | Get-CIRole

Get the roles assigned to a cloud user.

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

Get-CIRole -Name Role

Gets a role by name.

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

Get-CIRole -Id roleId

Gets a role by Id.


Copyright © VMware, Inc. All rights reserved.