ImportSubnet method of the MSFT_IPAM_Subnet class

Imports subnets into IPAM from a CSV file.

Syntax

uint32 ImportSubnet(
  [in]  string Path,
  [in]  string ErrorPath,
  [in]  uint16 AddressFamily,
  [out] string Output
);

Parameters

Path [in]

The path and name of the CSV file to import.

ErrorPath [in]

The path to the error files that IPAM generates if IPAM fails to import one or more IP addresses.

AddressFamily [in]

The address family of the IP address records in the CSV file.

The possible values are:

0

Unknown

1

IPv4

2

IPv6

Output [out]

When this method returns, this parameter contains the status of the import operation.

Return value

Returns 0 on success, otherwise returns a WMI error code.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Microsoft\IPAM
MOF
IPAMServerPSProvider.mof
DLL
IPAMServerPSProvider.dll

See also

MSFT_IPAM_Subnet