@Path(value="/vac-companies")
@Consumes(value="application/json")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
public interface VacCompanyResource
Modifier and Type | Method and Description |
---|---|
TaskResponse |
deleteVacCompany(String uuid)
Delete a VAC company given its uuid.
|
VacPerfSampleListResponse |
getStorageUsage(String uuid,
Long start,
Long end,
Integer limit,
PerfIntervalRequest interval)
Get the storage usage performance samples for a given company, timeframe and
performance sampling interval.
|
BaBackupDirectoryListResponse |
getVacBackupDirectories(String uuid,
BaBackupDirectoryFilterParams filterParams)
Get a list of backup directories given a VAC company uuid.
|
BaBackupFileListResponse |
getVacBackupFiles(String uuid,
String backupDirectoryUuid,
BaBackupFileFilterParams filterParams)
Get a list of backup files given a VAC company uuid and backup directory uuid.
|
BaCompanyResponse |
getVacCompany(String uuid)
Gets a VAC company by its uuid.
|
BaCompanyCreationRequirementsResponse |
getVacCompanyCreationRequirements()
Get the minimum size for VAC company creation in GB.
|
BaJobListResponse |
getVacCompanyJobs(String uuid)
Get a list of VAC jobs for a given VAC company.
|
void |
requestContractUpgrade(String companyUuid,
BaCompanyContractUpgradeRequest updateContractRequest)
Upgrade the contract associated with a particular VAC company.
|
void |
resetVacCompanyPassword(String uuid,
BaCompanyPasswordResetRequest passwordResetRequest)
Update the password for the VAC company.
|
TaskResponse |
updateVacCompany(String uuid,
BaCompanyUpdateRequest baCompanyUpdateRequest)
Update the VAC company.
|
TaskResponse |
updateVacCompanyStorageQuota(String uuid,
BaBackupResourceUpdateRequest baBackupResourceUpdateRequest)
Update the VAC company's storage quota.
|
@GET @Path(value="/{uuid}") BaCompanyResponse getVacCompany(@PathParam(value="uuid") String uuid)
uuid
- vac company uuid@DELETE @Path(value="/{uuid}") TaskResponse deleteVacCompany(@PathParam(value="uuid") String uuid)
uuid
- vac company uuid@GET @Path(value="/{uuid}/storage-usage") VacPerfSampleListResponse getStorageUsage(@PathParam(value="uuid") String uuid, @QueryParam(value="start") Long start, @QueryParam(value="end") Long end, @QueryParam(value="limit") Integer limit, @QueryParam(value="interval") PerfIntervalRequest interval)
If no interval is explicitly specified, an 'HOUR' interval is assumed.
uuid
- the company uuidstart
- The start timestamp, in epoch milliseconds. Defaults to
the past day when the interval=HOUR and to the past 90
days when interval=DAY.end
- The end timestamp, in epoch milliseconds. Defaults to
the current time.limit
- sample limitinterval
- perf interval@POST @Path(value="/{uuid}/actions/update-password") @Consumes(value="application/json") void resetVacCompanyPassword(@PathParam(value="uuid") String uuid, BaCompanyPasswordResetRequest passwordResetRequest)
uuid
- vac company uuidpasswordResetRequest
- password reset request@POST @Path(value="/{uuid}/actions/request-upgrade-contract") @Consumes(value="application/json") void requestContractUpgrade(@PathParam(value="uuid") String companyUuid, BaCompanyContractUpgradeRequest updateContractRequest)
companyUuid
- the vac company uuidupdateContractRequest
- of changes to be made@PUT @Path(value="/{uuid}") @Consumes(value="application/json") TaskResponse updateVacCompany(@PathParam(value="uuid") String uuid, BaCompanyUpdateRequest baCompanyUpdateRequest)
uuid
- the UUID of the vac companybaCompanyUpdateRequest
- VAC company update request@PUT @Path(value="/{uuid}/actions/update-storage-quota") @Consumes(value="application/json") TaskResponse updateVacCompanyStorageQuota(@PathParam(value="uuid") String uuid, BaBackupResourceUpdateRequest baBackupResourceUpdateRequest)
Backup resource storage quota cannot exceed contracted value nor can be updated in a VAC company with multiple backup resources. Contact iland support to update storage quota in those cases.
uuid
- the UUID of the vac companybaBackupResourceUpdateRequest
- backup resource update request@GET @Path(value="/{uuid}/vac-backup-directories") @Consumes(value="application/json") BaBackupDirectoryListResponse getVacBackupDirectories(@PathParam(value="uuid") String uuid, @BeanParam BaBackupDirectoryFilterParams filterParams)
uuid
- the UUID of the vac company@GET @Path(value="/{uuid}/{backupDirectoryUuid}/vac-backup-files") @Consumes(value="application/json") BaBackupFileListResponse getVacBackupFiles(@PathParam(value="uuid") String uuid, @PathParam(value="backupDirectoryUuid") String backupDirectoryUuid, @BeanParam BaBackupFileFilterParams filterParams)
uuid
- the UUID of the vac companybackupDirectoryUuid
- the UUID of the backup directory@GET @Path(value="/{uuid}/jobs") BaJobListResponse getVacCompanyJobs(@PathParam(value="uuid") String uuid)
uuid
- the UUID of a vac company@GET @Path(value="/vac-company-creation-requirements") BaCompanyCreationRequirementsResponse getVacCompanyCreationRequirements()
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.