1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsReservations
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsReservations

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Using getIsReservations

    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 getIsReservations(args: GetIsReservationsArgs, opts?: InvokeOptions): Promise<GetIsReservationsResult>
    function getIsReservationsOutput(args: GetIsReservationsOutputArgs, opts?: InvokeOptions): Output<GetIsReservationsResult>
    def get_is_reservations(id: Optional[str] = None,
                            name: Optional[str] = None,
                            resource_group: Optional[str] = None,
                            zone_name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetIsReservationsResult
    def get_is_reservations_output(id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            resource_group: Optional[pulumi.Input[str]] = None,
                            zone_name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetIsReservationsResult]
    func GetIsReservations(ctx *Context, args *GetIsReservationsArgs, opts ...InvokeOption) (*GetIsReservationsResult, error)
    func GetIsReservationsOutput(ctx *Context, args *GetIsReservationsOutputArgs, opts ...InvokeOption) GetIsReservationsResultOutput

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

    public static class GetIsReservations 
    {
        public static Task<GetIsReservationsResult> InvokeAsync(GetIsReservationsArgs args, InvokeOptions? opts = null)
        public static Output<GetIsReservationsResult> Invoke(GetIsReservationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsReservationsResult> getIsReservations(GetIsReservationsArgs args, InvokeOptions options)
    public static Output<GetIsReservationsResult> getIsReservations(GetIsReservationsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsReservations:getIsReservations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (String) The unique identifier for this resource group.
    Name string
    (String) The name for this resource group.
    ResourceGroup string
    The id of the resource group.
    ZoneName string
    The name of the zone.
    Id string
    (String) The unique identifier for this resource group.
    Name string
    (String) The name for this resource group.
    ResourceGroup string
    The id of the resource group.
    ZoneName string
    The name of the zone.
    id String
    (String) The unique identifier for this resource group.
    name String
    (String) The name for this resource group.
    resourceGroup String
    The id of the resource group.
    zoneName String
    The name of the zone.
    id string
    (String) The unique identifier for this resource group.
    name string
    (String) The name for this resource group.
    resourceGroup string
    The id of the resource group.
    zoneName string
    The name of the zone.
    id str
    (String) The unique identifier for this resource group.
    name str
    (String) The name for this resource group.
    resource_group str
    The id of the resource group.
    zone_name str
    The name of the zone.
    id String
    (String) The unique identifier for this resource group.
    name String
    (String) The name for this resource group.
    resourceGroup String
    The id of the resource group.
    zoneName String
    The name of the zone.

    getIsReservations Result

    The following output properties are available:

    Id string
    (String) The unique identifier for this resource group.
    Reservations List<GetIsReservationsReservation>
    (List) Collection of reservations
    Name string
    (String) The name for this resource group.
    ResourceGroup string
    (List) The resource group for this reservation.
    ZoneName string
    Id string
    (String) The unique identifier for this resource group.
    Reservations []GetIsReservationsReservation
    (List) Collection of reservations
    Name string
    (String) The name for this resource group.
    ResourceGroup string
    (List) The resource group for this reservation.
    ZoneName string
    id String
    (String) The unique identifier for this resource group.
    reservations List<GetIsReservationsReservation>
    (List) Collection of reservations
    name String
    (String) The name for this resource group.
    resourceGroup String
    (List) The resource group for this reservation.
    zoneName String
    id string
    (String) The unique identifier for this resource group.
    reservations GetIsReservationsReservation[]
    (List) Collection of reservations
    name string
    (String) The name for this resource group.
    resourceGroup string
    (List) The resource group for this reservation.
    zoneName string
    id str
    (String) The unique identifier for this resource group.
    reservations Sequence[GetIsReservationsReservation]
    (List) Collection of reservations
    name str
    (String) The name for this resource group.
    resource_group str
    (List) The resource group for this reservation.
    zone_name str
    id String
    (String) The unique identifier for this resource group.
    reservations List<Property Map>
    (List) Collection of reservations
    name String
    (String) The name for this resource group.
    resourceGroup String
    (List) The resource group for this reservation.
    zoneName String

    Supporting Types

    GetIsReservationsReservation

    AffinityPolicy string
    (String) The affinity policy to use for this reservation.
    Capacities List<GetIsReservationsReservationCapacity>
    (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
    CommittedUses List<GetIsReservationsReservationCommittedUse>
    (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
    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<GetIsReservationsReservationProfile>
    (List) The virtual server instance profile this reservation.
    ResourceGroups List<GetIsReservationsReservationResourceGroup>
    The id of the resource group.
    ResourceType string
    (String) The resource type.
    Status string
    (String) The status of the reservation.
    StatusReasons List<GetIsReservationsReservationStatusReason>
    (List) The reasons for the current status (if any).
    Zone string
    (String) The globally unique name for this zone.
    AffinityPolicy string
    (String) The affinity policy to use for this reservation.
    Capacities []GetIsReservationsReservationCapacity
    (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
    CommittedUses []GetIsReservationsReservationCommittedUse
    (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
    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 []GetIsReservationsReservationProfile
    (List) The virtual server instance profile this reservation.
    ResourceGroups []GetIsReservationsReservationResourceGroup
    The id of the resource group.
    ResourceType string
    (String) The resource type.
    Status string
    (String) The status of the reservation.
    StatusReasons []GetIsReservationsReservationStatusReason
    (List) The reasons for the current status (if any).
    Zone string
    (String) The globally unique name for this zone.
    affinityPolicy String
    (String) The affinity policy to use for this reservation.
    capacities List<GetIsReservationsReservationCapacity>
    (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
    committedUses List<GetIsReservationsReservationCommittedUse>
    (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
    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<GetIsReservationsReservationProfile>
    (List) The virtual server instance profile this reservation.
    resourceGroups List<GetIsReservationsReservationResourceGroup>
    The id of the resource group.
    resourceType String
    (String) The resource type.
    status String
    (String) The status of the reservation.
    statusReasons List<GetIsReservationsReservationStatusReason>
    (List) The reasons for the current status (if any).
    zone String
    (String) The globally unique name for this zone.
    affinityPolicy string
    (String) The affinity policy to use for this reservation.
    capacities GetIsReservationsReservationCapacity[]
    (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
    committedUses GetIsReservationsReservationCommittedUse[]
    (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
    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 GetIsReservationsReservationProfile[]
    (List) The virtual server instance profile this reservation.
    resourceGroups GetIsReservationsReservationResourceGroup[]
    The id of the resource group.
    resourceType string
    (String) The resource type.
    status string
    (String) The status of the reservation.
    statusReasons GetIsReservationsReservationStatusReason[]
    (List) The reasons for the current status (if any).
    zone string
    (String) The globally unique name for this zone.
    affinity_policy str
    (String) The affinity policy to use for this reservation.
    capacities Sequence[GetIsReservationsReservationCapacity]
    (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
    committed_uses Sequence[GetIsReservationsReservationCommittedUse]
    (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
    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[GetIsReservationsReservationProfile]
    (List) The virtual server instance profile this reservation.
    resource_groups Sequence[GetIsReservationsReservationResourceGroup]
    The id of the resource group.
    resource_type str
    (String) The resource type.
    status str
    (String) The status of the reservation.
    status_reasons Sequence[GetIsReservationsReservationStatusReason]
    (List) The reasons for the current status (if any).
    zone str
    (String) The globally unique name for this zone.
    affinityPolicy String
    (String) The affinity policy to use for this reservation.
    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.
    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>
    The id of the resource group.
    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.

    GetIsReservationsReservationCapacity

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

    GetIsReservationsReservationCommittedUse

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

    GetIsReservationsReservationProfile

    Href string
    (String) The URL for this resource group.
    Name string
    (String) The name for this resource group.
    ResourceType string
    (String) The resource type.
    Href string
    (String) The URL for this resource group.
    Name string
    (String) The name for this resource group.
    ResourceType string
    (String) The resource type.
    href String
    (String) The URL for this resource group.
    name String
    (String) The name for this resource group.
    resourceType String
    (String) The resource type.
    href string
    (String) The URL for this resource group.
    name string
    (String) The name for this resource group.
    resourceType string
    (String) The resource type.
    href str
    (String) The URL for this resource group.
    name str
    (String) The name for this resource group.
    resource_type str
    (String) The resource type.
    href String
    (String) The URL for this resource group.
    name String
    (String) The name for this resource group.
    resourceType String
    (String) The resource type.

    GetIsReservationsReservationResourceGroup

    Href string
    (String) The URL for this resource group.
    Id string
    (String) The unique identifier for this resource group.
    Name string
    (String) The name for this resource group.
    Href string
    (String) The URL for this resource group.
    Id string
    (String) The unique identifier for this resource group.
    Name string
    (String) The name for this resource group.
    href String
    (String) The URL for this resource group.
    id String
    (String) The unique identifier for this resource group.
    name String
    (String) The name for this resource group.
    href string
    (String) The URL for this resource group.
    id string
    (String) The unique identifier for this resource group.
    name string
    (String) The name for this resource group.
    href str
    (String) The URL for this resource group.
    id str
    (String) The unique identifier for this resource group.
    name str
    (String) The name for this resource group.
    href String
    (String) The URL for this resource group.
    id String
    (String) The unique identifier for this resource group.
    name String
    (String) The name for this resource group.

    GetIsReservationsReservationStatusReason

    Code string
    (String) A snake case string succinctly identifying the status reason.
    Message string
    (String) An explanation of the status reason.
    MoreInfo string
    (string) Link to documentation about this status reason
    Code string
    (String) A snake case string succinctly identifying the status reason.
    Message string
    (String) An explanation of the status reason.
    MoreInfo string
    (string) Link to documentation about this status reason
    code String
    (String) A snake case string succinctly identifying the status reason.
    message String
    (String) An explanation of the status reason.
    moreInfo String
    (string) Link to documentation about this status reason
    code string
    (String) A snake case string succinctly identifying the status reason.
    message string
    (String) An explanation of the status reason.
    moreInfo string
    (string) Link to documentation about this status reason
    code str
    (String) A snake case string succinctly identifying the status reason.
    message str
    (String) An explanation of the status reason.
    more_info str
    (string) Link to documentation about this status reason
    code String
    (String) A snake case string succinctly identifying the status reason.
    message String
    (String) An explanation of the status reason.
    moreInfo 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud