CapacityReservationProps
Properties for defining a CapacityReservation
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-capacityreservation
Initializer
using AlibabaCloud.SDK.ROS.CDK.Ecs;
new CapacityReservationProps {
object InstanceAmount,
object InstanceType,
object ZoneId,
object Description = null,
object EndTime = null,
object EndTimeType = null,
object PrivatePoolOptions = null,
object ResourceGroupId = null,
TagsProperty[] Tags = null
};
Properties
Name | Type | Description |
---|---|---|
InstanceAmount |
object |
Property instanceAmount: The total number of instances for which to reserve capacity of an instance type. |
InstanceType |
object |
Property instanceType: The instance type. |
ZoneId |
object |
Property zoneId: The ID of zone N within the region in which to create the capacity reservation. |
Description |
object |
Property description: The description of the capacity reservation. |
EndTime |
object |
Property endTime: The time when the capacity reservation expires. |
EndTimeType |
object |
Property endTimeType: The release mode of the capacity reservation. |
PrivatePoolOptions |
object |
Property privatePoolOptions:. |
ResourceGroupId |
object |
Property resourceGroupId: The ID of the resource group to which to assign the capacity reservation. |
Tags |
TagsProperty[] |
Property tags:. |
InstanceAmount
Required
public object InstanceAmount { get; set; }
- Type: object
Property instanceAmount: The total number of instances for which to reserve capacity of an instance type.
InstanceType
Required
public object InstanceType { get; set; }
- Type: object
Property instanceType: The instance type.
A capacity reservation can be created to reserve the capacity of only a single instance type. You can call the DescribeInstanceTypes operation to query the instance types provided by ECS.
ZoneId
Required
public object ZoneId { get; set; }
- Type: object
Property zoneId: The ID of zone N within the region in which to create the capacity reservation.
A capacity reservation can reserve resources within only a single zone.
Description
Optional
public object Description { get; set; }
- Type: object
Property description: The description of the capacity reservation.
The description must be 2 to 256 characters in length and cannot start with http:// or https://. This parameter is empty by default.
EndTime
Optional
public object EndTime { get; set; }
- Type: object
Property endTime: The time when the capacity reservation expires.
Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For more information, see ISO 8601.
EndTimeType
Optional
public object EndTimeType { get; set; }
- Type: object
Property endTimeType: The release mode of the capacity reservation.
Valid values: Limited: The capacity reservation is automatically released at the specified time. If you specify this parameter, you must also specify the EndTime parameter. Unlimited: The capacity reservation must be manually released. You can release it anytime.
PrivatePoolOptions
Optional
public object PrivatePoolOptions { get; set; }
- Type: object
Property privatePoolOptions:.
ResourceGroupId
Optional
public object ResourceGroupId { get; set; }
- Type: object
Property resourceGroupId: The ID of the resource group to which to assign the capacity reservation.
Tags
Optional
public TagsProperty[] Tags { get; set; }
- Type: TagsProperty[]
Property tags:.