Class DevicesImpl
java.lang.Object
com.eqixiac.equinix.networkedge.client.implementation.DevicesImpl
- All Implemented Interfaces:
Devices
-
Constructor Summary
Constructors -
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).
-
Constructor Details
-
DevicesImpl
public DevicesImpl()
-
-
Method Details
-
list
Description copied from interface:DevicesLists available Network Edge devices.- Specified by:
listin interfaceDevices- Returns:
PaginatedList
-
list
Lists Network Edge devices based on the parameters provided.- Specified by:
listin interfaceDevices- Parameters:
requestBuilder- the desired query parameters.- Returns:
PaginatedList
-
listDeviceTypes
Description copied from interface:DevicesLists the available device types.- Specified by:
listDeviceTypesin interfaceDevices- Returns:
PaginatedList
-
listInterfaces
Description copied from interface:DevicesLists the interfaces for the specified device.- Specified by:
listInterfacesin interfaceDevices- Parameters:
uuid- the unique identifier of the device.- Returns:
List
-
listAllowedInterfaces
public AllowedInterfaceResponse listAllowedInterfaces(RequestBuilder.AllowedInterfaces requestBuilder) Description copied from interface:DevicesReturns the interface layout allowed for a device type with a chosen configuration. Use this to size a device before creation.- Specified by:
listAllowedInterfacesin interfaceDevices- Parameters:
requestBuilder- the device type and configuration parameters.- Returns:
AllowedInterfaceResponse
-
listReloadHistory
Description copied from interface:DevicesReturns the reload/soft-reboot history of the specified device.- Specified by:
listReloadHistoryin interfaceDevices- Parameters:
uuid- the unique identifier of the device.- Returns:
List
-
listUpgradeHistory
Description copied from interface:DevicesReturns the resource-upgrade history of the specified device.- Specified by:
listUpgradeHistoryin interfaceDevices- Parameters:
uuid- the unique identifier of the device.- Returns:
List
-
getInterfaceStatistics
public InterfaceStats getInterfaceStatistics(String uuid, String interfaceId, Instant startDateTime, Instant endDateTime) Description copied from interface:DevicesReturns 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.- Specified by:
getInterfaceStatisticsin interfaceDevices- 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
-
listDownloadableImages
Description copied from interface:DevicesLists the images available to download for the specified device type.- Specified by:
listDownloadableImagesin interfaceDevices- Parameters:
deviceType- the device type code.- Returns:
List
-
requestImageDownload
Description copied from interface:DevicesRequests a download link for a specific image version of the specified device type.- Specified by:
requestImageDownloadin interfaceDevices- Parameters:
deviceType- the device type code.version- the device version.- Returns:
ImageDownload
-
getByUuid
-
define
Returns an instance of DeviceBuilder for defining a new device.- Specified by:
definein interfaceDevices- Returns:
DeviceOperator.DeviceBuilder
-
defineSecondary
public DeviceOperator.DeviceBuilderSecondary defineSecondary(String secondaryDeviceName, String primaryDeviceUuid) Returns an instance of DeviceBuilderSecondary for defining a secondary device.- Specified by:
defineSecondaryin interfaceDevices- Returns:
DeviceOperator.DeviceBuilderSecondary
-
postLicenseFile
public String postLicenseFile(MetroCode metroCode, String deviceTypeCode, LicenseType licenseType, String fileContents) Description copied from interface:DevicesPosts a new license file.- Specified by:
postLicenseFilein interfaceDevices- 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
Description copied from interface:DevicesTriggers 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.- Specified by:
createRMAin interfaceDevices- Parameters:
uuid- the unique identifier of the device.deviceRMARequest- theDeviceRMARequestdescribing the RMA.- Returns:
Booleantrueif the RMA request was accepted.
-
getDeviceAcl
Description copied from interface:DevicesReturns the ACL templates currently associated with the specified device, including each template's provisioning status on the device.- Specified by:
getDeviceAclin interfaceDevices- Parameters:
uuid- the unique identifier of the device.- Returns:
DeviceACL
-
addDeviceAcl
Description copied from interface:DevicesAssociates ACL templates with the specified device.- Specified by:
addDeviceAclin interfaceDevices- Parameters:
uuid- the unique identifier of the device.deviceACLRequest- theDeviceACLRequestdescribing the ACLs to apply.- Returns:
DeviceACLthe updated device ACL state.
-
addDeviceAcl
Description copied from interface:DevicesAssociates ACL templates with the specified device on behalf of a customer account (reseller flow).- Specified by:
addDeviceAclin interfaceDevices- 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
Description copied from interface:DevicesUpdates or removes the ACL templates associated with the specified device.- Specified by:
updateDeviceAclin interfaceDevices- Parameters:
uuid- the unique identifier of the device.deviceACLRequest- theDeviceACLRequestdescribing the desired ACLs.- Returns:
DeviceACLthe updated device ACL state.
-
updateDeviceAcl
public DeviceACL updateDeviceAcl(String uuid, DeviceACLRequest deviceACLRequest, String accountUcmId) Description copied from interface:DevicesUpdates or removes the ACL templates associated with the specified device on behalf of a customer account (reseller flow).- Specified by:
updateDeviceAclin interfaceDevices- 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.
-