Set-SCStorageZone
Set-SCStorageZone
Modifies an existing zone in a zone set.
構文
Parameter Set: Default
Set-SCStorageZone [-StorageZone] <StorageZone> [-AddZoneAlias <StorageZoneAlias[]> ] [-AddZoneMembership <String[]> ] [-Description <String> ] [-JobVariable <String> ] [-Name <String> ] [-PROTipID <Guid]> ] [-RemoveZoneAlias <StorageZoneAlias[]> ] [-RemoveZoneMembership <String[]> ] [-RunAsynchronously] [ <CommonParameters>]
詳細説明
The Set-SCStorageZone cmdlet modifies an existing zone in a zone set.
パラメーター
-AddZoneAlias<StorageZoneAlias[]>
Specifies an array of zone aliases that represents one or more world-wide port names.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-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 |
-RemoveZoneAlias<StorageZoneAlias[]>
Specifies an array of storage zone aliases for the cmdlet to remove.
エイリアス |
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 |
-StorageZone<StorageZone>
Specifies a fibre channel zone in a zone set.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- StorageZone
例
Example 1: Modify an existing zone
The first command gets the zone object named Zone01, and then stores the object in the $Zone variable.
The second command gets the storage zone alias named MyArrayPorts, and then stores the object in the $alias variable.
The third command creates an array named $members. The fourth and fifth commands populate the $members array.
The last command adds a description and members to the zone stored in $Zone.
PS C:\> $Zone = Get-SCStorageZone -Name "Zone01"
PS C:\> $alias = Get-SCStorageZoneAlias -Name "MyArrayPorts"
PS C:\> $members = @()
PS C:\> $members += "D113ED3B8A310220"
PS C:\> $members += "C003FF3B8A610000"
PS C:\> Set-SCStorageZone -StorageZone $Zone -Description "Update zone for vm host" -AddZoneMembership $members -RemoveZoneAlias $alias