Set-SCStorageZoneAlias
Set-SCStorageZoneAlias
Modifies an existing Fibre Channel zone alias.
構文
Parameter Set: Default
Set-SCStorageZoneAlias [-StorageZoneAlias] <StorageZoneAlias> [-AddZoneMembership <String[]> ] [-Description <String> ] [-JobVariable <String> ] [-Name <String> ] [-PROTipID <Guid]> ] [-RemoveZoneMembership <String[]> ] [-RunAsynchronously] [ <CommonParameters>]
詳細説明
The Set-SCStorageZoneAlias cmdlet modifies an existing Fibre Channel zone alias.
パラメーター
-AddZoneMembership<String[]>
Specifies an array of zone members for the cmdlet to add.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Description<String>
States a description for the specified object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-JobVariable<String>
Specifies that job progress is tracked and stored in the variable named by this parameter.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the name of a VMM object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PROTipID<Guid]>
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RemoveZoneMembership<String[]>
Specifies an array of zone members for the cmdlet to remove.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RunAsynchronously
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-StorageZoneAlias<StorageZoneAlias>
Specifies a fibre channel zone alias.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- StorageZoneAlias
例
Example 1: Add and remove members from a zone alias
The first command gets the zone alias object named ZoneAlias01, and then stores the object in the $zonealias variable.
The second command adds a member to the $addmember variable.
The third command adds a member to the $removemember variable.
The last command adds the member in $addmember to, and removes the member in $removemember from, the zone alias stored in $zonealias.
PS C:\> $zonealias = Get-SCStorageZoneAlias -Name "ZoneAlias01"
PS C:\> $addmember = "C003FF3B8A610000"
PS C:\> $removemember += "D113EF3A8F411234"
PS C:\> Set-SCStorageZoneAlias -StorageZoneAlias $zonealias -AddZoneMembership $addmember -RemoveZoneMembership $removemember
Example 2: Modify name and description of a zone alias
The first command gets the zone alias object named ZoneAlias01, and then stores the object in the $zonealias variable.
The second command gives the zone alias stored in $zonealias a new name and a description.
PS C:\> $zonealias = Get-SCStorageZoneAlias -Name "ZoneAlias01"
PS C:\> Set-SCStorageZoneAlias -StorageZoneAlias $zonealias -Name "New Name" -Description "New Description"