Create an IPv6 Address

post

/ipv6Address

Creates an IPv6 address with the given details. When the toAddress query parameter is provided, a range of IPv6 addresses are created with the same given details. The ipAddress attribute is considered as the from-Address. The following attributes are mandatory for successful creation:
  • @type
  • name
  • ipAddress
  • ipAddressDomain

The created IPv6 addresses will be shown in the response along with the location URL, except when "fields=none" is provided in the request.

When a range of IPv6 addresses are created, the location header will point to the parent subnet of the created addresses. The same relationships will be created for all addresses in the range.

Request

Query Parameters
Supported Media Types
Request Body - application/json ()
The Ipv6 address to create.
Root Schema : schema
An iPv6 address.
Match All
Show Source
Nested Schema : IPAddress
An IP address.
Match All
Show Source
Nested Schema : LogicalResource
Type: object
The base class for logical resources.
Match All
Show Source
Nested Schema : Discriminator: @type
Type: object
A base resource Class.
Show Source
Nested Schema : LogicalResource-allOf[1]
Type: object
Nested Schema : IPAddress-allOf[1]
Type: object
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : NetworkAddressDomain
A network address domain.
Match All
Show Source
Nested Schema : RelatedPartyRef
Type: object
A related party, which defines a party or party role linked to a specific entity.
Show Source
Nested Schema : parentNetwork
Type: object
Read Only: true
The parent IP network of the IP address.
Match All
Show Source
Nested Schema : parentSubnet
Type: object
Read Only: true
The parent IP subnet of the IP address.
Match All
Show Source
Nested Schema : NetworkAddressDomain-allOf[1]
Type: object
Show Source
Nested Schema : schema
An IP network or IP subnet.
Match All
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : schema
An IP subnet.
Match All
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : partitionedSubnets
Type: array
Read Only: true
The list of partitioned subnets.
Show Source
Back to Top

Response

Supported Media Types

201 Response

The IPv6 address was created successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : schema
An iPv6 address.
Match All
Show Source
Nested Schema : IPAddress
An IP address.
Match All
Show Source
Nested Schema : LogicalResource
Type: object
The base class for logical resources.
Match All
Show Source
Nested Schema : Discriminator: @type
Type: object
A base resource Class.
Show Source
Nested Schema : LogicalResource-allOf[1]
Type: object
Nested Schema : IPAddress-allOf[1]
Type: object
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : NetworkAddressDomain
A network address domain.
Match All
Show Source
Nested Schema : RelatedPartyRef
Type: object
A related party, which defines a party or party role linked to a specific entity.
Show Source
Nested Schema : parentNetwork
Type: object
Read Only: true
The parent IP network of the IP address.
Match All
Show Source
Nested Schema : parentSubnet
Type: object
Read Only: true
The parent IP subnet of the IP address.
Match All
Show Source
Nested Schema : NetworkAddressDomain-allOf[1]
Type: object
Show Source
Nested Schema : schema
An IP network or IP subnet.
Match All
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : schema
An IP subnet.
Match All
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : partitionedSubnets
Type: array
Read Only: true
The list of partitioned subnets.
Show Source

400 Response

