public class StoragePorts extends AbstractCoreBulkResources<StoragePortRestRep> implements TopLevelResources<StoragePortRestRep>
Base URL: /vdc/storage-ports
Constructor and Description |
---|
StoragePorts(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
StoragePortRestRep |
create(java.net.URI id,
StoragePortRequestParam input)
Creates the given storage port.
|
StoragePortRestRep |
deregister(java.net.URI id)
De-registers a storage port.
|
java.util.List<StoragePortRestRep> |
getAll()
Gets a list of all storage ports.
|
java.util.List<StoragePortRestRep> |
getAll(ResourceFilter<StoragePortRestRep> filter)
Gets a list of all storage ports, optionally filtering the results.
|
java.util.List<StoragePortRestRep> |
getByNetwork(java.net.URI networkId)
Gets the list of storage ports for the given network by ID.
|
java.util.List<StoragePortRestRep> |
getByNetwork(java.net.URI networkId,
ResourceFilter<StoragePortRestRep> filter)
Gets the list of storage ports for the given network by ID, optionally filtering the results.
|
java.util.List<StoragePortRestRep> |
getByStorageSystem(java.net.URI storageSystemId)
Gets the list of storage ports for the given storage system by ID.
|
java.util.List<StoragePortRestRep> |
getByStorageSystem(java.net.URI storageSystemId,
ResourceFilter<StoragePortRestRep> filter)
Gets the list of storage ports for the given storage system by ID, optionally filtering the results.
|
java.util.List<StoragePortRestRep> |
getByVirtualArray(java.net.URI virtualArrayId)
Gets the list of storage ports for the given virtual array by ID.
|
java.util.List<StoragePortRestRep> |
getByVirtualArray(java.net.URI virtualArrayId,
ResourceFilter<StoragePortRestRep> filter)
Gets the list of storage ports for the given virtual array by ID, optionally filtering the results.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all storage ports.
|
java.util.List<NamedRelatedResourceRep> |
listByNetwork(java.net.URI networkId)
Lists the storage ports for the given network by ID.
|
java.util.List<NamedRelatedResourceRep> |
listByStorageSystem(java.net.URI storageSystemId)
Lists the storage ports for the given storage system by ID.
|
java.util.List<NamedRelatedResourceRep> |
listByVirtualArray(java.net.URI virtualArrayId)
Lists the storage ports for the given virtual array by ID.
|
StoragePortRestRep |
register(java.net.URI portId,
java.net.URI storageSystemId)
Registers a storage port with the given storage system by ID.
|
StoragePortRestRep |
update(java.net.URI id,
StoragePortUpdate input)
Updates the given storage port by ID.
|
StoragePorts |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
StoragePorts |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
getByIds, getByRefs, listBulkIds
addTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByIds, getByRefs
addTags, get, get, getTags, removeTags, search, updateTags
public StoragePorts(ViPRCoreClient parent, RestClient client)
public StoragePorts withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<StoragePortRestRep>
inactive
- whether to include inactive resources.public StoragePorts withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<StoragePortRestRep>
internal
- whether to include internal resources.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /vdc/storage-ports
list
in interface TopLevelResources<StoragePortRestRep>
public java.util.List<StoragePortRestRep> getAll()
getAll
in interface TopLevelResources<StoragePortRestRep>
TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection)
public java.util.List<StoragePortRestRep> getAll(ResourceFilter<StoragePortRestRep> filter)
getAll
in interface TopLevelResources<StoragePortRestRep>
filter
- the resource filter to apply to the results as they are returned (optional).TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection, ResourceFilter)
public StoragePortRestRep create(java.net.URI id, StoragePortRequestParam input)
API call: POST
id
- the storage system Idinput
- the storage portpublic StoragePortRestRep update(java.net.URI id, StoragePortUpdate input)
API Call: PUT /vdc/storage-ports/{id}
id
- the ID of the storage port to update.input
- the update configuration.public StoragePortRestRep register(java.net.URI portId, java.net.URI storageSystemId)
API Call: POST /vdc/storage-systems/{storageSystemId}/storage-ports/{portId}/register
portId
- the ID of the storage port.storageSystemId
- the ID of the storage system.public StoragePortRestRep deregister(java.net.URI id)
API Call: POST /vdc/storage-ports/{id}/deregister
id
- the ID of the storage port to de-register.public java.util.List<NamedRelatedResourceRep> listByStorageSystem(java.net.URI storageSystemId)
API Call: GET /vdc/storage-systems/{storageSystemId}/storage-ports
storageSystemId
- the ID of the storage system.public java.util.List<StoragePortRestRep> getByStorageSystem(java.net.URI storageSystemId)
storageSystemId
- the ID of the storage system.public java.util.List<StoragePortRestRep> getByStorageSystem(java.net.URI storageSystemId, ResourceFilter<StoragePortRestRep> filter)
storageSystemId
- the ID of the storage system.filter
- the resource filter to apply to the results as they are returned (optional).public java.util.List<NamedRelatedResourceRep> listByNetwork(java.net.URI networkId)
API Call: GET /vdc/networks/{networkId}/storage-ports
networkId
- the ID of the network.public java.util.List<StoragePortRestRep> getByNetwork(java.net.URI networkId)
networkId
- the ID of the network.public java.util.List<StoragePortRestRep> getByNetwork(java.net.URI networkId, ResourceFilter<StoragePortRestRep> filter)
networkId
- the ID of the network.filter
- the resource filter to apply to the results as they are returned (optional).public java.util.List<NamedRelatedResourceRep> listByVirtualArray(java.net.URI virtualArrayId)
API Call: GET /vdc/varrays/{virtualArrayId}/storage-ports
virtualArrayId
- the ID of the virtual array.public java.util.List<StoragePortRestRep> getByVirtualArray(java.net.URI virtualArrayId)
virtualArrayId
- the ID of the virtual array.public java.util.List<StoragePortRestRep> getByVirtualArray(java.net.URI virtualArrayId, ResourceFilter<StoragePortRestRep> filter)
virtualArrayId
- the ID of the virtual array.filter
- the resource filter to apply to the results as they are returned (optional).