public class BlockVirtualPools extends AbstractCoreBulkResources<BlockVirtualPoolRestRep> implements TopLevelResources<BlockVirtualPoolRestRep>, ACLResources, QuotaResources
Base URL: /block/vpools
| Constructor and Description |
|---|
BlockVirtualPools(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
BlockVirtualPoolRestRep |
assignStoragePools(java.net.URI id,
VirtualPoolPoolUpdateParam input)
Manually updates storage pool assignments for a given block virtual pool.
|
BlockVirtualPoolRestRep |
create(BlockVirtualPoolParam input)
Creates a new block virtual pool.
|
void |
deactivate(BlockVirtualPoolRestRep pool) |
void |
deactivate(java.net.URI id)
Deactivates a block virtual pool.
|
java.util.List<ACLEntry> |
getACLs(java.net.URI id)
Gets the ACL entries for a given resource by ID.
|
java.util.List<BlockVirtualPoolRestRep> |
getAll()
Gets all block virtual pools.
|
java.util.List<BlockVirtualPoolRestRep> |
getAll(ResourceFilter<BlockVirtualPoolRestRep> filter)
Gets all block virtual pools, optionally filtering the results.
|
java.util.List<BlockVirtualPoolRestRep> |
getByTenant(java.net.URI tenantId) |
java.util.List<BlockVirtualPoolRestRep> |
getByTenant(java.net.URI tenantId,
ResourceFilter<BlockVirtualPoolRestRep> filter) |
java.util.List<BlockVirtualPoolRestRep> |
getByVirtualArray(java.net.URI varrayId)
Gets the storage pools that are associated with the given block virtual pool.
|
java.util.List<BlockVirtualPoolRestRep> |
getByVirtualArray(java.net.URI varrayId,
ResourceFilter<BlockVirtualPoolRestRep> filter)
Gets the storage pools that are associated with the given block virtual pool.
|
java.util.List<BlockVirtualPoolRestRep> |
getByVirtualArray(java.net.URI varrayId,
java.net.URI tenantId,
ResourceFilter<BlockVirtualPoolRestRep> filter) |
java.util.List<BlockVirtualPoolRestRep> |
getByVirtualArrayAndTenant(java.net.URI varrayId,
java.net.URI tenantId)
Gets the storage pools that are associated with the given block virtual pool and tenant.
|
CapacityResponse |
getCapacityOnVirtualArray(java.net.URI id,
java.net.URI virtualArrayId)
Gets the virtual pool capacity on a given virtual array.
|
java.util.List<StoragePoolRestRep> |
getMatchingStoragePools(BlockVirtualPoolParam input)
Get the storage pools that would match a block virtual pool with the given 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 storage pools that are associated with the given block virtual pool
|
java.util.List<NamedRelatedVirtualPoolRep> |
list()
Lists all block 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(BlockVirtualPoolParam input)
Lists the storage pools that would match a block virtual pool with the given configuration.
|
java.util.List<NamedRelatedResourceRep> |
listStoragePools(java.net.URI id)
Lists the storage pools that are associated with the given block virtual pool.
|
java.util.List<VirtualPoolChangeRep> |
listVirtualPoolChangeCandidates(java.net.URI id,
BulkIdParam input)
Lists virtual pool change candidates for the given block virtual pool.
|
java.util.List<NamedRelatedResourceRep> |
refreshMatchingStoragePools(java.net.URI id)
Refreshes the storage pools that match the given block virtual pool.
|
BlockVirtualPoolRestRep |
update(java.net.URI id,
BlockVirtualPoolUpdateParam input)
Updates a block 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.
|
BlockVirtualPools |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
BlockVirtualPools |
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 BlockVirtualPools(ViPRCoreClient parent, RestClient client)
public BlockVirtualPools withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<BlockVirtualPoolRestRep>inactive - whether to include inactive resources.public BlockVirtualPools withInternal(boolean internal)
AbstractResourceswithInternal in class AbstractResources<BlockVirtualPoolRestRep>internal - whether to include internal resources.public java.util.List<NamedRelatedVirtualPoolRep> list()
API Call: GET /block/vpools
list in interface TopLevelResources<BlockVirtualPoolRestRep>public java.util.List<NamedRelatedVirtualPoolRep> listByVDC(java.lang.String shortVdcId)
API Call: GET /block/vpools
public java.util.List<NamedRelatedVirtualPoolRep> listByTenant(java.net.URI tenantId)
API Call: GET /block/vpools
public java.util.List<BlockVirtualPoolRestRep> getByTenant(java.net.URI tenantId)
public java.util.List<BlockVirtualPoolRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<BlockVirtualPoolRestRep> filter)
public java.util.List<BlockVirtualPoolRestRep> getAll()
getAll in interface TopLevelResources<BlockVirtualPoolRestRep>list(),
AbstractResources.getByRefs(java.util.Collection)public java.util.List<BlockVirtualPoolRestRep> getAll(ResourceFilter<BlockVirtualPoolRestRep> filter)
getAll in interface TopLevelResources<BlockVirtualPoolRestRep>filter - the resource filter to apply to the results as they are returned (optional).TopLevelResources.list(),
Resources.getByRefs(java.util.Collection, ResourceFilter)public BlockVirtualPoolRestRep create(BlockVirtualPoolParam input)
API Call: POST /block/vpools
input - the create configuration.public BlockVirtualPoolRestRep update(java.net.URI id, BlockVirtualPoolUpdateParam input)
API Call: PUT /block/vpools/{id}
id - the ID of the block virtual pool to update.input - the update configuration.public void deactivate(java.net.URI id)
API Call: POST /block/vpools/{id}/deactivate
id - the ID of the block virtual pool to deactivate.public void deactivate(BlockVirtualPoolRestRep 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<BlockVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId)
varrayId - the ID of the virtual array.listByVirtualArray(URI),
AbstractResources.getByRefs(java.util.Collection)public java.util.List<BlockVirtualPoolRestRep> getByVirtualArrayAndTenant(java.net.URI varrayId, java.net.URI tenantId)
varrayId - the ID of the virtual array.tenantId - the ID of tenantlistByVirtualArray(URI),
AbstractResources.getByRefs(java.util.Collection)public java.util.List<BlockVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId, ResourceFilter<BlockVirtualPoolRestRep> 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<BlockVirtualPoolRestRep> getByVirtualArray(java.net.URI varrayId, java.net.URI tenantId, ResourceFilter<BlockVirtualPoolRestRep> 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 /block/vpools/{id}/varrays/{varrayId}/capacity
id - the ID of the block virtual pool.virtualArrayId - the ID of the virtual array.public java.util.List<NamedRelatedResourceRep> listStoragePools(java.net.URI id)
API Call: GET /block/vpools/{id}/storage-pools
id - the ID of the block virtual pool.public java.util.List<StoragePoolRestRep> getStoragePools(java.net.URI id)
id - the ID of the block virtual pool.listStoragePools(URI),
AbstractResources.getByRefs(java.util.Collection)public java.util.List<NamedRelatedResourceRep> listMatchingStoragePools(BlockVirtualPoolParam input)
API Call: POST /block/vpools/matching-pools
input - the configuration for a potential block virtual pool.public java.util.List<StoragePoolRestRep> getMatchingStoragePools(BlockVirtualPoolParam input)
input - the configuration for potential block virtual pool.public java.util.List<NamedRelatedResourceRep> refreshMatchingStoragePools(java.net.URI id)
API Call: GET /block/vpools/{id}/refresh-matched-pools
id - the ID of the block virtual pool.public BlockVirtualPoolRestRep assignStoragePools(java.net.URI id, VirtualPoolPoolUpdateParam input)
API Call: PUT /block/vpools/{id}/assign-matched-pools
id - the ID of the block virtual pool.input - the configuration of the storage pool assignments.public java.util.List<VirtualPoolChangeRep> listVirtualPoolChangeCandidates(java.net.URI id, BulkIdParam input)
API Call: GET /block/vpools/{id}/vpool-change/vpool
id - the ID of the block virtual pool.