public class BlockExports extends ProjectResources<ExportGroupRestRep> implements TaskResources<ExportGroupRestRep>
Base URL: /block/exports
ExportGroupRestRep| Constructor and Description |
|---|
BlockExports(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
Task<ExportGroupRestRep> |
create(ExportCreateParam input)
Begins creating a block export.
|
Task<ExportGroupRestRep> |
deactivate(java.net.URI id)
Begins deactivating a block export by ID.
|
java.util.List<ExportGroupRestRep> |
findByCluster(java.net.URI clusterId,
java.net.URI projectId,
java.net.URI varrayId)
Finds the exports associated with a cluster.
|
java.util.List<ExportGroupRestRep> |
findByHost(java.net.URI hostId,
java.net.URI projectId,
java.net.URI varrayId)
Finds the exports associated with a host.
|
java.util.List<ExportGroupRestRep> |
findByHostOrCluster(java.net.URI hostId,
java.net.URI projectId)
Deprecated.
This was a convenience method to a
deprecated method. |
java.util.List<ExportGroupRestRep> |
findByHostOrCluster(java.net.URI hostId,
java.net.URI projectId,
java.net.URI virtualArrayId)
Deprecated.
This method was only used in one test class
ViPRClientApp which doesn't use this method anymore. |
java.util.List<ExportGroupRestRep> |
findByName(java.lang.String name,
java.net.URI projectId,
java.net.URI varrayId)
Finds the exports by name.
|
java.util.List<ExportGroupRestRep> |
findContainingCluster(java.net.URI clusterId)
Finds the exports associated with a cluster.
|
java.util.List<ExportGroupRestRep> |
findContainingHost(java.net.URI hostId)
Finds any exports (HOST, CLUSTER or EXCLUSIVE) that contain the host.
|
java.util.List<ExportGroupRestRep> |
findContainingHost(java.net.URI hostId,
java.net.URI projectId,
java.net.URI varrayId)
Finds any exports (HOST, CLUSTER or EXCLUSIVE) that contain the host.
|
java.util.List<ExportGroupRestRep> |
getExports(java.util.List<java.net.URI> exportIds) |
java.util.List<ITLRestRep> |
getExportsForInitiatorPorts(java.util.Collection<java.lang.String> initiatorPorts)
Gets the exports (initiator-target-lun) for the given initiator ports.
|
java.util.List<ITLRestRep> |
getExportsForInitiators(java.util.Collection<InitiatorRestRep> initiators)
Gets the exports (initiator-target-lun) for the given initiators.
|
Task<ExportGroupRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<ExportGroupRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
ExportGroupSearchBuilder |
search()
Creates a search builder specifically for creating export group search queries.
|
Task<ExportGroupRestRep> |
update(java.net.URI id,
ExportUpdateParam input)
Begins updating a block export.
|
BlockExports |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
BlockExports |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
findByProject, findByProject, findByProject, findByProjectgetByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, updateTagsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, updateTagspublic BlockExports(ViPRCoreClient parent, RestClient client)
public BlockExports withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<ExportGroupRestRep>inactive - whether to include inactive resources.public BlockExports withInternal(boolean internal)
AbstractResourceswithInternal in class AbstractResources<ExportGroupRestRep>internal - whether to include internal resources.public java.util.List<ExportGroupRestRep> getExports(java.util.List<java.net.URI> exportIds)
public Tasks<ExportGroupRestRep> getTasks(java.net.URI id)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks
getTasks in interface TaskResources<ExportGroupRestRep>id - the resource ID.public Task<ExportGroupRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks/{taskId}
getTask in interface TaskResources<ExportGroupRestRep>id - the resource ID.taskId - the task ID.public Task<ExportGroupRestRep> create(ExportCreateParam input)
API Call: POST /block/exports
input - the create configuration.public Task<ExportGroupRestRep> update(java.net.URI id, ExportUpdateParam input)
API Call: PUT /block/exports/{id}
id - the ID of the block export to update.input - the update configuration.public Task<ExportGroupRestRep> deactivate(java.net.URI id)
API Call: POST /block/exports/{id}/deactivate
id - the ID of the block export to deactivate.public java.util.List<ExportGroupRestRep> findByCluster(java.net.URI clusterId, java.net.URI projectId, java.net.URI varrayId)
clusterId - the ID of the cluster.projectId - the ID of the project to restrict exports to, or null for no restriction*varrayId - the ID of the varray to restrict exports to, or null for no restriction*public java.util.List<ExportGroupRestRep> findByHost(java.net.URI hostId, java.net.URI projectId, java.net.URI varrayId)
hostId - the ID of the host.projectId - the ID of the project to restrict exports to, or null for no restrictionvarrayId - the ID of the varray to restrict exports to, or null for no restriction* *public java.util.List<ExportGroupRestRep> findByName(java.lang.String name, java.net.URI projectId, java.net.URI varrayId)
name - Name to search for.projectId - the ID of the project to restrict exports to, or null for no restrictionvarrayId - the ID of the varray to restrict exports to, or null for no restriction* *public java.util.List<ExportGroupRestRep> findContainingHost(java.net.URI hostId, java.net.URI projectId, java.net.URI varrayId)
hostId - the ID of the host.projectId - the ID of the project to restrict exports to, or null for no restrictionvarrayId - the ID of the varray to restrict exports to, or null for no restriction *public java.util.List<ExportGroupRestRep> findContainingHost(java.net.URI hostId)
hostId - the ID of the host.public java.util.List<ExportGroupRestRep> findContainingCluster(java.net.URI clusterId)
clusterId - the ID of the cluster.@Deprecated public java.util.List<ExportGroupRestRep> findByHostOrCluster(java.net.URI hostId, java.net.URI projectId, java.net.URI virtualArrayId)
ViPRClientApp which doesn't use this method anymore.hostId - the ID of the host.projectId - the ID of the project.virtualArrayId - the ID of the virtual array to restrict the exports to, or null for no restriction.@Deprecated public java.util.List<ExportGroupRestRep> findByHostOrCluster(java.net.URI hostId, java.net.URI projectId)
deprecated method.hostId - the ID of the host.projectId - the ID of the project.public java.util.List<ITLRestRep> getExportsForInitiators(java.util.Collection<InitiatorRestRep> initiators)
getExportsForInitiatorPorts(Collection).initiators - the initiators.public java.util.List<ITLRestRep> getExportsForInitiatorPorts(java.util.Collection<java.lang.String> initiatorPorts)
API Call: GET /block/exports?initiators={initiatorPort1},{initiatorPort2},...
initiatorPorts - the initiator ports.public ExportGroupSearchBuilder search()
search in interface Resources<ExportGroupRestRep>search in class ProjectResources<ExportGroupRestRep>