Interface Devices
- All Known Implementing Classes:
DevicesImpl
public interface Devices
Client interface for managing Network Edge virtual devices. Provides operations
to list, retrieve, and create devices, as well as manage device types, network
interfaces, and license files.
- Author:
- ianjones
-
Method Summary
Modifier and TypeMethodDescriptionaddDeviceAcl(String uuid, DeviceACLRequest deviceACLRequest) Associates ACL templates with the specified device.addDeviceAcl(String uuid, DeviceACLRequest deviceACLRequest, String accountUcmId) Associates ACL templates with the specified device on behalf of a customer account (reseller flow).createRMA(String uuid, DeviceRMARequest deviceRMARequest) Triggers an RMA (Return Merchandise Authorization) of the specified device.Returns an instance of DeviceBuilder for defining a new device.defineSecondary(String secondaryDeviceName, String primaryDeviceUuid) Returns an instance of DeviceBuilderSecondary for defining a secondary device.Gets the specified device.getDeviceAcl(String uuid) Returns the ACL templates currently associated with the specified device, including each template's provisioning status on the device.getInterfaceStatistics(String uuid, String interfaceId, Instant startDateTime, Instant endDateTime) Returns interface throughput statistics for an interface of the specified device.list()Lists available Network Edge devices.list(RequestBuilder.Device requestBuilder) Lists Network Edge devices based on the parameters provided.listAllowedInterfaces(RequestBuilder.AllowedInterfaces requestBuilder) Returns the interface layout allowed for a device type with a chosen configuration.Lists the available device types.listDownloadableImages(String deviceType) Lists the images available to download for the specified device type.listInterfaces(String uuid) Lists the interfaces for the specified device.listReloadHistory(String uuid) Returns the reload/soft-reboot history of the specified device.listUpgradeHistory(String uuid) Returns the resource-upgrade history of the specified device.postLicenseFile(MetroCode metroCode, String deviceTypeCode, LicenseType licenseType, String fileContents) Posts a new license file.requestImageDownload(String deviceType, String version) Requests a download link for a specific image version of the specified device type.softReboot(String uuid) Triggers a soft reboot of the specified device.updateDeviceAcl(String uuid, DeviceACLRequest deviceACLRequest) Updates or removes the ACL templates associated with the specified device.updateDeviceAcl(String uuid, DeviceACLRequest deviceACLRequest, String accountUcmId) Updates or removes the ACL templates associated with the specified device on behalf of a customer account (reseller flow).
-
Method Details
-
list
-
list
Lists Network Edge devices based on the parameters provided.- Parameters:
requestBuilder- the desired query parameters.- Returns:
PaginatedList
-
getByUuid
-
listDeviceTypes
PaginatedList<DeviceType> listDeviceTypes()Lists the available device types.- Returns:
PaginatedList
-
listInterfaces
Lists the interfaces for the specified device.- Parameters:
uuid- the unique identifier of the device.- Returns:
List
-
listAllowedInterfaces
Returns the interface layout allowed for a device type with a chosen configuration. Use this to size a device before creation.- Parameters:
requestBuilder- the device type and configuration parameters.- Returns:
AllowedInterfaceResponse
-
listReloadHistory
Returns the reload/soft-reboot history of the specified device.- Parameters:
uuid- the unique identifier of the device.- Returns:
List
-
listUpgradeHistory
Returns the resource-upgrade history of the specified device.- Parameters:
uuid- the unique identifier of the device.- Returns:
List
-
getInterfaceStatistics
InterfaceStats getInterfaceStatistics(String uuid, String interfaceId, Instant startDateTime, Instant endDateTime) Returns interface throughput statistics for an interface of the specified device.Maps to
GET /ne/v1/devices/{uuid}/interfaces/{interfaceId}/stats. The bounds are sent asYYYY-MM-DDThh:mm:ssZin UTC, truncated to whole seconds. Live (2026-11-11) the service rejects fractional seconds (...:28.282Z) and the spec's example form (2023-11-10 19:06:06 UTC) with HTTP 400EQ-4000702"Start date is not valid", and rejects a request without the bounds, although the spec marks them optional.- Parameters:
uuid- the unique identifier of the device.interfaceId- the interface id.startDateTime- the start of the stats window; requiredendDateTime- the end of the stats window; required- Returns:
InterfaceStats- Throws:
IllegalArgumentException- if a bound isnullor the window is reversed
-
listDownloadableImages
Lists the images available to download for the specified device type.- Parameters:
deviceType- the device type code.- Returns:
List
-
requestImageDownload
Requests a download link for a specific image version of the specified device type.- Parameters:
deviceType- the device type code.version- the device version.- Returns:
ImageDownload
-
define
Returns an instance of DeviceBuilder for defining a new device.- Returns:
DeviceOperator.DeviceBuilder
-
defineSecondary
DeviceOperator.DeviceBuilderSecondary defineSecondary(String secondaryDeviceName, String primaryDeviceUuid) Returns an instance of DeviceBuilderSecondary for defining a secondary device. -
postLicenseFile
String postLicenseFile(MetroCode metroCode, String deviceTypeCode, LicenseType licenseType, String fileContents) Posts a new license file.- Parameters:
metroCode- theMetroCodeto associate the license file with.deviceTypeCode- the device type code to associate the license file with.licenseType- theLicenseTypeto associate the license file with.fileContents- the contents of the license file.- Returns:
Stringthe fileId of the uploaded license file.
-
softReboot
-
createRMA
Triggers an RMA (Return Merchandise Authorization) of the specified device. The required payload fields vary by vendor; refer to the API reference for the exact payload per device type.- Parameters:
uuid- the unique identifier of the device.deviceRMARequest- theDeviceRMARequestdescribing the RMA.- Returns:
Booleantrueif the RMA request was accepted.
-
getDeviceAcl
-
addDeviceAcl
Associates ACL templates with the specified device.- Parameters:
uuid- the unique identifier of the device.deviceACLRequest- theDeviceACLRequestdescribing the ACLs to apply.- Returns:
DeviceACLthe updated device ACL state.
-
addDeviceAcl
Associates ACL templates with the specified device on behalf of a customer account (reseller flow).- Parameters:
uuid- the unique identifier of the device.deviceACLRequest- theDeviceACLRequestdescribing the ACLs to apply.accountUcmId- the customer account UCM id.- Returns:
DeviceACLthe updated device ACL state.
-
updateDeviceAcl
Updates or removes the ACL templates associated with the specified device.- Parameters:
uuid- the unique identifier of the device.deviceACLRequest- theDeviceACLRequestdescribing the desired ACLs.- Returns:
DeviceACLthe updated device ACL state.
-
updateDeviceAcl
Updates or removes the ACL templates associated with the specified device on behalf of a customer account (reseller flow).- Parameters:
uuid- the unique identifier of the device.deviceACLRequest- theDeviceACLRequestdescribing the desired ACLs.accountUcmId- the customer account UCM id.- Returns:
DeviceACLthe updated device ACL state.
-