public class FileVirtualPools extends AbstractCoreBulkResources<FileVirtualPoolRestRep> implements TopLevelResources<FileVirtualPoolRestRep>, ACLResources, QuotaResources
Base URL: /file/vpools
| Constructor and Description |
|---|
FileVirtualPools(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
FileVirtualPoolRestRep |
assignStoragePools(java.net.URI id,
VirtualPoolPoolUpdateParam input)
Manually updates storage pool assignments for a given file virtual pool.
|
FileVirtualPoolRestRep |
create(FileVirtualPoolParam input)
Creates a file virtual pool.
|
void |
deactivate(FileVirtualPoolRestRep pool) |
void |
deactivate(java.net.URI id)
Deactivates a file virtual pool.
|
java.util.List<ACLEntry> |
getACLs(java.net.URI id)
Gets the ACL entries for a given resource by ID.
|
java.util.List<FileVirtualPoolRestRep> |
getAll()
Gets a list of all file virtual pools.
|
java.util.List<FileVirtualPoolRestRep> |
getAll(ResourceFilter<FileVirtualPoolRestRep> filter)
Gets a list of all file virtual pools, optionally filtering the results.
|
java.util.List<FileVirtualPoolRestRep> |
getByTenant(java.net.URI tenantId) |
java.util.List<FileVirtualPoolRestRep> |
getByTenant(java.net.URI tenantId,
ResourceFilter<FileVirtualPoolRestRep> filter) |
java.util.List<FileVirtualPoolRestRep> |
getByVirtualArray(java.net.URI varrayId)
Gets the storage pools that are associated with the given block virtual pool.
|
java.util.List<FileVirtualPoolRestRep> |
getByVirtualArray(java.net.URI varrayId,
ResourceFilter<FileVirtualPoolRestRep> filter)
Gets the storage pools that are associated with the given block virtual pool.
|
java.util.List<FileVirtualPoolRestRep> |
getByVirtualArrayAndTenant(java.net.URI varrayId,
java.net.URI tenantId,
ResourceFilter<FileVirtualPoolRestRep> filter) |
CapacityResponse |
getCapacityOnVirtualArray(java.net.URI id,
java.net.URI virtualArrayId)
Get the capacity of the file virtual pool on the given virtual array.
|
java.util.List<StoragePoolRestRep> |
getMatchingStoragePools(FileVirtualPoolParam input)
Gets all storage pools that would match the given file virtual pool configuration.
|
QuotaInfo |
getQuota(java.net.URI id)
Gets the quota information for a given resource by ID.
|
java.util.List<StoragePoolRestRep> |
getStoragePools(java.net.URI id)
Gets the list of storage pools for the given file virtual pool by ID.
|
java.util.List<NamedRelatedVirtualPoolRep> |
list()
Lists all file virtual pools.
|
java.util.List<NamedRelatedVirtualPoolRep> |
listByTenant(java.net.URI tenantId)
Lists all virtual pools of specific tenant
|
java.util.List<NamedRelatedVirtualPoolRep> |
listByVDC(java.lang.String shortVdcId)
Lists all virtual pools in a virtual data center
|
java.util.List<NamedRelatedVirtualPoolRep> |
listByVirtualArray(java.net.URI varrayId)
Lists the virtual pools that are associated with the given virtual array.
|
java.util.List<NamedRelatedVirtualPoolRep> |
listByVirtualArrayAndTenant(java.net.URI varrayId,
java.net.URI tenantId) |
java.util.List<NamedRelatedResourceRep> |
listMatchingStoragePools(FileVirtualPoolParam input)
Lists all storage pools that would match the given file virtual pool configuration.
|
java.util.List<NamedRelatedResourceRep> |
listStoragePools(java.net.URI id)
Lists the storage pools for the given file virtual pool by ID.
|
java.util.List<NamedRelatedResourceRep> |
refreshMatchingStoragePools(java.net.URI id)
Refreshes the storage pools that match the given file virtual pool.
|
FileVirtualPoolRestRep |
update(java.net.URI id,
FileVirtualPoolUpdateParam input)
Updates a file virtual pool.
|
java.util.List<ACLEntry> |
updateACLs(java.net.URI id,
ACLAssignmentChanges aclChanges)
Updates the ACL entries for a given resource by ID.
|
QuotaInfo |
updateQuota(java.net.URI id,
QuotaUpdateParam quota)
Updates the quota information for a given resource by ID.
|
FileVirtualPools |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
FileVirtualPools |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
getByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTagsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, search, updateTagspublic FileVirtualPools(ViPRCoreClient parent, RestClient client)
public FileVirtualPools withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<FileVirtualPoolRestRep>inactive - whether to include inactive resources.public FileVirtualPools withInternal(boolean internal)
AbstractResourceswithInternal in class AbstractResources<FileVirtualPoolRestRep>internal - whether to include internal resources.public java.util.List<NamedRelatedVirtualPoolRep> list()
API Call: GET /file/vpools
list in interface TopLevelResources<FileVirtualPoolRestRep>public java.util.List<NamedRelatedVirtualPoolRep> listByVDC(java.lang.String shortVdcId)
API Call: GET /file/vpools
public java.util.List<NamedRelatedVirtualPoolRep> listByTenant(java.net.URI tenantId)
API Call: GET /file/vpools
public java.util.List<FileVirtualPoolRestRep> getByTenant(java.net.URI tenantId)
public java.util.List<FileVirtualPoolRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<FileVirtualPoolRestRep> filter)
public java.util.List<FileVirtualPoolRestRep> getAll()
This is a convenience method for: getByRefs(list())
getAll in interface TopLevelResources<FileVirtualPoolRestRep>TopLevelResources.list(),
Resources.getByRefs(java.util.Collection)public java.util.List<FileVirtualPoolRestRep> getAll(ResourceFilter<FileVirtualPoolRestRep> filter)
This is a convenience method for: getByRefs(list(), filter)
getAll in interface TopLevelResources<FileVirtualPoolRestRep>filter - the resource filter to apply to the results as they are returned (optional).TopLevelResources.list(),
Resources.getByRefs(java.util.Collection, ResourceFilter)public FileVirtualPoolRestRep create(FileVirtualPoolParam input)
API Call: POST /file/vpools
input - the virtual pool configuration.public FileVirtualPoolRestRep update(java.net.URI id, FileVirtualPoolUpdateParam input)
API Call: PUT /file/vpools/{id}
id - the ID of the file virtual pool to update.input - public void deactivate(java.net.URI id)
API Call: POST /file/vpools/{id}/deactivate
id - the ID of the file virtual pool.public void deactivate(FileVirtualPoolRestRep pool)
public java.util.List<NamedRelatedVirtualPoolRep> listByVirtualArray(java.net.URI varrayId)
API Call: GET /vdc/varrays/{id}/vpools
varrayId - the ID of the virtual array.public java.util.List<NamedRelatedVirtualPoolRep> listByVirtualArrayAndTenant(java.net.URI varrayId, java.net.URI tenantId)
public java.util.List<FileVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId)
varrayId - the ID of the virtual array.listByVirtualArray(URI),
AbstractResources.getByRefs(java.util.Collection)public java.util.List<FileVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId, ResourceFilter<FileVirtualPoolRestRep> filter)
varrayId - the ID of the virtual array.filter - the resource filter to apply to the results as they are returned (optional).listByVirtualArray(URI),
AbstractResources.getByRefs(java.util.Collection)public java.util.List<FileVirtualPoolRestRep> getByVirtualArrayAndTenant(java.net.URI varrayId, java.net.URI tenantId, ResourceFilter<FileVirtualPoolRestRep> filter)
public java.util.List<ACLEntry> getACLs(java.net.URI id)
ACLResourcesAPI Call: GET baseUrl/{id}/acl
getACLs in interface ACLResourcesid - the resource ID.public java.util.List<ACLEntry> updateACLs(java.net.URI id, ACLAssignmentChanges aclChanges)
ACLResourcesAPI Call: PUT baseUrl/{id}/acl
updateACLs in interface ACLResourcesid - the resource ID.aclChanges - the ACL changes to perform (ACL entries to add/remove).public QuotaInfo getQuota(java.net.URI id)
QuotaResourcesAPI Call: GET baseUrl/{id}/quota
getQuota in interface QuotaResourcesid - the resource ID.public QuotaInfo updateQuota(java.net.URI id, QuotaUpdateParam quota)
QuotaResourcesAPI Call: PUT baseUrl/{id}/quota
updateQuota in interface QuotaResourcesid - the resource ID.quota - the update to the quota.public CapacityResponse getCapacityOnVirtualArray(java.net.URI id, java.net.URI virtualArrayId)
API Call: GET /file/vpools/{id}/varrays/{virtualArrayId}/capacity
id - the ID of the file virtual pool.virtualArrayId - the virtual array.public java.util.List<NamedRelatedResourceRep> listStoragePools(java.net.URI id)
API Call: GET /file/vpools/{id}/storage-pools
id - the ID of the file virtual pool.public java.util.List<StoragePoolRestRep> getStoragePools(java.net.URI id)
id - the ID of the file virtual pool.public java.util.List<NamedRelatedResourceRep> listMatchingStoragePools(FileVirtualPoolParam input)
API Call: POST /file/vpools/matching-pools
input - the file virtual pool configuration.public java.util.List<StoragePoolRestRep> getMatchingStoragePools(FileVirtualPoolParam input)
input - the file virtual pool configuration.public java.util.List<NamedRelatedResourceRep> refreshMatchingStoragePools(java.net.URI id)
API Call: GET /file/vpools/{id}/refresh-matched-pools
id - the ID of the file virtual pool.public FileVirtualPoolRestRep assignStoragePools(java.net.URI id, VirtualPoolPoolUpdateParam input)
API Call: PUT /file/vpools/{id}/assign-matched-pools
id - the ID of the file virtual pool.input - the configuration of the storage pool assignments.