1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsReservation
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getIsReservation

Explore with Pulumi AI

Using getIsReservation

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 getIsReservation(args: GetIsReservationArgs, opts?: InvokeOptions): Promise<GetIsReservationResult>
function getIsReservationOutput(args: GetIsReservationOutputArgs, opts?: InvokeOptions): Output<GetIsReservationResult>
Copy
def get_is_reservation(capacities: Optional[Sequence[GetIsReservationCapacity]] = None,
                       committed_uses: Optional[Sequence[GetIsReservationCommittedUse]] = None,
                       identifier: Optional[str] = None,
                       name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetIsReservationResult
def get_is_reservation_output(capacities: Optional[pulumi.Input[Sequence[pulumi.Input[GetIsReservationCapacityArgs]]]] = None,
                       committed_uses: Optional[pulumi.Input[Sequence[pulumi.Input[GetIsReservationCommittedUseArgs]]]] = None,
                       identifier: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetIsReservationResult]
Copy
func LookupIsReservation(ctx *Context, args *LookupIsReservationArgs, opts ...InvokeOption) (*LookupIsReservationResult, error)
func LookupIsReservationOutput(ctx *Context, args *LookupIsReservationOutputArgs, opts ...InvokeOption) LookupIsReservationResultOutput
Copy

> Note: This function is named LookupIsReservation in the Go SDK.

public static class GetIsReservation 
{
    public static Task<GetIsReservationResult> InvokeAsync(GetIsReservationArgs args, InvokeOptions? opts = null)
    public static Output<GetIsReservationResult> Invoke(GetIsReservationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIsReservationResult> getIsReservation(GetIsReservationArgs args, InvokeOptions options)
public static Output<GetIsReservationResult> getIsReservation(GetIsReservationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIsReservation:getIsReservation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Capacities List<GetIsReservationCapacity>
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
CommittedUses List<GetIsReservationCommittedUse>
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
Identifier string
The ID of the reservation,name and identifier are mutually exclusive.
Name string
The name of the reservation,name and identifier are mutually exclusive.
Capacities []GetIsReservationCapacity
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
CommittedUses []GetIsReservationCommittedUse
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
Identifier string
The ID of the reservation,name and identifier are mutually exclusive.
Name string
The name of the reservation,name and identifier are mutually exclusive.
capacities List<GetIsReservationCapacity>
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
committedUses List<GetIsReservationCommittedUse>
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
identifier String
The ID of the reservation,name and identifier are mutually exclusive.
name String
The name of the reservation,name and identifier are mutually exclusive.
capacities GetIsReservationCapacity[]
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
committedUses GetIsReservationCommittedUse[]
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
identifier string
The ID of the reservation,name and identifier are mutually exclusive.
name string
The name of the reservation,name and identifier are mutually exclusive.
capacities Sequence[GetIsReservationCapacity]
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
committed_uses Sequence[GetIsReservationCommittedUse]
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
identifier str
The ID of the reservation,name and identifier are mutually exclusive.
name str
The name of the reservation,name and identifier are mutually exclusive.
capacities List<Property Map>
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
committedUses List<Property Map>
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
identifier String
The ID of the reservation,name and identifier are mutually exclusive.
name String
The name of the reservation,name and identifier are mutually exclusive.

getIsReservation Result

The following output properties are available:

AffinityPolicy string
(String) The affinity policy to use for this reservation.
CreatedAt string
(Timestamp) The date and time that the reservation was created.
Crn string
(String) The CRN for this reservation.
Href string
(String) The URL for this resource group.
Id string
(String) The unique identifier for this resource group.
LifecycleState string
(String) The lifecycle state of this reservation.
Name string
(String) The name for this resource group.
Profiles List<GetIsReservationProfile>
(List) The virtual server instance profile this reservation.
ResourceGroups List<GetIsReservationResourceGroup>
(List) The resource group for this reservation.
ResourceType string
(String) The resource type.
Status string
(String) The status of the reservation.
StatusReasons List<GetIsReservationStatusReason>
(List) The reasons for the current status (if any).
Zone string
(String) The globally unique name for this zone.
Capacities List<GetIsReservationCapacity>
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
CommittedUses List<GetIsReservationCommittedUse>
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
Identifier string
AffinityPolicy string
(String) The affinity policy to use for this reservation.
CreatedAt string
(Timestamp) The date and time that the reservation was created.
Crn string
(String) The CRN for this reservation.
Href string
(String) The URL for this resource group.
Id string
(String) The unique identifier for this resource group.
LifecycleState string
(String) The lifecycle state of this reservation.
Name string
(String) The name for this resource group.
Profiles []GetIsReservationProfile
(List) The virtual server instance profile this reservation.
ResourceGroups []GetIsReservationResourceGroup
(List) The resource group for this reservation.
ResourceType string
(String) The resource type.
Status string
(String) The status of the reservation.
StatusReasons []GetIsReservationStatusReason
(List) The reasons for the current status (if any).
Zone string
(String) The globally unique name for this zone.
Capacities []GetIsReservationCapacity
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
CommittedUses []GetIsReservationCommittedUse
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
Identifier string
affinityPolicy String
(String) The affinity policy to use for this reservation.
createdAt String
(Timestamp) The date and time that the reservation was created.
crn String
(String) The CRN for this reservation.
href String
(String) The URL for this resource group.
id String
(String) The unique identifier for this resource group.
lifecycleState String
(String) The lifecycle state of this reservation.
name String
(String) The name for this resource group.
profiles List<GetIsReservationProfile>
(List) The virtual server instance profile this reservation.
resourceGroups List<GetIsReservationResourceGroup>
(List) The resource group for this reservation.
resourceType String
(String) The resource type.
status String
(String) The status of the reservation.
statusReasons List<GetIsReservationStatusReason>
(List) The reasons for the current status (if any).
zone String
(String) The globally unique name for this zone.
capacities List<GetIsReservationCapacity>
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
committedUses List<GetIsReservationCommittedUse>
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
identifier String
affinityPolicy string
(String) The affinity policy to use for this reservation.
createdAt string
(Timestamp) The date and time that the reservation was created.
crn string
(String) The CRN for this reservation.
href string
(String) The URL for this resource group.
id string
(String) The unique identifier for this resource group.
lifecycleState string
(String) The lifecycle state of this reservation.
name string
(String) The name for this resource group.
profiles GetIsReservationProfile[]
(List) The virtual server instance profile this reservation.
resourceGroups GetIsReservationResourceGroup[]
(List) The resource group for this reservation.
resourceType string
(String) The resource type.
status string
(String) The status of the reservation.
statusReasons GetIsReservationStatusReason[]
(List) The reasons for the current status (if any).
zone string
(String) The globally unique name for this zone.
capacities GetIsReservationCapacity[]
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
committedUses GetIsReservationCommittedUse[]
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
identifier string
affinity_policy str
(String) The affinity policy to use for this reservation.
created_at str
(Timestamp) The date and time that the reservation was created.
crn str
(String) The CRN for this reservation.
href str
(String) The URL for this resource group.
id str
(String) The unique identifier for this resource group.
lifecycle_state str
(String) The lifecycle state of this reservation.
name str
(String) The name for this resource group.
profiles Sequence[GetIsReservationProfile]
(List) The virtual server instance profile this reservation.
resource_groups Sequence[GetIsReservationResourceGroup]
(List) The resource group for this reservation.
resource_type str
(String) The resource type.
status str
(String) The status of the reservation.
status_reasons Sequence[GetIsReservationStatusReason]
(List) The reasons for the current status (if any).
zone str
(String) The globally unique name for this zone.
capacities Sequence[GetIsReservationCapacity]
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
committed_uses Sequence[GetIsReservationCommittedUse]
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
identifier str
affinityPolicy String
(String) The affinity policy to use for this reservation.
createdAt String
(Timestamp) The date and time that the reservation was created.
crn String
(String) The CRN for this reservation.
href String
(String) The URL for this resource group.
id String
(String) The unique identifier for this resource group.
lifecycleState String
(String) The lifecycle state of this reservation.
name String
(String) The name for this resource group.
profiles List<Property Map>
(List) The virtual server instance profile this reservation.
resourceGroups List<Property Map>
(List) The resource group for this reservation.
resourceType String
(String) The resource type.
status String
(String) The status of the reservation.
statusReasons List<Property Map>
(List) The reasons for the current status (if any).
zone String
(String) The globally unique name for this zone.
capacities List<Property Map>
(List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
committedUses List<Property Map>
(List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
identifier String

Supporting Types

GetIsReservationCapacity

Allocated This property is required. double
(Integer) The amount allocated to this capacity reservation.
Available This property is required. double
(Integer) The amount of this capacity reservation available for new attachments.
Status This property is required. string
(String) The status of the reservation.
Total This property is required. double
(Integer) The total amount of this capacity reservation.
Used This property is required. double
(Integer) The amount of this capacity reservation used by existing attachments.
Allocated This property is required. float64
(Integer) The amount allocated to this capacity reservation.
Available This property is required. float64
(Integer) The amount of this capacity reservation available for new attachments.
Status This property is required. string
(String) The status of the reservation.
Total This property is required. float64
(Integer) The total amount of this capacity reservation.
Used This property is required. float64
(Integer) The amount of this capacity reservation used by existing attachments.
allocated This property is required. Double
(Integer) The amount allocated to this capacity reservation.
available This property is required. Double
(Integer) The amount of this capacity reservation available for new attachments.
status This property is required. String
(String) The status of the reservation.
total This property is required. Double
(Integer) The total amount of this capacity reservation.
used This property is required. Double
(Integer) The amount of this capacity reservation used by existing attachments.
allocated This property is required. number
(Integer) The amount allocated to this capacity reservation.
available This property is required. number
(Integer) The amount of this capacity reservation available for new attachments.
status This property is required. string
(String) The status of the reservation.
total This property is required. number
(Integer) The total amount of this capacity reservation.
used This property is required. number
(Integer) The amount of this capacity reservation used by existing attachments.
allocated This property is required. float
(Integer) The amount allocated to this capacity reservation.
available This property is required. float
(Integer) The amount of this capacity reservation available for new attachments.
status This property is required. str
(String) The status of the reservation.
total This property is required. float
(Integer) The total amount of this capacity reservation.
used This property is required. float
(Integer) The amount of this capacity reservation used by existing attachments.
allocated This property is required. Number
(Integer) The amount allocated to this capacity reservation.
available This property is required. Number
(Integer) The amount of this capacity reservation available for new attachments.
status This property is required. String
(String) The status of the reservation.
total This property is required. Number
(Integer) The total amount of this capacity reservation.
used This property is required. Number
(Integer) The amount of this capacity reservation used by existing attachments.

GetIsReservationCommittedUse

ExpirationAt This property is required. string
(Timestamp) The expiration date and time for this committed use reservation.
ExpirationPolicy This property is required. string
(String) The policy to apply when the committed use term expires.
Term This property is required. string
(String) The term for this committed use reservation.
ExpirationAt This property is required. string
(Timestamp) The expiration date and time for this committed use reservation.
ExpirationPolicy This property is required. string
(String) The policy to apply when the committed use term expires.
Term This property is required. string
(String) The term for this committed use reservation.
expirationAt This property is required. String
(Timestamp) The expiration date and time for this committed use reservation.
expirationPolicy This property is required. String
(String) The policy to apply when the committed use term expires.
term This property is required. String
(String) The term for this committed use reservation.
expirationAt This property is required. string
(Timestamp) The expiration date and time for this committed use reservation.
expirationPolicy This property is required. string
(String) The policy to apply when the committed use term expires.
term This property is required. string
(String) The term for this committed use reservation.
expiration_at This property is required. str
(Timestamp) The expiration date and time for this committed use reservation.
expiration_policy This property is required. str
(String) The policy to apply when the committed use term expires.
term This property is required. str
(String) The term for this committed use reservation.
expirationAt This property is required. String
(Timestamp) The expiration date and time for this committed use reservation.
expirationPolicy This property is required. String
(String) The policy to apply when the committed use term expires.
term This property is required. String
(String) The term for this committed use reservation.

GetIsReservationProfile

Href This property is required. string
(String) The URL for this resource group.
Name This property is required. string
The name of the reservation,name and identifier are mutually exclusive.
ResourceType This property is required. string
(String) The resource type.
Href This property is required. string
(String) The URL for this resource group.
Name This property is required. string
The name of the reservation,name and identifier are mutually exclusive.
ResourceType This property is required. string
(String) The resource type.
href This property is required. String
(String) The URL for this resource group.
name This property is required. String
The name of the reservation,name and identifier are mutually exclusive.
resourceType This property is required. String
(String) The resource type.
href This property is required. string
(String) The URL for this resource group.
name This property is required. string
The name of the reservation,name and identifier are mutually exclusive.
resourceType This property is required. string
(String) The resource type.
href This property is required. str
(String) The URL for this resource group.
name This property is required. str
The name of the reservation,name and identifier are mutually exclusive.
resource_type This property is required. str
(String) The resource type.
href This property is required. String
(String) The URL for this resource group.
name This property is required. String
The name of the reservation,name and identifier are mutually exclusive.
resourceType This property is required. String
(String) The resource type.

GetIsReservationResourceGroup

Href This property is required. string
(String) The URL for this resource group.
Id This property is required. string
(String) The unique identifier for this resource group.
Name This property is required. string
The name of the reservation,name and identifier are mutually exclusive.
Href This property is required. string
(String) The URL for this resource group.
Id This property is required. string
(String) The unique identifier for this resource group.
Name This property is required. string
The name of the reservation,name and identifier are mutually exclusive.
href This property is required. String
(String) The URL for this resource group.
id This property is required. String
(String) The unique identifier for this resource group.
name This property is required. String
The name of the reservation,name and identifier are mutually exclusive.
href This property is required. string
(String) The URL for this resource group.
id This property is required. string
(String) The unique identifier for this resource group.
name This property is required. string
The name of the reservation,name and identifier are mutually exclusive.
href This property is required. str
(String) The URL for this resource group.
id This property is required. str
(String) The unique identifier for this resource group.
name This property is required. str
The name of the reservation,name and identifier are mutually exclusive.
href This property is required. String
(String) The URL for this resource group.
id This property is required. String
(String) The unique identifier for this resource group.
name This property is required. String
The name of the reservation,name and identifier are mutually exclusive.

GetIsReservationStatusReason

Code This property is required. string
(String) A snake case string succinctly identifying the status reason.
Message This property is required. string
(String) An explanation of the status reason.
MoreInfo This property is required. string
(string) Link to documentation about this status reason
Code This property is required. string
(String) A snake case string succinctly identifying the status reason.
Message This property is required. string
(String) An explanation of the status reason.
MoreInfo This property is required. string
(string) Link to documentation about this status reason
code This property is required. String
(String) A snake case string succinctly identifying the status reason.
message This property is required. String
(String) An explanation of the status reason.
moreInfo This property is required. String
(string) Link to documentation about this status reason
code This property is required. string
(String) A snake case string succinctly identifying the status reason.
message This property is required. string
(String) An explanation of the status reason.
moreInfo This property is required. string
(string) Link to documentation about this status reason
code This property is required. str
(String) A snake case string succinctly identifying the status reason.
message This property is required. str
(String) An explanation of the status reason.
more_info This property is required. str
(string) Link to documentation about this status reason
code This property is required. String
(String) A snake case string succinctly identifying the status reason.
message This property is required. String
(String) An explanation of the status reason.
moreInfo This property is required. String
(string) Link to documentation about this status reason

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.