@Path(value="/vdcs") @Consumes(value="application/json") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") public interface VdcResource extends Serializable
| Modifier and Type | Method and Description |
|---|---|
TaskResponse |
addVappFromTemplate(String vdcUuid,
VdcAddVappFromTemplateRequest request)
Add a vApp from a vApp template.
|
TaskResponse |
buildVapp(String vdcUuid,
BuildVappRequest spec)
Create a vApp from scratch to the given VDC.
|
TaskResponse |
deleteMetadata(String vdcUuid,
String key)
Delete a specific piece of metadata associated with a Vdc by its key.
|
TaskResponse |
generateVmInventoryReport(String vdcUuid,
boolean emailOnCompletion,
String email)
Generate a VM inventory report for the specified vDC.
|
BillResponse |
getBilling(String vdcUuid,
Integer year,
Integer month)
Returns vDC billing for a given invoice period.
|
BillingSampleSerieResponse |
getCostOverInvoicePeriodSerie(String vdcUuid,
Integer year,
Integer month,
List<String> additionalFields)
Get a serie detailing the hourly cost over an invoice period for a given
vDC.
|
EdgeListResponse |
getEdges(String vdcUuid)
Get the edges for the vDC.
|
MediaListResponse |
getMedias(String vdcUuid)
Get medias available to a given Vdc.
|
MetadataListResponse |
getMetadata(String vdcUuid)
Retrieve metadata associated with a Vdc.
|
OrgVdcNetworkListResponse |
getOrgVdcNetworks(String vdcUuid)
Get org vdc networks for a given VDC.
|
PerfSampleSerieResponse |
getPerformance(String vdcUuid,
String group,
String name,
String type,
Long start,
Long end,
String interval,
String limit)
Get VDC performance data for the given VDC, counter, and time range.
|
PerformanceCounterListResponse |
getPerformanceCounters(String vdcUuid)
Get the list of performance counters that can be used to query for vDC
performance data.
|
StorageProfileListResponse |
getStorageProfiles(String vdcUuid,
Boolean includeDisabled)
Get the storage profiles available to the vDC.
|
VdcStorageProfileSummaryResponse |
getStorageProfileSummary(String vdcUuid,
Integer year,
Integer month)
Gets a summary of storage profile usage for a specified vDC and billing
period.
|
VdcResourceSummaryResponse |
getSummary(String vdcUuid)
Get the resource summary for the given VDC.
|
BillListResponse |
getVappBills(String vdcUuid,
Integer month,
Integer year)
Gets all vapp bills for a specified vDC.
|
VappResourceSummaryMapResponse |
getVappResourceSummaries(String vdcUuid)
Get the map of resource summaries for all vApps in the given vDC.
|
VappListResponse |
getVapps(String vdcUuid)
Get a list of vApps for a VDC.
|
VdcResponse |
getVdc(String vdcUuid,
Long timestamp)
Get a VDC by its UUID.
|
BillingSummaryResponse |
getVdcCurrentBilling(String vdcUuid)
Get the current billing for a VDC.
|
BillListResponse |
getVmBills(String vdcUuid,
Integer month,
Integer year)
Gets all vm bills for a specified vDC.
|
ReportHeaderListResponse |
getVmInventoryReports(String vdcUuid,
ReportFormat reportFormat)
Get the VM inventory reports for vDC.
|
VmResourceSummaryMapResponse |
getVmResourceSummaries(String vdcUuid)
Get the map of resource summaries for all VMs in the given vDC.
|
VmListResponse |
getVms(String vdcUuid)
Get a list of VMs for a VDC.
|
void |
sendEventHistory(String vdcUuid,
EventHistoryEmailRequest spec)
Email a CSV report with all event history for a given Vdc.
|
TaskResponse |
updateMetadata(String vdcUuid,
List<UpdateMetadataRequest> metadata)
Add / update metadata associated with a Vdc.
|
@GET
@Path(value="/{vdcUuid}")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
VdcResponse getVdc(@PathParam(value="vdcUuid")
String vdcUuid,
@QueryParam(value="timestamp")
Long timestamp)
vdcUuid - vdc uuidtimestamp - optional timestamp parameter to get the vDC details at a
certain point in time.@GET
@Path(value="/{vdcUuid}/vapps")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
VappListResponse getVapps(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@GET
@Path(value="/{vdcUuid}/vms")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
VmListResponse getVms(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@GET
@Path(value="/{vdcUuid}/billing-summary")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
BillingSummaryResponse getVdcCurrentBilling(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@GET
@Path(value="/{vdcUuid}/billing")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
BillResponse getBilling(@PathParam(value="vdcUuid")
String vdcUuid,
@QueryParam(value="year")
Integer year,
@QueryParam(value="month")
Integer month)
vdcUuid - vdc uuidyear - the invoice period year (defaults to current year)month - the invoice period month (defaults to the current month) must
be in range 1-12@GET
@Path(value="/{vdcUuid}/vapp-bills")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
BillListResponse getVappBills(@PathParam(value="vdcUuid")
String vdcUuid,
@QueryParam(value="month")
Integer month,
@QueryParam(value="year")
Integer year)
vdcUuid - vdc uuid@GET
@Path(value="/{vdcUuid}/vm-bills")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
BillListResponse getVmBills(@PathParam(value="vdcUuid")
String vdcUuid,
@QueryParam(value="month")
Integer month,
@QueryParam(value="year")
Integer year)
vdcUuid - vdc uuid@POST
@Path(value="/{vdcUuid}/actions/email-event-history")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
void sendEventHistory(@PathParam(value="vdcUuid")
String vdcUuid,
EventHistoryEmailRequest spec)
vdcUuid - vdc uuidspec - email address spec@GET
@Path(value="/{vdcUuid}/metadata")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
MetadataListResponse getMetadata(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@PUT
@Path(value="/{vdcUuid}/metadata")
@Consumes(value="application/json")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
TaskResponse updateMetadata(@PathParam(value="vdcUuid")
String vdcUuid,
List<UpdateMetadataRequest> metadata)
vdcUuid - vdc uuidmetadata - of instances@DELETE
@Path(value="/{vdcUuid}/metadata/{key}")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
TaskResponse deleteMetadata(@PathParam(value="vdcUuid")
String vdcUuid,
@PathParam(value="key")
String key)
vdcUuid - vdc uuidkey - metadata key@GET
@Path(value="/{vdcUuid}/medias")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
MediaListResponse getMedias(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@GET
@Path(value="/{vdcUuid}/storage-profiles")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
StorageProfileListResponse getStorageProfiles(@PathParam(value="vdcUuid")
String vdcUuid,
@QueryParam(value="includeDisabled")
Boolean includeDisabled)
vdcUuid - vdc uuidincludeDisabled - whether to include disabled profiles (defaults to
false if not explicitly provided)@POST
@Path(value="/{vdcUuid}/actions/add-vapp-from-template")
@Consumes(value="application/json")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
TaskResponse addVappFromTemplate(@PathParam(value="vdcUuid")
String vdcUuid,
VdcAddVappFromTemplateRequest request)
vdcUuid - vdc uuidrequest - specification for new vApp paramters@POST
@Path(value="/{vdcUuid}/actions/build-vapp")
@Consumes(value="application/json")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
TaskResponse buildVapp(@PathParam(value="vdcUuid")
String vdcUuid,
BuildVappRequest spec)
vdcUuid - vdc uuidspec - specification for the new vApp@GET
@Path(value="/{vdcUuid}/org-vdc-networks")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
OrgVdcNetworkListResponse getOrgVdcNetworks(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@GET
@Path(value="/{vdcUuid}/performance/{group}::{name}::{type}")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
PerfSampleSerieResponse getPerformance(@PathParam(value="vdcUuid")
String vdcUuid,
@PathParam(value="group")
String group,
@PathParam(value="name")
String name,
@PathParam(value="type")
String type,
@QueryParam(value="start")
Long start,
@QueryParam(value="end")
Long end,
@QueryParam(value="interval")
String interval,
@QueryParam(value="limit")
String limit)
vdcUuid - vDC UUIDgroup - the performance counter groupname - the performance counter nametype - the performance counter typestart - start dateend - end dateinterval - intervallimit - limit@GET
@Path(value="/{vdcUuid}/performance-counters")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
PerformanceCounterListResponse getPerformanceCounters(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vDC UUID@GET
@Path(value="/{vdcUuid}/summary")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
VdcResourceSummaryResponse getSummary(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@GET
@Path(value="{vdcUuid}/vapp-summary-map")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
VappResourceSummaryMapResponse getVappResourceSummaries(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@GET
@Path(value="{vdcUuid}/vm-summary-map")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
VmResourceSummaryMapResponse getVmResourceSummaries(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@GET
@Path(value="/{vdcUuid}/edges")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
EdgeListResponse getEdges(@PathParam(value="vdcUuid")
String vdcUuid)
vdcUuid - vdc uuid@GET
@Path(value="/{vdcUuid}/storage-profile-summary")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
VdcStorageProfileSummaryResponse getStorageProfileSummary(@PathParam(value="vdcUuid")
String vdcUuid,
@QueryParam(value="year")
Integer year,
@QueryParam(value="month")
Integer month)
vdcUuid - the UUID of the vDCyear - the yearmonth - the month in range 1-12@GET
@Path(value="/{vdcUuid}/cost-over-invoice-period")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
BillingSampleSerieResponse getCostOverInvoicePeriodSerie(@PathParam(value="vdcUuid")
String vdcUuid,
@QueryParam(value="year")
Integer year,
@QueryParam(value="month")
Integer month,
@QueryParam(value="additionalFields")
List<String> additionalFields)
vdcUuid - the UUID of the vDCyear - the yearmonth - the month in range 1-12additionalFields - any additional fields that should be included in
the series@POST
@Path(value="/{vdcUuid}/actions/generate-vm-inventory-report")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
TaskResponse generateVmInventoryReport(@PathParam(value="vdcUuid")
String vdcUuid,
@QueryParam(value="emailOnCompletion")
boolean emailOnCompletion,
@QueryParam(value="email")
String email)
vdcUuid - String vdc uuidemailOnCompletion - whether to email the report upon successful
generation, superseded by BillingReportSpec's email propertyemail - email address to send the report to if emailOnCompletion is
true, defaults to the user's profile email if not specified@GET
@Path(value="/{vdcUuid}/vm-inventory-reports")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
ReportHeaderListResponse getVmInventoryReports(@PathParam(value="vdcUuid")
String vdcUuid,
@QueryParam(value="format")
ReportFormat reportFormat)
vdcUuid - virtual data center uuidCopyright © 2018 iland Internet Solutions, Corp. All rights reserved.