The request isn't valid.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error. This is typically used with HTTP error response codes (3xx, 4xx, 5xx).
Show Source
  • The error code.
  • Allowed Values: [ "CustomObject", "CustomNetworkAddress", "DeviceInterface", "Equipment", "EquipmentHolder", "FlowIdentifier", "GeographicLocation", "GeographicSite", "GeographicAddress", "PropertyLocation", "LogicalDevice", "LogicalDeviceAccount", "MediaStream", "Network", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "Pipe", "Service", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPSubnet", "NetworkAddressDomain", "Connectivity", "Party" ]
    The list of valid values for an entity class.
  • message
    The text that provides more details about the error as well as corrective actions.
  • The short, user-friendly summary of the problem, which does not change for subsequent occurrences of the problem.
  • The URL pointing to the documentation that describes the error.
  • The HTTP error code extension, such as 400-2.
Nested Schema : message
Type: array
The text that provides more details about the error as well as corrective actions.
Show Source

401 Response

You aren't authorized to make this request.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error. This is typically used with HTTP error response codes (3xx, 4xx, 5xx).
Show Source
  • The error code.
  • Allowed Values: [ "CustomObject", "CustomNetworkAddress", "DeviceInterface", "Equipment", "EquipmentHolder", "FlowIdentifier", "GeographicLocation", "GeographicSite", "GeographicAddress", "PropertyLocation", "LogicalDevice", "LogicalDeviceAccount", "MediaStream", "Network", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "Pipe", "Service", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPSubnet", "NetworkAddressDomain", "Connectivity", "Party" ]
    The list of valid values for an entity class.
  • message
    The text that provides more details about the error as well as corrective actions.
  • The short, user-friendly summary of the problem, which does not change for subsequent occurrences of the problem.
  • The URL pointing to the documentation that describes the error.
  • The HTTP error code extension, such as 400-2.
Nested Schema : message
Type: array
The text that provides more details about the error as well as corrective actions.
Show Source

403 Response

The request is forbidden.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error. This is typically used with HTTP error response codes (3xx, 4xx, 5xx).
Show Source
  • The error code.
  • Allowed Values: [ "CustomObject", "CustomNetworkAddress", "DeviceInterface", "Equipment", "EquipmentHolder", "FlowIdentifier", "GeographicLocation", "GeographicSite", "GeographicAddress", "PropertyLocation", "LogicalDevice", "LogicalDeviceAccount", "MediaStream", "Network", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "Pipe", "Service", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPSubnet", "NetworkAddressDomain", "Connectivity", "Party" ]
    The list of valid values for an entity class.
  • message
    The text that provides more details about the error as well as corrective actions.
  • The short, user-friendly summary of the problem, which does not change for subsequent occurrences of the problem.
  • The URL pointing to the documentation that describes the error.
  • The HTTP error code extension, such as 400-2.
Nested Schema : message
Type: array
The text that provides more details about the error as well as corrective actions.
Show Source

500 Response

An internal server error occurred.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error. This is typically used with HTTP error response codes (3xx, 4xx, 5xx).
Show Source
  • The error code.
  • Allowed Values: [ "CustomObject", "CustomNetworkAddress", "DeviceInterface", "Equipment", "EquipmentHolder", "FlowIdentifier", "GeographicLocation", "GeographicSite", "GeographicAddress", "PropertyLocation", "LogicalDevice", "LogicalDeviceAccount", "MediaStream", "Network", "PhysicalConnector", "PhysicalDevice", "PhysicalPort", "Pipe", "Service", "TelephoneNumber", "IPV4Address", "IPV6Address", "IPSubnet", "NetworkAddressDomain", "Connectivity", "Party" ]
    The list of valid values for an entity class.
  • message
    The text that provides more details about the error as well as corrective actions.
  • The short, user-friendly summary of the problem, which does not change for subsequent occurrences of the problem.
  • The URL pointing to the documentation that describes the error.
  • The HTTP error code extension, such as 400-2.
Nested Schema : message
Type: array
The text that provides more details about the error as well as corrective actions.
Show Source
Back to Top

Examples

Create a Single IPv6 Address

This example shows how to create a single IPv6 address by submitting a POST request on the REST resource using cURL. For more information about cURL, see "Install and Use cURL".

cURL Command

curl -X POST "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/ipv6Address -H 'content-type: application/json' -H credentials -d @ipv6Addresscreate.json

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".
  • IPv6Addresscreate.json is the JSON file that specifies the IPv6 address to create.

Example of Request Body

This shows an example of the contents of the ipv6Addresscreate.json file sent as the request body.

{
   "@type": "IPV6Address",
   "@baseType": "LogicalResource",
   "name": "Lab Admin",
   "resourceSpecification": {
      "id": "IPv6Address",
      "href": "http://hostname:port/InventoryRSOpenAPI/specification/IPv6Address",
      "name": "IPv6Address"
   },
   "prefixLength": 48,
   "ipAddressDomain": {
      "id": "25-Public",
      "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/25-Public",
      "@type": "NetworkAddressDomain"
   },
   "ipv6Address": "2001:0db8:1234:0000:0000:0000:0000:0003",
   "ipv6AddressType": "GLOBAL_UNICAST"
}   

Example of Response Body

This example shows the contents of the response body in JSON format. The ID is auto-generated as a composite value of the business object identifier, IP address, and IP address domain separated by a hyphen (-), and it's included in the response.

[   
   {
      "id": "27-2001:0db8:1234:0000:0000:0000:0000:0003 - Public",
      "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/12-2001:0db8:1234:0000:0000:0000:0000:0003 - Public",
      "@type": "IPV6Address",
      "@baseType": "LogicalResource",
      "name": "Lab Admin",
      "version": "1",
      "lifecycleState": "INSTALLED",
      "lifecycleSubState": "UNASSIGNED",
      "startDate": "2020-01-04T18:32:29.203Z",
      "endDate": "2038-01-19T08:44:07.000Z",
      "resourceSpecification": {
         "id": "IPv6Address",
         "href": "http://hostname:port/InventoryRSOpenAPI/specification/IPv6Address",
         "name": "IPv6Address",
         "version": "1",
         "entityType": "IPv6Address",
         "startDate": "2019-11-18T00:00:01.000Z",
         "endDate": "2038-01-19T08:44:07.000Z"
      },
      "prefixLength": 48,
      "numericAddress": 3,
      "ipAddressDomain": {
         "id": "25-Public",
         "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/25-Public",
         "@type": "NetworkAddressDomain"
      },
      "parentSubnet": {
         "id": "24-2001:0db8:1234:0000:0000:0000:0000:0000-48 - Public",
         "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/24-2001:0db8:1234:0000:0000:0000:0000:0000-48 - Public",
         "@type": "IPSubnet"
      },
      "ipv6Address": "2001:0db8:1234:0000:0000:0000:0000:0003",
      "ipv6AddressType": "GLOBAL_UNICAST"
   }
]

Create a Range of IPv6 Addresses

This example shows how to create a range of IPv6 addresses by submitting a POST request on the REST resource using cURL. The end of the IPv6 address range is provided as a query parameter as shown. For more information about cURL, see "Install and Use cURL".

cURL Command

curl -X POST "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/ipv6Address?toAddress=toAddress -H 'content-type: application/json' -H credentials -d @ipv6Addresscreate.json

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".
  • toAddress is the end of the address range to create.
  • ipv6Addresscreate.json is the JSON file that specifies the IPv6 address to create.

Example of Request Body

This shows an example of the contents of the ipv6Addresscreate.json file sent as the request body.

{
   "@type": "IPV6Address",
   "@baseType": "LogicalResource",
   "name": "Lab Users",
   "resourceSpecification": {
      "id": "IPv6Address",
      "href": "http://hostname:port/InventoryRSOpenAPI/specification/IPv6Address",
      "name": "IPv6Address"
   },
   "prefixLength": 48,
   "ipAddressDomain": {
      "id": "25-Public",
      "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/25-Public",
      "@type": "NetworkAddressDomain"
   },
   "ipv6Address": "2001:0db8:1234:0000:0000:0000:0000:0003",
   "ipv6AddressType": "GLOBAL_UNICAST"
}

Example of Response Body

This example shows the contents of the response body in JSON format. The ID is auto-generated as a composite value of the business object identifier, IP address, and IP address domain separated by a hyphen (-), and it's included in the response.

[
   {
      "id": "27-2001:0db8:1234:0000:0000:0000:0000:0010 - Public",
      "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/12-2001:0db8:1234:0000:0000:0000:0000:0010 - Public",
      "@type": "IPV6Address",
      "@baseType": "LogicalResource",
      "name": "Lab Users",
      "version": "1",
      "lifecycleState": "INSTALLED",
      "lifecycleSubState": "UNASSIGNED",
      "startDate": "2019-09-09T16:31:09.165Z",
      "endDate": "2038-01-19T08:44:07.000Z",
      "resourceSpecification": {
         "id": "IPv6Address",
         "href": "http://hostname:port/InventoryRSOpenAPI/specification/IPv6Address",
         "name": "IPv6Address",
         "version": "1",
         "entityType": "IPv6Address",
         "startDate": "2019-11-18T00:00:01.000Z",
         "endDate": "2038-01-19T08:44:07.000Z"
      },
      "prefixLength": 48,
      "numericAddress": 16,
      "ipAddressDomain": {
         "id": "25-Public",
         "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/25-Public",
         "@type": "NetworkAddressDomain"
      },
      "parentSubnet": {
         "id": "24-2001:0db8:1234:0000:0000:0000:0000:0000-48 - Public",
         "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/24-2001:0db8:1234:0000:0000:0000:0000:0000-48 - Public",
         "@type": "IPSubnet"
      },
      "ipv6Address": "2001:0db8:1234:0000:0000:0000:0000:0010",
      "ipv6AddressType": "GLOBAL_UNICAST"
   },
   {
      "id": "27-2001:0db8:1234:0000:0000:0000:0000:0011 - Public",
      "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/12-2001:0db8:1234:0000:0000:0000:0000:0011 - Public",
      "@type": "IPV6Address",
      "@baseType": "LogicalResource",
      "name": "Lab Users",
      "version": "1",
      "lifecycleState": "INSTALLED",
      "lifecycleSubState": "UNASSIGNED",
      "startDate": "2020-01-06T14:20:58.360Z",
      "endDate": "2038-01-19T08:44:07.000Z",
      "resourceSpecification": {
         "id": "IPv6Address",
         "href": "http://hostname:port/InventoryRSOpenAPI/specification/IPv6Address",
         "name": "IPv6Address",
         "version": "1",
         "entityType": "IPv6Address",
         "startDate": "2019-11-18T00:00:01.000Z",
         "endDate": "2038-01-19T08:44:07.000Z"
      },
      "prefixLength": 48,
      "numericAddress": 17,
      "ipAddressDomain": {
         "id": "25-Public",
         "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/25-Public",
         "@type": "NetworkAddressDomain"
      },
      "parentSubnet": {
         "id": "24-2001:0db8:1234:0000:0000:0000:0000:0000-48 - Public",
         "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/24-2001:0db8:1234:0000:0000:0000:0000:0000-48 - Public",
         "@type": "IPSubnet"
      },
      "ipv6Address": "2001:0db8:1234:0000:0000:0000:0000:0011",
      "ipv6AddressType": "GLOBAL_UNICAST"
   },
   {
      "id": "27-2001:0db8:1234:0000:0000:0000:0000:0012 - Public",
      "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/12-2001:0db8:1234:0000:0000:0000:0000:0012 - Public",
      "@type": "IPV6Address",
      "@baseType": "LogicalResource",
      "name": "Lab Users",
      "version": "1",
      "lifecycleState": "INSTALLED",
      "lifecycleSubState": "UNASSIGNED",
      "startDate": "2020-01-06T14:20:58.365Z",
      "endDate": "2038-01-19T08:44:07.000Z",
      "resourceSpecification": {
         "id": "IPv6Address",
         "href": "http://hostname:port/InventoryRSOpenAPI/specification/IPv6Address",
         "name": "IPv6Address",
         "version": "1",
         "entityType": "IPv6Address",
         "startDate": "2019-11-18T00:00:01.000Z",
         "endDate": "2038-01-19T08:44:07.000Z"
      },
      "prefixLength": 48,
      "numericAddress": 18,
      "ipAddressDomain": {
         "id": "25-Public",
         "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/25-Public",
         "@type": "NetworkAddressDomain"
      },
      "parentSubnet": {
         "id": "24-2001:0db8:1234:0000:0000:0000:0000:0000-48 - Public",
         "href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/24-2001:0db8:1234:0000:0000:0000:0000:0000-48 - Public",
         "@type": "IPSubnet"
      },
      "ipv6Address": "2001:0db8:1234:0000:0000:0000:0000:0012",
      "ipv6AddressType": "GLOBAL_UNICAST"
   }
]
Back to Top