1. Packages
  2. CAST AI
  3. API Docs
  4. Reservations
CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI

castai.Reservations

Get Started
castai logo
CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI

    Create Reservations Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Reservations(name: string, args: ReservationsArgs, opts?: CustomResourceOptions);
    @overload
    def Reservations(resource_name: str,
                     args: ReservationsArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Reservations(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     reservations_csv: Optional[str] = None,
                     organization_id: Optional[str] = None)
    func NewReservations(ctx *Context, name string, args ReservationsArgs, opts ...ResourceOption) (*Reservations, error)
    public Reservations(string name, ReservationsArgs args, CustomResourceOptions? opts = null)
    public Reservations(String name, ReservationsArgs args)
    public Reservations(String name, ReservationsArgs args, CustomResourceOptions options)
    
    type: castai:Reservations
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ReservationsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ReservationsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ReservationsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReservationsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReservationsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var reservationsResource = new CastAI.Reservations("reservationsResource", new()
    {
        ReservationsCsv = "string",
        OrganizationId = "string",
    });
    
    example, err := castai.NewReservations(ctx, "reservationsResource", &castai.ReservationsArgs{
    	ReservationsCsv: pulumi.String("string"),
    	OrganizationId:  pulumi.String("string"),
    })
    
    var reservationsResource = new Reservations("reservationsResource", ReservationsArgs.builder()
        .reservationsCsv("string")
        .organizationId("string")
        .build());
    
    reservations_resource = castai.Reservations("reservationsResource",
        reservations_csv="string",
        organization_id="string")
    
    const reservationsResource = new castai.Reservations("reservationsResource", {
        reservationsCsv: "string",
        organizationId: "string",
    });
    
    type: castai:Reservations
    properties:
        organizationId: string
        reservationsCsv: string
    

    Reservations Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Reservations resource accepts the following input properties:

    ReservationsCsv string
    csv file containing reservations
    OrganizationId string
    organization
    ReservationsCsv string
    csv file containing reservations
    OrganizationId string
    organization
    reservationsCsv String
    csv file containing reservations
    organizationId String
    organization
    reservationsCsv string
    csv file containing reservations
    organizationId string
    organization
    reservations_csv str
    csv file containing reservations
    organization_id str
    organization
    reservationsCsv String
    csv file containing reservations
    organizationId String
    organization

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Reservations resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Reservations List<Pulumi.CastAI.Outputs.ReservationsReservation>
    Id string
    The provider-assigned unique ID for this managed resource.
    Reservations []ReservationsReservation
    id String
    The provider-assigned unique ID for this managed resource.
    reservations List<ReservationsReservation>
    id string
    The provider-assigned unique ID for this managed resource.
    reservations ReservationsReservation[]
    id str
    The provider-assigned unique ID for this managed resource.
    reservations Sequence[ReservationsReservation]
    id String
    The provider-assigned unique ID for this managed resource.
    reservations List<Property Map>

    Look up Existing Reservations Resource

    Get an existing Reservations resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ReservationsState, opts?: CustomResourceOptions): Reservations
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            organization_id: Optional[str] = None,
            reservations: Optional[Sequence[ReservationsReservationArgs]] = None,
            reservations_csv: Optional[str] = None) -> Reservations
    func GetReservations(ctx *Context, name string, id IDInput, state *ReservationsState, opts ...ResourceOption) (*Reservations, error)
    public static Reservations Get(string name, Input<string> id, ReservationsState? state, CustomResourceOptions? opts = null)
    public static Reservations get(String name, Output<String> id, ReservationsState state, CustomResourceOptions options)
    resources:  _:    type: castai:Reservations    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    OrganizationId string
    organization
    Reservations []ReservationsReservationArgs
    ReservationsCsv string
    csv file containing reservations
    organizationId String
    organization
    reservations List<ReservationsReservation>
    reservationsCsv String
    csv file containing reservations
    organizationId string
    organization
    reservations ReservationsReservation[]
    reservationsCsv string
    csv file containing reservations
    organizationId String
    organization
    reservations List<Property Map>
    reservationsCsv String
    csv file containing reservations

    Supporting Types

    ReservationsReservation, ReservationsReservationArgs

    Count string
    amount of reserved instances
    InstanceType string
    reserved instance type
    Name string
    unique reservation name in region for specific instance type
    Price string
    reservation price
    Provider string
    reservation cloud provider (gcp, aws, azure)
    Region string
    reservation region
    StartDate string
    start date of reservation
    EndDate string
    end date of reservation
    ZoneId string
    reservation zone id
    ZoneName string
    reservation zone name
    Count string
    amount of reserved instances
    InstanceType string
    reserved instance type
    Name string
    unique reservation name in region for specific instance type
    Price string
    reservation price
    Provider string
    reservation cloud provider (gcp, aws, azure)
    Region string
    reservation region
    StartDate string
    start date of reservation
    EndDate string
    end date of reservation
    ZoneId string
    reservation zone id
    ZoneName string
    reservation zone name
    count String
    amount of reserved instances
    instanceType String
    reserved instance type
    name String
    unique reservation name in region for specific instance type
    price String
    reservation price
    provider String
    reservation cloud provider (gcp, aws, azure)
    region String
    reservation region
    startDate String
    start date of reservation
    endDate String
    end date of reservation
    zoneId String
    reservation zone id
    zoneName String
    reservation zone name
    count string
    amount of reserved instances
    instanceType string
    reserved instance type
    name string
    unique reservation name in region for specific instance type
    price string
    reservation price
    provider string
    reservation cloud provider (gcp, aws, azure)
    region string
    reservation region
    startDate string
    start date of reservation
    endDate string
    end date of reservation
    zoneId string
    reservation zone id
    zoneName string
    reservation zone name
    count str
    amount of reserved instances
    instance_type str
    reserved instance type
    name str
    unique reservation name in region for specific instance type
    price str
    reservation price
    provider str
    reservation cloud provider (gcp, aws, azure)
    region str
    reservation region
    start_date str
    start date of reservation
    end_date str
    end date of reservation
    zone_id str
    reservation zone id
    zone_name str
    reservation zone name
    count String
    amount of reserved instances
    instanceType String
    reserved instance type
    name String
    unique reservation name in region for specific instance type
    price String
    reservation price
    provider String
    reservation cloud provider (gcp, aws, azure)
    region String
    reservation region
    startDate String
    start date of reservation
    endDate String
    end date of reservation
    zoneId String
    reservation zone id
    zoneName String
    reservation zone name

    Package Details

    Repository
    castai castai/pulumi-castai
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the castai Terraform Provider.
    castai logo
    CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI
      Meet Neo: Your AI Platform Teammate