CloudServersFG

class CloudServersFG.CloudServersFG(env, region=None)[source]

Bases: Cloud.Cloud

service = 'Servers'
getLimits()[source]

Gets the current rate and absolute limits for your account.

Returns: JSON results as python dict

getServers(details=False, attrDict={})[source]

List all servers ([1]Without details = IDs + names only [2]With details = all details)

Arguments: details – true/false

getServer(sId)[source]

Fetch a specific server.

Arguments: sId – Server uuid

Returns: JSON results as python dict

createServer(name, flavorId, imageId, attrDict={})[source]

Creates a server.

Arguments: name – flavorId – imageId – uuid(string) attrList – Python dictionary options:

metadata – personality –

Returns: JSON results as python dict

updateServer(sId, attrDict={})[source]

Updates the editable attributes for the specified server.

Arguments: id – Server uuid attrList – python dictionary options:

name – adminPass –

Returns: JSON results as python dict

deleteServer(sId)[source]

Delete the specified server.

Arguments: sId – Server uuid

Returns: status code

getAddresses(sId, network=None)[source]

This operation lists all networks and addresses associated with a specified server. Specify network for filtering.

Arguments: sId – Server uuid network – Filter by network ie public, private

Returns: JSON results as python dict

shareAddress(sId, addr, attrDict={})[source]

Shares an address to a specifies server.

Arguments: sId – Server uuid addr – attrDict – python dict options:

sharedIpGroupId – configureServer – true/false

Returns: JSON results as python dict

unshareAddress(sId, addr)[source]

Shares an address to a specifies server.

Arguments: sId – Server uuid addr –

Returns: JSON results as python dict

rebootServer(sId, rType='SOFT')[source]

Reboots the specified server.

Arguments: sId – server uuid rType – HARD or SOFT(string)

Returns: status code

rebuildServer(sId, iId)[source]

Rebuilds the specified server.

Arguments: sId – server uuid iId – image Id

Returns: JSON results as python dict

resizeServer(sId, fId, diskConfig='AUTO')[source]

Resizes the specified server.

Arguments: sId – server uuid fId – flavor Id

Returns: status code

confirmResizeServer(sId)[source]

Confirm a pending resize action.

Arguments: sId – server uuid

Returns: status code

revertResizeServer(sId)[source]

Cancels and reverts a pending resize action.

Arguments: sId – server uuid

Returns: status code

getFlavors(details=False)[source]

Fetch info for all available flavors. Specify details=True to get details.

Arguments: details – Bool, defaults to False.

Returns: JSON results as python dict

getFlavor(fId)[source]

Fetch info for all available flavors. Specify details=True to get details.

Arguments: fId – flavor Id

Returns: JSON results as python dict

getImages(details=False)[source]

Fetch info for all available images. Specify details=True to get details.

Arguments: details – Bool, defaults to False. Specifying iId overrides this.

Returns: JSON results as python dict

getImage(iId)[source]

Fetch an image.

Arguments: iId – image id

Returns: JSON results as python dict

deleteImage(iId)[source]

This operation deletes the specified image from the system.

Arguments: iId – image id

Returns: status code

createImage(sId, name)[source]

Creates a new image.

Arguments: sId – server id name – image name

Returns: JSON results as python dict

getBSchedule(sId)[source]

Lists the backup schedules for a specified server.

Arguments: sId – server id

Returns: JSON results as python dict

setBSchedule(sId, attrDict={})[source]

Sets (creates/updates) the backup schedule for a specified server.

Arguments: sId – server id attrDict – python dict options:

enabled – true/false weekly – ie: SUNDAY daily – ie: H_0400_0600

Returns: JSON results as python dict

disableBSchedule(sId)[source]

Disable the backup schedule a specified server.

Arguments: sId – server id

Returns: status code

getIPGroups(details=False)[source]

Fetch all current shared IP groups. Toggle details (=True) for more informative results.

Arguments: details – Bool, defaults to False. Specifying gId overrides this.

Returns: JSON results as python dict

getIPGroup(gId)[source]

List IDs and names for shared IP Groups. Specify a gId for details on that IP group or details=True for all details.

Arguments: gId – IP group id (Optional) details – Bool, defaults to False. Specifying gId overrides this.

Returns: JSON results as python dict

deleteIPGroup(gId)[source]

Deletes a specified IP Group.

Arguments: gId – IP Group id

Returns: status code

createIPGroup(gName, sId=None)[source]

Create a shared IP group.

Arguments: gName – shared ip group name sId – server id

Returns: JSON results as python dict

Previous topic

CloudNetworks

Next topic

CloudServersNG