@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.
|
TaskResponse |
disableVacJob(String uuid,
String jobUuid)
Disable a VAC job.
|
TaskResponse |
enableVacJob(String uuid,
String jobUuid)
Enable a VAC job.
|
BaCompanyBackupHistoryListResponse |
getBackupHistoryFor(String companyUuid,
Integer offset,
Integer limit)
Get the backup history for a given VAC company.
|
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.
|
BaJobResponse |
getVacCompanyJob(String uuid,
String jobUuid)
Get a VAC job given a VAC company uuid and the job's uuid.
|
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 |
retryVacJob(String uuid,
String jobUuid)
Retry a VAC job.
|
TaskResponse |
startVacJob(String uuid,
String jobUuid)
Start a VAC job.
|
TaskResponse |
stopVacJob(String uuid,
String jobUuid)
Stop a VAC job.
|
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@GET @Path(value="/{uuid}/backup-history") BaCompanyBackupHistoryListResponse getBackupHistoryFor(@PathParam(value="uuid") String companyUuid, @QueryParam(value="offset") Integer offset, @QueryParam(value="limit") Integer limit)
Offset and limit must be a positive integer. Limit's max value is 100.
Default offset is 50 and default limit is 10.
companyUuid
- the UUID of the vac companyoffset
- the offsetlimit
- the limit@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="/{uuid}/jobs/{jobUuid}") BaJobResponse getVacCompanyJob(@PathParam(value="uuid") String uuid, @PathParam(value="jobUuid") String jobUuid)
uuid
- the UUID of a vac companyjobUuid
- the job UUID of vac company@POST @Path(value="/{uuid}/jobs/{jobUuid}/action/enable") TaskResponse enableVacJob(@PathParam(value="uuid") String uuid, @PathParam(value="jobUuid") String jobUuid)
uuid
- the UUID of a vac companyjobUuid
- the job UUID of vac job@POST @Path(value="/{uuid}/jobs/{jobUuid}/action/disable") TaskResponse disableVacJob(@PathParam(value="uuid") String uuid, @PathParam(value="jobUuid") String jobUuid)
uuid
- the UUID of a vac companyjobUuid
- the job UUID of vac job@POST @Path(value="/{uuid}/jobs/{jobUuid}/action/start") TaskResponse startVacJob(@PathParam(value="uuid") String uuid, @PathParam(value="jobUuid") String jobUuid)
uuid
- the UUID of a vac companyjobUuid
- the job UUID of vac job@POST @Path(value="/{uuid}/jobs/{jobUuid}/action/stop") TaskResponse stopVacJob(@PathParam(value="uuid") String uuid, @PathParam(value="jobUuid") String jobUuid)
uuid
- the UUID of a vac companyjobUuid
- the job UUID of vac job@POST @Path(value="/{uuid}/jobs/{jobUuid}/action/retry") TaskResponse retryVacJob(@PathParam(value="uuid") String uuid, @PathParam(value="jobUuid") String jobUuid)
uuid
- the UUID of a vac companyjobUuid
- the job UUID of vac job@GET @Path(value="/vac-company-creation-requirements") BaCompanyCreationRequirementsResponse getVacCompanyCreationRequirements()
Copyright © 2020 iland Internet Solutions, Corp. All rights reserved.