AddIpamBlock method of the MSFT_IPAM_Block class

Adds a new IP address block to IPAM.

Syntax

uint32 AddIpamBlock(
  [in]  string          NetworkId,
  [in]  string          StartAddress,
  [in]  string          EndAddress,
  [in]  string          Rir,
  [in]  datetime        RirReceivedDate,
  [in]  string          Description,
  [in]  datetime        LastAssignedDate,
  [in]  string          Owner,
  [out] MSFT_IPAM_Block output
);

Parameters

NetworkId [in]

The network address and prefix length of the address block. The value is formatted as: NetworkId/Prefix.

StartAddress [in]

The starting IP address of the address block.

EndAddress [in]

The ending IP address of the address block.

Rir [in]

The Regional Internet Registries (RIR) for public IP addresses.

Note

This property is required for a public address block.

The possible values are:

AFRINIC

African Network Information Centre (AfriNIC)

APNIC

Asia-Pacific Network Information Centre (APNIC)

ARIN

American Registry for Internet Numbers (ARIN)

LACNIC

Latin America and Caribbean Network Information Centre (LACNIC)

RIPE

R seaux IP Europ ens Network Coordination Centre (RIPE NCC)

RirReceivedDate [in]

The data and time when the public address block was obtained from the RIR.

Description [in]

A description of the address block.

LastAssignedDate [in]

The last date and time when the block was assigned to a device on a network.

Owner [in]

The owner of the address block.

output [out]

When this method returns, this parameter contains the added address block object.

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_Block