public class ServerProfileClientImpl extends Object implements ServerProfileClient
Modifier | Constructor and Description |
---|---|
protected |
ServerProfileClientImpl(ServerProfileAdaptor adaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor,
ServerHardwareClient serverHardwareClientImpl) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createServerProfile(RestParams params,
ServerProfile serverProfileDto,
boolean aSync,
boolean useJsonRequest)
The module aids in the creation of a server profile when provided with the
server profile details as a ServerProfile object or JsonRequest.
|
TaskResourceV2 |
deleteServerProfile(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting a server profile for the specified
server profile resource identifier.
|
TaskResourceV2 |
deleteServerProfileByFilter(RestParams params,
String filter,
Boolean match,
boolean aSync)
This module aids in deleting all server profile objects from the
appliance that match the provided filter.
|
ServerProfileCollection |
getAllServerProfile(RestParams params)
The module aids in fetching the server profile details for all
the server profiles found under the current HPE OneView.
|
AvailableNetworks |
getAvailableNetworksForServerProfile(RestParams params,
String serverHardwareTypeUri,
String enclosureGroupUri)
The module aids in retrieving the list of ethernet networks, fibre
channel networks and network sets that are available to a server profile
along with their respective ports for the specified enclosure group URI and
server hardware type URI.
|
List<AvailableServers> |
getAvailableServersForServerProfile(RestParams params)
Returns a list of the servers that are available for assignment to the
server profile.
|
List<AvailableServers> |
getAvailableServersForServerProfile(RestParams params,
String profileUri)
Returns a list of the servers that are available for assignment to the
server profile.
|
List<AvailableServers> |
getAvailableServersForServerProfile(RestParams params,
String serverHardwareTypeUri,
String enclosureGroupUri)
Returns a list of the servers that are available for assignment to the
server profile.
|
AvailableStorageSystem |
getAvailableStorageSystemForServerProfile(RestParams params,
String enclosureGroupUri,
String serverHardwareTypeUri,
String storageSystemId)
Returns a specific storage system and its associated volumes that are
available to the server profile based on the given server hardware type and
enclosure group.
|
AvailableStorageSystems |
getAvailableStorageSystemsForServerProfile(RestParams params,
String enclosureGroupUri,
String serverHardwareTypeUri)
Returns the list of the storage systems and their associated volumes that
are available to the server profile based on the given server hardware type and
enclosure group.
|
AvailableTargets |
getAvailableTargetsForServerProfile(RestParams params)
Returns a list of the target servers and empty device bays that are available
for assignment to the server profile.
|
AvailableTargets |
getAvailableTargetsForServerProfile(RestParams params,
String enclosureGroupUri,
String serverHardwareTypeUri,
String profileUri)
Returns a list of the target servers and empty device bays that are available
for assignment to the server profile.
|
static ServerProfileClient |
getClient() |
String |
getId(RestParams params,
String name)
The module aids in fetching the server profile resource identifier for the server profile
name as specified in HPE OneView.
|
ProfilePorts |
getProfilePortsForServerProfile(RestParams params,
String serverHardwareTypeUri,
String enclosureGroupUri)
Returns the port model associated server hardware type and enclosure group.
|
ServerProfile |
getServerProfile(RestParams params,
String resourceId)
The module aids in fetching the server profile details for the specified
server profile resource identifier.
|
ServerProfile |
getServerProfileByName(RestParams params,
String name)
The module aids in fetching the server profile details for the
server profile name as specified in HPE OneView.
|
ServerProfileCompliancePreview |
getServerProfileCompliancePreview(RestParams params,
String resourceId)
Returns the preview of manual and automatic updates required to make the
server profile consistent with its template.
|
ServerProfileHealth |
getServerProfileMessages(RestParams params,
String resourceId)
Returns the error or status messages associated with the specified server profile.
|
ServerProfile |
getServerProfileTransformation(RestParams params,
String resourceId,
String serverHardwareTypeUri,
String enclosureGroupUri)
Transforms an existing profile by supplying a new server hardware type and/or
enclosure group.
|
TaskResourceV2 |
patchServerProfile(RestParams params,
String resourceId,
Patch patchDto,
boolean aSync)
Use the PATCH REST API to update the server profile.
|
TaskResourceV2 |
updateServerProfile(RestParams params,
String resourceId,
ServerProfile serverProfileDto,
boolean aSync,
boolean useJsonRequest)
The module takes in a ServerProfile object or JsonRequest and updates
the existing server profile based on the resource identifier.
|
protected ServerProfileClientImpl(ServerProfileAdaptor adaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor, ServerHardwareClient serverHardwareClientImpl)
public static ServerProfileClient getClient()
public ServerProfile getServerProfile(RestParams params, String resourceId)
ServerProfileClient
getServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server profile as seen in HPE OneView.ServerProfile
containing the server profile details.public ServerProfileCollection getAllServerProfile(RestParams params)
ServerProfileClient
getAllServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.ServerProfileCollection
containing a collection of server profile details.public ServerProfile getServerProfileByName(RestParams params, String name)
ServerProfileClient
getServerProfileByName
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.name
- The resourceName is the server profile name as seen in HPE OneView.ServerProfile
containing the server profile details.public ServerProfileCompliancePreview getServerProfileCompliancePreview(RestParams params, String resourceId)
ServerProfileClient
getServerProfileCompliancePreview
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server profile as seen in HPE OneView.ServerProfileCompliancePreview
containing the server profile
compliance preview details.public ServerProfileHealth getServerProfileMessages(RestParams params, String resourceId)
ServerProfileClient
getServerProfileMessages
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server profile as seen in HPE OneView.ServerProfileHealth
containing the server profile health details.public ServerProfile getServerProfileTransformation(RestParams params, String resourceId, String serverHardwareTypeUri, String enclosureGroupUri)
ServerProfileClient
getServerProfileTransformation
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server profile as seen in HPE OneView.serverHardwareTypeUri
- String, specifying the server hardware type URI.enclosureGroupUri
- String, specifying the enclosure group URI.ServerProfile
containing the server profile details.public AvailableNetworks getAvailableNetworksForServerProfile(RestParams params, String serverHardwareTypeUri, String enclosureGroupUri)
ServerProfileClient
getAvailableNetworksForServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.serverHardwareTypeUri
- String, specifying the server hardware type URI.enclosureGroupUri
- String, specifying the enclosure group URI.AvailableNetworks
containing the AvailableNetworks details.public List<AvailableServers> getAvailableServersForServerProfile(RestParams params)
ServerProfileClient
getAvailableServersForServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.List
of AvailableServers
containing a collection of available servers details.public List<AvailableServers> getAvailableServersForServerProfile(RestParams params, String serverHardwareTypeUri, String enclosureGroupUri)
ServerProfileClient
getAvailableServersForServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.serverHardwareTypeUri
- String, specifying the server hardware type URI.enclosureGroupUri
- String, specifying the enclosure group URI.List
of AvailableServers
containing a collection of available servers details.public List<AvailableServers> getAvailableServersForServerProfile(RestParams params, String profileUri)
ServerProfileClient
getAvailableServersForServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.profileUri
- String, specifying the server profile URI.List
of AvailableServers
containing a collection of available servers details.public AvailableStorageSystems getAvailableStorageSystemsForServerProfile(RestParams params, String enclosureGroupUri, String serverHardwareTypeUri)
ServerProfileClient
getAvailableStorageSystemsForServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.enclosureGroupUri
- String, specifying the enclosure group URI.serverHardwareTypeUri
- String, specifying the server hardware type URI.AvailableStorageSystems
containing a collection of storage system details.public AvailableStorageSystem getAvailableStorageSystemForServerProfile(RestParams params, String enclosureGroupUri, String serverHardwareTypeUri, String storageSystemId)
ServerProfileClient
getAvailableStorageSystemForServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.enclosureGroupUri
- String, specifying the enclosure group URI.serverHardwareTypeUri
- String, specifying the server hardware type URI.storageSystemId
- String, specifying the storage system identifier.AvailableStorageSystem
containing the storage system details.public AvailableTargets getAvailableTargetsForServerProfile(RestParams params)
ServerProfileClient
getAvailableTargetsForServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.AvailableTargets
containing the available target details.public AvailableTargets getAvailableTargetsForServerProfile(RestParams params, String enclosureGroupUri, String serverHardwareTypeUri, String profileUri)
ServerProfileClient
getAvailableTargetsForServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.enclosureGroupUri
- String, specifying the enclosure group URI.serverHardwareTypeUri
- String, specifying the server hardware type URI.profileUri
- String, specifying the server profile URI.AvailableTargets
containing the available target details.public ProfilePorts getProfilePortsForServerProfile(RestParams params, String serverHardwareTypeUri, String enclosureGroupUri)
ServerProfileClient
getProfilePortsForServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.serverHardwareTypeUri
- String, specifying the server hardware type identifier.enclosureGroupUri
- String, specifying the enclosure group identifier.ProfilePorts
containing the profile ports details.public TaskResourceV2 createServerProfile(RestParams params, ServerProfile serverProfileDto, boolean aSync, boolean useJsonRequest)
ServerProfileClient
createServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.serverProfileDto
- Object containing the server profile details, used to create a server profile.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of ServerProfile object which
takes in a String containing the new server profile details,
which is converted to ServerProfile object using an adaptor and
processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateServerProfile(RestParams params, String resourceId, ServerProfile serverProfileDto, boolean aSync, boolean useJsonRequest)
ServerProfileClient
updateServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server profile as seen in HPE OneView.serverProfileDto
- Object containing the server profile details, used to update a server profile.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of ServerProfile object which
takes in a String containing the update to be made, which is
converted to ServerProfile object using an adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 patchServerProfile(RestParams params, String resourceId, Patch patchDto, boolean aSync)
ServerProfileClient
patchServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server profile as seen in HPE OneView.patchDto
- Object containing the patch details, used to update a server profile.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteServerProfile(RestParams params, String resourceId, boolean aSync)
ServerProfileClient
deleteServerProfile
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server profile as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteServerProfileByFilter(RestParams params, String filter, Boolean match, boolean aSync)
ServerProfileClient
deleteServerProfileByFilter
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.filter
- The filter is the server profile name as seen in HPE OneView.match
- Flag input to process filter with %filter% or just filter.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public String getId(RestParams params, String name)
ServerProfileClient
getId
in interface ServerProfileClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the server profile name as seen in HPE OneView.Copyright © 2016. All rights reserved.