Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs
rediscloud.getSubscription
Explore with Pulumi AI
The Subscription data source allows access to the details of an existing subscription within your Redis Enterprise Cloud account.
Example Usage
The following example shows how to use the name attribute to locate a subscription within your Redis Enterprise Cloud account.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rediscloud = Pulumi.Rediscloud;
return await Deployment.RunAsync(() =>
{
var example = Rediscloud.GetSubscription.Invoke(new()
{
Name = "My Example Subscription",
});
return new Dictionary<string, object?>
{
["rediscloudSubscription"] = example.Apply(getSubscriptionResult => getSubscriptionResult.Id),
};
});
package main
import (
"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := rediscloud.LookupSubscription(ctx, &rediscloud.LookupSubscriptionArgs{
Name: pulumi.StringRef("My Example Subscription"),
}, nil)
if err != nil {
return err
}
ctx.Export("rediscloudSubscription", example.Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rediscloud.RediscloudFunctions;
import com.pulumi.rediscloud.inputs.GetSubscriptionArgs;
import java.util.List;
import java.util.ArrayList;
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 example = RediscloudFunctions.getSubscription(GetSubscriptionArgs.builder()
.name("My Example Subscription")
.build());
ctx.export("rediscloudSubscription", example.applyValue(getSubscriptionResult -> getSubscriptionResult.id()));
}
}
import pulumi
import pulumi_rediscloud as rediscloud
example = rediscloud.get_subscription(name="My Example Subscription")
pulumi.export("rediscloudSubscription", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as rediscloud from "@pulumi/rediscloud";
const example = rediscloud.getSubscription({
name: "My Example Subscription",
});
export const rediscloudSubscription = example.then(example => example.id);
variables:
example:
fn::invoke:
Function: rediscloud:getSubscription
Arguments:
name: My Example Subscription
outputs:
rediscloudSubscription: ${example.id}
Using getSubscription
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 getSubscription(args: GetSubscriptionArgs, opts?: InvokeOptions): Promise<GetSubscriptionResult>
function getSubscriptionOutput(args: GetSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionResult>
def get_subscription(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubscriptionResult
def get_subscription_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionResult]
func LookupSubscription(ctx *Context, args *LookupSubscriptionArgs, opts ...InvokeOption) (*LookupSubscriptionResult, error)
func LookupSubscriptionOutput(ctx *Context, args *LookupSubscriptionOutputArgs, opts ...InvokeOption) LookupSubscriptionResultOutput
> Note: This function is named LookupSubscription
in the Go SDK.
public static class GetSubscription
{
public static Task<GetSubscriptionResult> InvokeAsync(GetSubscriptionArgs args, InvokeOptions? opts = null)
public static Output<GetSubscriptionResult> Invoke(GetSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSubscriptionResult> getSubscription(GetSubscriptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rediscloud:index/getSubscription:getSubscription
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the subscription to filter returned subscriptions
- Name string
- The name of the subscription to filter returned subscriptions
- name String
- The name of the subscription to filter returned subscriptions
- name string
- The name of the subscription to filter returned subscriptions
- name str
- The name of the subscription to filter returned subscriptions
- name String
- The name of the subscription to filter returned subscriptions
getSubscription Result
The following output properties are available:
- Cloud
Providers List<RedisLabs. Rediscloud. Outputs. Get Subscription Cloud Provider> - A cloud provider object, documented below
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Storage string - Memory storage preference: either ‘ram’ or a combination of 'ram-and-flash’
- Name string
- Number
Of intDatabases - The number of databases that are linked to this subscription.
- Payment
Method string - Payment
Method stringId - A valid payment method pre-defined in the current account
- Status string
- Current status of the subscription
- Cloud
Providers []GetSubscription Cloud Provider - A cloud provider object, documented below
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Storage string - Memory storage preference: either ‘ram’ or a combination of 'ram-and-flash’
- Name string
- Number
Of intDatabases - The number of databases that are linked to this subscription.
- Payment
Method string - Payment
Method stringId - A valid payment method pre-defined in the current account
- Status string
- Current status of the subscription
- cloud
Providers List<GetSubscription Cloud Provider> - A cloud provider object, documented below
- id String
- The provider-assigned unique ID for this managed resource.
- memory
Storage String - Memory storage preference: either ‘ram’ or a combination of 'ram-and-flash’
- name String
- number
Of IntegerDatabases - The number of databases that are linked to this subscription.
- payment
Method String - payment
Method StringId - A valid payment method pre-defined in the current account
- status String
- Current status of the subscription
- cloud
Providers GetSubscription Cloud Provider[] - A cloud provider object, documented below
- id string
- The provider-assigned unique ID for this managed resource.
- memory
Storage string - Memory storage preference: either ‘ram’ or a combination of 'ram-and-flash’
- name string
- number
Of numberDatabases - The number of databases that are linked to this subscription.
- payment
Method string - payment
Method stringId - A valid payment method pre-defined in the current account
- status string
- Current status of the subscription
- cloud_
providers Sequence[GetSubscription Cloud Provider] - A cloud provider object, documented below
- id str
- The provider-assigned unique ID for this managed resource.
- memory_
storage str - Memory storage preference: either ‘ram’ or a combination of 'ram-and-flash’
- name str
- number_
of_ intdatabases - The number of databases that are linked to this subscription.
- payment_
method str - payment_
method_ strid - A valid payment method pre-defined in the current account
- status str
- Current status of the subscription
- cloud
Providers List<Property Map> - A cloud provider object, documented below
- id String
- The provider-assigned unique ID for this managed resource.
- memory
Storage String - Memory storage preference: either ‘ram’ or a combination of 'ram-and-flash’
- name String
- number
Of NumberDatabases - The number of databases that are linked to this subscription.
- payment
Method String - payment
Method StringId - A valid payment method pre-defined in the current account
- status String
- Current status of the subscription
Supporting Types
GetSubscriptionCloudProvider
- Cloud
Account stringId - Cloud account identifier, (A Cloud Account Id = 1 implies using Redis Labs internal cloud account)
- Provider string
- The cloud provider to use with the subscription, (either
AWS
orGCP
) - Regions
List<Redis
Labs. Rediscloud. Inputs. Get Subscription Cloud Provider Region> - Deployment region as defined by cloud provider
- Cloud
Account stringId - Cloud account identifier, (A Cloud Account Id = 1 implies using Redis Labs internal cloud account)
- Provider string
- The cloud provider to use with the subscription, (either
AWS
orGCP
) - Regions
[]Get
Subscription Cloud Provider Region - Deployment region as defined by cloud provider
- cloud
Account StringId - Cloud account identifier, (A Cloud Account Id = 1 implies using Redis Labs internal cloud account)
- provider String
- The cloud provider to use with the subscription, (either
AWS
orGCP
) - regions
List<Get
Subscription Cloud Provider Region> - Deployment region as defined by cloud provider
- cloud
Account stringId - Cloud account identifier, (A Cloud Account Id = 1 implies using Redis Labs internal cloud account)
- provider string
- The cloud provider to use with the subscription, (either
AWS
orGCP
) - regions
Get
Subscription Cloud Provider Region[] - Deployment region as defined by cloud provider
- cloud_
account_ strid - Cloud account identifier, (A Cloud Account Id = 1 implies using Redis Labs internal cloud account)
- provider str
- The cloud provider to use with the subscription, (either
AWS
orGCP
) - regions
Sequence[Get
Subscription Cloud Provider Region] - Deployment region as defined by cloud provider
- cloud
Account StringId - Cloud account identifier, (A Cloud Account Id = 1 implies using Redis Labs internal cloud account)
- provider String
- The cloud provider to use with the subscription, (either
AWS
orGCP
) - regions List<Property Map>
- Deployment region as defined by cloud provider
GetSubscriptionCloudProviderRegion
- Multiple
Availability boolZones - Support deployment on multiple availability zones within the selected region
- Networking
Vpc stringId - VPC id for the generated network
- Networks
List<Redis
Labs. Rediscloud. Inputs. Get Subscription Cloud Provider Region Network> - List of generated network configuration
- Preferred
Availability List<string>Zones - List of availability zones used
- Region string
- Deployment region as defined by cloud provider
- Multiple
Availability boolZones - Support deployment on multiple availability zones within the selected region
- Networking
Vpc stringId - VPC id for the generated network
- Networks
[]Get
Subscription Cloud Provider Region Network - List of generated network configuration
- Preferred
Availability []stringZones - List of availability zones used
- Region string
- Deployment region as defined by cloud provider
- multiple
Availability BooleanZones - Support deployment on multiple availability zones within the selected region
- networking
Vpc StringId - VPC id for the generated network
- networks
List<Get
Subscription Cloud Provider Region Network> - List of generated network configuration
- preferred
Availability List<String>Zones - List of availability zones used
- region String
- Deployment region as defined by cloud provider
- multiple
Availability booleanZones - Support deployment on multiple availability zones within the selected region
- networking
Vpc stringId - VPC id for the generated network
- networks
Get
Subscription Cloud Provider Region Network[] - List of generated network configuration
- preferred
Availability string[]Zones - List of availability zones used
- region string
- Deployment region as defined by cloud provider
- multiple_
availability_ boolzones - Support deployment on multiple availability zones within the selected region
- networking_
vpc_ strid - VPC id for the generated network
- networks
Sequence[Get
Subscription Cloud Provider Region Network] - List of generated network configuration
- preferred_
availability_ Sequence[str]zones - List of availability zones used
- region str
- Deployment region as defined by cloud provider
- multiple
Availability BooleanZones - Support deployment on multiple availability zones within the selected region
- networking
Vpc StringId - VPC id for the generated network
- networks List<Property Map>
- List of generated network configuration
- preferred
Availability List<String>Zones - List of availability zones used
- region String
- Deployment region as defined by cloud provider
GetSubscriptionCloudProviderRegionNetwork
- Networking
Deployment stringCidr - Deployment CIDR mask for the generated
- Networking
Subnet stringId - The subnet that the subscription deploys into
- Networking
Vpc stringId - VPC id for the generated network
- Networking
Deployment stringCidr - Deployment CIDR mask for the generated
- Networking
Subnet stringId - The subnet that the subscription deploys into
- Networking
Vpc stringId - VPC id for the generated network
- networking
Deployment StringCidr - Deployment CIDR mask for the generated
- networking
Subnet StringId - The subnet that the subscription deploys into
- networking
Vpc StringId - VPC id for the generated network
- networking
Deployment stringCidr - Deployment CIDR mask for the generated
- networking
Subnet stringId - The subnet that the subscription deploys into
- networking
Vpc stringId - VPC id for the generated network
- networking_
deployment_ strcidr - Deployment CIDR mask for the generated
- networking_
subnet_ strid - The subnet that the subscription deploys into
- networking_
vpc_ strid - VPC id for the generated network
- networking
Deployment StringCidr - Deployment CIDR mask for the generated
- networking
Subnet StringId - The subnet that the subscription deploys into
- networking
Vpc StringId - VPC id for the generated network
Package Details
- Repository
- rediscloud RedisLabs/pulumi-rediscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rediscloud
Terraform Provider.