Click or drag to resize
PolicyConfigurationCapacity Method
This API is preliminary and subject to change.
Creates a new PolicyConfiguration for a scaling policy that sets the desired capacity of a scaling group to a specific value.

Namespace: net.openstack.Providers.Rackspace.Objects.AutoScale
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public static PolicyConfiguration Capacity(
	string name,
	int desiredCapacity,
	TimeSpan cooldown
)

Parameters

name
Type: SystemString
The name of scaling policy.
desiredCapacity
Type: SystemInt32
The desired capacity for the scaling group.
cooldown
Type: SystemTimeSpan
The cooldown period for the scaling policy.

Return Value

Type: PolicyConfiguration
A PolicyConfiguration representing the desired scaling policy configuration.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf name is .
ArgumentExceptionIf name is empty.
ArgumentOutOfRangeException If desiredCapacity is less than 0.

-or-

If cooldown is less than Zero.

Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also