Freigeben über


AddFibreChannelChap method of the Msvm_VirtualSystemManagementService class

Adds DH-CHAP parameters to a synthetic fibre channel port in a VM.

Note

This will fail if the VM is running.

Syntax

uint32 AddFibreChannelChap(
  [in] string FcPortSettings[],
  [in] uint8  SecretEncoding,
  [in] uint8  SharedSecret[]
);

Parameters

FcPortSettings [in]

An array that contains embedded instances Msvm_SyntheticFcPortSettingData that describe settings for the synthetic fibre channel ports. All Msvm_SyntheticFcPortSettingData instances must have a valid InstanceID property value in order to identify the feature settings to modify.

SecretEncoding [in]

The type of encoding for the shared secret that is used to authenticate the port.

Printable ASCII (1)

Binary (2)

SharedSecret [in]

An array that contains the shared secret used to authenticate the port.

Return value

The possible values are:

Completed with No Error (0)

Failed (32768)

Access Denied (32769)

Not Supported (32770)

Status is unknown (32771)

Timeout (32772)

Invalid parameter (32773)

System is in use (32774)

Invalid state for this operation (32775)

Incorrect data type (32776)

System is not available (32777)

Out of memory (32778)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\HyperVCluster\v2
MOF
WindowsHyperVCluster.V2.mof
DLL
VMMS.exe

See also

Msvm_VirtualSystemManagementService