Get-SCCloudUsage
Get-SCCloudUsage
Gets cloud usage data for a specified private cloud in VMM.
構文
Parameter Set: CloudUsage
Get-SCCloudUsage -Cloud <Cloud> [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-ReturnPerUserRole] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: UserRoleUsageOfCloud
Get-SCCloudUsage -Cloud <Cloud> -UserRole <UserRole> [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-UserName <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
詳細説明
The Get-SCCloudUsage cmdlet gets cloud usage data for a specified private cloud in Virtual Machine Manager (VMM). Cloud usage data includes the following:
-- Number of CPUs
-- Custom quota points
-- Amount of memory in megabytes
-- Amount of storage in gigabytes
-- Number of Virtual Machines
You can scope this data to usage per user role and per user.
パラメーター
-Cloud<Cloud>
Specifies a private cloud object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-OnBehalfOfUser<System.String>
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-OnBehalfOfUserRole<Microsoft.SystemCenter.VirtualMachineManager.UserRole>
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ReturnPerUserRole
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UserName<String>
Specifies a the name of a user. Enter a user name with the format Domain\User.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UserRole<UserRole>
Specifies a user role object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMMServer<ServerConnection>
Specifies a VMM server object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Get the usage information for a specified private cloud
The first command gets the private cloud object named Cloud01, and then stores the object in the $Cloud variable.
The second command gets the cloud usage information for the private cloud stored in $Cloud and displays the following information:
-- CPUUsageCount
-- CustomQuotaUsageCount
-- MemoryUsageMB
-- StorageUsageGB
-- VMUsageCount
PS C:\> $Cloud = Get-SCCloud -Name "Cloud01"
PS C:\> Get-SCCloudUsage -Cloud $Cloud
Example 2: Get the usage information for a specified private cloud for a specified user role
The first command gets the private cloud object named Cloud01, and then stores the object in the $Cloud variable.
The second command gets the user role object named SelfServiceUsers, and then stores the object in the $UserRole variable.
The last command gets the cloud usage information for the private cloud stored in $Cloud and the user role stored in $UserRole. Then, the command displays the cloud usage information.
PS C:\> $Cloud = Get-SCCloud -Name "Cloud01"
PS C:\> $UserRole = Get-SCUserRole -Name "SelfServiceUsers"
PS C:\> Get-SCCloudUsage -Cloud $Cloud -UserRole $UserRole
Example 3: Get the usage information for a specified private cloud for a specified user within a user role
The first command gets the private cloud object named Cloud01, and then stores the object in the $Cloud variable.
The second command gets the user role object named SelfServiceUsers, and then stores the object in the $UserRole variable.
The last command gets the cloud usage information for the private cloud stored in $Cloud and the user named Katarina who is in the user role named SelfServiceUsers. Then, the command displays the cloud usage information.
PS C:\> $Cloud = Get-SCCloud -Name "Cloud01"
PS C:\> $UserRole = Get-SCUserRole -Name "SelfServiceUsers"
PS C:\> Get-SCCloudUsage -Cloud $Cloud -UserRole $UserRole -UserName "Contoso\Katarina"