Get IP Subnets
/ipSubnet
Attribute selection is enabled for all first-level attributes.
The version query parameter is required for identifying the IP version of the network to get.
The filtering criteria for IPv4 subnets can include below properties and the properties generic to resource. Properties generic to resource and usage of the filtering operators can be referred to GET PATH of /resource.
- name
- ipAddressDomain
- ipAddress
- lifecycleState
- ownedBy
- managedBy
- lifecycleSubstate
- ipNetwork.name
- ipNetwork.ipAddressDomainName
- ipNetwork.ipAddress
- ipNetwork.lifecycleState
- ipNetwork.ownedBy
- ipNetwork.prefixLengthFrom - Valid Operator is >= only.
- ipNetwork.prefixLengthTo - Valid Operator is <= only. < ul> Additionally, IPv6 networks can be filtered by:
- ipv6AddressType
- ipNetwork.ipv6AddressType
- name
- lifecycleState
- resourceSpecification.name
Optionally, use the expand parameter to specify any resource relationships (resourceRelationship.INVOLVE, resourceRelationship.CONSUMER) that you want to see details for. By default, you'll just see links for these.
Optionally, use the depth parameter to expand the level of referenced (related) entities. If depth=0, all referenced entities in RootEntity objects contain only ID, HREF, and @type. If depth = N, it expands the reference objects of related entities recursively. The last level contains only the references.
Optionally, use the sort parameter to sort the search results.
Usage: sort=(Direction)Fields
where Direction is '-' for descending order and '+' for ascending order.
For example, sort=-name, name
Sorting can be performed on these fields:
=>
Request
-
depth: integer
Minimum Value:
0
Maximum Value:10
The depth of the expansion.Default Value:0
-
expand: string
The additional details to include in the response.
-
fields: string
The fields to include in the response.
-
limit: integer
Minimum Value:
1
Maximum Value:10000
The number of items to return.Default Value:200
-
offset: integer
Minimum Value:
0
The number of items to skip before starting to collect the result set.Default Value:0
-
sort: string
The fields to sort.
-
version(required): string
There's no request body for this operation.
Back to TopResponse
- application/json
200 Response
-
allOf
schema
An IP network or IP subnet.
-
object
IPSubnet-allOf[1]
-
object
allOf
LogicalResource
The base class for logical resources.
-
object
type
object
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type" }
A base resource Class. -
object
LogicalResource-allOf[1]
object
-
@baseType: string
Read Only:
true
Allowed Values:[ "PhysicalResource", "LogicalResource" ]
The list of valid values for the type of base resource. -
@type: string
Allowed Values:
[ "DeviceInterface", "Equipment", "EquipmentHolder", "LogicalDevice", "LogicalDeviceAccount", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPNetwork", "IPSubnet", "NetworkAddressDomain", "FlowIdentifier", "CustomObject", "CustomNetworkAddress", "Pipe", "PipeTerminationPoint", "Connectivity" ]
The list of valid values for the resource type. -
category: string
The category of the concrete resource, such as Gold or Silver for a MSISDN concrete resource.
-
description: string
A free-text description for the resource.
-
endOperatingDate: string
(date-time)
The date and time when the resource is no longer effective.
-
externalIdentity: object
externalIdentity
Read Only:
true
The external identity details for the federated resource. -
href: string
(uri)
Read Only:
true
The URI for the resource class. -
id: string
The ID of the resource.
-
lifecycleState: string
Allowed Values:
[ "END_OF_LIFE", "INSTALLED", "PENDING_INSTALL", "PENDING_REMOVE", "PENDING_UNAVAILABLE", "PENDING_AVAILABLE", "PLANNED", "UNAVAILABLE", "PENDING_DISCONNECT", "DISCONNECTED", "IN_DESIGN" ]
The list of valid values for inventory state. -
lifecycleSubState: string
Allowed Values:
[ "PENDING_ASSIGN", "ASSIGNED", "PENDING_UNASSIGN", "UNASSIGNED", "DISCONNECTED", "TRANSITIONAL", "PORTED" ]
The list of valid values for assignment state. -
name: string
The name of the resource.
-
place: array
place
The list of associated geographic places.
-
resourceCharacteristic: array
resourceCharacteristic
The list of characteristics for the resource.
-
resourceRelationship: array
resourceRelationship
The list of all resources referenced with the current resource. For example, parent resource, associated resource, etc.
-
resourceSpecification: object
Specification
A specification.
-
resourceStatus: string
Allowed Values:
[ "Standby", "Alarm", "Available", "Reserved", "Unknown", "Suspended" ]
The list of valid values for resource status type, which indicates if entity has reservations. -
resourceVersion: string
Read Only:
true
A field that identifies the version of a resource instance. -
startOperatingDate: string
(date-time)
Read Only:
true
The starting date and time when the resource becomes effective.
object
object
-
allowHostAtSubnetBoundaries: boolean
Whether the subnet's start and end addresses can be assigned to hosts (true) or not (false).
-
availableHostCount: integer
Read Only:
true
The total number of usable hosts in the network. -
ipAddress: string
The network's starting IP address.
-
ipAddressDomain:
NetworkAddressDomain
A network address domain.
-
ipAddressVersion: string
The version of the IP network, either IPv4 or IPv6.
-
ipv6AddressType: string
The type of IPv6 address supported by the network, either GLOBAL_UNICAST or UNIQUE_LOCAL_UNICAST.
-
isIPNetwork: boolean
Whether it's an IP network (true) or IP subnet (false).
-
numericLowerAddress: integer
Read Only:
true
The numeric equivalent of the start IP address of the network. -
numericUpperAddress: integer
Read Only:
true
The numeric equivalent of the end IP address of the network. -
ownedBy: object
RelatedPartyRef
A related party, which defines a party or party role linked to a specific entity.
-
prefix: string
Read Only:
true
The prefix for the IP network. -
prefixLength: integer
The number of bits in the address that are in the network.
object
-
ipAddresses: string
(uri)
Read Only:
true
The list of IP addresses for the subnet. -
ipNetwork:
schema
An IP network or IP subnet.
-
isSubnetPartitioned: boolean
Read Only:
true
Whether the subnet has been partitioned (true) or not (false). -
managedBy: object
RelatedPartyRef
A related party, which defines a party or party role linked to a specific entity.
-
partitionedSubnets: array
partitionedSubnets
Read Only:
true
The list of partitioned subnets.
-
object
allOf
LogicalResource
The base class for logical resources.
-
object
NetworkAddressDomain-allOf[1]
object
-
@referredType: string
Concrete Type of the Party, in case of dis-ambiguity. Default is 'Party'.
-
href: string
(uri)
The URI for the related party.
-
id: string
The ID of the related party.
-
name: string
The name of the related party.
-
role: string
The role of the related party.
object
-
managedBy: object
RelatedPartyRef
A related party, which defines a party or party role linked to a specific entity.
-
name: string
The name of the network address domain. It also indicates the ID of the domain.
-
networkAddressType: string
The type of network address, either IP Subnet or flow identifier.
-
ownedBy: object
RelatedPartyRef
A related party, which defines a party or party role linked to a specific entity.
array
true
206 Response
-
allOf
schema
An IP network or IP subnet.
-
object
IPSubnet-allOf[1]
-
object
allOf
LogicalResource
The base class for logical resources.
-
object
type
object
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type" }
A base resource Class. -
object
LogicalResource-allOf[1]
object
-
@baseType: string
Read Only:
true
Allowed Values:[ "PhysicalResource", "LogicalResource" ]
The list of valid values for the type of base resource. -
@type: string
Allowed Values:
[ "DeviceInterface", "Equipment", "EquipmentHolder", "LogicalDevice", "LogicalDeviceAccount", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPNetwork", "IPSubnet", "NetworkAddressDomain", "FlowIdentifier", "CustomObject", "CustomNetworkAddress", "Pipe", "PipeTerminationPoint", "Connectivity" ]
The list of valid values for the resource type. -
category: string
The category of the concrete resource, such as Gold or Silver for a MSISDN concrete resource.
-
description: string
A free-text description for the resource.
-
endOperatingDate: string
(date-time)
The date and time when the resource is no longer effective.
-
externalIdentity: object
externalIdentity
Read Only:
true
The external identity details for the federated resource. -
href: string
(uri)
Read Only:
true
The URI for the resource class. -
id: string
The ID of the resource.
-
lifecycleState: string
Allowed Values:
[ "END_OF_LIFE", "INSTALLED", "PENDING_INSTALL", "PENDING_REMOVE", "PENDING_UNAVAILABLE", "PENDING_AVAILABLE", "PLANNED", "UNAVAILABLE", "PENDING_DISCONNECT", "DISCONNECTED", "IN_DESIGN" ]
The list of valid values for inventory state. -
lifecycleSubState: string
Allowed Values:
[ "PENDING_ASSIGN", "ASSIGNED", "PENDING_UNASSIGN", "UNASSIGNED", "DISCONNECTED", "TRANSITIONAL", "PORTED" ]
The list of valid values for assignment state. -
name: string
The name of the resource.
-
place: array
place
The list of associated geographic places.
-
resourceCharacteristic: array
resourceCharacteristic
The list of characteristics for the resource.
-
resourceRelationship: array
resourceRelationship
The list of all resources referenced with the current resource. For example, parent resource, associated resource, etc.
-
resourceSpecification: object
Specification
A specification.
-
resourceStatus: string
Allowed Values:
[ "Standby", "Alarm", "Available", "Reserved", "Unknown", "Suspended" ]
The list of valid values for resource status type, which indicates if entity has reservations. -
resourceVersion: string
Read Only:
true
A field that identifies the version of a resource instance. -
startOperatingDate: string
(date-time)
Read Only:
true
The starting date and time when the resource becomes effective.
object
object
-
allowHostAtSubnetBoundaries: boolean
Whether the subnet's start and end addresses can be assigned to hosts (true) or not (false).
-
availableHostCount: integer
Read Only:
true
The total number of usable hosts in the network. -
ipAddress: string
The network's starting IP address.
-
ipAddressDomain:
NetworkAddressDomain
A network address domain.
-
ipAddressVersion: string
The version of the IP network, either IPv4 or IPv6.
-
ipv6AddressType: string
The type of IPv6 address supported by the network, either GLOBAL_UNICAST or UNIQUE_LOCAL_UNICAST.
-
isIPNetwork: boolean
Whether it's an IP network (true) or IP subnet (false).
-
numericLowerAddress: integer
Read Only:
true
The numeric equivalent of the start IP address of the network. -
numericUpperAddress: integer
Read Only:
true
The numeric equivalent of the end IP address of the network. -
ownedBy: object
RelatedPartyRef
A related party, which defines a party or party role linked to a specific entity.
-
prefix: string
Read Only:
true
The prefix for the IP network. -
prefixLength: integer
The number of bits in the address that are in the network.
object
-
ipAddresses: string
(uri)
Read Only:
true
The list of IP addresses for the subnet. -
ipNetwork:
schema
An IP network or IP subnet.
-
isSubnetPartitioned: boolean
Read Only:
true
Whether the subnet has been partitioned (true) or not (false). -
managedBy: object
RelatedPartyRef
A related party, which defines a party or party role linked to a specific entity.
-
partitionedSubnets: array
partitionedSubnets
Read Only:
true
The list of partitioned subnets.
-
object
allOf
LogicalResource
The base class for logical resources.
-
object
NetworkAddressDomain-allOf[1]
object
-
@referredType: string
Concrete Type of the Party, in case of dis-ambiguity. Default is 'Party'.
-
href: string
(uri)
The URI for the related party.
-
id: string
The ID of the related party.
-
name: string
The name of the related party.
-
role: string
The role of the related party.
object
-
managedBy: object
RelatedPartyRef
A related party, which defines a party or party role linked to a specific entity.
-
name: string
The name of the network address domain. It also indicates the ID of the domain.
-
networkAddressType: string
The type of network address, either IP Subnet or flow identifier.
-
ownedBy: object
RelatedPartyRef
A related party, which defines a party or party role linked to a specific entity.
array
true
400 Response
object
-
code: string
The error code.
-
entityType: string
Allowed Values:
[ "CustomObject", "CustomNetworkAddress", "DeviceInterface", "Equipment", "EquipmentHolder", "FlowIdentifier", "GeographicPlace", "GeographicLocation", "GeographicSite", "GeographicAddress", "GeographicAddressRange", "PropertyAddress", "PropertyLocation", "LogicalDevice", "LogicalDeviceAccount", "MediaStream", "Network", "NetworkEdge", "NetworkNode", "NetworkEntityCode", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "Pipe", "PipeTerminationPoint", "Service", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPSubnet", "NetworkAddressDomain", "Connectivity", "Party" ]
The list of valid values for an entity class. -
message: array
message
The text that provides more details about the error as well as corrective actions.
-
reason: string
The short, user-friendly summary of the problem, which does not change for subsequent occurrences of the problem.
-
referenceError: string
The URL pointing to the documentation that describes the error.
-
status: string
The HTTP error code extension, such as 400-2.
array
401 Response
object
-
code: string
The error code.
-
entityType: string
Allowed Values:
[ "CustomObject", "CustomNetworkAddress", "DeviceInterface", "Equipment", "EquipmentHolder", "FlowIdentifier", "GeographicPlace", "GeographicLocation", "GeographicSite", "GeographicAddress", "GeographicAddressRange", "PropertyAddress", "PropertyLocation", "LogicalDevice", "LogicalDeviceAccount", "MediaStream", "Network", "NetworkEdge", "NetworkNode", "NetworkEntityCode", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "Pipe", "PipeTerminationPoint", "Service", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPSubnet", "NetworkAddressDomain", "Connectivity", "Party" ]
The list of valid values for an entity class. -
message: array
message
The text that provides more details about the error as well as corrective actions.
-
reason: string
The short, user-friendly summary of the problem, which does not change for subsequent occurrences of the problem.
-
referenceError: string
The URL pointing to the documentation that describes the error.
-
status: string
The HTTP error code extension, such as 400-2.
array
403 Response
object
-
code: string
The error code.
-
entityType: string
Allowed Values:
[ "CustomObject", "CustomNetworkAddress", "DeviceInterface", "Equipment", "EquipmentHolder", "FlowIdentifier", "GeographicPlace", "GeographicLocation", "GeographicSite", "GeographicAddress", "GeographicAddressRange", "PropertyAddress", "PropertyLocation", "LogicalDevice", "LogicalDeviceAccount", "MediaStream", "Network", "NetworkEdge", "NetworkNode", "NetworkEntityCode", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "Pipe", "PipeTerminationPoint", "Service", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPSubnet", "NetworkAddressDomain", "Connectivity", "Party" ]
The list of valid values for an entity class. -
message: array
message
The text that provides more details about the error as well as corrective actions.
-
reason: string
The short, user-friendly summary of the problem, which does not change for subsequent occurrences of the problem.
-
referenceError: string
The URL pointing to the documentation that describes the error.
-
status: string
The HTTP error code extension, such as 400-2.
array
404 Response
object
-
code: string
The error code.
-
entityType: string
Allowed Values:
[ "CustomObject", "CustomNetworkAddress", "DeviceInterface", "Equipment", "EquipmentHolder", "FlowIdentifier", "GeographicPlace", "GeographicLocation", "GeographicSite", "GeographicAddress", "GeographicAddressRange", "PropertyAddress", "PropertyLocation", "LogicalDevice", "LogicalDeviceAccount", "MediaStream", "Network", "NetworkEdge", "NetworkNode", "NetworkEntityCode", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "Pipe", "PipeTerminationPoint", "Service", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPSubnet", "NetworkAddressDomain", "Connectivity", "Party" ]
The list of valid values for an entity class. -
message: array
message
The text that provides more details about the error as well as corrective actions.
-
reason: string
The short, user-friendly summary of the problem, which does not change for subsequent occurrences of the problem.
-
referenceError: string
The URL pointing to the documentation that describes the error.
-
status: string
The HTTP error code extension, such as 400-2.
array
500 Response
object
-
code: string
The error code.
-
entityType: string
Allowed Values:
[ "CustomObject", "CustomNetworkAddress", "DeviceInterface", "Equipment", "EquipmentHolder", "FlowIdentifier", "GeographicPlace", "GeographicLocation", "GeographicSite", "GeographicAddress", "GeographicAddressRange", "PropertyAddress", "PropertyLocation", "LogicalDevice", "LogicalDeviceAccount", "MediaStream", "Network", "NetworkEdge", "NetworkNode", "NetworkEntityCode", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "Pipe", "PipeTerminationPoint", "Service", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPSubnet", "NetworkAddressDomain", "Connectivity", "Party" ]
The list of valid values for an entity class. -
message: array
message
The text that provides more details about the error as well as corrective actions.
-
reason: string
The short, user-friendly summary of the problem, which does not change for subsequent occurrences of the problem.
-
referenceError: string
The URL pointing to the documentation that describes the error.
-
status: string
The HTTP error code extension, such as 400-2.
array
Examples
This example shows how to get the details for the IPv4 or IPv6 subnets with a given name by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Install and Use cURL".
cURL Command
curl -X GET "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/ipSubnet?version=IPv4&name=name" -H credentials
where:
- hostname is the URL for the UIM REST server.
- port is the port for the UIM REST server.
- version is the version of the API you're using.
- credentials is the base64 encoding of the user ID and password joined by a single colon (ID:password). See "Authentication and Authorization".
- name is the name of the IP subnet to get.
Example of Response Body
This example shows the contents of the response body in JSON format. It shows the full details for IPv4 networks named "WebHosting".
[
{
"id": "24-1.19.96.0-28 - Public",
"href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/24-1.19.96.0-28 - Public",
"@type": "IPSubnet",
"@baseType": "LogicalResource",
"name": "WebHosting",
"version": "1",
"lifecycleState": "INSTALLED",
"lifecycleSubState": "UNASSIGNED",
"startDate": "2019-09-09T16:25:22.657Z",
"endDate": "2038-01-19T08:44:07.000Z",
"resourceSpecification": {
"id": "IPv4Subnet",
"href": "http://hostname:port/InventoryRSOpenAPI/specification/IPv4Subnet",
"name": "IPv4Subnet",
"version": "1",
"entityType": "IPSubnet",
"startDate": "2019-11-18T00:00:01.000Z",
"endDate": "2038-01-19T08:44:07.000Z"
},
"prefixLength": 28,
"isIPNetwork": false,
"availableHostCount": 14,
"numericLowerAddress": 18046976,
"numericUpperAddress": 18046991,
"allowHostAtSubnetBoundaries": false,
"ipAddressDomain": {
"id": "25- Public",
"href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/25-Public",
"@type": "NetworkAddressDomain"
},
"ipAddressVersion": "IPV4",
"prefix": "255.255.255.240",
"isSubnetPartitioned": true,
"ipNetwork": {
"id": "23-1.19.96.0-28 - Public",
"href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/23-1.19.96.0-28 - Public",
"@type": "IPNetwork"
},
"ipAddresses": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/ipSubnet/IPV4/1.19.96.0-28 - Public/ipAddresses",
"partitionedSubnets": [
{
"id": "24-1.19.96.0-30 - Public",
"href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/24-1.19.96.0-30 - Public",
"@type": "IPSubnet"
},
{
"id": "24-1.19.96.4-30 - Public",
"href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/24-1.19.96.4-30 - Public",
"@type": "IPSubnet"
}
]
}
]