1. Packages
  2. Google Cloud Native
  3. API Docs
  4. pubsublite
  5. pubsublite/v1
  6. getReservation

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.pubsublite/v1.getReservation

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Returns the reservation configuration.

    Using getReservation

    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 getReservation(args: GetReservationArgs, opts?: InvokeOptions): Promise<GetReservationResult>
    function getReservationOutput(args: GetReservationOutputArgs, opts?: InvokeOptions): Output<GetReservationResult>
    def get_reservation(location: Optional[str] = None,
                        project: Optional[str] = None,
                        reservation_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetReservationResult
    def get_reservation_output(location: Optional[pulumi.Input[str]] = None,
                        project: Optional[pulumi.Input[str]] = None,
                        reservation_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetReservationResult]
    func LookupReservation(ctx *Context, args *LookupReservationArgs, opts ...InvokeOption) (*LookupReservationResult, error)
    func LookupReservationOutput(ctx *Context, args *LookupReservationOutputArgs, opts ...InvokeOption) LookupReservationResultOutput

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

    public static class GetReservation 
    {
        public static Task<GetReservationResult> InvokeAsync(GetReservationArgs args, InvokeOptions? opts = null)
        public static Output<GetReservationResult> Invoke(GetReservationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetReservationResult> getReservation(GetReservationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:pubsublite/v1:getReservation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    ReservationId string
    Project string
    Location string
    ReservationId string
    Project string
    location String
    reservationId String
    project String
    location string
    reservationId string
    project string
    location String
    reservationId String
    project String

    getReservation Result

    The following output properties are available:

    Name string
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    ThroughputCapacity string
    The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    Name string
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    ThroughputCapacity string
    The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    name String
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    throughputCapacity String
    The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    name string
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    throughputCapacity string
    The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    name str
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    throughput_capacity str
    The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    name String
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    throughputCapacity String
    The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi