ExportAddress method of the MSFT_IPAM_Address class

Exports a set of IP addresses from IPAM to a CSV file.

Syntax

uint32 ExportAddress(
  [in]  string            Path,
  [in]  uint16            AddressType = 1,
  [in]  uint16            NetworkType,
  [in]  string            AddressSpace,
  [out] MSFT_IPAM_Address Output[]
);

Parameters

Path [in]

The path and name of the CSV file.

AddressType [in]

The format of the IP addresses.

The possible values are:

1

Other

1

IPv4

2

IPv6

NetworkType [in]

Indicates whether the IP addresses are virtual addresses.

The possible values are:

NonVirtualized (1)

Provider (2)

Customer (4)

AddressSpace [in]

The address space of the IP addresses to export.

Output [out]

When this method returns, this parameter contains the exported IP addresses.

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_Address