|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InstanceApi
Provides access to Instances via their REST API.
InstanceApi| Method Summary | |
|---|---|
Operation |
addAccessConfigToNicInZone(String zone,
String instanceName,
Instance.NetworkInterface.AccessConfig accessConfig,
String networkInterfaceName)
Adds an access config to an instance's network interface. |
Operation |
attachDiskInZone(String zone,
String instanceName,
AttachDiskOptions attachDiskOptions)
Attaches a disk to an instance |
Operation |
createInZone(String instanceName,
String zone,
InstanceTemplate template)
Creates a instance resource in the specified project using the data included in the request. |
Operation |
deleteAccessConfigFromNicInZone(String zone,
String instanceName,
String accessConfigName,
String networkInterfaceName)
Deletes an access config from an instance's network interface. |
Operation |
deleteInZone(String zone,
String instanceName)
Deletes the specified instance resource. |
Operation |
detachDiskInZone(String zone,
String instanceName,
String deviceName)
Detaches an attached disk from an instance |
Instance |
getInZone(String zone,
String instanceName)
Returns the specified instance resource. |
Instance.SerialPortOutput |
getSerialPortOutputInZone(String zone,
String instanceName)
Returns the specified instance's serial port output. |
ListPage<Instance> |
listAtMarkerInZone(String zone,
String marker)
|
ListPage<Instance> |
listAtMarkerInZone(String zone,
String marker,
ListOptions listOptions)
Retrieves the list of instance resources available to the specified project. |
ListPage<Instance> |
listFirstPageInZone(String zone)
A paged version of InstanceApi#listInZone() |
org.jclouds.collect.PagedIterable<Instance> |
listInZone(String zone)
|
org.jclouds.collect.PagedIterable<Instance> |
listInZone(String zone,
ListOptions options)
|
Operation |
resetInZone(String zone,
String instanceName)
Hard-resets the instance. |
Operation |
setMetadataInZone(String zone,
String instanceName,
Map<String,String> metadata,
String fingerprint)
Sets metadata for an instance using the data included in the request. |
Operation |
setTagsInZone(String zone,
String instanceName,
Set<String> items,
String fingerprint)
Sets items for an instance |
| Method Detail |
|---|
@Named(value="Instances:get")
@Nullable
Instance getInZone(String zone,
String instanceName)
zone - zone the instance is in.instanceName - name of the instance resource to return.
@Named(value="Instances:insert")
Operation createInZone(String instanceName,
String zone,
InstanceTemplate template)
instanceName - this name of the instance to be createdzone - the name of the zone where the instance will be createdtemplate - the instance template
@Named(value="Instances:delete")
@Nullable
Operation deleteInZone(String zone,
String instanceName)
zone - the instance is in.instanceName - name of the instance resource to delete.
@Named(value="Instances:list") ListPage<Instance> listFirstPageInZone(String zone)
zone - zone instances are in
PagedIterable,
listAtMarkerInZone(String, String, org.jclouds.googlecomputeengine.options.ListOptions)
@Named(value="Instances:list")
ListPage<Instance> listAtMarkerInZone(String zone,
@Nullable
String marker,
ListOptions listOptions)
zone - zone instances are inmarker - marks the beginning of the next list pagelistOptions - listing options
ListOptions,
ListPage
@Named(value="Instances:list")
ListPage<Instance> listAtMarkerInZone(String zone,
@Nullable
String marker)
listAtMarkerInZone(String, String, org.jclouds.googlecomputeengine.options.ListOptions)@Named(value="Instances:list") org.jclouds.collect.PagedIterable<Instance> listInZone(String zone)
listInZone(String, org.jclouds.googlecomputeengine.options.ListOptions)
@Named(value="Instances:list")
org.jclouds.collect.PagedIterable<Instance> listInZone(String zone,
ListOptions options)
listInZone(String, org.jclouds.googlecomputeengine.options.ListOptions)
@Named(value="Instances:addAccessConfig")
Operation addAccessConfigToNicInZone(String zone,
String instanceName,
Instance.NetworkInterface.AccessConfig accessConfig,
String networkInterfaceName)
zone - zone instance is ininstanceName - the instance name.accessConfig - the AccessConfig to add.networkInterfaceName - network interface name.
@Named(value="Instances:deleteAccessConfig")
Operation deleteAccessConfigFromNicInZone(String zone,
String instanceName,
String accessConfigName,
String networkInterfaceName)
zone - zone instance is ininstanceName - the instance name.accessConfigName - the name of the access config to deletenetworkInterfaceName - network interface name.
@Named(value="Instances:serialPort")
Instance.SerialPortOutput getSerialPortOutputInZone(String zone,
String instanceName)
zone - zone instance is ininstanceName - the instance name.
@Named(value="Instances:reset")
@Nullable
Operation resetInZone(String zone,
String instanceName)
zone - the zone the instance is ininstanceName - the instance name
@Named(value="Instances:attachDisk")
@Nullable
Operation attachDiskInZone(String zone,
String instanceName,
AttachDiskOptions attachDiskOptions)
zone - The zone the instance is in.instanceName - The instance name to attach toattachDiskOptions - The options for attaching the disk.
@Named(value="Instances:detachDisk")
@Nullable
Operation detachDiskInZone(String zone,
String instanceName,
String deviceName)
zone - The zone the instance is in.instanceName - The instance name to attach todeviceName - The device name of the disk to detach.
@Named(value="Instances:setMetadata")
@Nullable
Operation setMetadataInZone(String zone,
String instanceName,
Map<String,String> metadata,
String fingerprint)
Metadata.Builder current = instanceApi.getInZone("us-central1-a", "myInstance").getMetadata().toBuilder();
current.addItem("newItem","newItemValue");
instanceApi.setMetadataInZone("us-central1-a", "myInstance", current.build());
zone - The zone the instance is ininstanceName - The name of the instancemetadata - the metadata to setfingerprint - The current fingerprint for the items
@Named(value="Instances:setTags")
@Nullable
Operation setTagsInZone(String zone,
String instanceName,
Set<String> items,
String fingerprint)
zone - The zone the instance is ininstanceName - the name of the instanceitems - A set of itemsfingerprint - The current fingerprint for the items
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||