The Velocity API is an interface for external applications to operate services that are part of Velocity. The API is RESTful and consists of a set of resources (REST) that can be retrieved (GET), created (POST), deleted (DELETE), or updated (PUT).
NOTE: This documentation is for the Velocity 24.3.0 API version. Follow the links below if you need an older version of the API documentation.
It is recommended that you switch to the latest versions of API soon after you upgrade your Velocity instance.
All communications with Velocity can be performed using HTTP 1.1 only. Only SSL connections are supported.
Each service of Velocity provides its own API with its own versioning.
Notice that documentation for newer service versions only includes modified or updated resources. if an endpoint exists in an earlier version, it will still be available in later versions of the service.
All strings must be UTF-8 encoded.
All dates are represented the number of milliseconds since January 1, 1970, 00:00:00 GMT (does not depend on timezones)
Reservation “Events” are called “Instances” in Velocity user interface.
The Velocity API endpoint URL has the following structure: https://velocity_domain_name/velocity/api/{service_name}/v{service_api_version}/
For example, if Velocity is hosted at velocity.example.com and Inventory Service API version 1 is used, the endpoint is: https://velocity.example.com/velocity/api/inventory/v1/
Notice that some services are under /ito path and have the following endpoint structure: https://velocity.example.com/ito/{service_name}/v{service_api_version}/
The services under /ito are: Execution Service, Repository Service, Reporting Service
If not specified explicitly, responses are in JSON format (content type is “application/json”).
If not specified explicitly, each request requires authentication. API client can use one of the following authentication methods:
NOTE: Repository, Execution, Reporting services support only “X-Auth-Token” request header authentication. The token can be obtained by calling GET /token on Auth Service.
The following example uses the REST API to get the current clock time (see GET /time).
All requests for resources that support caching should contain the following HTTP headers:
If-None-Match: {lastModificationTimestamp}
Cache-Control: no-transform, must-revalidate, max-age=0
Vary: Range
All responses for resources that support caching will always contain the following HTTP headers:
ETag: {lastModificationTimestamp}
Cache-Control: no-transform, must-revalidate, max-age=0
where lastModificationTimestamp is the timestamp of the last resource modification (milliseconds since the UNIX epoch in UTC+0). The server will return 304 Not Modified and empty body if the last modification timestamp of the requested resource is equal to the requested lastModificationTimestamp. All responses for resources that do not support caching should contain the following HTTP headers:
Cache-Control: no-cache, no-store
Pragma: no-cache
Responses for resources that support private-only caching (that is, based on current user) should contain the following HTTP header:
Cache-Control: private
Responses for resources that support public caching (that is, not dependent on current user) should contain the following HTTP header:
Cache-Control: public
Resources that support private caching are marked with the tag “cacheable-private”, public are marked with the tag “cacheable-public”.
Every collection marked as pageable supports the additional request parameters: offset and limit. The parameters specify the range of resources to be returned in the response. Default values: offset = 0, limit = 10 Maximum value for limit is 200 Pageable collections also contain additional metadata in the response body:
Pagination for the execution service, reporting service, and repository service is slightly different. For those services offset is limited to a maximum of 1000.
Use the optional filter query parameter to return a specified subset of a collection of resources.
Note: Not every attribute can be used for filtering. Collections that support filtering are marked as “filterable- and the set of attributes that can be used for filtering is specified.
Note: Some collections have fields which can contain very long strings of data. Because of indexing limitations, this data may be broken into two or more filter terms each containing only part of the field data. Any filter which tries to find data that breaks across two filter terms will fail. Terms are broken at the ends of lines for multi-line data and are also broken if their size exceeds 32,766 characters. Collections which act like this are marked filterable-limit instead of filterable
To return resources with a name field of value value1:
filter=name::value1
To return resources with name field of any value except value1:
filter=name:!:value1
To specify alternatives (logical OR), use the | character:
filter=name1::value1|name1::value2|name2:!:value3
To return resources with timestamp greater than value (Other comparison operators allowed are gte, lt, lte) This type of filtering is supported by execution service, reporting service and repository service
filter=timestamp:gt:value
In the example, returned values must satisfy at least one of the following three conditions:
To specify multiple filters (logical AND), use &:
filter=name1::value1|name2::value2&filter=name3::value3
In the example, returned values must satisfy both “name3 has value value3“ and at least one of the following conditions:
To use the colon character (:) as a filter value, escape it using backslash. For example, to filter entities with an ipv6 field with a value of 2001:0db8:11a3:09d7:1f34:8a2e:07a0:765d, use the following expression:
filter=ipv6::2001\:0db8\:11a3\:09d7\:1f34\:8a2e\:07a0\:765d
A valid URL must follow the URL encoding rules and contain no characters other than valid characters defined by RFC 3986. Any other characters (e.g. | symbol) must be percent-encoded:
filter=name1::value1%7Cname2::value2
Sort a collection of resources by providing the additional query parameter sortBy with the value of the field name to use for sorting. The sortOrder parameter specifies the order of sorting: desc means descending, everything else is considered ascending. Collections that support sorting are marked as sortable and the set of attributes that can be used for sorting is specified.
Some collections have fields which can contain very long strings of data. To improve performance, these collections restrict sort to use only the first 255 characters of data. If the string contains multiple lines, sort is also limited to the first line, and thus may be shorter than 255 characters. Collections which act like this are marked sortable-limit instead of sortable
Requests tagged as asynchronous create a background job rather than running and returning a response immediately. Asynchronous requests return:
Poll the Job Service for job status and results. See GET /job/{jobId} for more information.
Code | Text | Description |
---|---|---|
200 | OK | Success |
202 | Accepted | The request has successfully scheduled a job in Job Service |
304 | Not Modified | The resource has not been modified since the version specified by the request headers If-Modified-Since or If-Match. This means that there is no need to re-transmit the resource, because the client still has a previously-downloaded copy |
400 | Bad Request | The request is understood, but was refused. (This code is used when request parameters are invalid.) |
401 | Unauthorized | Authorization is required |
403 | Forbidden | Either access to the resource is forbidden or the wrong authentication data was provided |
404 | Not Found | Either the requested URI is invalid or the requested data does not exist |
405 | Method Not Allowed | The resource does not support given method |
406 | Not Supported Accept Type | The request used an Accept Type that isn’t supported |
410 | Not Supported API Version | The request used an API version that is no longer supported |
413 | Request Entity Too Large | The server refused to process the request because the request entity is larger than the server is willing or able to process |
415 | Not Supported Content-Type | The request used a Content-Type that isn’t supported |
500 | Internal Server Error | Something is broken, a called method ends with an error. |
503 | Service Unavailable | Velocity is temporarily unable to handle the request. This status code may be returned while functionality provided by the Velocity API is in the process of coming online, especially in the first few minutes after rebooting Velocity. The request should be retried later. |
If a request fails, the appropriate HTTP status code is returned. In addition, a JSON-formatted response body containing the following fields is returned:
Notice, however, that there is no specific error response format for v0 services.
Example:
{
"status": 404,
"errorId": "TEMPLATE_NOT_FOUND",
"message": "Specified template ID does not refer to any existing template",
"moreInfo": null
}
List of appropriate error codes is provided with each operation description. The following error code can be returned by any call requiring authentication:
The following error codes can possibly be returned by any call, and are not listed explicitly:
The following error codes can possibly be returned by any collection returning operation and are not listed explicitly:
Topologies can be defined in TBML or TOSCA YAML formats. Spirent TOSCA YAML specification can be found within velocity_types_1_0.yaml
Callback’s request body contains data in JSON format with the next properties:
{
"reservationId": "bf481e9e-fbe8-4f9f-bfcb-b1087d052b7c",
"resources": ["27706edc-608c-4955-a440-0e27852884bb", "1c091206-69f6-4e8b-820f-66a5608d8206"],
"eventType": "ACTIVATION_SUCCEEDED"
}
Inventory Service manages devices, templates, and drivers.
Returns device and port template list with basic information
Full URL: /velocity/api/inventory/v19/templates
Access Level: User
Returns:
Tags:
string
(optional) if specified, only templates whose names, descriptions, tags, property values match the string are returned
string
(optional) specifies a subset of templates to return (e.g., repository::pmrepo specifies all templates of repository “pmrepo”)
boolean
(optional) Default: false when true, resource dimensions and colours are returned for every device
200
Toggle {
"templates": [
{
"id": "92f8641c-eb38-442e-9bae-1287ae8110cf",
"name": "telnet",
"description": "",
"type": "DEVICE",
"parentId": null,
"isShared": true,
"reservationTime": "IMMEDIATE",
"driverId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "NONE",
"iconId": "f87fc3bf-f4de-9fg3-5ab0-543f6e231f9f",
"isReadOnly": false,
"tags": ["lab1"],
"creatorId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"created": 1378621237001,
"lastModifierId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"lastModified": 1378621237001,
"lastAction": "CREATED",
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null
}
]
}
Get templates to build tree of filtered templates. Response includes template if it is matched by filter or if it has children which are matched by filter.
Full URL: /velocity/api/inventory/v19/templates/tree
Access Level: User
Returns:
List of found templates:
Tags:
string
(optional) if specified, only templates whose names, descriptions, tags, property values match the string are returned
string
(optional) specifies a subset of templates to return (e.g., repository::pmrepo specifies all templates of repository “pmrepo”)
200
Toggle [
{
"template": {
"id": "e87359a8-610b-416f-8b1b-5816a6ffed27",
"creatorId": "2b1dbbbc-25e5-4e5f-a18d-1059c083c3cb",
"created": 1608266280300,
"lastModifierId": "2b1dbbbc-25e5-4e5f-a18d-1059c083c3cb",
"lastModified": 1608271858496,
"name": "LAB",
"description": "",
"type": "DEVICE",
"parentId": null,
"driverId": null,
"iconId": null,
"lastAction": "MODIFIED",
"tags": [],
"configAssetId": null,
"firmwareAssetId": null,
"configURI": null,
"firmwareURI": null,
"inheritConfig": false,
"inheritFirmware": false,
"isShared": true,
"interface": "NONE"
},
"matched": false
},
{
"template": {
"id": "c44a2def-bf54-4eea-84a1-f625ce57ad32",
"creatorId": "2b1dbbbc-25e5-4e5f-a18d-1059c083c3cb",
"created": 1608266293922,
"lastModifierId": "2b1dbbbc-25e5-4e5f-a18d-1059c083c3cb",
"lastModified": 1608273826457,
"name": "SUBLAB",
"description": "",
"type": "DEVICE",
"parentId": "e87359a8-610b-416f-8b1b-5816a6ffed27",
"driverId": null,
"iconId": null,
"lastAction": "MODIFIED",
"tags": [],
"configAssetId": null,
"firmwareAssetId": null,
"configURI": null,
"firmwareURI": null,
"inheritConfig": false,
"inheritFirmware": false,
"isShared": true,
"interface": "NONE"
},
"matched": true
}
]
Returns full structure of the exact device template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}
Access Level: User
Returns:
Error Codes:
string
(required) UUID of the device template
200
Toggle {
"id": "92f8641c-eb38-442e-9bae-1287ae8110cf",
"name": "telnet",
"description": "",
"type": "DEVICE",
"parentId": null,
"isRemoved": false,
"isShared": true,
"reservationTime": "IMMEDIATE",
"l2SwitchId":null,
"driverId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "NONE",
"iconId": "f87fc3bf-f4de-9fg3-5ab0-543f6e231f9f",
"isReadOnly": false,
"tags": ["lab1"],
"parentId": "12609110-8daf-48aa-866d-2c744a036599",
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null,
"propertyGroups": [
{
"id": "876c113e-407e-4fdd-bca9-6069b2ebc98c",
"name": "Group 1",
"isHidden": false,
"properties": [
{
"id": "b01cc4bf-c7ea-454c-8c15-154a3e615d4d",
"name": "property 1",
"defaultValue": null,
"isRequired": true,
"type": "TEXT",
"isInherited": true,
"availableValues": null,
"isReservationArgument": true
},
{
"id": "289bcd18-c595-4c49-8cbc-c5e96519889e",
"name": "property 2",
"isRequired": false,
"defaultValue": "6239847262876",
"type": "TEXT",
"isInherited": true,
"availableValues": null,
"isReservationArgument": true
},
{
"id": "e09cf773-717f-46c5-8d51-3dbae41a4a44",
"name": "property 3",
"isRequired": false,
"defaultValue": "123456",
"type": "TEXT",
"isInherited": false,
"availableValues": null,
"isReservationArgument": false
},
{
"id": "390461d5-11cb-407a-9701-a3410a156bbb",
"name": "property 4",
"isRequired": false,
"defaultValue": null,
"type": "DROP_DOWN_LIST",
"isInherited": false,
"availableValues": [
"FOO",
"BAR"
],
"isReservationArgument": false
}
]
}
],
"portGroups":[
{
"id": null,
"name": "No Group",
"portCount": 2,
"parentId": null
},
{
"id": "777a3322-94f0-4d62-891a-d88472399c0f",
"name": "port group",
"portCount": 42,
"parentId": null
}
],
"creatorId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"created": 1378621237001,
"lastModifierId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"lastModified": 1378621237001,
"lastAction": "CREATED",
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "12609110-8daf-48aa-866d-2c744a036599",
"driverId": null
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "92f8641c-eb38-442e-9bae-1287ae8110cf",
"driverId": null
}
],
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "12609110-8daf-48aa-866d-2c744a036599"
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "92f8641c-eb38-442e-9bae-1287ae8110cf"
}
]
}
Returns ports of the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}/ports
Access Level: User
Returns:
Tags:
Error Codes:
string
(required) UUID of the template to fetch ports from
string
(optional) if specified, only ports whose name, description or properties match the string are returned
boolean
(optional) Default: false when true, properties list is included for every port
200
Toggle {
"total": 3,
"offset": 0,
"count": 3,
"ports": [
{
"id": "7fac8653-43a1-40bb-b5b6-05d7dcb0c101",
"name": "0.1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": null,
"isShared": false,
"creatorId": "45bd044f-a429-4099-833a-abf34604ed1e",
"created": 1423834020405,
"lastModifierId": "45bd044f-a429-4099-833a-abf34604ed1e",
"lastModified": 1423834020405,
"lastAction": "CREATED"
},
{
"id": "d61af0fc-12d0-4994-a4e8-ea577b9237c0",
"name": "1.1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "ab01f802-08a4-482a-8d4a-d9f8e032ed64",
"isShared": false,
"creatorId": "45bd044f-a429-4099-833a-abf34604ed1e",
"created": 1424079667725,
"lastModifierId": "45bd044f-a429-4099-833a-abf34604ed1e",
"lastModified": 1424079667725,
"lastAction": "CREATED"
},
{
"id": "444a25d5-a713-4208-8ac7-e6a9af4b84a9",
"name": "1.2",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "ab01f802-08a4-482a-8d4a-d9f8e032ed64",
"isShared": false,
"creatorId": "45bd044f-a429-4099-833a-abf34604ed1e",
"created": 1424079667744,
"lastModifierId": "45bd044f-a429-4099-833a-abf34604ed1e",
"lastModified": 1424079667744,
"lastAction": "CREATED"
}
]
}
Returns information and ports of the port group specified by portGroupId
Full URL: /velocity/api/inventory/v19/template/{templateId}/port_group/{portGroupId}
Access Level: User
Returns:
The same set of fields as returned by GET /template/{templateId}/ports as well as:
Tags:
Error Codes:
string
(required) UUID of the template containing the port group
string
(required) UUID of the port group (“NONE” for ports without group)
200
Toggle {
"id": "ab01f802-08a4-482a-8d4a-d9f8e032ed64",
"name": "1",
"nestedGroups": [],
"total": 2,
"offset": 0,
"count": 2,
"ports": [
{
"id": "d61af0fc-12d0-4994-a4e8-ea577b9237c0",
"name": "1.1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "ab01f802-08a4-482a-8d4a-d9f8e032ed64",
"isShared": false,
"creatorId": "45bd044f-a429-4099-833a-abf34604ed1e",
"created": 1424079667725,
"lastModifierId": "45bd044f-a429-4099-833a-abf34604ed1e",
"lastModified": 1424079667725,
"lastAction": "CREATED"
},
{
"id": "444a25d5-a713-4208-8ac7-e6a9af4b84a9",
"name": "1.2",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "ab01f802-08a4-482a-8d4a-d9f8e032ed64",
"isShared": false,
"creatorId": "45bd044f-a429-4099-833a-abf34604ed1e",
"created": 1424079667744,
"lastModifierId": "45bd044f-a429-4099-833a-abf34604ed1e",
"lastModified": 1424079667744,
"lastAction": "CREATED"
}
]
}
Returns detailed information about the port specified by portId
Full URL: /velocity/api/inventory/v19/template/{templateId}/port/{portId}
Access Level: User
Returns:
The same info as returned by GET /template/{templateId}/ports plus:
Error Codes:
string
(required) UUID of the template to containing the port
string
(required) UUID of the port
200
Toggle {
"id": "d61af0fc-12d0-4994-a4e8-ea577b9237c0",
"name": "1.1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "ab01f802-08a4-482a-8d4a-d9f8e032ed64",
"isShared": false,
"creatorId": "45bd044f-a429-4099-833a-abf34604ed1e",
"created": 1424079667725,
"lastModifierId": "45bd044f-a429-4099-833a-abf34604ed1e",
"lastModified": 1424079667725,
"lastAction": "CREATED",
"properties": [
{
"definitionId": "9835abae-9e3a-4189-8631-bef2c1e232ef",
"name": "portNumber",
"value": "1.1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "233e6f96-d7fc-42c3-90b8-02310e94062e",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "0fb18040-477d-472f-a881-f645ee168d66",
"name": "Port Speed",
"value": "1000",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
}
Creates new template
Full URL: /velocity/api/inventory/v19/template
Access Level: Admin
Request Body:
JSON object containing the following fields:
Note: It is not recommended to pass configAssetId and configURI when inheritConfig is set to true. Otherwise only first of these three fields will be used in the reservation in the following order: inheritConfig, configAssetId, configURI. The same behavior is defined for inheritFirmware, firmwareAssetId, firmwareURI.
Returns:
Newly created template, the same as if returned by GET /template/{templateId}
Error Codes:
string
(optional) if specified, UUID of the template from which to copy ports (and port groups)
string
(optional) if specified, UUID of the template to copy nested templates from
{
"name": "My Server",
"description": "My server description...",
"type": "DEVICE",
"isShared": true,
"reservationTime": "IMMEDIATE",
"driverId": "e660edc3-e5b6-4ecd-bcd9-5a152ffb94ec",
"l2SwitchId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"parentId": "12609110-8daf-48aa-866d-2c744a036599",
"tags": ["server"],
"propertyGroups": [
{
"name": "System Identification",
"isHidden": false,
"properties": [
{
"name": "ipAddress",
"description": "System address -- IPv4 or IPv6",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isReservationArgument": true
},
{
"name": "Hostname",
"description": "Hostname",
"defaultValue": null,
"isRequired": false,
"type": "TEXT"
},
{
"name": "Make",
"description": "Example description",
"defaultValue": null,
"isRequired": false,
"type": "TEXT"
},
{
"name": "Model",
"description": "Example: Test Center, Avalanche, Landslide..., etc",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isReservationArgument": true
},
{
"name": "Serial Number",
"description": "Example: 3D543HIH12",
"defaultValue": null,
"isRequired": false,
"type": "TEXT"
}
]
},
{
"name": "Location Information",
"isHidden": false,
"properties": [
{
"name": "Facility",
"description": "Example: San Jose - Site 2",
"defaultValue": null,
"isRequired": false,
"type": "TEXT"
},
{
"name": "Room",
"description": "Example: Eng Lab 3",
"defaultValue": null,
"isRequired": false,
"type": "TEXT"
},
{
"name": "Floor Position",
"description": "Example: Rack 34-Chassis 3",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isReservationArgument": true
}
]
}
],
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"driverId": null
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED"
}
],
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "12609110-8daf-48aa-866d-2c744a036599"
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": null
}
]
}
200
Toggle {
"id": "d5bd4e8b-a774-4905-bda3-d8e5a362b0f2",
"name": "My Server",
"description": "My server description...",
"type": "DEVICE",
"parentId": null,
"isShared": true,
"reservationTime": "IMMEDIATE",
"l2SwitchId": null,
"driverId": "e660edc3-e5b6-4ecd-bcd9-5a152ffb94ec",
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"iconId": null,
"isReadOnly": false,
"tags": ["server"],
"width": 300,
"height": 100,
"fillColour": "#D6F693",
"lineColour": null,
"propertyGroups": [
{
"id": "e8a3192b-061c-42d0-ba95-53f18796c478",
"name": "Location Information",
"isHidden": false,
"properties": [
{
"id": "9ed09fa7-8d24-4803-b70b-0473025504b9",
"name": "Facility",
"description": "Example: San Jose - Site 2",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "ddfb9d3b-6796-49d0-822f-4c5e8f5765da",
"name": "Floor Position",
"description": "Example: Rack 34-Chassis 3",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "9e647c07-ee9b-40f4-941d-b07087fd1053",
"name": "Room",
"description": "Example: Eng Lab 3",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
}
]
},
{
"id": "9b24d0dd-e19d-4989-b1be-2817519c13b2",
"name": "System Identification",
"isHidden": false,
"properties": [
{
"id": "7269f297-be09-4cdb-ae28-0ed2b6828733",
"name": "Hostname",
"description": "Hostname",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "fbecc1c7-fbd2-4cfd-ab53-7d36ab18cf95",
"name": "Make",
"description": "Example description",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "f57eed49-d57f-4065-9514-415f9b9dc408",
"name": "Model",
"description": "Example: Test Center, Avalanche, Landslide..., etc",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "6d816104-1b69-4c9d-8f3d-00021cf6e4b4",
"name": "Serial Number",
"description": "Example: 3D543HIH12",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "c1aa3a07-4d9a-4f8c-b221-a7ff680bd6c6",
"name": "ipAddress",
"description": "System address -- IPv4 or IPv6",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
}
]
}
],
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431924092079,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431924092079,
"lastAction": "CREATED",
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "12609110-8daf-48aa-866d-2c744a036599",
"driverId": null
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "d5bd4e8b-a774-4905-bda3-d8e5a362b0f2",
"driverId": null
}
],
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "12609110-8daf-48aa-866d-2c744a036599"
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "d5bd4e8b-a774-4905-bda3-d8e5a362b0f2"
}
]
}
Creates port group for the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}/port_group
Access Level: Admin
Request Body:
JSON object with the following fields:
Returns:
Newly created template port group, the same as if returned by GET /template/{templateId}/port_group/{portGroupId}
Error Codes:
string
(required) UUID of the template to create the port group in
Creates port for the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}/port
Access Level: Admin
Request Body:
JSON object with a subset of the following fields:
Returns:
Newly created template port, the same as if returned by GET /template/{templateId}/port/{portId}
Error Codes:
string
(required) UUID of the template to create the port in
{
"name" : "LAN.1",
"description" : "",
"templateId" : "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId" : "78773962-8aab-4f75-af39-8bb257626622",
"isShared" : false,
"properties" : [
{
"definitionId" : "e76e1ad7-e886-4911-9937-3e12824cfa2d",
"value" : "LAN.1"
},
{
"definitionId" : "261b5dae-a8a5-42e6-9289-97c568705692",
"value" : "Ethernet"
},
{
"definitionId" : "2a19de61-12c1-47c4-8711-8b43f7ce265a",
"value" : 1000
}
]
}
200
Toggle {
"id": "3cd8822b-13a3-4930-a1c4-6fc0889bb6ac",
"name": "LAN.1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "78773962-8aab-4f75-af39-8bb257626622",
"isShared": false,
"creatorId": "538185df-0161-4fdc-b214-eefbd4f2d25d",
"created": 1424353576137,
"lastModifierId": "538185df-0161-4fdc-b214-eefbd4f2d25d",
"lastModified": 1424353576137,
"lastAction": "CREATED",
"properties": [
{
"definitionId": "2a19de61-12c1-47c4-8711-8b43f7ce265a",
"name": "Port Speed",
"value": "1000",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "261b5dae-a8a5-42e6-9289-97c568705692",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e76e1ad7-e886-4911-9937-3e12824cfa2d",
"name": "portNumber",
"value": "LAN.1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
}
Creates ports for the template specified by templateId.
Full URL: /velocity/api/inventory/v19/template/{templateId}/ports
Access Level: Admin
Request Body:
JSON object with a subset of the following fields:
Returns:
List of newly created template ports with the same fields as if returned by GET /template/{templateId}/port/{portId}
Error Codes:
string
(required) UUID of the template to create ports in
{
"ports": [
{
"name": "Lan 1",
"description": "This is a template port.",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "a57cd064-4c08-4b18-8e47-7e6016e61a95",
"isShared": false,
"properties": [
{
"definitionId": "f6fd7aa3-4656-4e30-bf06-0249f127f920",
"value": "Lan 1"
},
{
"definitionId": "17dbdee5-97e2-4b61-8082-4371815d84a8",
"value": "Ethernet"
},
{
"definitionId": "78e8e862-5085-43f3-a42b-c11ea4237d0b",
"value": "1000"
}
]
},
{
"name": "Lan 2",
"description": "This is a template port.",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "a57cd064-4c08-4b18-8e47-7e6016e61a95",
"isShared": false,
"properties": [
{
"definitionId": "f6fd7aa3-4656-4e30-bf06-0249f127f920",
"value": "Lan 2"
},
{
"definitionId": "17dbdee5-97e2-4b61-8082-4371815d84a8",
"value": "Ethernet"
},
{
"definitionId": "78e8e862-5085-43f3-a42b-c11ea4237d0b",
"value": "1000"
}
]
}
]
}
200
Toggle {
"ports": [
{
"id": "6ca19f9f-8ade-4c9b-b987-a982c746f00e",
"name": "Lan 1",
"description": "This is a template port.",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "a57cd064-4c08-4b18-8e47-7e6016e61a95",
"isShared": false,
"creatorId": "c4fb7a83-b10d-4634-8d7f-7dac4e328781",
"created": 1435044913497,
"lastModifierId": "c4fb7a83-b10d-4634-8d7f-7dac4e328781",
"lastModified": 1435044913497,
"lastAction": "CREATED",
"properties": [
{
"definitionId": "f6fd7aa3-4656-4e30-bf06-0249f127f920",
"name": "portNumber",
"value": "Lan 1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "17dbdee5-97e2-4b61-8082-4371815d84a8",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "78e8e862-5085-43f3-a42b-c11ea4237d0b",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "47f9a743-458f-4934-b3a0-aa28ca2c46c5",
"name": "Lan 2",
"description": "This is a template port.",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "a57cd064-4c08-4b18-8e47-7e6016e61a95",
"isShared": false,
"creatorId": "c4fb7a83-b10d-4634-8d7f-7dac4e328781",
"created": 1435044913438,
"lastModifierId": "c4fb7a83-b10d-4634-8d7f-7dac4e328781",
"lastModified": 1435044913438,
"lastAction": "CREATED",
"properties": [
{
"definitionId": "f6fd7aa3-4656-4e30-bf06-0249f127f920",
"name": "portNumber",
"value": "Lan 2",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "17dbdee5-97e2-4b61-8082-4371815d84a8",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "78e8e862-5085-43f3-a42b-c11ea4237d0b",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
}
]
}
]
}
Updates the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}
Access Level: Admin
Request Body:
JSON object containing any subset of fields from the corresponding POST request. Sub-fields (propertyGroups and properties) are updated by corresponding IDs. If ID is null for a sub-field, it is added to the template.
Returns:
Newly updated template, the same as if returned by GET /template/{templateId}
Error Codes:
string
(required) boolean
(optional) Default: false if true, sets icon of all the inherited templates and resources to be the same as iconId
boolean
(optional) Default: false when true, template properties are fully replaced with the passed data, e.g., if an existing property is not presented in the request, that property will be removed.
{
"name": "Common Server",
"description": "",
"type": "DEVICE",
"parentId": "12609110-8daf-48aa-866d-2c744a036599",
"isShared": true,
"reservationTime": "IMMEDIATE",
"driverId": "e660edc3-e5b6-4ecd-bcd9-5a152ffb94ec",
"l2SwitchId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"iconId": null,
"tags": ["server"],
"propertyGroups": [
{
"id": "e8a3192b-061c-42d0-ba95-53f18796c478",
"name": "Location Information",
"isHidden": false,
"properties": [
{
"id": "9ed09fa7-8d24-4803-b70b-0473025504b9",
"name": "Facility",
"description": "Example: San Jose - Site 2",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "ddfb9d3b-6796-49d0-822f-4c5e8f5765da",
"name": "Floor Position",
"description": "Example: Rack 34-Chassis 3",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null,
"isReservationArgument": true
},
{
"id": "9e647c07-ee9b-40f4-941d-b07087fd1053",
"name": "Room",
"description": "Example: Eng Lab 3",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
}
]
},
{
"id": "9b24d0dd-e19d-4989-b1be-2817519c13b2",
"name": "System Identification",
"isHidden": false,
"properties": [
{
"id": "7269f297-be09-4cdb-ae28-0ed2b6828733",
"name": "Hostname",
"description": "Hostname",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "fbecc1c7-fbd2-4cfd-ab53-7d36ab18cf95",
"name": "Make",
"description": "Example description",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "f57eed49-d57f-4065-9514-415f9b9dc408",
"name": "Model",
"description": "Example: Test Center, Avalanche, Landslide..., etc",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "6d816104-1b69-4c9d-8f3d-00021cf6e4b4",
"name": "Serial Number",
"description": "Example: 3D543HIH12",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "c1aa3a07-4d9a-4f8c-b221-a7ff680bd6c6",
"name": "ipAddress",
"description": "System address -- IPv4 or IPv6",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
}
]
}
],
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"driverId": null
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"driverId": null
}
],
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "12609110-8daf-48aa-866d-2c744a036599"
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": null
}
]
}
200
Toggle {
"id": "d5bd4e8b-a774-4905-bda3-d8e5a362b0f2",
"name": "Common Server",
"description": "",
"type": "DEVICE",
"parentId": null,
"isShared": true,
"reservationTime": "IMMEDIATE",
"driverId": "e660edc3-e5b6-4ecd-bcd9-5a152ffb94ec",
"l2SwitchId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"iconId": null,
"isReadOnly": true,
"tags": ["server"],
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null,
"propertyGroups": [
{
"id": "e8a3192b-061c-42d0-ba95-53f18796c478",
"name": "Location Information",
"isHidden": false,
"properties": [
{
"id": "9ed09fa7-8d24-4803-b70b-0473025504b9",
"name": "Facility",
"description": "Example: San Jose - Site 2",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "ddfb9d3b-6796-49d0-822f-4c5e8f5765da",
"name": "Floor Position",
"description": "Example: Rack 34-Chassis 3",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "9e647c07-ee9b-40f4-941d-b07087fd1053",
"name": "Room",
"description": "Example: Eng Lab 3",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
}
]
},
{
"id": "9b24d0dd-e19d-4989-b1be-2817519c13b2",
"name": "System Identification",
"isHidden": false,
"properties": [
{
"id": "7269f297-be09-4cdb-ae28-0ed2b6828733",
"name": "Hostname",
"description": "Hostname",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "fbecc1c7-fbd2-4cfd-ab53-7d36ab18cf95",
"name": "Make",
"description": "Example description",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "f57eed49-d57f-4065-9514-415f9b9dc408",
"name": "Model",
"description": "Example: Test Center, Avalanche, Landslide..., etc",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "6d816104-1b69-4c9d-8f3d-00021cf6e4b4",
"name": "Serial Number",
"description": "Example: 3D543HIH12",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
},
{
"id": "c1aa3a07-4d9a-4f8c-b221-a7ff680bd6c6",
"name": "ipAddress",
"description": "System address -- IPv4 or IPv6",
"defaultValue": null,
"isRequired": false,
"type": "TEXT",
"isInherited": false,
"availableValues": null
}
]
}
],
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431924092079,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431924741173,
"lastAction": "MODIFIED",
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "12609110-8daf-48aa-866d-2c744a036599",
"driverId": null
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "d5bd4e8b-a774-4905-bda3-d8e5a362b0f2",
"driverId": null
}
],
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "12609110-8daf-48aa-866d-2c744a036599"
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "d5bd4e8b-a774-4905-bda3-d8e5a362b0f2"
}
]
}
Updates port group in the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}/port_group/{portGroupId}
Access Level: Admin
Request Body:
JSON object with any subset of fields from the corresponding POST request, except parentId
Returns:
Newly updated template port group, the same as if returned by GET /template/{templateId}/port_group/{portGroupId}
Error Codes:
string
(required) UUID of the template containing the port group
string
(required) UUID of the port group to update
Updates port in the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}/port/{portId}
Access Level: Admin
Request Body:
JSON object with any subset of fields from the corresponding POST request
Returns:
Newly updated template port, the same as if returned by GET /template/{templateId}/port/{portId}
Error Codes:
string
(required) UUID of the template containing port to update
string
(required) UUID of the port to update
{
"name" : "LAN.1",
"description" : "",
"templateId" : "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId" : null,
"isShared" : false,
"properties" : [
{
"definitionId" : "e76e1ad7-e886-4911-9937-3e12824cfa2d",
"value" : "LAN.1"
},
{
"definitionId" : "261b5dae-a8a5-42e6-9289-97c568705692",
"value" : "Ethernet"
},
{
"definitionId" : "2a19de61-12c1-47c4-8711-8b43f7ce265a",
"value" : 1000
}
]
}
200
Toggle {
"id": "3cd8822b-13a3-4930-a1c4-6fc0889bb6ac",
"name": "LAN.1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": null,
"isShared": false,
"creatorId": "538185df-0161-4fdc-b214-eefbd4f2d25d",
"created": 1424353576137,
"lastModifierId": "538185df-0161-4fdc-b214-eefbd4f2d25d",
"lastModified": 1424353677064,
"lastAction": "MODIFIED",
"properties": [
{
"definitionId": "2a19de61-12c1-47c4-8711-8b43f7ce265a",
"name": "Port Speed",
"value": "1000",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "261b5dae-a8a5-42e6-9289-97c568705692",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e76e1ad7-e886-4911-9937-3e12824cfa2d",
"name": "portNumber",
"value": "LAN.1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
}
Updates ports in the template specified by templateId.
Full URL: /velocity/api/inventory/v19/template/{templateId}/ports
Access Level: Admin
Request Body:
JSON object with a subset of the following fields:
Returns:
List of newly updated template ports with the same fields as if returned by GET /template/{templateId}/port/{portId}
Error Codes:
string
(required) UUID of the template to update
{
"ports": [
{
"id": "6ca19f9f-8ade-4c9b-b987-a982c746f00e",
"name": "Lan 1.1"
},
{
"id": "47f9a743-458f-4934-b3a0-aa28ca2c46c5",
"name": "Lan 1.2"
}
]
}
200
Toggle {
"ports": [
{
"id": "6ca19f9f-8ade-4c9b-b987-a982c746f00e",
"name": "Lan 1.1",
"description": "This is a template port.",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "a57cd064-4c08-4b18-8e47-7e6016e61a95",
"isShared": false,
"creatorId": "c4fb7a83-b10d-4634-8d7f-7dac4e328781",
"created": 1435044913497,
"lastModifierId": "c4fb7a83-b10d-4634-8d7f-7dac4e328781",
"lastModified": 1435045088048,
"lastAction": "MODIFIED",
"properties": [
{
"definitionId": "f6fd7aa3-4656-4e30-bf06-0249f127f920",
"name": "portNumber",
"value": "Lan 1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "17dbdee5-97e2-4b61-8082-4371815d84a8",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "78e8e862-5085-43f3-a42b-c11ea4237d0b",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "47f9a743-458f-4934-b3a0-aa28ca2c46c5",
"name": "Lan 1.2",
"description": "This is a template port.",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "a57cd064-4c08-4b18-8e47-7e6016e61a95",
"isShared": false,
"creatorId": "c4fb7a83-b10d-4634-8d7f-7dac4e328781",
"created": 1435044913438,
"lastModifierId": "c4fb7a83-b10d-4634-8d7f-7dac4e328781",
"lastModified": 1435045088097,
"lastAction": "MODIFIED",
"properties": [
{
"definitionId": "f6fd7aa3-4656-4e30-bf06-0249f127f920",
"name": "portNumber",
"value": "Lan 2",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "17dbdee5-97e2-4b61-8082-4371815d84a8",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "78e8e862-5085-43f3-a42b-c11ea4237d0b",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
}
]
}
]
}
Deletes the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}
Access Level: Admin
Error Codes:
string
(required) UUID of the template to delete
boolean
(optional) Default: false By default, this request returns TEMPLATE_IN_USE error if the template has any child templates or resources. When this parameter is true, all the child templates, and all inherited resources (devices or ports) will be permanently deleted together with this template.
Deletes property group specified by propertyGroupId in the template specified by templateId. All nested property definitions are also deleted.
Full URL: /velocity/api/inventory/v19/template/{templateId}/property_group/{propertyGroupId}
Access Level: Admin
Error Codes:
string
(required) UUID of the template
string
(required) UUID of the property group to delete
Deletes property definition specified by propertyId from the group specified by propertyGroupId in the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}/property_group/{propertyGroupId}/property/{propertyId}
Access Level: Admin
Error Codes:
string
(required) UUID of the template
string
(required) UUID of the property group containing the property definition
string
(required) UUID of the property definition to remove
Deletes the port group specified by portGroupId and all its contained ports located in the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}/port_group/{portGroupId}
Access Level: Admin
Error Codes:
string
(required) UUID of the template
string
(required) UUID of the port group to remove
Deletes the port specified by portId located in the template specified by templateId
Full URL: /velocity/api/inventory/v19/template/{templateId}/port/{portId}
Access Level: Admin
Error Codes:
string
(required) UUID of the template containing the port to remove
string
(required) UUID of the port to remove
Deletes ports located in the template specified by templateId.
Full URL: /velocity/api/inventory/v19/template/{templateId}/ports
Access Level: Admin
Request Body:
JSON body with the following fields:
Error Codes:
string
(required) UUID of the template containing the port to remove
string
(optional) if specified, only ports whose name, description or properties match the string are deleted
{
"ids": ["6ca19f9f-8ade-4c9b-b987-a982c746f00e", "47f9a743-458f-4934-b3a0-aa28ca2c46c5"]
}
Returns list of parent templates the templates is nestetd under
Full URL: /velocity/api/inventory/v19/template/{templateId}/parent_templates
Access Level: User
Returns:
Template list represented the same way as in GET /templates
Error Codes:
string
(required) UUID of the template to fetch parent templates from
200
Toggle {
"templates": [
{
"id": "92f8641c-eb38-442e-9bae-1287ae8110cf",
"name": "telnet",
"description": "",
"type": "DEVICE",
"parentId": null,
"isShared": true,
"driverId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "NONE",
"iconId": "f87fc3bf-f4de-9fg3-5ab0-543f6e231f9f",
"tags": ["lab1"],
"creatorId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"created": 1378621237001,
"lastModifierId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"lastModified": 1378621237001,
"lastAction": "CREATED"
}
]
}
Returns list of nested templates
Full URL: /velocity/api/inventory/v19/template/{templateId}/nested_templates
Access Level: User
Returns:
Tags:
Error Codes:
string
(required) UUID of the template to fetch nested templates from
200
Toggle {
"total": 1,
"count": 1,
"offset": 0,
"items": [
{
"id": "64c64cc0-52fa-48da-9f49-2f140f2aed08",
"templateId": "4ac5b3a8-cf36-4df1-b9a7-acd016ab5af8",
"inherited": false,
"hasNestedTemplates" true
}
]
}
Adds a new nested template
Full URL: /velocity/api/inventory/v19/template/{templateId}/nested_template
Access Level: Admin
Request Body:
JSON object with a subset of the following fields:
Returns:
Error Codes:
string
(required) UUID of the parent template to add nested template to
Deletes nested templates
Full URL: /velocity/api/inventory/v19/nested_templates_delete
Access Level: Admin
Request Body:
JSON object with a subset of the following fields:
Error Codes:
{
"ids": [
"a2954242-d657-447e-99c3-d6a786b8dcb1",
"51fb4818-fbff-4728-978c-bb75c7bb7b24"
]
}
Returns sessions of the template specified by templateId (including enabled sessions of the parent resource)
Full URL: /velocity/api/inventory/v19/template/{templateId}/sessions
Access Level: User
Returns:
Tags:
Error Codes:
string
(required) UUID of the template
200
Toggle {
"total": 1,
"offset": 0,
"count": 1,
"sessions": [
{
"id": "32ef965b-b7ed-45f7-a0c2-124c69568bb7",
"name": "RM-17421",
"language": "Python",
"baseProfile": "application://com.fnfr.svt.applications.ssh",
"baseApplication": "com.fnfr.svt.applications.ssh",
"isDisabled": false,
"isInherited": false,
"properties": null
}
]
}
Returns information and merged properties of the resource session specified by sessionId
Full URL: /velocity/api/inventory/v19/template/{templateId}/session/{sessionId}?merge=<NO/INVENTORY/FULL>
Access Level: User
Returns:
Error Codes:
string
(required) UUID of the template
string
(required) UUID of the session
<no/inventory/full>
(required) merge level. Default NO
200
Toggle {
"id": "cb269ae2-b3c5-46e0-9b74-8a53075bdbf9",
"name": "new_session",
"language": "Python",
"baseProfile": "application://com.fnfr.svt.applications.ssh",
"baseApplication": "com.fnfr.svt.applications.ssh",
"isDisabled": false,
"isInherited": false,
"properties": {
"type": "com.fnfr.svt.applications.ssh.documents.SSHProperties",
"TerminalProperties": {
"prompts": {
"items": [
{
"Content": "root_p1",
"name": "prompt1"
},
{
"Content": "root_p2",
"name": "prompt2",
"TypeOfPrompt": "MORE"
},
{
"HAPromptType": "NORMAL",
"MatchMethod": "NORMAL",
"Content": "local_p3",
"name": "localprompt1"
}
],
"useInherited": true
}
},
"agentRequirements": {
"useInherited": true
}
},
"inheritedProperties": null
}
Creates session for the template by templateId. Validates and throws an error if there are validation errors
Full URL: /velocity/api/inventory/v19/template/{templateId}/session
Access Level: Admin
Request Body:
JSON object with the following fields:
baseProfile: session URI (project://project_repository/project_name/path/name.ffsp or application://{session_type})
baseApplication: type of the session (com.fnfr.svt.applications.ssh or com.fnfr.svt.applications.telnet)
Returns:
Newly created session, the same as if returned by GET /template/{templateId}/session/{sessionId}
Error Codes:
string
(required) UUID of the template to add session to
200
Toggle {
"id": "cb269ae2-b3c5-46e0-9b74-8a53075bdbf9",
"name": "new_session",
"language": "Python",
"baseProfile": "application://com.fnfr.svt.applications.ssh",
"baseApplication": "com.fnfr.svt.applications.ssh",
"isDisabled": false,
"isInherited": false,
"properties": null
}
Updates session in the resource by sessionId. Validates and throws an error if there are validation errors. Only isDisable and properties can be updated for inherited session. The other fields (name, uri etc) will ignored.
Full URL: /velocity/api/inventory/v19/template/{templateId}/session/{sessionId}
Access Level: Admin
Request Body:
JSON object with the following fields:
if any field is missed or is null then it meens that this field inherited value from parent resource
Returns:
Updated session, the same as if returned by GET /template/{templateId}/session/{sessionId}
Error Codes:
string
(required) UUID of the template to update session to
string
(required) UUID of the session
200
Toggle {
"id": "cb269ae2-b3c5-46e0-9b74-8a53075bdbf9",
"name": "new_session",
"language": "Python",
"baseProfile": "application://com.fnfr.svt.applications.ssh",
"baseApplication": "com.fnfr.svt.applications.ssh",
"isDisabled": false,
"isInherited": false,
"properties": null
}
Cascade deletes the session specified by sessionId.
This operation is available for own sessions only. Returns UNSUPPORTED_OPERATION for inherited sessions.
Full URL: /velocity/api/inventory/v19/template/{templateId}/session/{sessionId}
Access Level: Admin
Error Codes:
string
(required) UUID of the template to delete session from
string
(required) UUID of the session
Check if there are conflicts down the inheritance tree (name collisions in the child resources).
Full URL: /velocity/api/inventory/v19/template/{templateId}/check_session_name?name={name}
Access Level: User
Returns:
* isValid (boolean)
string
(required) UUID of the template
200
Toggle {
"isValid": false
}
Validate the list of session of specified resource. Checks:
Full URL: /velocity/api/inventory/v19/template/{templateId}/validate_sessions
Access Level: User
Returns:
string
(required) UUID of the template
Returns the list of resources which override the specified session.
This operation is used before deleting of session.
This operation is available for own sessions only. Returns UNSUPPORTED_OPERATION for inherited sessions.
Full URL: /velocity/api/inventory/v19/template/{resourceId}/session/{sessionId}/check_before_delete
Access Level: User
Returns:
Error Codes:
string
(required) UUID of the resource
string
(required) UUID of the session
Returns the list of resources which override the specified session.
This operation is used before disabling of session.
Full URL: /velocity/api/inventory/v19/template/{resourceId}/session/{sessionId}/check_before_disable
Access Level: User
Returns:
string
(required) UUID of the template
string
(required) UUID of the session
Full URL: /velocity/api/inventory/v19/folders
Access Level: User
Returns:
Full device folder structure
200
Toggle {
"id": null,
"name": "Root Folder",
"parentId": null,
"deviceCount": 83,
"folders": [
{
"id": "3080c247-a351-4171-a0e7-05df813f68ec",
"name": "NMAP",
"parentId": null,
"deviceCount": 33,
"folders": []
},
{
"id": "55516350-e0e6-4c92-ba7b-1e9c69ed6f76",
"name": "NMAP1",
"parentId": null,
"deviceCount": 56,
"folders": []
}
]
}
Returns information about the folder specified by folderId
Full URL: /velocity/api/inventory/v19/folder/{folderId}
Access Level: User
Returns:
Error Codes:
string
(required) UUID of the folder (“ROOT” for root folder)
200
Toggle {
"id": "3080c247-a351-4171-a0e7-05df813f68ec",
"name": "NMAP",
"parentId": null,
"deviceCount": 87
}
Creates a new device folder
Full URL: /velocity/api/inventory/v19/folder
Access Level: Admin
Request Body:
JSON body with the following fields:
Returns:
Newly created folder, the same as if returned by GET /folder/{folderId}
Error Codes:
Updates the device folder specified by folderId
Full URL: /velocity/api/inventory/v19/folder/{folderId}
Access Level: Admin
Request Body:
JSON object with any subset of the following fields:
Returns:
Newly updated folder, the same as if returned by GET /folder/{folderId}
string
(required) UUID of the folder to update
Deletes the folder specified by folderId as well as its subfolders with all contained devices
Full URL: /velocity/api/inventory/v19/folder/{folderId}
Access Level: Admin
string
(required) UUID of the folder
Returns basic information about all devices in the inventory
Full URL: /velocity/api/inventory/v19/devices
Access Level: User
Returns:
Basic information about all devices in the inventory
Tags:
string
(optional) Will return info only about devices whose names, descriptions, or properties match the string
boolean
(optional) when true, only devices containing 1 or more ports are returned. When false, only devices without ports are returned.
boolean
(optional) Default: false when true, property list is returned for every device
boolean
(optional) Default: false when true, port group list is returned for every device
boolean
(optional) Default: false when true, port group names will be considered while searching
boolean
(optional) Default: false when true, resource dimensions and colours are returned for every device
200
Toggle {
"total": 1,
"offset": 0,
"count": 1,
"devices": [
{
"id": "a642c0a2-5b08-4d61-b328-ac62f5870abf",
"name": "Test Switch",
"description": "",
"templateId": "f56c0a5-7b45-4d23-f743-cd45f6854acd",
"folderId": "ac03eafc-a5bd-3419-9435-46712920ca23",
"isOnline": true,
"isLocked": true,
"isShared": true,
"reservationTime": "IMMEDIATE",
"linkChecked": 1378621237200,
"iconId": "a642c0a2-5b08-4d61-b328-ac62f5870abf",
"vlanIdSet": "300-400",
"isOutOfService": false,
"outOfServiceReason": "MANUAL",
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": [],
"driverId": "c345c0a2-5b15-2d61-f332-bf62f5870dbc",
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "CONFIGURABLE_LAYER2_SWITCH",
"portCount": 2,
"consoleUrls": [
{
"id": "cc03eafc-5b15-2d61-f332-bf62f5879733",
"name": "SSH",
"url": "ssh://127.0.0.1",
"clientUrl": "http://velocity.example.com/terminal?hostname=127.0.0.1&protocol=ssh&port=22"
}
],
"connectedPortCount": 1,
"creatorId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"created": 1378621237001,
"lastModifierId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"lastModified": 1378621237200,
"lastAction": "LOCKED",
"deviceGroups": ["5f744d00-ea76-4454-9665-8690fb0f1ffe"],
"isPollingEnabled": true,
"lockUtilizationType": "SHARED",
"isEphemeral": false,
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null,
"nestedCoordinates": {
"column": "A",
"row": 1
}
}
]
}
Same as GET /devices but additionally supports optional Request Body (see below).
Full URL: /velocity/api/inventory/v19/devices
Access Level: User
Request Body:
Optional JSON with the following field:
Returns:
Device list represented the same way as in GET /devices
Tags:
string
(optional) Will return info only about devices whose names, descriptions, or properties match the string
boolean
(optional) when true, only devices containing 1 or more ports are returned. When false, only devices without ports are returned.
boolean
(optional) Default: false when true, property list is returned for every device
boolean
(optional) Default: false when true, port group list is returned for every device
boolean
(optional) Default: false when true, port group names will be considered while searching
{
"ids": [
"f3128eb7-a48f-429b-9401-718641a3359b",
"d29ab5d5-f740-4b1b-8509-59c8d87efda6",
"dc73e8f8-2627-4371-a564-5380c4baffba"
]
}
200
Toggle {
"total": 3,
"offset": 0,
"count": 3,
"devices": [
{
"id": "f3128eb7-a48f-429b-9401-718641a3359b",
"name": "Server #1",
"description": "",
"templateId": "f64b12a8-0d56-4470-9208-329b9b45c647",
"folderId": null,
"isOnline": false,
"isLocked": false,
"isShared": true,
"linkChecked": null,
"driverId": "e660edc3-e5b6-4ecd-bcd9-5a152ffb94ec",
"configAssetId": null,
"configURI" : null,
"inheritConfig": true,
"firmwareAssetId": null,
"firmwareURI": null,
"inheritFirmware": true,
"interface": "MANAGEMENT",
"iconId": "79c67ff5-df6e-4e81-9b67-d5a2fc9a1bb8",
"vlanIdSet": null,
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": [],
"portCount": 3,
"connectedPortCount": 1,
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1430993694327,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1430993694868,
"lastAction": "MODIFIED",
"isPollingEnabled": false
},
{
"id": "d29ab5d5-f740-4b1b-8509-59c8d87efda6",
"name": "Server #2",
"description": "",
"templateId": "f64b12a8-0d56-4470-9208-329b9b45c647",
"folderId": null,
"isOnline": false,
"isLocked": false,
"isShared": true,
"linkChecked": null,
"driverId": "e660edc3-e5b6-4ecd-bcd9-5a152ffb94ec",
"configAssetId": null,
"configURI" : null,
"inheritConfig": true,
"firmwareAssetId": null,
"firmwareURI": null,
"inheritFirmware": true,
"interface": "MANAGEMENT",
"iconId": "b9b42634-c5d3-4614-a9e9-97b4d13e4a12",
"vlanIdSet": null,
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": [],
"portCount": 3,
"connectedPortCount": 1,
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1430993694969,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1430993695273,
"lastAction": "MODIFIED",
"isPollingEnabled": false
},
{
"id": "dc73e8f8-2627-4371-a564-5380c4baffba",
"name": "Server #3",
"description": "",
"templateId": "f64b12a8-0d56-4470-9208-329b9b45c647",
"folderId": null,
"isOnline": false,
"isLocked": false,
"isShared": true,
"linkChecked": null,
"driverId": "e660edc3-e5b6-4ecd-bcd9-5a152ffb94ec",
"configAssetId": null,
"configURI" : null,
"inheritConfig": true,
"firmwareAssetId": null,
"firmwareURI": null,
"inheritFirmware": true,
"interface": "MANAGEMENT",
"iconId": "db838809-2ee2-4299-a97e-778ea1e70533",
"vlanIdSet": null,
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": [],
"portCount": 3,
"connectedPortCount": 1,
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1430993695342,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1430993695664,
"lastAction": "MODIFIED",
"isPollingEnabled": false
}
]
}
Returns information and properties of the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}
Access Level: User
Returns:
The same information as returned by GET /devices as well as isRemoved field, tags info, properties info and port groups info:
Error Codes:
string
(required) UUID of the device
200
Toggle {
"id":"5773ca7e-85cd-4e76-9882-022ef49487c7",
"name":"100.100.100.100",
"description":"",
"templateId":"14a624f4-76eb-4790-93c5-800693c9775e",
"folderId":null,
"isRemoved":false,
"isOnline":false,
"isLocked": false,
"isShared":true,
"linkChecked":null,
"driverId":"565b35cf-2764-44c7-8312-a3be6dec9997",
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface":"MANAGEMENT",
"iconId":null,
"vlanIdSet":null,
"isOutOfService": false,
"outOfServiceReason": "MANUAL",
"outOfServiceTill": null,
"isReservedPrivately": false,
"isRefreshing": false,
"isDiscovering": false,
"tags":[],
"portCount":50,
"connectedPortCount":1,
"properties":[
{
"definitionId":"5f2d1c8c-3696-4aac-8fc8-befc5fa038c3",
"name":"community",
"value":"public",
"type":"TEXT",
"groupName":"Credentials",
"availableValues":null
},
{
"definitionId":"0be0b852-c3fd-4d60-aa5c-c30dbb4d7bd0",
"name":"ipAddress",
"value":"100.100.100.100",
"type":"TEXT",
"groupName":"Identification Attributes",
"availableValues":null
}
],
"portGroups":[
{
"id":null,
"name":"No Group",
"portCount":0,
"parentId": null
},
{
"id":"412a3322-94f0-4d62-891a-d88472399c0f",
"name":"port group",
"portCount":50,
"parentId": null
}
],
"consoleUrls": [
{
"id": "cc03eafc-5b15-2d61-f332-bf62f5879733",
"name": "SSH",
"url": "ssh://127.0.0.1",
"clientUrl": "http://velocity.example.com/terminal?hostname=127.0.0.1&protocol=ssh&port=22"
}
],
"creatorId":"cb8342b4-403a-4c69-a942-40710484540a",
"created":1381902677240,
"lastModifierId":"cb8342b4-403a-4c69-a942-40710484540a",
"lastModified":1381981789756,
"lastAction":"RELEASED",
"userPermissions": [
{
"userId": "fac31d0a-4f2f-4d0b-8e9c-4ed8b0aca67c",
"permission": "CONSOLE_ADMIN"
},
{
"userId": "9ca74477-25f9-4557-9e54-373d13002ed7",
"permission": "CONSOLE_READ_WRITE"
}
],
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "14a624f4-76eb-4790-93c5-800693c9775e",
"driverId": "565b35cf-2764-44c7-8312-a3be6dec9997"
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "92f8641c-eb38-442e-9bae-1287ae8110cf",
"driverId": null
}
],
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "14a624f4-76eb-4790-93c5-800693c9775e",
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "5773ca7e-85cd-4e76-9882-022ef49487c7",
}
],
"deviceGroups": ["4a2d181a-24e8-43bb-bf3c-a0b1f225dfac"],
"isPollingEnabled": true,
"isEphemeral": false,
"effectiveCost": 100,
"width": 300,
"height": 100,
"fillColour": "#D6F693",
"lineColour": null
}
Returns port groups of the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/port_groups
Access Level: User
Returns:
Tags:
Error Codes:
string
(required) UUID of the device containing the port group
200
Toggle {
"portGroups": [
{
"id": null,
"name": "No Group",
"reserveWholeGroup": false,
"portCount": 1,
"parentId": null
},
{
"id": "22b15709-14c6-4ceb-ae99-1052820efae5",
"name": "1",
"reserveWholeGroup": false,
"portCount": 0,
"parentId": null
},
{
"id": "3c34a617-1e50-4755-be97-61e9b3b29815",
"name": "1.1",
"reserveWholeGroup": true,
"portCount": 1,
"parentId": "22b15709-14c6-4ceb-ae99-1052820efae5"
},
{
"id": "c99c5dbe-b12b-4fce-acf0-30f76a53a0f7",
"name": "Lan ports",
"reserveWholeGroup": false,
"portCount": 1,
"parentId": null
},
{
"id": "08b615db-30e3-4b56-a21c-63f5862e0d1b",
"name": "New Group",
"reserveWholeGroup": false,
"portCount": 0,
"parentId": null
}
]
}
Returns ports of the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/ports
Access Level: User
Returns:
Tags:
Error Codes:
string
(required) UUID of the device to fetch ports from
string
(optional) if specified, only ports whose name, description or properties match the string are returned
boolean
(optional) Default: false when true, properties list is included for every port
200
Toggle {
"total": 50,
"offset": 0,
"count": 3,
"ports": [
{
"id": "bf9af156-5178-486e-9198-de77daa6e157",
"name": "1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "412a3322-94f0-4d62-891a-d88472399c0f",
"connectedPortId": "08fc2681-8242-40ba-b57c-596acae53d5d",
"connectedPortName": "2",
"connectedPortParentId": "4475fd7b-c94c-4e13-a1f0-6502ace013d3",
"connectedPortParentName": "demo3.device.local",
"connectedPortLinkPlace": "FRONT",
"connectionType": "FIXED",
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"created": 1381981788080,
"creatorId": "cb8342b4-403a-4c69-a942-40710484540a",
"lastModified": 1381981788080,
"lastModifierId": "cb8342b4-403a-4c69-a942-40710484540a",
"lastAction": "CREATED",
"lockUtilizationType": null
},
{
"id": "2227aeef-4973-4da3-8ed6-d3c38031b2c5",
"name": "2",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "412a3322-94f0-4d62-891a-d88472399c0f",
"connectedPortId": "a3a58d13-7acd-40d8-bef5-8dd3541fe3ba",
"connectedPortName": "Hub A port 2",
"connectedPortParentId": "fe98cb45-8166-439f-9870-c277fddc1a76",
"connectedPortParentName": "Hub A",
"connectedPortLinkPlace": "FRONT",
"connectionType": "DYNAMIC",
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"baclConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"created": 1381981788148,
"creatorId": "cb8342b4-403a-4c69-a942-40710484540a",
"lastModified": 1381981788148,
"lastModifierId": "cb8342b4-403a-4c69-a942-40710484540a",
"lastAction": "CREATED",
"lockUtilizationType": null
},
{
"id": "607a7dbf-f4b1-4df2-b7ba-d9e8466805e9",
"name": "3",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "412a3322-94f0-4d62-891a-d88472399c0f",
"connectedPortId": "66bab8fb-085e-4e1d-bfcf-dbcbfb10f8c4",
"connectedPortName": "Hab A port 3",
"connectedPortParentId": "fe98cb45-8166-439f-9870-c277fddc1a76",
"connectedPortParentName": "Hub A",
"connectedPortLinkPlace": "FRONT",
"connectionType": "DYNAMIC",
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": "ad88885b-f85e-40c8-a144-56422192d664",
"backConnectedPortName": "1.1.5",
"backConnectedPortParentId": "f6946030-d6ab-4870-9980-4802eeb258dc",
"backConnectedPortParentName": "MRV Swtich",
"backConnectedPortLinkPlace": "FRONT",
"backConnectionType": "FIXED",
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"created": 1381981788187,
"creatorId": "cb8342b4-403a-4c69-a942-40710484540a",
"lastModified": 1381981788187,
"lastModifierId": "cb8342b4-403a-4c69-a942-40710484540a",
"lastAction": "CREATED",
"lockUtilizationType": null
}
]
}
Returns information and ports of the port group specified by portGroupId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/port_group/{portGroupId}
Access Level: User
Returns:
The same set of fields as returned by GET /device/{deviceId}/ports as well as:
Tags:
Error Codes:
string
(required) UUID of the device containing the port group
string
(required) UUID of the port group (“NONE” for ports without group)
200
Toggle {
"id": "19111d18-9a2b-4c77-a8f9-3c9e38dddc68",
"name": "Blade 1",
"reserveWholeGroup": false,
"parentId": null,
"manualAssociations": [
{
"id": "df762b4f-83cc-4e81-8219-48198998fdfc",
"name": "Just second time renamed, test that associations retain"
}
],
"nestedGroups": [],
"total": 8,
"offset": 0,
"count": 2,
"ports": [
{
"id": "c316a5d8-3657-4c8b-98f6-2d1ce4e224ab",
"name": "1:1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "19111d18-9a2b-4c77-a8f9-3c9e38dddc68",
"connectedPortId": "dff50c06-c8ec-4ef9-9f0a-11a3e91aa996",
"connectedPortName": "1.1.1",
"connectedPortParentId": "41114ae4-93ab-47dc-ab21-9e434b8adbb0",
"connectedPortParentName": "MRV_session",
"connectedPortLinkPlace": "FRONT",
"connectionType": "FIXED",
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isShared": false,
"linkChecked": null,
"created": 1390801426405,
"creatorId": "05b92629-ecc6-45bb-b67a-366a3ec4366e",
"lastModified": 1390801426405,
"lastModifierId": "05b92629-ecc6-45bb-b67a-366a3ec4366e",
"lastAction": "CREATED",
"lockUtilizationType": null
},
{
"id": "bab82e7a-0fde-4757-a00f-872c7a8b8d0a",
"name": "1:2",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "19111d18-9a2b-4c77-a8f9-3c9e38dddc68",
"connectedPortId": "6330a14c-1cb7-4894-992e-f291f8dc077b",
"connectedPortName": "1.1.2",
"connectedPortParentId": "41114ae4-93ab-47dc-ab21-9e434b8adbb0",
"connectedPortParentName": "MRV_session",
"connectedPortLinkPlace": "FRONT",
"connectionType": "FIXED",
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isShared": false,
"linkChecked": null,
"created": 1390801426436,
"creatorId": "05b92629-ecc6-45bb-b67a-366a3ec4366e",
"lastModified": 1390801426436,
"lastModifierId": "05b92629-ecc6-45bb-b67a-366a3ec4366e",
"lastAction": "CREATED",
"lockUtilizationType": null
}
]
}
Returns detailed information about the port specified by portId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/port/{portId}
Access Level: User
Returns:
The same info as returned by GET /device/{deviceId}/ports plus:
Error Codes:
string
(required) UUID of the device to containing the port
string
(required) UUID of the port
200
Toggle {
"id": "bf9af156-5178-486e-9198-de77daa6e157",
"name": "1",
"description": "",
"parentId": "5773ca7e-85cd-4e76-9882-022ef49487c7",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "412a3322-94f0-4d62-891a-d88472399c0f",
"connectedPortId": "08fc2681-8242-40ba-b57c-596acae53d5d",
"connectedPortName": "2",
"connectedPortParentId": "4475fd7b-c94c-4e13-a1f0-6502ace013d3",
"connectedPortParentName": "demo3.device.local",
"connectedPortLinkPlace": "FRONT",
"connectionType": "FIXED",
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"properties": [
{
"definitionId": "6a7f19a4-0a26-46fe-bd61-224db702285c",
"name": "portNumber",
"value": "1",
"type": "TEXT",
"groupName": " System Identification",
"availableValues":null
},
{
"definitionId": "92042087-ea76-45f9-a275-14b00e8a6eb8",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": " System Identification",
"availableValues":null
},
{
"definitionId": "bbfaa411-cb99-4346-a49c-1e2208fccefa",
"name": "Port Speed",
"value": "1000",
"type": "TEXT",
"groupName": " System Identification",
"availableValues":null
}
],
"created": 1381981788080,
"creatorId": "cb8342b4-403a-4c69-a942-40710484540a",
"lastModified": 1381981788080,
"lastModifierId": "cb8342b4-403a-4c69-a942-40710484540a",
"lastAction": "CREATED",
"lockUtilizationType": null,
"effectiveCost": 101
}
Returns all device ports in the inventory
Full URL: /velocity/api/inventory/v19/devices/ports
Access Level: User
Returns:
Device ports list, the same as if returned by GET /device/{deviceId}/ports
Tags:
string
(optional) if specified, only ports whose name, parentName, description or properties match the string are returned
boolean
(optional) Default: false when true, properties list is included for every port
boolean
(optional) Default: false when true, only one of connected ports will be on the result list
200
Toggle {
"total": 9,
"offset": 0,
"count": 9,
"ports": [
{
"id": "4a8694db-9a85-4a0a-ad64-b220aa7d9914",
"name": "s1.2",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "8cb0037c-1f36-4f8c-a149-bebb16e685c9",
"parentId": "f3128eb7-a48f-429b-9401-718641a3359b",
"parentName": "Server #1",
"connectedPortId": "71c1a15c-e042-4b11-a8a2-3476139809ad",
"connectedPortName": "s2.2",
"connectedPortParentId": "d29ab5d5-f740-4b1b-8509-59c8d87efda6",
"connectedPortParentName": "Server #2",
"connectedPortLinkPlace": "FRONT",
"connectionType": "FIXED",
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"created": 1435569728389,
"lastModifierId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"lastModified": 1435569728389,
"lastAction": "CREATED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "9012da4d-2881-4cf5-a662-027ff59a4689",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e58bb9d5-1b8f-4529-b78e-5687d01cf298",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "d23e8bd6-1a0a-4a26-9bd4-77c3376c5c24",
"name": "portNumber",
"value": "s1.2",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "98ad8b69-7a7b-4fa3-aaf4-c90b7815c36e",
"name": "s1.3",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "8cb0037c-1f36-4f8c-a149-bebb16e685c9",
"parentId": "f3128eb7-a48f-429b-9401-718641a3359b",
"parentName": "Server #1",
"connectedPortId": "7b34f9c9-1572-45a4-b852-ecaee73d5dbb",
"connectedPortName": "s2.3",
"connectedPortParentId": "d29ab5d5-f740-4b1b-8509-59c8d87efda6",
"connectedPortParentName": "Server #2",
"connectedPortLinkPlace": "FRONT",
"connectionType": "FIXED",
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"bakcConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"created": 1435569728488,
"lastModifierId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"lastModified": 1435569728488,
"lastAction": "CREATED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "9012da4d-2881-4cf5-a662-027ff59a4689",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e58bb9d5-1b8f-4529-b78e-5687d01cf298",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "d23e8bd6-1a0a-4a26-9bd4-77c3376c5c24",
"name": "portNumber",
"value": "s1.3",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "6b457366-dd9c-46ce-af7c-15f824bc6d6f",
"name": "s2.1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "78353005-8d1d-456d-bc28-993e1bfc6965",
"parentId": "d29ab5d5-f740-4b1b-8509-59c8d87efda6",
"parentName": "Server #2",
"connectedPortId": "bd1c874a-423d-45ce-9b49-ad7e60ccf157",
"connectedPortName": "s1.1",
"connectedPortParentId": "f3128eb7-a48f-429b-9401-718641a3359b",
"connectedPortParentName": "Server #1",
"connectedPortLinkPlace": "FRONT",
"connectionType": "FIXED",
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"created": 1435569729204,
"lastModifierId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"lastModified": 1435569729204,
"lastAction": "CREATED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "9012da4d-2881-4cf5-a662-027ff59a4689",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e58bb9d5-1b8f-4529-b78e-5687d01cf298",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "d23e8bd6-1a0a-4a26-9bd4-77c3376c5c24",
"name": "portNumber",
"value": "s2.1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "7ccba640-3c2c-4100-b9c1-dfde935d7962",
"name": "s3.1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "30e2e2d2-d574-4835-b550-f8cb1c1c0ee1",
"parentId": "dc73e8f8-2627-4371-a564-5380c4baffba",
"parentName": "Server #3",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"created": 1435569729605,
"lastModifierId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"lastModified": 1435569729605,
"lastAction": "CREATED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "9012da4d-2881-4cf5-a662-027ff59a4689",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e58bb9d5-1b8f-4529-b78e-5687d01cf298",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "d23e8bd6-1a0a-4a26-9bd4-77c3376c5c24",
"name": "portNumber",
"value": "s3.1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "09075251-bad1-4448-96f7-51c0ba6e3374",
"name": "s3.2",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "30e2e2d2-d574-4835-b550-f8cb1c1c0ee1",
"parentId": "dc73e8f8-2627-4371-a564-5380c4baffba",
"parentName": "Server #3",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"created": 1435569729662,
"lastModifierId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"lastModified": 1435569729662,
"lastAction": "CREATED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "9012da4d-2881-4cf5-a662-027ff59a4689",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e58bb9d5-1b8f-4529-b78e-5687d01cf298",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "d23e8bd6-1a0a-4a26-9bd4-77c3376c5c24",
"name": "portNumber",
"value": "s3.2",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "6f00a35c-d6e4-455e-b57a-1fd035753cf6",
"name": "s3.3",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "30e2e2d2-d574-4835-b550-f8cb1c1c0ee1",
"parentId": "dc73e8f8-2627-4371-a564-5380c4baffba",
"parentName": "Server #3",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"created": 1435569729756,
"lastModifierId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"lastModified": 1435569729756,
"lastAction": "CREATED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "9012da4d-2881-4cf5-a662-027ff59a4689",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e58bb9d5-1b8f-4529-b78e-5687d01cf298",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "d23e8bd6-1a0a-4a26-9bd4-77c3376c5c24",
"name": "portNumber",
"value": "s3.3",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "d3ee2c56-b08c-4dac-9fb8-e32ad2414aef",
"name": "s4.1",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "e27f44ea-d8d2-4942-b5a5-c8dfd1095747",
"parentId": "599c79d5-c5e2-4eea-9a4f-e5aced644e11",
"parentName": "Server #4",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"created": 1435572700360,
"lastModifierId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"lastModified": 1435572710751,
"lastAction": "MODIFIED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "d23e8bd6-1a0a-4a26-9bd4-77c3376c5c24",
"name": "portNumber",
"value": "s3.1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "9012da4d-2881-4cf5-a662-027ff59a4689",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e58bb9d5-1b8f-4529-b78e-5687d01cf298",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "6690037c-a8aa-4745-be41-ce4c7f23c6e3",
"name": "s4.2",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "e27f44ea-d8d2-4942-b5a5-c8dfd1095747",
"parentId": "599c79d5-c5e2-4eea-9a4f-e5aced644e11",
"parentName": "Server #4",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"created": 1435572700383,
"lastModifierId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"lastModified": 1435572736941,
"lastAction": "MODIFIED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "d23e8bd6-1a0a-4a26-9bd4-77c3376c5c24",
"name": "portNumber",
"value": "s3.2",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "9012da4d-2881-4cf5-a662-027ff59a4689",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e58bb9d5-1b8f-4529-b78e-5687d01cf298",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "8c883711-e190-4c71-8591-675cd2053bed",
"name": "s4.3",
"description": "",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "e27f44ea-d8d2-4942-b5a5-c8dfd1095747",
"parentId": "599c79d5-c5e2-4eea-9a4f-e5aced644e11",
"parentName": "Server #4",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"created": 1435572700407,
"lastModifierId": "5d120dc1-7f54-4cc2-ad57-34f8a5c47b18",
"lastModified": 1435572728624,
"lastAction": "MODIFIED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "d23e8bd6-1a0a-4a26-9bd4-77c3376c5c24",
"name": "portNumber",
"value": "s3.3",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "9012da4d-2881-4cf5-a662-027ff59a4689",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "e58bb9d5-1b8f-4529-b78e-5687d01cf298",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
}
]
}
]
}
Returns all device port groups
Full URL: /velocity/api/inventory/v19/devices/port_groups
Access Level: User
Returns:
Tags:
string
(optional) if specified, only port groups whose name or deviceName match the string are returned
200
Toggle {
"total": 4,
"offset": 0,
"count": 4,
"portGroups": [
{
"id": "7b6940e5-c67e-4978-85d9-2738047e8a64",
"name": "1.1",
"reserveWholeGroup": false,
"portCount": 36,
"parentId": null,
"deviceId": "f6946030-d6ab-4870-9980-4802eeb258dc",
"deviceName": "Sunnyvale MRV Swtich"
},
{
"id": "12ef9421-67b8-426d-b43a-3b7c87a5072e",
"name": "Default",
"reserveWholeGroup": false,
"portCount": 3,
"parentId": null,
"deviceId": "f3128eb7-a48f-429b-9401-718641a3359b",
"deviceName": "Server #1"
},
{
"id": "601c7a5d-3a45-44a0-b6b6-4f1f76081fd4",
"name": "Default",
"reserveWholeGroup": false,
"portCount": 3,
"parentId": null,
"deviceId": "dc73e8f8-2627-4371-a564-5380c4baffba",
"deviceName": "Server #3"
},
{
"id": "84997b7b-64a3-41fa-a6aa-ce64ae298894",
"name": "Default",
"reserveWholeGroup": false,
"portCount": 2,
"parentId": null,
"deviceId": "d29ab5d5-f740-4b1b-8509-59c8d87efda6",
"deviceName": "Server #2"
}
]
}
Returns basic information about all devices which matched to search query.
Full URL: /velocity/api/inventory/v19/devices/search
Access Level: User
Returns:
Device list represented the same way as in GET /devices
Tags:
Error Codes:
string
(optional) Will return info only about devices whose match the search string
200
Toggle {
"total": 1,
"offset": 0,
"count": 1,
"devices": [
{
"id":"0060385f-2b5e-4cf4-8e90-2a79c3cd2bd8",
"name":"autoPC",
"description":"",
"templateId":"fea52e8b-8d75-455e-baa5-80751d9625c7",
"folderId":null,
"isOnline":false,
"isLocked":false,
"isShared":true,
"linkChecked":null,
"driverId":null,
"configAssetId":null,
"firmwareAssetId":null,
"interface":"MANAGEMENT",
"iconId":null,
"vlanIdSet":null,
"isOutOfService":false,
"outOfServiceTill":null,
"isReservedPrivately":false,
"tags":[],
"portCount":0,
"connectedPortCount":0,
"consoleUrls":[],
"creatorId":"c899d112-c119-419e-be42-7d559ec09b77",
"created":1612844981480,
"lastModifierId":"c899d112-c119-419e-be42-7d559ec09b77",
"lastModified":1612844981480,
"lastAction":"CREATED",
"deviceGroups":[],
"configURI":null,
"inheritConfig":false,
"firmwareURI":null,
"inheritFirmware":false,
"nestedResourceCount":0,
"hostId":null,
"nestingTemplateId":null,
"outOfServiceReason":"MANUAL",
"lockUtilizationType":null,
"reservationTime":"IMMEDIATE",
"isPollingEnabled":true,
"isEphemeral":false
}
]
}
Creates new device
Full URL: /velocity/api/inventory/v19/device
Access Level: Admin, Resource Group Admin
Request Body:
JSON object containing the following fields:
Note: It is not recommended to pass configAssetId and configURI when inheritConfig is set to true. Otherwise only first of these three fields will be used in the reservation in the following order: inheritConfig, configAssetId, configURI. The same behavior is defined for inheritFirmware, firmwareAssetId, firmwareURI.
Returns:
Newly created device, the same as if returned by GET /device/{deviceId}
Error Codes:
string
(optional) if specified, UUID of the device from which to copy ports (and port groups)
{
"name": "Server #4",
"description": "This is server #4",
"templateId": "f64b12a8-0d56-4470-9208-329b9b45c647",
"folderId": null,
"isRemoved": false,
"isOnline": false,
"linkChecked": null,
"driverId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"iconId": null,
"reservationTime": "IMMEDIATE",
"vlanIdSet": null,
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": [
"linux",
"server"
],
"portCount": 0,
"connectedPortCount": 0,
"portGroups": [
{
"id": null,
"name": "No Group",
"portCount": 0
}
],
"consoleUrls": [],
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431926047900,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431926047900,
"lastAction": "CREATED",
"properties": [
{
"definitionId": "b3ed092a-7bc3-4663-9458-e39b26d1967c",
"name": "Facility",
"value": "San Jose - Site 4",
"type": "TEXT",
"groupName": "Location Information",
"availableValues": null
},
{
"definitionId": "8a3a82e3-2016-4fd9-b025-3f884f34b7e0",
"name": "ipAddress",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "53e01f95-61e5-423e-813e-35e2873ff1d1",
"name": "Hostname",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "9c6f629a-86c2-495d-ad0c-449382f662c8",
"name": "Make",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "805afd36-2532-44a7-b807-e4714863221f",
"name": "Model",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "6517df3f-09f9-40c3-9958-331abc4f007f",
"name": "Serial Number",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
],
"userPermissions": [
{
"userId": "fac31d0a-4f2f-4d0b-8e9c-4ed8b0aca67c",
"permission": "CONSOLE_ADMIN"
},
{
"userId": "9ca74477-25f9-4557-9e54-373d13002ed7",
"permission": "CONSOLE_READ_WRITE"
}
],
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"driverId": null
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED"
}
],
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "f64b12a8-0d56-4470-9208-329b9b45c647",
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": null,
}
],
"deviceGroups": ["4a2d181a-24e8-43bb-bf3c-a0b1f225dfac"],
"isPollingEnabled": true,
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null
}
200
Toggle {
"id": "31b03a2e-7dc8-4942-9fd0-eaa4116cddd9",
"name": "Server #4",
"description": "This is server #4",
"templateId": "f64b12a8-0d56-4470-9208-329b9b45c647",
"folderId": null,
"isRemoved": false,
"isOnline": false,
"isLocked": false,
"isShared": true,
"linkChecked": null,
"driverId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"iconId": null,
"reservationTime": "IMMEDIATE",
"vlanIdSet": null,
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"isRefreshing": false,
"isDiscovering": false,
"tags": [
"linux",
"server"
],
"portCount": 0,
"connectedPortCount": 0,
"portGroups": [
{
"id": null,
"name": "No Group",
"portCount": 0
}
],
"consoleUrls": [],
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431926047900,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431926047900,
"lastAction": "CREATED",
"properties": [
{
"definitionId": "b3ed092a-7bc3-4663-9458-e39b26d1967c",
"name": "Facility",
"value": "San Jose - Site 4",
"type": "TEXT",
"groupName": "Location Information",
"availableValues": null
},
{
"definitionId": "8a3a82e3-2016-4fd9-b025-3f884f34b7e0",
"name": "ipAddress",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "53e01f95-61e5-423e-813e-35e2873ff1d1",
"name": "Hostname",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "9c6f629a-86c2-495d-ad0c-449382f662c8",
"name": "Make",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "805afd36-2532-44a7-b807-e4714863221f",
"name": "Model",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "6517df3f-09f9-40c3-9958-331abc4f007f",
"name": "Serial Number",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
],
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "f64b12a8-0d56-4470-9208-329b9b45c647",
"driverId": null
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "31b03a2e-7dc8-4942-9fd0-eaa4116cddd9",
"driverId": null
}
],
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "f64b12a8-0d56-4470-9208-329b9b45c647",
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "31b03a2e-7dc8-4942-9fd0-eaa4116cddd9",
}
],
"deviceGroups": ["4a2d181a-24e8-43bb-bf3c-a0b1f225dfac"],
"isPollingEnabled": true,
"isEphemeral": false,
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null
}
Creates port group for the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/port_group
Access Level: Admin
Request Body:
JSON object with the following fields:
Returns:
Newly created device port group, the same as if returned by GET /device/{deviceId}/port_group/{portGroupId}
Error Codes:
string
(required) UUID of the device to create the port group in
boolean
(optional) Default: false when true, manual connections allowed within the group
Creates port for the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/port
Access Level: Admin
Request Body:
JSON object with a subset of the following fields:
backConnectedPortCableTypeId (string, optional) - UUID of cable type to use for patch panel back port connection
properties (list, optional) - list of properties with the following fields ([] by default):
Returns:
Newly created device port, the same as if returned by GET /device/{deviceId}/port/{portId}
Error Codes:
string
(required) UUID of the device to create the port in
{
"name": "Lan 1",
"description": "This is the first LAN port",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "c99c5dbe-b12b-4fce-acf0-30f76a53a0f7",
"connectedPortId": null,
"properties": [
{
"definitionId": "c6de2ce8-082b-4af0-a364-6fe504dea05a",
"value": "lan1"
},
{
"definitionId": "b45d79cf-2c91-4644-a977-4798ebfe2903",
"value": "Ethernet"
},
{
"definitionId": "5f25b077-efc9-4138-8298-5cf148bd566c",
"value": "1000"
}
]
}
200
Toggle {
"id": "ff9da5a3-467e-476c-bda3-b1dcc6f5d17d",
"name": "Lan 1",
"description": "This is the first LAN port",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "c99c5dbe-b12b-4fce-acf0-30f76a53a0f7",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431927081282,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431927081282,
"lastAction": "CREATED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "5f25b077-efc9-4138-8298-5cf148bd566c",
"name": "Port Speed",
"value": "1000",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "b45d79cf-2c91-4644-a977-4798ebfe2903",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "c6de2ce8-082b-4af0-a364-6fe504dea05a",
"name": "portNumber",
"value": "Lan 1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
}
Creates ports for the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/ports
Access Level: Admin
Request Body:
JSON object with a subset of the following fields:
Returns:
List of newly created device ports with the same fields as if returned by GET /device/{deviceId}/port/{portId}
Error Codes:
string
(required) UUID of the device to create ports in
{
"ports": [
{
"name": "Demo port 1",
"description": "This is a demo port",
"templateId": "633f52c5-55c1-468d-a1f9-1fb27962ffc9",
"groupId": "76d9c8a0-9aad-46af-8397-e2f138ff9ec9",
"properties": [
{
"definitionId": "ce0d6ff7-7b7c-4266-8bc4-661ac5510570",
"value": "Ethernet"
},
{
"definitionId": "2a0ad7af-3f36-496e-8f0d-dba3b182b953",
"value": 1000
},
{
"definitionId": "17e9ab3b-f8c0-4af8-aa68-7caedb1c16bd",
"value": "demo 1"
}
]
},
{
"name": "Demo port 2",
"description": "This is a demo port",
"templateId": "633f52c5-55c1-468d-a1f9-1fb27962ffc9",
"groupId": "76d9c8a0-9aad-46af-8397-e2f138ff9ec9",
"properties": [
{
"definitionId": "ce0d6ff7-7b7c-4266-8bc4-661ac5510570",
"value": "Ethernet"
},
{
"definitionId": "2a0ad7af-3f36-496e-8f0d-dba3b182b953",
"value": 1000
},
{
"definitionId": "17e9ab3b-f8c0-4af8-aa68-7caedb1c16bd",
"value": "demo 2"
}
]
}
]
}
200
Toggle {
"ports": [
{
"id": "3e901737-d06a-4af9-be0f-844fa57ba373",
"name": "Demo port 1",
"description": "This is a demo port",
"templateId": "633f52c5-55c1-468d-a1f9-1fb27962ffc9",
"groupId": "76d9c8a0-9aad-46af-8397-e2f138ff9ec9",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "79389ac4-2f83-41c6-9fef-eec55bf307a5",
"created": 1434526469392,
"lastModifierId": "79389ac4-2f83-41c6-9fef-eec55bf307a5",
"lastModified": 1434526469392,
"lastAction": "CREATED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "ce0d6ff7-7b7c-4266-8bc4-661ac5510570",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "2a0ad7af-3f36-496e-8f0d-dba3b182b953",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "17e9ab3b-f8c0-4af8-aa68-7caedb1c16bd",
"name": "Demo enum property",
"value": "demo 1",
"type": "DROP_DOWN_LIST",
"groupName": "Demo group",
"availableValues": [
"demo 1",
"demo 2",
"demo 3"
]
},
{
"definitionId": "bc5c8178-445b-48af-846e-094f5f274e19",
"name": "portNumber",
"value": "Demo port 1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
},
{
"id": "228cd4db-5d6d-4959-979a-8387baf7a7cb",
"name": "Demo port 2",
"description": "This is a demo port",
"templateId": "633f52c5-55c1-468d-a1f9-1fb27962ffc9",
"groupId": "76d9c8a0-9aad-46af-8397-e2f138ff9ec9",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "79389ac4-2f83-41c6-9fef-eec55bf307a5",
"created": 1434526469478,
"lastModifierId": "79389ac4-2f83-41c6-9fef-eec55bf307a5",
"lastModified": 1434526469478,
"lastAction": "CREATED",
"lockUtilizationType": null,
"properties": [
{
"definitionId": "ce0d6ff7-7b7c-4266-8bc4-661ac5510570",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "2a0ad7af-3f36-496e-8f0d-dba3b182b953",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "17e9ab3b-f8c0-4af8-aa68-7caedb1c16bd",
"name": "Demo enum property",
"value": "demo 2",
"type": "DROP_DOWN_LIST",
"groupName": "Demo group",
"availableValues": [
"demo 1",
"demo 2",
"demo 3"
]
},
{
"definitionId": "bc5c8178-445b-48af-846e-094f5f274e19",
"name": "portNumber",
"value": "Demo port 2",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
}
]
}
400
Toggle {
"status": 400,
"errorId": "PORT_ALREADY_CONNECTED",
"message": "Specified port is already connected to another port",
"moreInfo": {
"ids": [
"dca076c7-ef45-43d1-97d5-5e99e4bc34f0",
"cd1f2855-0a9f-45ca-904d-204950097215"
]
}
}
Returns all devices that inherit(probably recursively) from specified template.
Full URL: /velocity/api/inventory/v19/devices/resource_templates/{templateId}
Access Level: User
Returns:
Device list represented the same way as in GET /devices
Tags:
string
(optional) if specified, only devices whose name match the string are returned
200
Toggle {
"total": 1,
"offset": 0,
"count": 1,
"devices": [
{
"id": "a642c0a2-5b08-4d61-b328-ac62f5870abf",
"name": "Test Switch",
"description": "",
"templateId": "f56c0a5-7b45-4d23-f743-cd45f6854acd",
"folderId": "ac03eafc-a5bd-3419-9435-46712920ca23",
"isOnline": true,
"isLocked": true,
"isShared": true,
"linkChecked": 1378621237200,
"iconId": "a642c0a2-5b08-4d61-b328-ac62f5870abf",
"vlanIdSet": "300-400",
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": ["test"],
"driverId": "c345c0a2-5b15-2d61-f332-bf62f5870dbc",
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "CONFIGURABLE_LAYER2_SWITCH",
"portCount": 2,
"consoleUrls": [
{
"id": "cc03eafc-5b15-2d61-f332-bf62f5879733",
"name": "SSH",
"url": "ssh://127.0.0.1",
"clientUrl": "http://velocity.example.com/terminal?hostname=127.0.0.1&protocol=ssh&port=22"
}
],
"connectedPortCount": 1,
"creatorId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"created": 1378621237001,
"lastModifierId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"lastModified": 1378621237200,
"lastAction": "LOCKED",
"deviceGroups": ["5f744d00-ea76-4454-9665-8690fb0f1ffe"],
"isPollingEnabled": true
}
]
}
Returns devices which can be a parent for specified devices.
Full URL: /velocity/api/inventory/v19/devices/host_candidates
Access Level: User
Request Body:
JSON body with the following fields:
Returns:
Device list represented the same way as in GET /devices
Tags:
string
(optional) if specified, only devices whose name match the string are returned
200
Toggle {
"total": 1,
"offset": 0,
"count": 1,
"devices": [
{
"id": "a642c0a2-5b08-4d61-b328-ac62f5870abf",
"name": "Test Switch",
"description": "",
"templateId": "f56c0a5-7b45-4d23-f743-cd45f6854acd",
"folderId": "ac03eafc-a5bd-3419-9435-46712920ca23",
"isOnline": true,
"isLocked": true,
"isShared": true,
"linkChecked": 1378621237200,
"iconId": "a642c0a2-5b08-4d61-b328-ac62f5870abf",
"vlanIdSet": "300-400",
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": ["test"],
"driverId": "c345c0a2-5b15-2d61-f332-bf62f5870dbc",
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "CONFIGURABLE_LAYER2_SWITCH",
"portCount": 2,
"consoleUrls": [
{
"id": "cc03eafc-5b15-2d61-f332-bf62f5879733",
"name": "SSH",
"url": "ssh://127.0.0.1",
"clientUrl": "http://velocity.example.com/terminal?hostname=127.0.0.1&protocol=ssh&port=22"
}
],
"connectedPortCount": 1,
"creatorId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"created": 1378621237001,
"lastModifierId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"lastModified": 1378621237200,
"lastAction": "LOCKED",
"deviceGroups": ["5f744d00-ea76-4454-9665-8690fb0f1ffe"],
"isPollingEnabled": true
}
]
}
Add nested devices to a parent device.
Full URL: /velocity/api/inventory/v19/device/{deviceId}/nested_resources
Access Level: Admin
Request Body:
JSON body with the following fields:
Error Codes:
string
(required) UUID of the parent device
string
(optional) UUID of the nested template. If this parameter is not specified the closest in hierarchy nested template will be used.
Delete nested devices from a parent device.
Full URL: /velocity/api/inventory/v19/devices/{deviceId}/nested_resources_delete
Access Level: Admin
Request Body:
JSON body with the following fields:
Error Codes:
string
(required) UUID of the parent device
Returns a chain of parent devices for a specified device.
Full URL: /velocity/api/inventory/v19/device/{deviceId}/hosts_chain
Access Level: User
Returns:
Chain of parent devices is sorted from the nearest parent to the farthest.
string
(required) UUID of the device
200
Toggle {
"items": [
{
"id": "89855948-6044-4184-ac94-b3a24185529a",
"name": "Rack",
"isAccessible": true
},
{
"id": "ebfc0c57-85e5-4445-9f57-b4487dd60edf",
"name": "Lab",
"isAccessible": true
}
],
"count": 2,
"offset": 0,
"total": 2
}
Performs an action on the device specified by deviceId.
The “refresh” action schedules a task to refresh the status of the specified device.
The “discover” action schedules an auto-discovery task for the specified device.
Full URL: /velocity/api/inventory/v19/device/{deviceId}/action
Access Level: Admin
Error Codes:
string
(required) UUID of the device
string
(required) type of the action
Choices: refresh
discover
Updates coordinates for nested device.
Full URL: /velocity/api/inventory/v19/devices/{deviceId}/nested_coordinates
Access Level: Admin
Request Body: JSON object with the following fields:
Returns:
Returns basic information of newly updated device, the same as if returned by GET /devices
Error Codes:
string
(required) UUID of the device to update
{
"column": "A",
"row": 1
}
200
Toggle {
"id": "a642c0a2-5b08-4d61-b328-ac62f5870abf",
"name": "Test Switch",
"description": "",
"templateId": "f56c0a5-7b45-4d23-f743-cd45f6854acd",
"folderId": "ac03eafc-a5bd-3419-9435-46712920ca23",
"isOnline": true,
"isLocked": true,
"isShared": true,
"reservationTime": "IMMEDIATE",
"linkChecked": 1378621237200,
"iconId": "a642c0a2-5b08-4d61-b328-ac62f5870abf",
"vlanIdSet": "300-400",
"isOutOfService": false,
"outOfServiceReason": "MANUAL",
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": [],
"driverId": "c345c0a2-5b15-2d61-f332-bf62f5870dbc",
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "CONFIGURABLE_LAYER2_SWITCH",
"portCount": 2,
"consoleUrls": [
{
"id": "cc03eafc-5b15-2d61-f332-bf62f5879733",
"name": "SSH",
"url": "ssh://127.0.0.1",
"clientUrl": "http://velocity.example.com/terminal?hostname=127.0.0.1&protocol=ssh&port=22"
}
],
"connectedPortCount": 1,
"creatorId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"created": 1378621237001,
"lastModifierId": "3f744d00-ea76-4454-9665-8690fb0f1ffe",
"lastModified": 1378621237200,
"lastAction": "LOCKED",
"deviceGroups": ["5f744d00-ea76-4454-9665-8690fb0f1ffe"],
"isPollingEnabled": true,
"lockUtilizationType": "SHARED",
"isEphemeral": false,
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null,
"nestedCoordinates": {
"column": "A",
"row": 1
}
}
Updates the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}
Access Level: Admin, Resource Group Admin
Request Body: JSON object with any subset of fields from the corresponding POST request. The consoleUrls items are updated by corresponding ids. If id is null for a item, it will be added. Resource Group Admin should provide at least one administered device group
Returns:
Newly updated device, the same as if returned by GET /device/{deviceId}
Error Codes:
string
(required) UUID of the device to update
{
"name": "Server #444",
"description": "This is server #444",
"templateId": "f64b12a8-0d56-4470-9208-329b9b45c647",
"folderId": null,
"isShared": true,
"driverId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"iconId": null,
"reservationTime": "IMMEDIATE",
"vlanIdSet": null,
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": [
"linux",
"server"
],
"consoleUrls": [],
"properties": [
{
"definitionId": "b3ed092a-7bc3-4663-9458-e39b26d1967c",
"name": "Facility",
"value": "San Jose - Site 4",
"type": "TEXT",
"groupName": "Location Information",
"availableValues": null
},
{
"definitionId": "8a3a82e3-2016-4fd9-b025-3f884f34b7e0",
"name": "ipAddress",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "53e01f95-61e5-423e-813e-35e2873ff1d1",
"name": "Hostname",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "9c6f629a-86c2-495d-ad0c-449382f662c8",
"name": "Make",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "805afd36-2532-44a7-b807-e4714863221f",
"name": "Model",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "6517df3f-09f9-40c3-9958-331abc4f007f",
"name": "Serial Number",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
],
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"driverId": null
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"driverId": null
},
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "f64b12a8-0d56-4470-9208-329b9b45c647"
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"driverId": null
},
],
"deviceGroups": ["f64b12a8-0d56-4470-9208-329b9b45c648"],
"isPollingEnabled": true
}
200
Toggle {
"id": "31b03a2e-7dc8-4942-9fd0-eaa4116cddd9",
"name": "Server #444",
"description": "This is server #444",
"templateId": "f64b12a8-0d56-4470-9208-329b9b45c647",
"folderId": null,
"isRemoved": false,
"isOnline": false,
"isLocked": false,
"isShared": true,
"linkChecked": null,
"driverId": null,
"configAssetId": null,
"configURI" : "vfs://fd03eada-a1bd-5419-9733-34752940ca54/foo/bar/config.xml",
"inheritConfig": false,
"firmwareAssetId": "cc03eafc-a3bd-7419-9731-76762940ca75",
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"iconId": null,
"reservationTime": "IMMEDIATE",
"vlanIdSet": null,
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"isRefreshing": false,
"isDiscovering": false,
"tags": [
"linux",
"server"
],
"portCount": 0,
"connectedPortCount": 0,
"portGroups": [
{
"id": null,
"name": "No Group",
"portCount": 0
}
],
"consoleUrls": [],
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431926047900,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431926488363,
"lastAction": "MODIFIED",
"properties": [
{
"definitionId": "b3ed092a-7bc3-4663-9458-e39b26d1967c",
"name": "Facility",
"value": "San Jose - Site 4",
"type": "TEXT",
"groupName": "Location Information",
"availableValues": null
},
{
"definitionId": "8a3a82e3-2016-4fd9-b025-3f884f34b7e0",
"name": "ipAddress",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "53e01f95-61e5-423e-813e-35e2873ff1d1",
"name": "Hostname",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "9c6f629a-86c2-495d-ad0c-449382f662c8",
"name": "Make",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "805afd36-2532-44a7-b807-e4714863221f",
"name": "Model",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "6517df3f-09f9-40c3-9958-331abc4f007f",
"name": "Serial Number",
"value": null,
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
],
"agentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "f64b12a8-0d56-4470-9208-329b9b45c647",
"driverId": null
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "31b03a2e-7dc8-4942-9fd0-eaa4116cddd9",
"driverId": null
}
],
"snapshotAgentRequirements": [
{
"name": "parent_name1",
"value": "parent_value1",
"executionType": "IGNORED",
"resourceId": "f64b12a8-0d56-4470-9208-329b9b45c647"
},
{
"name": "name1",
"value": "value1",
"executionType": "CONSIDERED",
"resourceId": "31b03a2e-7dc8-4942-9fd0-eaa4116cddd9"
}
]
"deviceGroups": ["f64b12a8-0d56-4470-9208-329b9b45c648"],
"isPollingEnabled": true
}
Updates an attribute of multiple devices.
Full URL: /velocity/api/inventory/v19/devices
Access Level: Admin, Resource Group Admin
Request Body:
JSON object with the following fields:
Returns:
List of newly updated devices with the same fields as if returned by GET /devices.
Error Codes:
string
(required) filterable by the same set of options as GET /devices
string
(optional) will update only devices whose names, descriptions, or properties match the string
boolean
(optional) when true, only devices containing 1 or more ports are updated. When false, only devices without ports are updated.
{
"folderId": "662e5bc3-e2ed-4c74-a4be-2a7f79d84fc7"
}
200
Toggle {
"devices": [
{
"id": "2d4d6fad-766c-4f28-a961-e92d936a6412",
"name": "PC #1",
"description": "",
"templateId": "fea52e8b-8d75-455e-baa5-80751d9625c7",
"folderId": "662e5bc3-e2ed-4c74-a4be-2a7f79d84fc7",
"isOnline": false,
"isLocked": false,
"isShared": true,
"linkChecked": null,
"driverId": "e660edc3-e5b6-4ecd-bcd9-5a152ffb94ec",
"configAssetId": null,
"configURI" : null,
"inheritConfig": false,
"firmwareAssetId": null,
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"iconId": "92869974-df77-42cf-a330-e3f9714ba4dd",
"vlanIdSet": null,
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": [],
"portCount": 1,
"connectedPortCount": 0,
"creatorId": "f8204003-4d02-4d97-a3b8-034296f2e745",
"created": 1434719177984,
"lastModifierId": "f8204003-4d02-4d97-a3b8-034296f2e745",
"lastModified": 1434719178275,
"lastAction": "MODIFIED",
"isPollingEnabled": true
},
{
"id": "a15c290a-bcb5-456b-8633-9017924e55e9",
"name": "PC #2",
"description": "",
"templateId": "fea52e8b-8d75-455e-baa5-80751d9625c7",
"folderId": "662e5bc3-e2ed-4c74-a4be-2a7f79d84fc7",
"isOnline": false,
"isLocked": false,
"isShared": true,
"linkChecked": null,
"driverId": "e660edc3-e5b6-4ecd-bcd9-5a152ffb94ec",
"configAssetId": null,
"configURI" : null,
"inheritConfig": false,
"firmwareAssetId": null,
"firmwareURI": null,
"inheritFirmware": false,
"interface": "MANAGEMENT",
"iconId": "81c92852-1d49-4121-ac07-c4ca25a292f4",
"vlanIdSet": null,
"isOutOfService": false,
"outOfServiceTill": null,
"isReservedPrivately": false,
"tags": [],
"portCount": 1,
"connectedPortCount": 0,
"creatorId": "f8204003-4d02-4d97-a3b8-034296f2e745",
"created": 1434719178341,
"lastModifierId": "f8204003-4d02-4d97-a3b8-034296f2e745",
"lastModified": 1434719178541,
"lastAction": "MODIFIED",
"isPollingEnabled": true
}
]
}
Updates port group in the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/port_group/{portGroupId}
Access Level: Admin
Request Body:
JSON object with any subset of fields from the corresponding POST request
Returns:
Newly updated device port group, the same as if returned by GET /device/{deviceId}/port_group/{portGroupId}
Error Codes:
string
(required) UUID of the device containing the port group
string
(required) UUID of the port group to update
string
(optional) UUID of the device, if not null then port group will be moved to specified device
boolean
(optional) Default: false when true, all ports of the updated port group and nested groups will be disconnected
{
"name": "Lan ports"
}
200
Toggle {
"id": "c99c5dbe-b12b-4fce-acf0-30f76a53a0f7",
"name": "Lan ports",
"reserveWholeGroup": false,
"total": 1,
"offset": 0,
"count": 1,
"ports": [
{
"id": "ff9da5a3-467e-476c-bda3-b1dcc6f5d17d",
"name": "Lan 1",
"description": "This is the first LAN port",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "c99c5dbe-b12b-4fce-acf0-30f76a53a0f7",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isShared": false,
"linkChecked": null,
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431927081282,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431927081282,
"lastAction": "CREATED",
"lockUtilizationType": null
}
]
}
Updates port in the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/port/{portId}
Access Level: Admin
Request Body:
JSON object with any subset of fields from the corresponding POST request
Returns:
Newly updated device port, the same as if returned by GET /device/{deviceId}/port/{portId}
Error Codes:
string
(required) UUID of the device containing port to update
string
(required) UUID of the port to update
{
"name": "Lan 2",
"description": "This is the second LAN port",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "c99c5dbe-b12b-4fce-acf0-30f76a53a0f7",
"isOnline": false,
"isShared": false,
"connectedPortId": null,
"properties": [
{
"definitionId": "5f25b077-efc9-4138-8298-5cf148bd566c",
"value": "1000"
},
{
"definitionId": "b45d79cf-2c91-4644-a977-4798ebfe2903",
"value": "Ethernet"
},
{
"definitionId": "c6de2ce8-082b-4af0-a364-6fe504dea05a",
"value": "Lan 2"
}
]
}
200
Toggle {
"id": "ff9da5a3-467e-476c-bda3-b1dcc6f5d17d",
"name": "Lan 2",
"description": "This is the second LAN port",
"templateId": "a5266606-f35b-482b-8c3f-a4317c1ccbb9",
"groupId": "c99c5dbe-b12b-4fce-acf0-30f76a53a0f7",
"connectedPortId": null,
"connectedPortName": null,
"connectedPortParentId": null,
"connectedPortParentName": null,
"connectedPortLinkPlace": null,
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431927081282,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431927569744,
"lastAction": "MODIFIED",
"properties": [
{
"definitionId": "5f25b077-efc9-4138-8298-5cf148bd566c",
"name": "Port Speed",
"value": "1000",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "b45d79cf-2c91-4644-a977-4798ebfe2903",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "c6de2ce8-082b-4af0-a364-6fe504dea05a",
"name": "portNumber",
"value": "Lan 2",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
}
Updates ports in the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/ports
Access Level: Admin
Request Body:
JSON object with a subset of the following fields:
Returns:
List of newly updated device ports with the same fields as if returned by GET /device/{deviceId}/port/{portId}
Error Codes:
string
(required) UUID of the device to update ports in
{
"ports": [
{
"id": "921d34b2-c22a-499a-86f7-6f08d184fe65",
"name": "Demo port 1",
"description": "This is a demo port",
"templateId": "633f52c5-55c1-468d-a1f9-1fb27962ffc9",
"groupId": "76d9c8a0-9aad-46af-8397-e2f138ff9ec9",
"isShared": false,
"connectedPortId": "cd1f2855-0a9f-45ca-904d-204950097215"
},
{
"id": "942e16e3-a8d5-4188-a5b2-b79de5d639b9",
"name": "Demo port 2",
"description": "This is a demo port",
"templateId": "633f52c5-55c1-468d-a1f9-1fb27962ffc9",
"groupId": "76d9c8a0-9aad-46af-8397-e2f138ff9ec9",
"isShared": false,
"connectedPortId": "dca076c7-ef45-43d1-97d5-5e99e4bc34f0"
}
]
}
200
Toggle {
"ports": [
{
"id": "921d34b2-c22a-499a-86f7-6f08d184fe65",
"name": "Demo port 1",
"description": "This is a demo port",
"templateId": "633f52c5-55c1-468d-a1f9-1fb27962ffc9",
"groupId": "76d9c8a0-9aad-46af-8397-e2f138ff9ec9",
"connectedPortId": "cd1f2855-0a9f-45ca-904d-204950097215",
"connectedPortName": "Demo port 1",
"connectedPortParentId": "39724fc9-4007-4876-a1a3-c458b6788e8f",
"connectedPortParentName": "Demo Server 2",
"connectedPortLinkPlace": "FRONT",
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "79389ac4-2f83-41c6-9fef-eec55bf307a5",
"created": 1434526668691,
"lastModifierId": "79389ac4-2f83-41c6-9fef-eec55bf307a5",
"lastModified": 1434527448997,
"lastAction": "MODIFIED",
"properties": [
{
"definitionId": "bc5c8178-445b-48af-846e-094f5f274e19",
"name": "portNumber",
"value": "Demo port 1",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "ce0d6ff7-7b7c-4266-8bc4-661ac5510570",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "2a0ad7af-3f36-496e-8f0d-dba3b182b953",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "17e9ab3b-f8c0-4af8-aa68-7caedb1c16bd",
"name": "Demo enum property",
"value": "demo 1",
"type": "DROP_DOWN_LIST",
"groupName": "Demo group",
"availableValues": [
"demo 1",
"demo 2",
"demo 3"
]
}
]
},
{
"id": "942e16e3-a8d5-4188-a5b2-b79de5d639b9",
"name": "Demo port 2",
"description": "This is a demo port",
"templateId": "633f52c5-55c1-468d-a1f9-1fb27962ffc9",
"groupId": "76d9c8a0-9aad-46af-8397-e2f138ff9ec9",
"connectedPortId": "dca076c7-ef45-43d1-97d5-5e99e4bc34f0",
"connectedPortName": "Demo port 2",
"connectedPortParentId": "39724fc9-4007-4876-a1a3-c458b6788e8f",
"connectedPortParentName": "Demo Server 2",
"connectedPortLinkPlace": "FRONT",
"connectionType": null,
"connectedPortCableId": null,
"connectedPortCableTypeId": null,
"backConnectedPortId": null,
"backConnectedPortName": null,
"backConnectedPortParentId": null,
"backConnectedPortParentName": null,
"backConnectedPortLinkPlace": null,
"backConnectionType": null,
"backConnectedPortCableId": null,
"backConnectedPortCableTypeId": null,
"isOnline": false,
"isLocked": false,
"isShared": false,
"linkChecked": null,
"isReportedByDriver": false,
"creatorId": "79389ac4-2f83-41c6-9fef-eec55bf307a5",
"created": 1434526668602,
"lastModifierId": "79389ac4-2f83-41c6-9fef-eec55bf307a5",
"lastModified": 1434527449091,
"lastAction": "MODIFIED",
"properties": [
{
"definitionId": "ce0d6ff7-7b7c-4266-8bc4-661ac5510570",
"name": "Port Type",
"value": "Ethernet",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "2a0ad7af-3f36-496e-8f0d-dba3b182b953",
"name": "Port Speed",
"value": "1000",
"type": "INTEGER",
"groupName": "System Identification",
"availableValues": null
},
{
"definitionId": "17e9ab3b-f8c0-4af8-aa68-7caedb1c16bd",
"name": "Demo enum property",
"value": "demo 2",
"type": "DROP_DOWN_LIST",
"groupName": "Demo group",
"availableValues": [
"demo 1",
"demo 2",
"demo 3"
]
},
{
"definitionId": "bc5c8178-445b-48af-846e-094f5f274e19",
"name": "portNumber",
"value": "Demo port 2",
"type": "TEXT",
"groupName": "System Identification",
"availableValues": null
}
]
}
]
}
400
Toggle {
"status": 400,
"errorId": "PORT_ALREADY_CONNECTED",
"message": "Specified port is already connected to another port",
"moreInfo": {
"ids": [
"dca076c7-ef45-43d1-97d5-5e99e4bc34f0",
"cd1f2855-0a9f-45ca-904d-204950097215"
]
}
}
Deletes the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}
Access Level: Admin, Resource Group Admin
Error Codes:
string
(required) UUID of the device to remove
Deletes multiple devices.
Full URL: /velocity/api/inventory/v19/devices
Access Level: Admin, Resource Group Admin
Error Codes:
string
(required) filterable by the same set of options as GET /devices
string
(optional) only devices whose names, descriptions, or properties match the string are processed
boolean
(optional) when true, only devices containing 1 or more ports are processed. When false, only devices without ports are processed.
Deletes the port group specified by portGroupId and all its contained ports located in the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/port_group/{portGroupId}
Access Level: Admin
Error Codes:
string
(required) UUID of the device
string
(required) UUID of the port group to remove
Deletes the port specified by portId located in the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/port/{portId}
Access Level: Admin
Error Codes:
string
(required) UUID of the device containing the port to remove
string
(required) UUID of the port to remove
Deletes ports located in the device specified by deviceId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/ports
Access Level: Admin
Request Body:
JSON body with the following fields:
Error Codes:
string
(required) UUID of the device containing the port to remove
{
"ids": ["6ca19f9f-8ade-4c9b-b987-a982c746f00e", "47f9a743-458f-4934-b3a0-aa28ca2c46c5"]
}
Returns sessions of the device specified by deviceId (including enabled sessions of the parent resource)
Full URL: /velocity/api/inventory/v19/device/{deviceId}/sessions
Access Level: User
Returns:
Tags:
Error Codes:
string
(required) UUID of the device
200
Toggle {
"total": 1,
"offset": 0,
"count": 1,
"sessions": [
{
"id": "32ef965b-b7ed-45f7-a0c2-124c69568bb7",
"name": "RM-17421",
"language": "Python",
"baseProfile": "application://com.fnfr.svt.applications.ssh",
"baseApplication": "com.fnfr.svt.applications.ssh",
"isDisabled": false,
"isInherited": false,
"properties": null
}
]
}
Returns information and merged properties of the resource session specified by sessionId
Full URL: /velocity/api/inventory/v19/device/{deviceId}/session/{sessionId}?merge=<NO/INVENTORY/FULL>
Access Level: User
Returns:
Error Codes:
string
(required) UUID of the device
string
(required) UUID of the session
<no/inventory/full>
(required) merge level. Default NO
200
Toggle {
"id": "cb269ae2-b3c5-46e0-9b74-8a53075bdbf9",
"name": "new_session",
"language": "Python",
"baseProfile": "application://com.fnfr.svt.applications.ssh",
"baseApplication": "com.fnfr.svt.applications.ssh",
"isDisabled": false,
"isInherited": false,
"properties": {
"type": "com.fnfr.svt.applications.ssh.documents.SSHProperties",
"TerminalProperties": {
"prompts": {
"items": [
{
"Content": "root_p1",
"name": "prompt1"
},
{
"Content": "root_p2",
"name": "prompt2",
"TypeOfPrompt": "MORE"
},
{
"HAPromptType": "NORMAL",
"MatchMethod": "NORMAL",
"Content": "local_p3",
"name": "localprompt1"
}
],
"useInherited": true
}
},
"agentRequirements": {
"useInherited": true
}
},
"inheritedProperties": null
}
Creates session for the resource by resourceId. Validates and throws an error if there are validation errors
Full URL: /velocity/api/inventory/v19/device/{deviceId}/session
Access Level: Admin
Request Body:
JSON object with the following fields:
baseProfile: session URI (project://project_name/path/name.ffsp or application://{session_type})
baseApplication: type of the session (com.fnfr.svt.applications.ssh or com.fnfr.svt.applications.telnet)
Returns:
Newly created session, the same as if returned by GET /device/{deviceId}/session/{sessionId}
Error Codes:
string
(required) UUID of the device to add session to
200
Toggle {
"id": "cb269ae2-b3c5-46e0-9b74-8a53075bdbf9",
"name": "new_session",
"language": "Python",
"baseProfile": "application://com.fnfr.svt.applications.ssh",
"baseApplication": "com.fnfr.svt.applications.ssh",
"isDisabled": false,
"isInherited": false,
"properties": null
}
Updates session in the resource by resourceId. Validates and throws an error if there are validation errors. Only isDisable and properties can be updated for inherited session. The other fields (name, uri etc) will ignored.
Full URL: /velocity/api/inventory/v19/device/{deviceId}/session/{sessionId}
Access Level: Admin
Request Body:
JSON object with the following fields:
if any field is missed or is null then it meens that this field inherited value from parent resource
Returns:
Updated session, the same as if returned by GET /device/{deviceId}/session/{sessionId}
Error Codes:
string
(required) UUID of the device to update session to
string
(required) UUID of the session
200
Toggle {
"id": "cb269ae2-b3c5-46e0-9b74-8a53075bdbf9",
"name": "new_session",
"language": "Python",
"baseProfile": "application://com.fnfr.svt.applications.ssh",
"baseApplication": "com.fnfr.svt.applications.ssh",
"isDisabled": false,
"isInherited": false,
"properties": null
}
Cascade deletes the session specified by sessionId.
This operation is available for own sessions only. Returns UNSUPPORTED_OPERATION for inherited sessions.
Full URL: /velocity/api/inventory/v19/device/{deviceId}/session/{sessionId}
Access Level: Admin
Error Codes:
string
(required) UUID of the device to delete session from
string
(required) UUID of the session
Validate the list of session of specified resource. Checks:
Full URL: /velocity/api/inventory/v19/device/{deviceId}/validate_sessions
Access Level: User
Returns:
string
(required) UUID of the device
Return list of available cable types.
Full URL: /velocity/api/inventory/v19/cable_types
Access Level: User
Returns:
boolean
(optional) Default: false when true, property groups and properties is returned for every cable type
200
Toggle {
"cableTypes": [
{
"id": "9e732a67-2683-402f-89d9-14bb4fc46a10",
"name": "Optical Fiber",
"description": "This is Optical fiber cables",
"cableCount": 7,
"usedCableCount": 3,
"creatorId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"created": 1445949269337,
"lastModifierId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"lastModified": 1445949269337,
"propertyGroups": []
},
{
"id": "af94a64b-bc59-4139-b734-ba6f9ca9382e",
"name": "RF Cables 10",
"description": "RF Cox 10 meters cables only",
"cableCount": 0,
"usedCableCount": 0,
"creatorId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"created": 1445949362157,
"lastModifierId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"lastModified": 1445949362157,
"propertyGroups": [
{
"id": "3c824336-a368-4f83-ac4f-0b8501d4501b",
"name": "Main",
"properties": [
{
"id": "64435b94-4632-40ae-9f30-9ea09fbb061e",
"name": "Length, m",
"description": "",
"defaultValue": "10",
"isRequired": false,
"type": "INTEGER",
"availableValues": null
},
{
"id": "de699f03-3b01-45dd-94ec-ed7066bcab40",
"name": "Mode",
"description": "",
"defaultValue": "Single",
"isRequired": false,
"type": "TEXT",
"availableValues": null
}
]
}
]
}
Return information about cable type specified by cableTypeId.
Full URL: /velocity/api/inventory/v19/cable_type/{cableTypeId}
Access Level: User
Returns:
Error Codes:
string
(required) UUID of the cable type
200
Toggle {
"id": "9e732a67-2683-402f-89d9-14bb4fc46a10",
"name": "Optical Fiber",
"description": "This is Optical fiber cables",
"cableCount": 0,
"usedCableCount": 0,
"creatorId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"created": 1445949269337,
"lastModifierId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"lastModified": 1445949269337,
"propertyGroups": [
{
"id": "3c824336-a368-4f83-ac4f-0b8501d4501b",
"name": "Main",
"properties": [
{
"id": "64435b94-4632-40ae-9f30-9ea09fbb061e",
"name": "Length, m",
"description": "",
"defaultValue": "10",
"isRequired": false,
"type": "INTEGER",
"availableValues": null
},
{
"id": "de699f03-3b01-45dd-94ec-ed7066bcab40",
"name": "Mode",
"description": "",
"defaultValue": "Single",
"isRequired": false,
"type": "TEXT",
"availableValues": null
}
]
}
Create new cable type.
Full URL: /velocity/api/inventory/v19/cable_type
Access Level: Admin
Request Body: JSON object with the following fields:
Returns: Newly created cable type, the same as if returned by GET /cable_type/{cableTypeId}
Error Codes:
{
"name": "Optical Fiber",
"description": "This is Optical fiber cables",
"propertyGroups": [
{
"name": "Main",
"properties": [
{
"name": "Length, m",
"type": "INTEGER",
"defaultValue": 10
},
{
"name": "Mode",
"type": "TEXT",
"defaultValue": "Single"
}
]
}
]
}
200
Toggle {
"id": "9e732a67-2683-402f-89d9-14bb4fc46a10",
"name": "Optical Fiber",
"description": "This is Optical fiber cables",
"cableCount": 0,
"usedCableCount": 0,
"creatorId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"created": 1445949269337,
"lastModifierId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"lastModified": 1445949269337,
"propertyGroups": [
{
"id": "3c824336-a368-4f83-ac4f-0b8501d4501b",
"name": "Main",
"properties": [
{
"id": "64435b94-4632-40ae-9f30-9ea09fbb061e",
"name": "Length, m",
"description": "",
"defaultValue": "10",
"isRequired": false,
"type": "INTEGER",
"availableValues": null
},
{
"id": "de699f03-3b01-45dd-94ec-ed7066bcab40",
"name": "Mode",
"description": "",
"defaultValue": "Single",
"isRequired": false,
"type": "TEXT",
"availableValues": null
}
]
}
Update an existing cable type specified by cableTypeId
Full URL: /velocity/api/inventory/v19/cable_type/{cableTypeId}?replaceProperties={true/false}
Access Level: Admin
Request Body: JSON object containing any subset of fields from the corresponding POST request. Sub-fields (propertyGroups and properties) are updated by corresponding IDs. If ID is null for a sub-field, it is added to the cable type.
Returns: Updated cable type, the same as if returned by GET /cable_type/{cableTypeId}
Error Codes:
{
"name": "Optical Fiber",
"description": "This is Optical fiber cables",
"propertyGroups": [
{
"properties": [
{
"id": "64435b94-4632-40ae-9f30-9ea09fbb061e",
"defaultValue": 15
}
]
}
]
}
200
Toggle {
"id": "9e732a67-2683-402f-89d9-14bb4fc46a10",
"name": "Optical Fiber",
"description": "This is Optical fiber cables",
"cableCount": 0,
"usedCableCount": 0,
"creatorId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"created": 1445949269337,
"lastModifierId": "fb0b7bc4-dfae-4ecc-a118-184cf2e507b3",
"lastModified": 1445949269337,
"propertyGroups": [
{
"id": "3c824336-a368-4f83-ac4f-0b8501d4501b",
"name": "Main",
"properties": [
{
"id": "64435b94-4632-40ae-9f30-9ea09fbb061e",
"name": "Length, m",
"description": "",
"defaultValue": "15",
"isRequired": false,
"type": "INTEGER",
"availableValues": null
},
{
"id": "de699f03-3b01-45dd-94ec-ed7066bcab40",
"name": "Mode",
"description": "",
"defaultValue": "Single",
"isRequired": false,
"type": "TEXT",
"availableValues": null
}
]
}
Delete an existing cable type specified by cableTypeId
Full URL: /velocity/api/inventory/v19/cable_type/{cableTypeId}
Access Level: Admin
Error Codes:
Return list of available cables sorted by name.
Full URL: /velocity/api/inventory/v19/cables
Access Level: User
Returns:
Tags:
string
(optional) Will return info only about cables whose names, descriptions, or properties match the string
200
Toggle {
"total": 9,
"offset": 0,
"count": 2,
"cables": [
{
"id": "42d5bffb-618d-498a-96f0-f24b57ae66cf",
"cableTypeId": "b6797029-2f87-430f-ac13-300d1ab15bfa",
"name": "Optical Fiber Cable",
"description": "This is Optical fiber cable",
"connection": {
"port1Id": "2e4dc6ff-a0a1-45ad-bbe1-0bd25024148d",
"linkPlace1": "FRONT",
"port2Id": "b6163743-6adf-4c47-adeb-9f90947359f0",
"linkPlace2": "FRONT",
"type": "FIXED"
},
"properties": [
{
"definitionId": "2e483586-bcef-4fa0-9218-9f83a683f56f",
"name": "Length, m",
"description": "",
"value": "15",
"type": "INTEGER",
"groupName": "Main",
"availableValues": null
},
{
"definitionId": "08f32b59-8d45-4d5a-aabc-3bc73f7ef4c3",
"name": "Mode",
"description": "",
"value": "Double",
"type": "TEXT",
"groupName": "Main",
"availableValues": null
}
],
"creatorId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"created": 1447245005594,
"lastModifierId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"lastModified": 1447245005594
},
{
"id": "11d9e9e6-d49a-4efa-83b7-4442af065132",
"cableTypeId": "5d7eb7cf-dacb-4012-8baf-dcbadbef34fa",
"name": "RF Cable 10",
"description": "RF Cox 10 meters cable",
"connection": null,
"properties": [],
"creatorId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"created": 1447244439846,
"lastModifierId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"lastModified": 1447244439846
}
]
}
Return information about cable specified by cableId.
Full URL: /velocity/api/inventory/v19/cable/{cableId}
Access Level: User
Returns:
Error Codes:
200
Toggle {
"id": "42d5bffb-618d-498a-96f0-f24b57ae66cf",
"cableTypeId": "b6797029-2f87-430f-ac13-300d1ab15bfa",
"name": "Optical Fiber Cable",
"description": "This is Optical fiber cable",
"connection": null,
"properties": [
{
"definitionId": "2e483586-bcef-4fa0-9218-9f83a683f56f",
"name": "Length, m",
"description": "",
"value": "15",
"type": "INTEGER",
"groupName": "Main",
"availableValues": null
},
{
"definitionId": "08f32b59-8d45-4d5a-aabc-3bc73f7ef4c3",
"name": "Mode",
"description": "",
"value": "Double trouble",
"type": "TEXT",
"groupName": "Main",
"availableValues": null
}
],
"creatorId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"created": 1447245005594,
"lastModifierId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"lastModified": 1447245005594
}
Create new cable.
Full URL: /velocity/api/inventory/v19/cable
Access Level: Admin
Request Body: JSON object with the following fields:
Returns: Newly created cable, the same as if returned by GET /cable/{cableId}
Error Codes:
{
"cableTypeId": "b6797029-2f87-430f-ac13-300d1ab15bfa",
"name": "Optical Fiber",
"description": "This is Optical fiber cable",
"properties": [
{
"definitionId": "2e483586-bcef-4fa0-9218-9f83a683f56f",
"value": "15"
},
{
"definitionId": "08f32b59-8d45-4d5a-aabc-3bc73f7ef4c3",
"value": "Double"
}
]
}
200
Toggle {
"id": "a739b3ec-7455-497d-acfc-d72edda94c7e",
"cableTypeId": "b6797029-2f87-430f-ac13-300d1ab15bfa",
"name": "Optical Fiber",
"description": "This is Optical fiber cable",
"connection": null,
"properties": [
{
"definitionId": "2e483586-bcef-4fa0-9218-9f83a683f56f",
"name": "Length, m",
"description": "",
"value": "15",
"type": "INTEGER",
"groupName": "Main",
"availableValues": null
},
{
"definitionId": "08f32b59-8d45-4d5a-aabc-3bc73f7ef4c3",
"name": "Mode",
"description": "",
"value": "Double",
"type": "TEXT",
"groupName": "Main",
"availableValues": null
}
],
"creatorId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"created": 1447309754059,
"lastModifierId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"lastModified": 1447309754059
}
Update an existing cable specified by cableId
Full URL: /velocity/api/inventory/v19/cable/{cableId}
Access Level: Admin
Request Body: JSON object containing any subset of fields from the corresponding POST request. Sub-fields properties are updated by corresponding definition IDs.
Returns: Updated cable, the same as if returned by GET /cable/{cableId}
Error Codes:
{
"description": "This is Optical fiber cable (10m length)",
"properties": [
{
"definitionId": "2e483586-bcef-4fa0-9218-9f83a683f56f",
"value": "10"
}
]
}
200
Toggle {
"id": "a739b3ec-7455-497d-acfc-d72edda94c7e",
"cableTypeId": "b6797029-2f87-430f-ac13-300d1ab15bfa",
"name": "Optical Fiber",
"description": "This is Optical fiber cable (10m length)",
"connection": null,
"properties": [
{
"definitionId": "2e483586-bcef-4fa0-9218-9f83a683f56f",
"name": "Length, m",
"description": "",
"value": "10",
"type": "INTEGER",
"groupName": "Main",
"availableValues": null
},
{
"definitionId": "08f32b59-8d45-4d5a-aabc-3bc73f7ef4c3",
"name": "Mode",
"description": "",
"value": "Double",
"type": "TEXT",
"groupName": "Main",
"availableValues": null
}
],
"creatorId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"created": 1447309754059,
"lastModifierId": "5e0c5e53-f8df-4eae-81bd-ecff703af91a",
"lastModified": 1447310059435
}
Delete an existing cable specified by cableId
Full URL: /velocity/api/inventory/v19/cable/{cableId}
Access Level: Admin
Error Codes:
Exports cables into a CSV file.
Full URL: /velocity/api/inventory/v19/cables_csv
Access Level: User
Returns:
A CSV file with exported cables, containing the following columns:
Schedules a new cables import job based on the passed CSV data.
Full URL: /velocity/api/inventory/v19/cables_csv
Access Level: Admin
Request Body:
CSV data containing the same set of columns from the corresponding export request.
Returns:
Scheduled job ID.
Job’s successful result is JSON object with the following fields:
Response example for job result is shown below as “Response 200”.
Tags:
Error Codes:
200
Toggle{
"status": "SUCCESS",
"result": {
"imported": {
"total": 3,
"imported": 3,
"skipped": 0,
"failed": 0
},
"removed": {
"total": 1,
"removed": 1,
"failed": 0
},
"details": [
{
"id": "b2c0d24d-4353-40a0-a546-9c3fe394b1dc",
"name": "OPT-1",
"type": "Optical",
"status": "IMPORTED",
"message": null
},
{
"id": "cdd7a4d6-6bcb-4b5b-9660-856fb19d0bd5",
"name": "OPT-2",
"type": "Optical",
"status": "IMPORTED",
"message": null
},
{
"id": "eba11736-25c0-45eb-8d26-a8997c062dee",
"name": "OPT-3",
"type": "Optical",
"status": "IMPORTED",
"message": null
},
{
"id": "2542552a-4a70-40f0-99a9-feeeb3051be4",
"name": "ETH-1",
"type": "Ethernet",
"status": "REMOVED",
"message": null
}
]
},
"errorMessage": null
}
import cables from CSV
ToggleContent-Type: text/csv
name,type,description,remove
OPT-1,Optical,Red cable,
OPT-2,Optical,Green cable,
OPT-3,Optical,Blue cable,
ETH-1,Ethernet,,remove
202
Toggle {
"jobId": "1fcd6be6-1c94-4b4e-ad9a-9cc5f699816c"
}
Return list of available inventory VLANs and Networks.
Full URL: /velocity/api/inventory/v19/vlans
Access Level: User
Returns:
Tags:
string
(required) if specified, only VLANs whose names or descriptions and Networks whose name, description or network custom arguments values match the string are returned
boolean
(optional) If true, network custom arguments for networks will be included. false by default
200
Toggle {
"total": 1,
"offset": 0,
"count": 1,
"vlan": [
{
"id": "1d47af90-2e5c-41e6-b489-4c345b67bb35",
"name": "Vlan 1",
"description": "Some text",
"untaggedVlanId": 204,
"taggedVlanIds": [
205,
206
],
"isShared": false,
"creatorId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"created": 1459953051682,
"lastModifierId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"lastModified": 1459953051682,
"arguments": [],
"type": "INVENTORY_VLAN"
},
{
"id": "1d47af90-2e5c-41e6-b489-4c345b67bb36",
"name": "Network 1",
"description": "Some text",
"untaggedVlanId": null,
"taggedVlanIds": [],
"isShared": false,
"lockUtilizationType": null,
"creatorId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"created": 1459953051682,
"lastModifierId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"lastModified": 1459953051682,
"arguments": [ {
"id": "48768973-0185-4c6f-b5e6-3531d2e67bec",
"name": "vlanId",
"description": "",
"type": "INTEGER",
"value": "100",
"argumentValues": [],
"isInherited": true
}, {
"id": "7395cb57-aaf7-42e9-9060-9ad28ba28bf2",
"name": "Test",
"description": "Test Description",
"type": "TEXT",
"value": "Test",
"argumentValues": [],
"isInherited": true
}
],
"type": "INVENTORY_NETWORK"
}
]
}
Return information about inventory VLAN or Network specified by id.
Full URL: /velocity/api/inventory/v19/vlan/{id}
Access Level: User
Returns:
Error Codes:
boolean
(optional) If true, network custom arguments for networks will be included. false by default
200
Toggle {
"id": "1d47af90-2e5c-41e6-b489-4c345b67bb35",
"name": "Vlan 1",
"description": "Some text",
"untaggedVlanId": 204,
"taggedVlanIds": [
205,
206
],
"isShared": false,
"lockUtilizationType": null,
"creatorId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"created": 1459953051682,
"lastModifierId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"lastModified": 1459953051682,
"arguments": [],
"type": "INVENTORY_VLAN"
}
Create new inventory VLAN or Network.
Full URL: /velocity/api/inventory/v19/vlan
Access Level: User
Request Body: JSON object with the following fields:
Returns: Newly created inventory VLAN or Network, the same as if returned by GET /vlan/{id}
Error Codes:
: for Vlan
Toggle {
"name": "Vlan 1",
"description": "Some text",
"untaggedVlanId" : 204,
"taggedVlanIds": [
205,
206
],
"isShared": false,
"type": "INVENTORY_VLAN"
}
: for Network
Toggle {
"name": "Network 1",
"description": "Some text",
"isShared": false,
"arguments": [ {
"id": "7395cb57-aaf7-42e9-9060-9ad28ba28bf2",
"value": "Test New",
"isInherited": false
}
],
"type": "INVENTORY_NETWORK"
}
200
Toggle {
"id": "1d47af90-2e5c-41e6-b489-4c345b67bb35",
"name": "Vlan 1",
"description": "Some text",
"untaggedVlanId" : 204,
"taggedVlanIds": [
205,
206
],
"isShared": false,
"creatorId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"created": 1459953051682,
"lastModifierId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"lastModified": 1459953051682,
"arguments": [],
"type": "INVENTORY_VLAN"
}
200
Toggle {
"id": "1d47af90-2e5c-41e6-b489-4c345b67bb36",
"name": "Network 1",
"description": "Some text",
"untaggedVlanId": null,
"taggedVlanIds": [],
"isShared": false,
"creatorId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"created": 1459953051682,
"lastModifierId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"lastModified": 1459953051682,
"arguments": [ {
"id": "48768973-0185-4c6f-b5e6-3531d2e67bec",
"name": "vlanId",
"description": "",
"type": "INTEGER",
"value": "100",
"argumentValues": [],
"isInherited": true
}, {
"id": "7395cb57-aaf7-42e9-9060-9ad28ba28bf2",
"name": "Test",
"description": "Test Description",
"type": "TEXT",
"value": "Test New",
"argumentValues": [],
"isInherited": false
}
],
"type": "INVENTORY_NETWORK"
}
Update an existing inventory VLAN or Network specified by id
Full URL: /velocity/api/inventory/v19/vlan/{id}
Access Level: User
Request Body: JSON object with any subset of the following fields:
Returns: Updated inventory VLAN or Network, the same as if returned by GET /vlan/{id}
Error Codes:
: for Vlan
Toggle {
"name": "Vlan 1 updated",
"description": "Some text",
"untaggedVlanId" : 204,
"taggedVlanIds": [
205,
206
],
"isShared": true
}
: for Network
Toggle {
"name": "Network 1",
"description": "Some text",
"isShared": false,
"arguments": [ {
"id": "7395cb57-aaf7-42e9-9060-9ad28ba28bf2",
"value": "Test New",
"isInherited": false
}
]
}
200
Toggle {
"id": "1d47af90-2e5c-41e6-b489-4c345b67bb35",
"name": "Vlan 1 updated",
"description": "Some text",
"untaggedVlanId" : 204,
"taggedVlanIds": [
205,
206
],
"isShared": true,
"creatorId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"created": 1459953051682,
"lastModifierId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"lastModified": 1459953051682,
"arguments": [],
"type": "INVENTORY_VLAN"
}
200
Toggle {
"id": "1d47af90-2e5c-41e6-b489-4c345b67bb36",
"name": "Network 1",
"description": "Some text",
"untaggedVlanId": null,
"taggedVlanIds": [],
"isShared": false,
"creatorId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"created": 1459953051682,
"lastModifierId": "5b03a938-6926-4e82-9271-37cfae5fe4cb",
"lastModified": 1459953051682,
"arguments": [ {
"id": "48768973-0185-4c6f-b5e6-3531d2e67bec",
"name": "vlanId",
"description": "",
"type": "INTEGER",
"value": "100",
"argumentValues": [],
"isInherited": true
}, {
"id": "7395cb57-aaf7-42e9-9060-9ad28ba28bf2",
"name": "Test",
"description": "Test Description",
"type": "TEXT",
"value": "Test New",
"argumentValues": [],
"isInherited": false
}
],
"type": "INVENTORY_NETWORK"
}
Delete an existing inventory VLAN or Network specified by id
Full URL: /velocity/api/inventory/v19/vlan/{id}
Access Level: User
Error Codes:
Return list of available abstract resources.
Full URL: /velocity/api/inventory/v19/abstract_resources
Access Level: User
Returns:
Tags:
string
(required) if specified, only abstract resource whose names or descriptions match the string are returned
boolean
(optional) Default: false when true, resource dimensions and colours are returned for every device
200
Toggle {
"total": 21,
"offset": 0,
"count": 3,
"abstractResources": [
{
"id": "ad11d4c4-9fc3-11e8-98d0-529269fb1459",
"name": "Base Station",
"description": "",
"type": "DEVICE",
"condition": "template[Base Station]",
"iconId": "35621347-75ac-4af9-9eab-0a2a633500d0",
"isPublic": true,
"isReadOnly": false,
"isTemplate": true,
"creatorId": "1d098c77-1649-4860-9a45-ef57656c6569",
"ownerId": "1d098c77-1649-4860-9a45-ef57656c6569",
"created": 1426587057070,
"lastModifierId": "1d098c77-1649-4860-9a45-ef57656c6569",
"lastModified": 1426587057105,
"parentId": null,
"childrenCount": 0,
"nestedResourceCount": 0,
"definitionObjectId": "ad11d4c4-9fc3-11e8-98d0-529269fb1459",
"definitionObjectType": "TEMPLATE",
"reservationTime": "IMMEDIATE",
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null
},
{
"id": "f2be38a6-b68d-48f7-a403-fabcbf042701",
"name": "Custom Port",
"description": "",
"type": "PORT",
"condition": "template[Network Port]",
"iconId": "355070e3-ab1d-4e3b-8e94-87a9fe45461e",
"isPublic": true,
"isReadOnly": false,
"isTemplate": false,
"creatorId": "1d098c77-1649-4860-9a45-ef57656c6569",
"ownerId": "1d098c77-1649-4860-9a45-ef57656c6569",
"created": 1426587057120,
"lastModifierId": "1d098c77-1649-4860-9a45-ef57656c6569",
"lastModified": 1426587057152,
"parentId": "4785b3e0-9fc4-11e8-98d0-529269fb1459",
"childrenCount": 0,
"nestedResourceCount": 0,
"definitionObjectId": "0f8fabd0-9fc4-11e8-98d0-529269fb1459",
"definitionObjectType": "TEMPLATE",
"reservationTime": "IMMEDIATE",
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null
},
{
"id": "9407c588-0131-4add-ba6e-ac7b6b079ed5",
"name": "Cisco Switch",
"description": "",
"type": "DEVICE",
"condition": "template[Cisco Switch]",
"iconId": "2d52d018-259c-4ac0-bb05-7fbe20624066",
"isPublic": true,
"isReadOnly": false,
"isTemplate": false,
"creatorId": "1d098c77-1649-4860-9a45-ef57656c6569",
"ownerId": "1d098c77-1649-4860-9a45-ef57656c6569",
"created": 1426587057298,
"lastModifierId": "1d098c77-1649-4860-9a45-ef57656c6569",
"lastModified": 1426587057341,
"parentId": null,
"childrenCount": 1,
"nestedResourceCount": 0,
"definitionObjectId": "0f8fabd0-9fc4-11e8-98d0-529269fb1459",
"definitionObjectType": "ABSTRACT_RESOURCE",
"reservationTime": "IMMEDIATE",
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null
}
]
}
Create multiple abstract resources.
Full URL: /velocity/api/inventory/v19/abstract_resources
Access Level: User
Request Body: JSON object with list items of the following fields:
Returns: An object with a list of items that are the same as if returned by GET /abstract_resource
Error Codes:
{
"items": [
{
"name": "Base Port",
"description": "",
"type": "PORT",
"condition": "template[Base Port]",
"iconId": "35621347-75ac-4af9-9eab-0a2a633500d0",
"isPublic": true,
"parentId": "4785b020-9fc4-11e8-98d0-529269fb1459",
"definitionObjectId": "ad11d4c4-9fc3-11e8-98d0-529269fb1459"
},
{
"name": "Bridge",
"description": "",
"type": "DEVICE",
"condition": "",
"iconId": "355070e3-ab1d-4e3b-8e94-87a9fe45461e",
"isPublic": true,
"parentId": null,
"definitionObjectId": "0f8fabd0-9fc4-11e8-98d0-529269fb1459"
},
{
"name": "Cisco Switch",
"description": "",
"type": "DEVICE",
"condition": "template[Cisco Switch]",
"iconId": "2d52d018-259c-4ac0-bb05-7fbe20624066",
"isPublic": true,
"parentId": null,
"definitionObjectId": null
}
]
}
200
Toggle {
items: [
{
"id": "5923a6be-b008-41c7-9272-ae341032def3",
"name": "Base Port",
"description": "",
"type": "PORT",
"condition": "template[Base Port]",
"iconId": "35621347-75ac-4af9-9eab-0a2a633500d0",
"isPublic": true,
"isReadOnly": false,
"isTemplate": false,
"creatorId": "1d098c77-1649-4860-9a45-ef57656c6569",
"ownerId": "1d098c77-1649-4860-9a45-ef57656c6569",
"created": 1426587057070,
"lastModifierId": "1d098c77-1649-4860-9a45-ef57656c6569",
"lastModified": 1426587057105,
"parentId": "4785b020-9fc4-11e8-98d0-529269fb1459",
"childrenCount": 0,
"nestedResourceCount": 0,
"definitionObjectId": "ad11d4c4-9fc3-11e8-98d0-529269fb1459",
"definitionObjectType": "ABSTRACT_RESOURCE"
},
{
"id": "f2be38a6-b68d-48f7-a403-fabcbf042701",
"name": "Bridge",
"description": "",
"type": "DEVICE",
"condition": "template[Bridge]",
"iconId": "355070e3-ab1d-4e3b-8e94-87a9fe45461e",
"isPublic": true,
"isReadOnly": false,
"isTemplate": false,
"creatorId": "1d098c77-1649-4860-9a45-ef57656c6569",
"ownerId": "1d098c77-1649-4860-9a45-ef57656c6569",
"created": 1426587057120,
"lastModifierId": "1d098c77-1649-4860-9a45-ef57656c6569",
"lastModified": 1426587057152,
"parentId": null,
"childrenCount": 0,
"nestedResourceCount": 0,
"definitionObjectId": "0f8fabd0-9fc4-11e8-98d0-529269fb1459",
"definitionObjectType": "TEMPLATE"
},
{
"id": "9407c588-0131-4add-ba6e-ac7b6b079ed5",
"name": "Cisco Switch",
"description": "",
"type": "DEVICE",
"condition": "template[Cisco Switch]",
"iconId": "2d52d018-259c-4ac0-bb05-7fbe20624066",
"isPublic": true,
"isReadOnly": false,
"isTemplate": false,
"creatorId": "1d098c77-1649-4860-9a45-ef57656c6569",
"ownerId": "1d098c77-1649-4860-9a45-ef57656c6569",
"created": 1426587057298,
"lastModifierId": "1d098c77-1649-4860-9a45-ef57656c6569",
"lastModified": 1426587057341,
"parentId": null,
"childrenCount": 0,
"nestedResourceCount": 0,
"definitionObjectId": null,
"definitionObjectType": "CUSTOM"
}
]
}
Delete multiple existing abstract resources.
Full URL: /velocity/api/inventory/v19/abstract_resources_delete
Access Level: User
Error Codes:
Request Body JSON object with list of items where each item is UUID of abstract resource that should be deleted
Returns HTTP status code 200 in case of success
{
"items": [
"5923a6be-b008-41c7-9272-ae341032def3",
"f2be38a6-b68d-48f7-a403-fabcbf042701"
]
}
200
Return information about abstract resource specified by abstractResourceId.
Full URL: /velocity/api/inventory/v19/abstract_resource/{abstractResourceId}
Access Level: User
Returns:
Error Codes:
200
Toggle {
"id": "c31f2ba7-779d-48cc-b9a8-78a9802c583c",
"name": "OnPath Switch",
"description": "",
"type": "DEVICE",
"condition": "template[OnPath]",
"iconId": null,
"isPublic": true,
"isReadOnly": false,
"isTemplate": false,
"creatorId": "6634551a-6ad9-48d0-ba8f-db24da7e3b2d",
"ownerId": "6634551a-6ad9-48d0-ba8f-db24da7e3b2d",
"created": 1426598882516,
"lastModifierId": "6634551a-6ad9-48d0-ba8f-db24da7e3b2d",
"lastModified": 1426598882516,
"parentId": "4785b020-9fc4-11e8-98d0-529269fb1459",
"childrenCount": 0,
"nestedResourceCount": 0,
"definitionObjectId": "ad11d4c4-9fc3-11e8-98d0-529269fb1459",
"definitionObjectType": "TEMPLATE",
"reservationTime": "IMMEDIATE",
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null
}
Create new abstract resource.
Full URL: /velocity/api/inventory/v19/abstract_resource
Access Level: User
Request Body: JSON object with the following fields:
Returns: Newly created abstract resource, the same as if returned by GET /abstract_resource/{abstractResourceId}
Error Codes:
{
"name": "Abstract server",
"description": "This is an abstract server",
"type": "DEVICE",
"condition": "template[Server]",
"iconId": null,
"isPublic": false,
"parentId": null,
"definitionObjectId": "ad11d4c4-9fc3-11e8-98d0-529269fb1459",
"reservationTime": "IMMEDIATE"
}
200
Toggle {
"id": "7bcb13cb-9d97-41c1-8a01-274cc05b68af",
"name": "Abstract server",
"description": "This is an abstract server",
"type": "DEVICE",
"condition": "template[Server]",
"iconId": null,
"isPublic": false,
"isReadOnly": false,
"isTemplate": false,
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"ownerId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431928867588,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431928867588,
"parentId": null,
"childrenCount": 0,
"nestedResourceCount": 0,
"definitionObjectId": "ad11d4c4-9fc3-11e8-98d0-529269fb1459",
"definitionObjectType": "TEMPLATE",
"reservationTime": "IMMEDIATE",
"width": 0,
"height": 0,
"fillColour": null,
"lineColour": null
}
Update an existing abstract resource specified by abstractResourceId
Full URL: /velocity/api/inventory/v19/abstract_resource/{abstractResourceId}
Access Level: User
Request Body: JSON object with any subset of the following fields:
Returns: Updated abstract resource, the same as if returned by GET /abstract_resource/{abstractResourceId}
Error Codes:
{
"name": "Abstract network port",
"description": "This is an abstract network port",
"type": "PORT",
"condition": "template[Network Port]",
"iconId": null,
"isPublic": true,
"parentId": "4785b020-9fc4-11e8-98d0-529269fb1459",
"definitionObjectId": "ad11d4c4-9fc3-11e8-98d0-529269fb1459",
"reservationTime": "IMMEDIATE",
"width": 300,
"height": 100,
"fillColour": "#D6F693"
}
200
Toggle {
"id": "7bcb13cb-9d97-41c1-8a01-274cc05b68af",
"name": "Abstract network port",
"description": "This is an abstract network port",
"type": "PORT",
"condition": "template[Network Port]",
"iconId": null,
"isPublic": true,
"isReadOnly": false,
"isTemplate": false,
"creatorId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"ownerId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"created": 1431928867588,
"lastModifierId": "3e00b83d-eca5-48ad-8cff-e17c75b93206",
"lastModified": 1431929081584,
"parentId": "4785b020-9fc4-11e8-98d0-529269fb1459",
"childrenCount": 0,
"nestedResourceCount": 0,
"definitionObjectId": "ad11d4c4-9fc3-11e8-98d0-529269fb1459",
"definitionObjectType": "TEMPLATE",
"reservationTime": "IMMEDIATE",
"width": 300,
"height": 100,
"fillColour": "#D6F693",
"lineColour": null
}
Delete an existing abstract resource specified by abstractResourceId
Full URL: /velocity/api/inventory/v19/abstract_resource/{abstractResourceId}
Access Level: User
Error Codes:
200
Returns sessions of the abstract resource specified by resourceId (including enabled sessions of the parent resource)
Full URL: /velocity/api/inventory/v19/abstract_resource/{resourceId}/sessions
Access Level: User
Returns: