PHP Class Scalr_UI_Controller_Tools_Aws_Ec2_Elb

Inheritance: extends Scalr_UI_Controller
Mostra file Open project: scalr/scalr

Public Methods

Method Description
createAction ( $cloudLocation )
defaultAction ( )
getElasticLoadBalancersList ( string $cloudLocation, string $placement = null )
hasAccess ( )
viewAction ( )
xCreateAction ( string $cloudLocation, JsonData $listeners, boolean $crossLoadBalancing, JsonData $healthcheck, string $scheme = null, JsonData $securityGroups = null, string $vpcId = null, JsonData $zones = null, JsonData $subnets = null, string $name = null )
xDeleteAction ( string $cloudLocation, JsonData $elbNames )
xDeregisterInstanceAction ( string $cloudLocation, string $elbName, string $awsInstanceId )
xGetDetailsAction ( string $cloudLocation, string $elbName )
xGetInstanceHealthAction ( string $cloudLocation, string $elbName, string $awsInstanceId )
xListElasticLoadBalancersAction ( string $cloudLocation, string $placement = null )
xListSecurityGroupsAction ( string $platform, string $cloudLocation, JsonData $filters = null ) Lists security groups
xSaveAction ( string $elbName, string $cloudLocation, JsonData $listeners, JsonData $policies = null ) xSaveAction

Protected Methods

Method Description
validateAccessToLoadBalancer ( string $elbName, string $cloudLocation ) Validates Access To Load Balancer

Private Methods

Method Description
getDetails ( string $cloudLocation, string $elbName ) : array
validateElb ( string $cloudLocation, string $elbName ) Checks if elb exists

Method Details

createAction() public method

public createAction ( $cloudLocation )

defaultAction() public method

public defaultAction ( )

getElasticLoadBalancersList() public method

public getElasticLoadBalancersList ( string $cloudLocation, string $placement = null )
$cloudLocation string Ec2 region
$placement string optional Placement

hasAccess() public method

public hasAccess ( )

validateAccessToLoadBalancer() protected method

Validates Access To Load Balancer
protected validateAccessToLoadBalancer ( string $elbName, string $cloudLocation )
$elbName string
$cloudLocation string

viewAction() public method

public viewAction ( )

xCreateAction() public method

public xCreateAction ( string $cloudLocation, JsonData $listeners, boolean $crossLoadBalancing, JsonData $healthcheck, string $scheme = null, JsonData $securityGroups = null, string $vpcId = null, JsonData $zones = null, JsonData $subnets = null, string $name = null )
$cloudLocation string Ec2 Region
$listeners Scalr\UI\Request\JsonData Listeners list
$crossLoadBalancing boolean Enable Cross balancing
$healthcheck Scalr\UI\Request\JsonData Health check data
$scheme string optional Scheme
$securityGroups Scalr\UI\Request\JsonData optional Security groups
$vpcId string optional Vpc id
$zones Scalr\UI\Request\JsonData optional Availability zones
$subnets Scalr\UI\Request\JsonData optional Subnets
$name string optional Name

xDeleteAction() public method

public xDeleteAction ( string $cloudLocation, JsonData $elbNames )
$cloudLocation string Ec2 region
$elbNames Scalr\UI\Request\JsonData Array of elbNames to delete

xDeregisterInstanceAction() public method

public xDeregisterInstanceAction ( string $cloudLocation, string $elbName, string $awsInstanceId )
$cloudLocation string Ec2 region
$elbName string Elb name
$awsInstanceId string

xGetDetailsAction() public method

public xGetDetailsAction ( string $cloudLocation, string $elbName )
$cloudLocation string Ec2 region
$elbName string Elb name

xGetInstanceHealthAction() public method

public xGetInstanceHealthAction ( string $cloudLocation, string $elbName, string $awsInstanceId )
$cloudLocation string Ec2 region
$elbName string Elb name
$awsInstanceId string

xListElasticLoadBalancersAction() public method

public xListElasticLoadBalancersAction ( string $cloudLocation, string $placement = null )
$cloudLocation string Ec2 region
$placement string optional Placement

xListSecurityGroupsAction() public method

Lists security groups
public xListSecurityGroupsAction ( string $platform, string $cloudLocation, JsonData $filters = null )
$platform string Platform
$cloudLocation string Cloud location
$filters Scalr\UI\Request\JsonData

xSaveAction() public method

xSaveAction
public xSaveAction ( string $elbName, string $cloudLocation, JsonData $listeners, JsonData $policies = null )
$elbName string Load balancer name
$cloudLocation string Ec2 region
$listeners Scalr\UI\Request\JsonData Listeners array to create/update/delete
$policies Scalr\UI\Request\JsonData Policies array to create/delete