DeleteReplicationRelationship method of the MSFT_SMSystem class
Deletes a replication relationship between two replication groups.
Syntax
UInt32 DeleteReplicationRelationship(
[in] MSFT_SMReplicationGroup REF SourceReplicationGroup,
[in] MSFT_SMReplicaPeer REF TargetGroupReplicaPeer,
[out] MSFT_SMJob REF Job,
[out, optional] MSFT_SMExtendedStatus ExtendedStatus,
[in, optional] String username,
[in, optional] String password
);
Parameters
-
SourceReplicationGroup [in]
-
A MSFT_SMReplicationGroup object that specifies the source replication group.
-
TargetGroupReplicaPeer [in]
-
A MSFT_SMReplicaPeer object that specifies the target replication group.
-
Job [out]
-
A MSFT_SMJob object that specifies a reference to a job if this method returns "Method Parameters Checked - Job Started". If this operation performs synchronously, this parameter is set to NULL.
-
ExtendedStatus [out, optional]
-
A MSFT_SMExtendedStatus object that specifies detailed status information about the result of this operation.
-
username [in, optional]
-
The username to use to authenticate the SMI-S provider. If this parameter is not set, the storage service will attempt to retrieve the credentials from the configuration provider.
-
password [in, optional]
-
The password to use to authenticate the SMI-S provider. If this parameter is not set, the storage service will attempt to retrieve the credentials from the configuration provider.
Return value
The possible return values are:
-
Success (0)
-
Not Supported (1)
-
Unspecified Error (2)
-
Timeout (3)
-
Failed (4)
-
Invalid Parameter (5)
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2016 |
Namespace |
Root\Microsoft\Windows\Storage\SM |
MOF |
|
DLL |
|