GetCapacityReservationResult

data class GetCapacityReservationResult(val azureApiVersion: String, val id: String, val instanceView: CapacityReservationInstanceViewResponse, val location: String, val name: String, val platformFaultDomainCount: Int, val provisioningState: String, val provisioningTime: String, val reservationId: String, val sku: SkuResponse, val tags: Map<String, String>? = null, val timeCreated: String, val type: String, val virtualMachinesAssociated: List<SubResourceReadOnlyResponse>, val zones: List<String>? = null)

Specifies information about the capacity reservation.

Constructors

Link copied to clipboard
constructor(azureApiVersion: String, id: String, instanceView: CapacityReservationInstanceViewResponse, location: String, name: String, platformFaultDomainCount: Int, provisioningState: String, provisioningTime: String, reservationId: String, sku: SkuResponse, tags: Map<String, String>? = null, timeCreated: String, type: String, virtualMachinesAssociated: List<SubResourceReadOnlyResponse>, zones: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The Azure API version of the resource.

Link copied to clipboard
val id: String

Resource Id

Link copied to clipboard

The Capacity reservation instance view.

Link copied to clipboard

Resource location

Link copied to clipboard

Resource name

Link copied to clipboard

Specifies the value of fault domain count that Capacity Reservation supports for requested VM size. Note: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01.

Link copied to clipboard

The provisioning state, which only appears in the response.

Link copied to clipboard

The date time when the capacity reservation was last updated.

Link copied to clipboard

A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.

Link copied to clipboard

SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values.

Link copied to clipboard
val tags: Map<String, String>? = null

Resource tags

Link copied to clipboard

Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.

Link copied to clipboard

Resource type

Link copied to clipboard

A list of all virtual machine resource ids that are associated with the capacity reservation.

Link copied to clipboard
val zones: List<String>? = null

Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone.