Create a Physical Connector
/physicalConnector
- @type
- name
- resourceSpecification
- physicalDeviceRef or equipmentRef
Optionally quantity queryParam can be used for bulk creation of connectors.
To create a resource relationship, resourceRelationship.type and resourceRelationship.resourceRef are mandatory. ResourceRef should contain minimum details of id and @type. The created physical connector will be shown in the response along with the location URL, except when "fields=none" is provided in the request.
Request
-
fields: string
The fields to include in the response.
-
quantity: integer
Minimum Value:
1
Maximum Value:10000
The number of resources to create.
- application/json
-
object
allOf
PhysicalResource
The base class for physical resources.
-
object
type
object
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type" }
A base resource Class. -
object
PhysicalResource-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" ]
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" ]
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
-
serialNumber: string
The serial number for the physical resource.
object
-
equipmentRef:
Equipment
An equipment resource.
-
physicalDeviceRef:
schema
A physical device resource.
-
object
allOf
PhysicalResource
The base class for physical resources.
-
object
Equipment-allOf[1]
-
object
allOf
PhysicalResource
The base class for physical resources.
-
object
type
object
-
category: string
Read Only:
true
The category, or grouping, of equipment built from this specification. The valid values are RACK, SHELF, and CARD. -
modelNumber: string
Read Only:
true
The manufacturer-allocated number used to identify the general type and/or category of the hardware. This, in combination with the part number, identifies different types of hardware. -
networkLocation: object
PlaceRef
A place to associate with the resource/service.
-
partNumber: string
Read Only:
true
The manufacturer-allocated part number assigned by the organization that manufactures the hardware. This, in combination with model number, identifies different types of hardware. -
physicalConnectors: string
(uri)
Read Only:
true
The URI for the list of physical connector instances provided by the equipment instance. -
physicalPorts: string
(uri)
Read Only:
true
The URI for the physical port instances provided by the equipment instance. -
roles: array
roles
The list of equipment inventory roles.
-
vendorName: string
Read Only:
true
The name of the equipment manufacturer.
object
-
@referredType: string
Allowed Values:
[ "GeographicAddress", "GeographicLocation", "GeographicSite", "PropertyLocation", "NetworkEntityCode" ]
The list of valid values for place referred type. -
href: string
(uri)
The URI for the place.
-
id: string
The ID of the place.
-
name: string
The name of the place.
-
referrerRole: string
The role of the associated resource.
-
role: string
The role of the place.
array
-
Array of:
object Role
A role.
object
-
roleName: string
The name of the role.
-
roleType: string
Allowed Values:
[ "NONE", "TECHNOLOGY", "FUNCTION", "TOPOLOGY", "TARGET" ]
The type of role.
object
-
networkLocation: object
PlaceRef
A place to associate with the resource/service.
-
physicalAddress: string
The physical address of the device, such as a MAC address. This may correlate to the physical address of a media interface on the device. If the device has more than one physical address, this is considered the primary physical address.
-
physicalConnectors: string
(uri)
Read Only:
true
The URI for the list of physical connector instances provided by the physical device instance. -
physicalLocation: string
The physical location of a resource. This value is a common and agreed upon location identification between the OSS (Operational Support System) and the NMS (Network Management System) or EMS (Element Management System).
-
physicalPorts: string
(uri)
Read Only:
true
The URI for the list of physical ports provided by the physical device instance. -
roles: array
roles
The list of physical device inventory roles.
array
-
Array of:
object Role
A role.
Response
- application/json
201 Response
-
object
allOf
PhysicalResource
The base class for physical resources.
-
object
type
object
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type" }
A base resource Class. -
object
PhysicalResource-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" ]
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" ]
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
-
serialNumber: string
The serial number for the physical resource.
object
-
equipmentRef:
Equipment
An equipment resource.
-
physicalDeviceRef:
schema
A physical device resource.
-
object
allOf
PhysicalResource
The base class for physical resources.
-
object
Equipment-allOf[1]
-
object
allOf
PhysicalResource
The base class for physical resources.
-
object
type
object
-
category: string
Read Only:
true
The category, or grouping, of equipment built from this specification. The valid values are RACK, SHELF, and CARD. -
modelNumber: string
Read Only:
true
The manufacturer-allocated number used to identify the general type and/or category of the hardware. This, in combination with the part number, identifies different types of hardware. -
networkLocation: object
PlaceRef
A place to associate with the resource/service.
-
partNumber: string
Read Only:
true
The manufacturer-allocated part number assigned by the organization that manufactures the hardware. This, in combination with model number, identifies different types of hardware. -
physicalConnectors: string
(uri)
Read Only:
true
The URI for the list of physical connector instances provided by the equipment instance. -
physicalPorts: string
(uri)
Read Only:
true
The URI for the physical port instances provided by the equipment instance. -
roles: array
roles
The list of equipment inventory roles.
-
vendorName: string
Read Only:
true
The name of the equipment manufacturer.
object
-
@referredType: string
Allowed Values:
[ "GeographicAddress", "GeographicLocation", "GeographicSite", "PropertyLocation", "NetworkEntityCode" ]
The list of valid values for place referred type. -
href: string
(uri)
The URI for the place.
-
id: string
The ID of the place.
-
name: string
The name of the place.
-
referrerRole: string
The role of the associated resource.
-
role: string
The role of the place.
array
-
Array of:
object Role
A role.
object
-
roleName: string
The name of the role.
-
roleType: string
Allowed Values:
[ "NONE", "TECHNOLOGY", "FUNCTION", "TOPOLOGY", "TARGET" ]
The type of role.
object
-
networkLocation: object
PlaceRef
A place to associate with the resource/service.
-
physicalAddress: string
The physical address of the device, such as a MAC address. This may correlate to the physical address of a media interface on the device. If the device has more than one physical address, this is considered the primary physical address.
-
physicalConnectors: string
(uri)
Read Only:
true
The URI for the list of physical connector instances provided by the physical device instance. -
physicalLocation: string
The physical location of a resource. This value is a common and agreed upon location identification between the OSS (Operational Support System) and the NMS (Network Management System) or EMS (Element Management System).
-
physicalPorts: string
(uri)
Read Only:
true
The URI for the list of physical ports provided by the physical device instance. -
roles: array
roles
The list of physical device inventory roles.
array
-
Array of:
object Role
A role.
400 Response
object
-
code: string
The error code.
-
entityType: string
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: 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", "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: 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", "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: 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", "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: 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 create a physical connector with a given specification by submitting a POST request on the REST resource cURL. For more information about cURL, see "Install and Use cURL".
cURL Command
curl -X POST "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/physicalConnector" -H 'content-type: application/json' -H credentials -d @pccreate.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".
- pccreate.json is the JSON file that specifies the physical connector to create.
Example of Request Body
This shows an example of the contents of the pccreate.json file sent as the request body.
{
"@type": "PhysicalConnector",
"name": "Module1 USBConnector1",
"description": "Port for Module1",
"resourceSpecification": {
"id": "USB"
},
"equipmentRef": {
"id": "8-750003",
"@type": "Equipment"
}
}
Example of Response Body
This example shows the contents of the response body in JSON format. The ID is auto-generated and included in the response, because the input specification indicates auto-generation.
[
{
"id": "9-750003-1875083",
"href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/9-750003-1875083",
"@type": "PhysicalConnector",
"@baseType": "PhysicalResource",
"name": "Module1 USBConnector1",
"description": "Port for Module1",
"version": "1",
"lifecycleState": "INSTALLED",
"lifecycleSubState": "UNASSIGNED",
"startDate": "2020-01-10T10:23:20.342Z",
"endDate": "2038-01-19T08:44:07.000Z",
"resourceSpecification": {
"id": "USB",
"href": "http://hostname:port/InventoryRSOpenAPI/specification/USB",
"name": "USB",
"version": "1",
"entityType": "PhysicalConnector",
"startDate": "2020-01-10T00:00:01.000Z",
"endDate": "2038-01-19T08:44:07.000Z"
},
"equipmentRef": {
"id": "8-750003",
"href": "http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/resource/8-750003",
"@type": "Equipment"
}
}
]