This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
azure-native.compute.getCapacityReservation
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
The operation that retrieves information about the capacity reservation. Azure REST API version: 2023-03-01.
Other available API versions: 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01.
Using getCapacityReservation
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCapacityReservation(args: GetCapacityReservationArgs, opts?: InvokeOptions): Promise<GetCapacityReservationResult>
function getCapacityReservationOutput(args: GetCapacityReservationOutputArgs, opts?: InvokeOptions): Output<GetCapacityReservationResult>
def get_capacity_reservation(capacity_reservation_group_name: Optional[str] = None,
capacity_reservation_name: Optional[str] = None,
expand: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCapacityReservationResult
def get_capacity_reservation_output(capacity_reservation_group_name: Optional[pulumi.Input[str]] = None,
capacity_reservation_name: Optional[pulumi.Input[str]] = None,
expand: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCapacityReservationResult]
func LookupCapacityReservation(ctx *Context, args *LookupCapacityReservationArgs, opts ...InvokeOption) (*LookupCapacityReservationResult, error)
func LookupCapacityReservationOutput(ctx *Context, args *LookupCapacityReservationOutputArgs, opts ...InvokeOption) LookupCapacityReservationResultOutput
> Note: This function is named LookupCapacityReservation
in the Go SDK.
public static class GetCapacityReservation
{
public static Task<GetCapacityReservationResult> InvokeAsync(GetCapacityReservationArgs args, InvokeOptions? opts = null)
public static Output<GetCapacityReservationResult> Invoke(GetCapacityReservationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCapacityReservationResult> getCapacityReservation(GetCapacityReservationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:compute:getCapacityReservation
arguments:
# arguments dictionary
The following arguments are supported:
- Capacity
Reservation stringGroup Name - The name of the capacity reservation group.
- Capacity
Reservation stringName - The name of the capacity reservation.
- Resource
Group stringName - The name of the resource group.
- Expand string
- The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.
- Capacity
Reservation stringGroup Name - The name of the capacity reservation group.
- Capacity
Reservation stringName - The name of the capacity reservation.
- Resource
Group stringName - The name of the resource group.
- Expand string
- The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.
- capacity
Reservation StringGroup Name - The name of the capacity reservation group.
- capacity
Reservation StringName - The name of the capacity reservation.
- resource
Group StringName - The name of the resource group.
- expand String
- The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.
- capacity
Reservation stringGroup Name - The name of the capacity reservation group.
- capacity
Reservation stringName - The name of the capacity reservation.
- resource
Group stringName - The name of the resource group.
- expand string
- The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.
- capacity_
reservation_ strgroup_ name - The name of the capacity reservation group.
- capacity_
reservation_ strname - The name of the capacity reservation.
- resource_
group_ strname - The name of the resource group.
- expand str
- The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.
- capacity
Reservation StringGroup Name - The name of the capacity reservation group.
- capacity
Reservation StringName - The name of the capacity reservation.
- resource
Group StringName - The name of the resource group.
- expand String
- The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.
getCapacityReservation Result
The following output properties are available:
- Id string
- Resource Id
- Instance
View Pulumi.Azure Native. Compute. Outputs. Capacity Reservation Instance View Response - The Capacity reservation instance view.
- Location string
- Resource location
- Name string
- Resource name
- Platform
Fault intDomain Count - 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.
- Provisioning
State string - The provisioning state, which only appears in the response.
- Provisioning
Time string - The date time when the capacity reservation was last updated.
- Reservation
Id string - A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.
- Sku
Pulumi.
Azure Native. Compute. Outputs. Sku Response - 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.
- Time
Created string - Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.
- Type string
- Resource type
- Virtual
Machines List<Pulumi.Associated Azure Native. Compute. Outputs. Sub Resource Read Only Response> - A list of all virtual machine resource ids that are associated with the capacity reservation.
- Dictionary<string, string>
- Resource tags
- Zones List<string>
- 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.
- Id string
- Resource Id
- Instance
View CapacityReservation Instance View Response - The Capacity reservation instance view.
- Location string
- Resource location
- Name string
- Resource name
- Platform
Fault intDomain Count - 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.
- Provisioning
State string - The provisioning state, which only appears in the response.
- Provisioning
Time string - The date time when the capacity reservation was last updated.
- Reservation
Id string - A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.
- Sku
Sku
Response - 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.
- Time
Created string - Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.
- Type string
- Resource type
- Virtual
Machines []SubAssociated Resource Read Only Response - A list of all virtual machine resource ids that are associated with the capacity reservation.
- map[string]string
- Resource tags
- Zones []string
- 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.
- id String
- Resource Id
- instance
View CapacityReservation Instance View Response - The Capacity reservation instance view.
- location String
- Resource location
- name String
- Resource name
- platform
Fault IntegerDomain Count - 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.
- provisioning
State String - The provisioning state, which only appears in the response.
- provisioning
Time String - The date time when the capacity reservation was last updated.
- reservation
Id String - A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.
- sku
Sku
Response - 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.
- time
Created String - Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.
- type String
- Resource type
- virtual
Machines List<SubAssociated Resource Read Only Response> - A list of all virtual machine resource ids that are associated with the capacity reservation.
- Map<String,String>
- Resource tags
- zones List<String>
- 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.
- id string
- Resource Id
- instance
View CapacityReservation Instance View Response - The Capacity reservation instance view.
- location string
- Resource location
- name string
- Resource name
- platform
Fault numberDomain Count - 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.
- provisioning
State string - The provisioning state, which only appears in the response.
- provisioning
Time string - The date time when the capacity reservation was last updated.
- reservation
Id string - A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.
- sku
Sku
Response - 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.
- time
Created string - Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.
- type string
- Resource type
- virtual
Machines SubAssociated Resource Read Only Response[] - A list of all virtual machine resource ids that are associated with the capacity reservation.
- {[key: string]: string}
- Resource tags
- zones string[]
- 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.
- id str
- Resource Id
- instance_
view CapacityReservation Instance View Response - The Capacity reservation instance view.
- location str
- Resource location
- name str
- Resource name
- platform_
fault_ intdomain_ count - 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.
- provisioning_
state str - The provisioning state, which only appears in the response.
- provisioning_
time str - The date time when the capacity reservation was last updated.
- reservation_
id str - A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.
- sku
Sku
Response - 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.
- time_
created str - Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.
- type str
- Resource type
- virtual_
machines_ Sequence[Subassociated Resource Read Only Response] - A list of all virtual machine resource ids that are associated with the capacity reservation.
- Mapping[str, str]
- Resource tags
- zones Sequence[str]
- 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.
- id String
- Resource Id
- instance
View Property Map - The Capacity reservation instance view.
- location String
- Resource location
- name String
- Resource name
- platform
Fault NumberDomain Count - 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.
- provisioning
State String - The provisioning state, which only appears in the response.
- provisioning
Time String - The date time when the capacity reservation was last updated.
- reservation
Id String - A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.
- sku Property Map
- 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.
- time
Created String - Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.
- type String
- Resource type
- virtual
Machines List<Property Map>Associated - A list of all virtual machine resource ids that are associated with the capacity reservation.
- Map<String>
- Resource tags
- zones List<String>
- 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.
Supporting Types
CapacityReservationInstanceViewResponse
- Statuses
List<Pulumi.
Azure Native. Compute. Inputs. Instance View Status Response> - The resource status information.
- Utilization
Info Pulumi.Azure Native. Compute. Inputs. Capacity Reservation Utilization Response - Unutilized capacity of the capacity reservation.
- Statuses
[]Instance
View Status Response - The resource status information.
- Utilization
Info CapacityReservation Utilization Response - Unutilized capacity of the capacity reservation.
- statuses
List<Instance
View Status Response> - The resource status information.
- utilization
Info CapacityReservation Utilization Response - Unutilized capacity of the capacity reservation.
- statuses
Instance
View Status Response[] - The resource status information.
- utilization
Info CapacityReservation Utilization Response - Unutilized capacity of the capacity reservation.
- statuses
Sequence[Instance
View Status Response] - The resource status information.
- utilization_
info CapacityReservation Utilization Response - Unutilized capacity of the capacity reservation.
- statuses List<Property Map>
- The resource status information.
- utilization
Info Property Map - Unutilized capacity of the capacity reservation.
CapacityReservationUtilizationResponse
- Current
Capacity int - The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01.
- Virtual
Machines List<Pulumi.Allocated Azure Native. Compute. Inputs. Sub Resource Read Only Response> - A list of all virtual machines resource ids allocated against the capacity reservation.
- Current
Capacity int - The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01.
- Virtual
Machines []SubAllocated Resource Read Only Response - A list of all virtual machines resource ids allocated against the capacity reservation.
- current
Capacity Integer - The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01.
- virtual
Machines List<SubAllocated Resource Read Only Response> - A list of all virtual machines resource ids allocated against the capacity reservation.
- current
Capacity number - The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01.
- virtual
Machines SubAllocated Resource Read Only Response[] - A list of all virtual machines resource ids allocated against the capacity reservation.
- current_
capacity int - The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01.
- virtual_
machines_ Sequence[Suballocated Resource Read Only Response] - A list of all virtual machines resource ids allocated against the capacity reservation.
- current
Capacity Number - The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01.
- virtual
Machines List<Property Map>Allocated - A list of all virtual machines resource ids allocated against the capacity reservation.
InstanceViewStatusResponse
- Code string
- The status code.
- Display
Status string - The short localizable label for the status.
- Level string
- The level code.
- Message string
- The detailed status message, including for alerts and error messages.
- Time string
- The time of the status.
- Code string
- The status code.
- Display
Status string - The short localizable label for the status.
- Level string
- The level code.
- Message string
- The detailed status message, including for alerts and error messages.
- Time string
- The time of the status.
- code String
- The status code.
- display
Status String - The short localizable label for the status.
- level String
- The level code.
- message String
- The detailed status message, including for alerts and error messages.
- time String
- The time of the status.
- code string
- The status code.
- display
Status string - The short localizable label for the status.
- level string
- The level code.
- message string
- The detailed status message, including for alerts and error messages.
- time string
- The time of the status.
- code str
- The status code.
- display_
status str - The short localizable label for the status.
- level str
- The level code.
- message str
- The detailed status message, including for alerts and error messages.
- time str
- The time of the status.
- code String
- The status code.
- display
Status String - The short localizable label for the status.
- level String
- The level code.
- message String
- The detailed status message, including for alerts and error messages.
- time String
- The time of the status.
SkuResponse
SubResourceReadOnlyResponse
- Id string
- Resource Id
- Id string
- Resource Id
- id String
- Resource Id
- id string
- Resource Id
- id str
- Resource Id
- id String
- Resource Id
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi