Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs
rediscloud.getSubscriptionPeerings
Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs
The Subscription Peerings data source allows access to a list of VPC peerings for a particular subscription.
Example Usage
The following example returns a list of all VPC peering within a Subscription.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rediscloud = Pulumi.Rediscloud;
return await Deployment.RunAsync(() =>
{
var example = Rediscloud.GetSubscriptionPeerings.Invoke(new()
{
SubscriptionId = "1234",
});
return new Dictionary<string, object?>
{
["rediscloudSubscriptionPeerings"] = example.Apply(getSubscriptionPeeringsResult => getSubscriptionPeeringsResult.Peerings),
};
});
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.GetSubscriptionPeerings(ctx, &rediscloud.GetSubscriptionPeeringsArgs{
SubscriptionId: "1234",
}, nil)
if err != nil {
return err
}
ctx.Export("rediscloudSubscriptionPeerings", example.Peerings)
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.GetSubscriptionPeeringsArgs;
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.getSubscriptionPeerings(GetSubscriptionPeeringsArgs.builder()
.subscriptionId("1234")
.build());
ctx.export("rediscloudSubscriptionPeerings", example.applyValue(getSubscriptionPeeringsResult -> getSubscriptionPeeringsResult.peerings()));
}
}
import * as pulumi from "@pulumi/pulumi";
import * as rediscloud from "@pulumi/rediscloud";
const example = rediscloud.getSubscriptionPeerings({
subscriptionId: "1234",
});
export const rediscloudSubscriptionPeerings = example.then(example => example.peerings);
import pulumi
import pulumi_rediscloud as rediscloud
example = rediscloud.get_subscription_peerings(subscription_id="1234")
pulumi.export("rediscloudSubscriptionPeerings", example.peerings)
variables:
example:
fn::invoke:
Function: rediscloud:getSubscriptionPeerings
Arguments:
subscriptionId: '1234'
outputs:
rediscloudSubscriptionPeerings: ${example.peerings}
Using getSubscriptionPeerings
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 getSubscriptionPeerings(args: GetSubscriptionPeeringsArgs, opts?: InvokeOptions): Promise<GetSubscriptionPeeringsResult>
function getSubscriptionPeeringsOutput(args: GetSubscriptionPeeringsOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionPeeringsResult>def get_subscription_peerings(status: Optional[str] = None,
subscription_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubscriptionPeeringsResult
def get_subscription_peerings_output(status: Optional[pulumi.Input[str]] = None,
subscription_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionPeeringsResult]func GetSubscriptionPeerings(ctx *Context, args *GetSubscriptionPeeringsArgs, opts ...InvokeOption) (*GetSubscriptionPeeringsResult, error)
func GetSubscriptionPeeringsOutput(ctx *Context, args *GetSubscriptionPeeringsOutputArgs, opts ...InvokeOption) GetSubscriptionPeeringsResultOutput> Note: This function is named GetSubscriptionPeerings in the Go SDK.
public static class GetSubscriptionPeerings
{
public static Task<GetSubscriptionPeeringsResult> InvokeAsync(GetSubscriptionPeeringsArgs args, InvokeOptions? opts = null)
public static Output<GetSubscriptionPeeringsResult> Invoke(GetSubscriptionPeeringsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSubscriptionPeeringsResult> getSubscriptionPeerings(GetSubscriptionPeeringsArgs args, InvokeOptions options)
public static Output<GetSubscriptionPeeringsResult> getSubscriptionPeerings(GetSubscriptionPeeringsArgs args, InvokeOptions options)
fn::invoke:
function: rediscloud:index/getSubscriptionPeerings:getSubscriptionPeerings
arguments:
# arguments dictionaryThe following arguments are supported:
- Subscription
Id string - ID of the subscription that the peerings belongs to
- Status string
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- Subscription
Id string - ID of the subscription that the peerings belongs to
- Status string
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- subscription
Id String - ID of the subscription that the peerings belongs to
- status String
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- subscription
Id string - ID of the subscription that the peerings belongs to
- status string
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- subscription_
id str - ID of the subscription that the peerings belongs to
- status str
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- subscription
Id String - ID of the subscription that the peerings belongs to
- status String
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
getSubscriptionPeerings Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Peerings
List<Redis
Labs. Rediscloud. Outputs. Get Subscription Peerings Peering> - A list of subscription peerings.
- Subscription
Id string - Status string
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peerings
[]Get
Subscription Peerings Peering - A list of subscription peerings.
- Subscription
Id string - Status string
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- id String
- The provider-assigned unique ID for this managed resource.
- peerings
List<Get
Subscription Peerings Peering> - A list of subscription peerings.
- subscription
Id String - status String
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- id string
- The provider-assigned unique ID for this managed resource.
- peerings
Get
Subscription Peerings Peering[] - A list of subscription peerings.
- subscription
Id string - status string
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- id str
- The provider-assigned unique ID for this managed resource.
- peerings
Sequence[Get
Subscription Peerings Peering] - A list of subscription peerings.
- subscription_
id str - status str
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
- id String
- The provider-assigned unique ID for this managed resource.
- peerings List<Property Map>
- A list of subscription peerings.
- subscription
Id String - status String
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed.
Supporting Types
GetSubscriptionPeeringsPeering
- Aws
Account stringId - AWS account id that the VPC to be peered lives in
- Aws
Peering stringId - Identifier of the AWS cloud peering
- Gcp
Network stringName - The name of the network to be peered
- Gcp
Peering stringId - Identifier of the cloud peering
- Gcp
Project stringId - GCP project ID that the VPC to be peered lives in
- Gcp
Redis stringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- Gcp
Redis stringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- Peering
Id int - ID of the subscription peering
- Provider
Name string - The name of the cloud provider. (either
AWSorGCP) - Region string
- AWS Region that the VPC to be peered lives in
- Status string
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed. - Vpc
Cidr string - CIDR range of the VPC to be peered
- Vpc
Id string - Identifier of the VPC to be peered
- Aws
Account stringId - AWS account id that the VPC to be peered lives in
- Aws
Peering stringId - Identifier of the AWS cloud peering
- Gcp
Network stringName - The name of the network to be peered
- Gcp
Peering stringId - Identifier of the cloud peering
- Gcp
Project stringId - GCP project ID that the VPC to be peered lives in
- Gcp
Redis stringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- Gcp
Redis stringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- Peering
Id int - ID of the subscription peering
- Provider
Name string - The name of the cloud provider. (either
AWSorGCP) - Region string
- AWS Region that the VPC to be peered lives in
- Status string
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed. - Vpc
Cidr string - CIDR range of the VPC to be peered
- Vpc
Id string - Identifier of the VPC to be peered
- aws
Account StringId - AWS account id that the VPC to be peered lives in
- aws
Peering StringId - Identifier of the AWS cloud peering
- gcp
Network StringName - The name of the network to be peered
- gcp
Peering StringId - Identifier of the cloud peering
- gcp
Project StringId - GCP project ID that the VPC to be peered lives in
- gcp
Redis StringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- gcp
Redis StringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- peering
Id Integer - ID of the subscription peering
- provider
Name String - The name of the cloud provider. (either
AWSorGCP) - region String
- AWS Region that the VPC to be peered lives in
- status String
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed. - vpc
Cidr String - CIDR range of the VPC to be peered
- vpc
Id String - Identifier of the VPC to be peered
- aws
Account stringId - AWS account id that the VPC to be peered lives in
- aws
Peering stringId - Identifier of the AWS cloud peering
- gcp
Network stringName - The name of the network to be peered
- gcp
Peering stringId - Identifier of the cloud peering
- gcp
Project stringId - GCP project ID that the VPC to be peered lives in
- gcp
Redis stringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- gcp
Redis stringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- peering
Id number - ID of the subscription peering
- provider
Name string - The name of the cloud provider. (either
AWSorGCP) - region string
- AWS Region that the VPC to be peered lives in
- status string
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed. - vpc
Cidr string - CIDR range of the VPC to be peered
- vpc
Id string - Identifier of the VPC to be peered
- aws_
account_ strid - AWS account id that the VPC to be peered lives in
- aws_
peering_ strid - Identifier of the AWS cloud peering
- gcp_
network_ strname - The name of the network to be peered
- gcp_
peering_ strid - Identifier of the cloud peering
- gcp_
project_ strid - GCP project ID that the VPC to be peered lives in
- gcp_
redis_ strnetwork_ name - The name of the Redis Enterprise Cloud network to be peered
- gcp_
redis_ strproject_ id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- peering_
id int - ID of the subscription peering
- provider_
name str - The name of the cloud provider. (either
AWSorGCP) - region str
- AWS Region that the VPC to be peered lives in
- status str
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed. - vpc_
cidr str - CIDR range of the VPC to be peered
- vpc_
id str - Identifier of the VPC to be peered
- aws
Account StringId - AWS account id that the VPC to be peered lives in
- aws
Peering StringId - Identifier of the AWS cloud peering
- gcp
Network StringName - The name of the network to be peered
- gcp
Peering StringId - Identifier of the cloud peering
- gcp
Project StringId - GCP project ID that the VPC to be peered lives in
- gcp
Redis StringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- gcp
Redis StringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- peering
Id Number - ID of the subscription peering
- provider
Name String - The name of the cloud provider. (either
AWSorGCP) - region String
- AWS Region that the VPC to be peered lives in
- status String
- Current status of the peering -
initiating-request,pending-acceptance,active,inactiveorfailed. - vpc
Cidr String - CIDR range of the VPC to be peered
- vpc
Id String - Identifier of the VPC to be peered
Package Details
- Repository
- rediscloud RedisLabs/pulumi-rediscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rediscloudTerraform Provider.
Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs
