1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. BigDataService
  6. getBdsCapacityReservations
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi

    This data source provides the list of Bds Capacity Reservations in Oracle Cloud Infrastructure Big Data Service service.

    Returns a list of BDS capacity reservations in a compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBdsCapacityReservations = oci.bigdataservice.getBdsCapacityReservations({
        compartmentId: compartmentId,
        displayName: bdsCapacityReservationDisplayName,
        state: bdsCapacityReservationState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_bds_capacity_reservations = oci.bigdataservice.get_bds_capacity_reservations(compartment_id=compartment_id,
        display_name=bds_capacity_reservation_display_name,
        state=bds_capacity_reservation_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/bigdataservice"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := bigdataservice.GetBdsCapacityReservations(ctx, &bigdataservice.GetBdsCapacityReservationsArgs{
    			CompartmentId: compartmentId,
    			DisplayName:   pulumi.StringRef(bdsCapacityReservationDisplayName),
    			State:         pulumi.StringRef(bdsCapacityReservationState),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testBdsCapacityReservations = Oci.BigDataService.GetBdsCapacityReservations.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = bdsCapacityReservationDisplayName,
            State = bdsCapacityReservationState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.BigDataService.BigDataServiceFunctions;
    import com.pulumi.oci.BigDataService.inputs.GetBdsCapacityReservationsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testBdsCapacityReservations = BigDataServiceFunctions.getBdsCapacityReservations(GetBdsCapacityReservationsArgs.builder()
                .compartmentId(compartmentId)
                .displayName(bdsCapacityReservationDisplayName)
                .state(bdsCapacityReservationState)
                .build());
    
        }
    }
    
    variables:
      testBdsCapacityReservations:
        fn::invoke:
          function: oci:BigDataService:getBdsCapacityReservations
          arguments:
            compartmentId: ${compartmentId}
            displayName: ${bdsCapacityReservationDisplayName}
            state: ${bdsCapacityReservationState}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_bigdataservice_getbdscapacityreservations" "testBdsCapacityReservations" {
      compartment_id = compartmentId
      display_name   = bdsCapacityReservationDisplayName
      state          = bdsCapacityReservationState
    }
    

    Using getBdsCapacityReservations

    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 getBdsCapacityReservations(args: GetBdsCapacityReservationsArgs, opts?: InvokeOptions): Promise<GetBdsCapacityReservationsResult>
    function getBdsCapacityReservationsOutput(args: GetBdsCapacityReservationsOutputArgs, opts?: InvokeOutputOptions): Output<GetBdsCapacityReservationsResult>
    def get_bds_capacity_reservations(compartment_id: Optional[str] = None,
                                      display_name: Optional[str] = None,
                                      filters: Optional[Sequence[GetBdsCapacityReservationsFilter]] = None,
                                      state: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetBdsCapacityReservationsResult
    def get_bds_capacity_reservations_output(compartment_id: pulumi.Input[Optional[str]] = None,
                                      display_name: pulumi.Input[Optional[str]] = None,
                                      filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetBdsCapacityReservationsFilterArgs]]]] = None,
                                      state: pulumi.Input[Optional[str]] = None,
                                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetBdsCapacityReservationsResult]
    func GetBdsCapacityReservations(ctx *Context, args *GetBdsCapacityReservationsArgs, opts ...InvokeOption) (*GetBdsCapacityReservationsResult, error)
    func GetBdsCapacityReservationsOutput(ctx *Context, args *GetBdsCapacityReservationsOutputArgs, opts ...InvokeOption) GetBdsCapacityReservationsResultOutput

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

    public static class GetBdsCapacityReservations 
    {
        public static Task<GetBdsCapacityReservationsResult> InvokeAsync(GetBdsCapacityReservationsArgs args, InvokeOptions? opts = null)
        public static Output<GetBdsCapacityReservationsResult> Invoke(GetBdsCapacityReservationsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetBdsCapacityReservationsResult> Invoke(GetBdsCapacityReservationsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetBdsCapacityReservationsResult> getBdsCapacityReservations(GetBdsCapacityReservationsArgs args, InvokeOptions options)
    public static Output<GetBdsCapacityReservationsResult> getBdsCapacityReservations(GetBdsCapacityReservationsArgs args, InvokeOptions options)
    public static Output<GetBdsCapacityReservationsResult> getBdsCapacityReservations(GetBdsCapacityReservationsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:BigDataService/getBdsCapacityReservations:getBdsCapacityReservations
      arguments:
        # arguments dictionary
    data "oci_big_data_service_get_bds_capacity_reservations" "name" {
        # arguments
    }

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetBdsCapacityReservationsFilter>
    State string
    The lifecycle state of the BDS capacity reservation.
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetBdsCapacityReservationsFilter
    State string
    The lifecycle state of the BDS capacity reservation.
    compartment_id string
    The OCID of the compartment.
    display_name string
    A filter to return only resources that match the entire display name given.
    filters list(object)
    state string
    The lifecycle state of the BDS capacity reservation.
    compartmentId String
    The OCID of the compartment.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetBdsCapacityReservationsFilter>
    state String
    The lifecycle state of the BDS capacity reservation.
    compartmentId string
    The OCID of the compartment.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetBdsCapacityReservationsFilter[]
    state string
    The lifecycle state of the BDS capacity reservation.
    compartment_id str
    The OCID of the compartment.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[GetBdsCapacityReservationsFilter]
    state str
    The lifecycle state of the BDS capacity reservation.
    compartmentId String
    The OCID of the compartment.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>
    state String
    The lifecycle state of the BDS capacity reservation.

    getBdsCapacityReservations Result

    The following output properties are available:

    BdsCapacityReservationCollections List<GetBdsCapacityReservationsBdsCapacityReservationCollection>
    The list of bds_capacity_reservation_collection.
    CompartmentId string
    The OCID of the compartment that contains the BDS capacity reservation.
    Id string
    The provider-assigned unique ID for this managed resource.
    DisplayName string
    A user-friendly name for the BDS capacity reservation.
    Filters List<GetBdsCapacityReservationsFilter>
    State string
    The lifecycle state of the BDS capacity reservation.
    BdsCapacityReservationCollections []GetBdsCapacityReservationsBdsCapacityReservationCollection
    The list of bds_capacity_reservation_collection.
    CompartmentId string
    The OCID of the compartment that contains the BDS capacity reservation.
    Id string
    The provider-assigned unique ID for this managed resource.
    DisplayName string
    A user-friendly name for the BDS capacity reservation.
    Filters []GetBdsCapacityReservationsFilter
    State string
    The lifecycle state of the BDS capacity reservation.
    bds_capacity_reservation_collections list(object)
    The list of bds_capacity_reservation_collection.
    compartment_id string
    The OCID of the compartment that contains the BDS capacity reservation.
    id string
    The provider-assigned unique ID for this managed resource.
    display_name string
    A user-friendly name for the BDS capacity reservation.
    filters list(object)
    state string
    The lifecycle state of the BDS capacity reservation.
    bdsCapacityReservationCollections List<GetBdsCapacityReservationsBdsCapacityReservationCollection>
    The list of bds_capacity_reservation_collection.
    compartmentId String
    The OCID of the compartment that contains the BDS capacity reservation.
    id String
    The provider-assigned unique ID for this managed resource.
    displayName String
    A user-friendly name for the BDS capacity reservation.
    filters List<GetBdsCapacityReservationsFilter>
    state String
    The lifecycle state of the BDS capacity reservation.
    bdsCapacityReservationCollections GetBdsCapacityReservationsBdsCapacityReservationCollection[]
    The list of bds_capacity_reservation_collection.
    compartmentId string
    The OCID of the compartment that contains the BDS capacity reservation.
    id string
    The provider-assigned unique ID for this managed resource.
    displayName string
    A user-friendly name for the BDS capacity reservation.
    filters GetBdsCapacityReservationsFilter[]
    state string
    The lifecycle state of the BDS capacity reservation.
    bds_capacity_reservation_collections Sequence[GetBdsCapacityReservationsBdsCapacityReservationCollection]
    The list of bds_capacity_reservation_collection.
    compartment_id str
    The OCID of the compartment that contains the BDS capacity reservation.
    id str
    The provider-assigned unique ID for this managed resource.
    display_name str
    A user-friendly name for the BDS capacity reservation.
    filters Sequence[GetBdsCapacityReservationsFilter]
    state str
    The lifecycle state of the BDS capacity reservation.
    bdsCapacityReservationCollections List<Property Map>
    The list of bds_capacity_reservation_collection.
    compartmentId String
    The OCID of the compartment that contains the BDS capacity reservation.
    id String
    The provider-assigned unique ID for this managed resource.
    displayName String
    A user-friendly name for the BDS capacity reservation.
    filters List<Property Map>
    state String
    The lifecycle state of the BDS capacity reservation.

    Supporting Types

    GetBdsCapacityReservationsBdsCapacityReservationCollection

    GetBdsCapacityReservationsBdsCapacityReservationCollectionItem

    CompartmentId string
    The OCID of the compartment.
    ComputeCapacityReservations List<GetBdsCapacityReservationsBdsCapacityReservationCollectionItemComputeCapacityReservation>
    Compute capacity reservation ID mappings by domain. For a multi-AD region, domain1, domain2, and domain3 correspond to AD1, AD2, and AD3 respectively. For a single-AD region, domain1, domain2, and domain3 correspond to FD1, FD2, and FD3 respectively.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example, {"foo-namespace": {"bar-key": "value"}}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. For example, {"bar-key": "value"}
    Id string
    The OCID of the BDS capacity reservation.
    State string
    The lifecycle state of the BDS capacity reservation.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces.
    TimeCreated string
    The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string.
    TimeUpdated string
    The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string.
    CompartmentId string
    The OCID of the compartment.
    ComputeCapacityReservations []GetBdsCapacityReservationsBdsCapacityReservationCollectionItemComputeCapacityReservation
    Compute capacity reservation ID mappings by domain. For a multi-AD region, domain1, domain2, and domain3 correspond to AD1, AD2, and AD3 respectively. For a single-AD region, domain1, domain2, and domain3 correspond to FD1, FD2, and FD3 respectively.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example, {"foo-namespace": {"bar-key": "value"}}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. For example, {"bar-key": "value"}
    Id string
    The OCID of the BDS capacity reservation.
    State string
    The lifecycle state of the BDS capacity reservation.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces.
    TimeCreated string
    The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string.
    TimeUpdated string
    The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string.
    compartment_id string
    The OCID of the compartment.
    compute_capacity_reservations list(object)
    Compute capacity reservation ID mappings by domain. For a multi-AD region, domain1, domain2, and domain3 correspond to AD1, AD2, and AD3 respectively. For a single-AD region, domain1, domain2, and domain3 correspond to FD1, FD2, and FD3 respectively.
    defined_tags map(string)
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example, {"foo-namespace": {"bar-key": "value"}}
    display_name string
    A filter to return only resources that match the entire display name given.
    freeform_tags map(string)
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. For example, {"bar-key": "value"}
    id string
    The OCID of the BDS capacity reservation.
    state string
    The lifecycle state of the BDS capacity reservation.
    system_tags map(string)
    Usage of system tag keys. These predefined keys are scoped to namespaces.
    time_created string
    The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string.
    time_updated string
    The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string.
    compartmentId String
    The OCID of the compartment.
    computeCapacityReservations List<GetBdsCapacityReservationsBdsCapacityReservationCollectionItemComputeCapacityReservation>
    Compute capacity reservation ID mappings by domain. For a multi-AD region, domain1, domain2, and domain3 correspond to AD1, AD2, and AD3 respectively. For a single-AD region, domain1, domain2, and domain3 correspond to FD1, FD2, and FD3 respectively.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example, {"foo-namespace": {"bar-key": "value"}}
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. For example, {"bar-key": "value"}
    id String
    The OCID of the BDS capacity reservation.
    state String
    The lifecycle state of the BDS capacity reservation.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces.
    timeCreated String
    The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string.
    timeUpdated String
    The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string.
    compartmentId string
    The OCID of the compartment.
    computeCapacityReservations GetBdsCapacityReservationsBdsCapacityReservationCollectionItemComputeCapacityReservation[]
    Compute capacity reservation ID mappings by domain. For a multi-AD region, domain1, domain2, and domain3 correspond to AD1, AD2, and AD3 respectively. For a single-AD region, domain1, domain2, and domain3 correspond to FD1, FD2, and FD3 respectively.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example, {"foo-namespace": {"bar-key": "value"}}
    displayName string
    A filter to return only resources that match the entire display name given.
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. For example, {"bar-key": "value"}
    id string
    The OCID of the BDS capacity reservation.
    state string
    The lifecycle state of the BDS capacity reservation.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces.
    timeCreated string
    The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string.
    timeUpdated string
    The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string.
    compartment_id str
    The OCID of the compartment.
    compute_capacity_reservations Sequence[GetBdsCapacityReservationsBdsCapacityReservationCollectionItemComputeCapacityReservation]
    Compute capacity reservation ID mappings by domain. For a multi-AD region, domain1, domain2, and domain3 correspond to AD1, AD2, and AD3 respectively. For a single-AD region, domain1, domain2, and domain3 correspond to FD1, FD2, and FD3 respectively.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example, {"foo-namespace": {"bar-key": "value"}}
    display_name str
    A filter to return only resources that match the entire display name given.
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. For example, {"bar-key": "value"}
    id str
    The OCID of the BDS capacity reservation.
    state str
    The lifecycle state of the BDS capacity reservation.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces.
    time_created str
    The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string.
    time_updated str
    The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string.
    compartmentId String
    The OCID of the compartment.
    computeCapacityReservations List<Property Map>
    Compute capacity reservation ID mappings by domain. For a multi-AD region, domain1, domain2, and domain3 correspond to AD1, AD2, and AD3 respectively. For a single-AD region, domain1, domain2, and domain3 correspond to FD1, FD2, and FD3 respectively.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For example, {"foo-namespace": {"bar-key": "value"}}
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. For example, {"bar-key": "value"}
    id String
    The OCID of the BDS capacity reservation.
    state String
    The lifecycle state of the BDS capacity reservation.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces.
    timeCreated String
    The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string.
    timeUpdated String
    The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string.

    GetBdsCapacityReservationsBdsCapacityReservationCollectionItemComputeCapacityReservation

    Domain1reservationId string
    Compute capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region.
    Domain2reservationId string
    Compute capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region.
    Domain3reservationId string
    Compute capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region.
    Domain1reservationId string
    Compute capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region.
    Domain2reservationId string
    Compute capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region.
    Domain3reservationId string
    Compute capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region.
    domain1reservation_id string
    Compute capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region.
    domain2reservation_id string
    Compute capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region.
    domain3reservation_id string
    Compute capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region.
    domain1reservationId String
    Compute capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region.
    domain2reservationId String
    Compute capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region.
    domain3reservationId String
    Compute capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region.
    domain1reservationId string
    Compute capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region.
    domain2reservationId string
    Compute capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region.
    domain3reservationId string
    Compute capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region.
    domain1reservation_id str
    Compute capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region.
    domain2reservation_id str
    Compute capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region.
    domain3reservation_id str
    Compute capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region.
    domain1reservationId String
    Compute capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region.
    domain2reservationId String
    Compute capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region.
    domain3reservationId String
    Compute capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region.

    GetBdsCapacityReservationsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name string
    values list(string)
    regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.22.0
    published on Wednesday, Aug 26, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial