ExportSubnet method of the MSFT_IPAM_Subnet class

Exports the subnets from IPAM server to a CSV file.

Syntax

uint32 ExportSubnet(
  [in]  string           Path,
  [in]  uint16           AddressType,
  [in]  uint16           NetworkType,
  [in]  string           AddressSpace,
  [out] MSFT_IPAM_Subnet Output[]
);

Parameters

Path [in]

The path and name of the CSV file to import.

AddressType [in]

The format of the export IP address properties.

The possible values are:

0

Unknown

1

IPv4

2

IPv6

NetworkType [in]

Indicates whether the subnet IP addresses are virtual addresses.

The possible values are:

1

NonVirtualized

2

Provider

4

Customer

AddressSpace [in]

The address space of the subnets.

Output [out]

When this method returns, this parameter contains an array of exported subnet objects.

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