1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. RedisBackupDownloadRestriction
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.RedisBackupDownloadRestriction

Explore with Pulumi AI

Provides a resource to create a redis backup_download_restriction

Example Usage

Modify the network information and address of the current region backup file download

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const foo = new tencentcloud.RedisBackupDownloadRestriction("foo", {
    limitType: "Customize",
    vpcComparisonSymbol: "In",
    ipComparisonSymbol: "In",
    limitVpcs: [{
        region: "ap-guangzhou",
        vpcLists: [_var.vpc_id],
    }],
    limitIps: [
        "10.1.1.12",
        "10.1.1.13",
    ],
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo = tencentcloud.RedisBackupDownloadRestriction("foo",
    limit_type="Customize",
    vpc_comparison_symbol="In",
    ip_comparison_symbol="In",
    limit_vpcs=[{
        "region": "ap-guangzhou",
        "vpc_lists": [var["vpc_id"]],
    }],
    limit_ips=[
        "10.1.1.12",
        "10.1.1.13",
    ])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewRedisBackupDownloadRestriction(ctx, "foo", &tencentcloud.RedisBackupDownloadRestrictionArgs{
			LimitType:           pulumi.String("Customize"),
			VpcComparisonSymbol: pulumi.String("In"),
			IpComparisonSymbol:  pulumi.String("In"),
			LimitVpcs: tencentcloud.RedisBackupDownloadRestrictionLimitVpcArray{
				&tencentcloud.RedisBackupDownloadRestrictionLimitVpcArgs{
					Region: pulumi.String("ap-guangzhou"),
					VpcLists: pulumi.StringArray{
						_var.Vpc_id,
					},
				},
			},
			LimitIps: pulumi.StringArray{
				pulumi.String("10.1.1.12"),
				pulumi.String("10.1.1.13"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var foo = new Tencentcloud.RedisBackupDownloadRestriction("foo", new()
    {
        LimitType = "Customize",
        VpcComparisonSymbol = "In",
        IpComparisonSymbol = "In",
        LimitVpcs = new[]
        {
            new Tencentcloud.Inputs.RedisBackupDownloadRestrictionLimitVpcArgs
            {
                Region = "ap-guangzhou",
                VpcLists = new[]
                {
                    @var.Vpc_id,
                },
            },
        },
        LimitIps = new[]
        {
            "10.1.1.12",
            "10.1.1.13",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.RedisBackupDownloadRestriction;
import com.pulumi.tencentcloud.RedisBackupDownloadRestrictionArgs;
import com.pulumi.tencentcloud.inputs.RedisBackupDownloadRestrictionLimitVpcArgs;
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) {
        var foo = new RedisBackupDownloadRestriction("foo", RedisBackupDownloadRestrictionArgs.builder()
            .limitType("Customize")
            .vpcComparisonSymbol("In")
            .ipComparisonSymbol("In")
            .limitVpcs(RedisBackupDownloadRestrictionLimitVpcArgs.builder()
                .region("ap-guangzhou")
                .vpcLists(var_.vpc_id())
                .build())
            .limitIps(            
                "10.1.1.12",
                "10.1.1.13")
            .build());

    }
}
Copy
resources:
  foo:
    type: tencentcloud:RedisBackupDownloadRestriction
    properties:
      limitType: Customize
      vpcComparisonSymbol: In
      ipComparisonSymbol: In
      limitVpcs:
        - region: ap-guangzhou
          vpcLists:
            - ${var.vpc_id}
      limitIps:
        - 10.1.1.12
        - 10.1.1.13
Copy

Create RedisBackupDownloadRestriction Resource

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

Constructor syntax

new RedisBackupDownloadRestriction(name: string, args: RedisBackupDownloadRestrictionArgs, opts?: CustomResourceOptions);
@overload
def RedisBackupDownloadRestriction(resource_name: str,
                                   args: RedisBackupDownloadRestrictionArgs,
                                   opts: Optional[ResourceOptions] = None)

@overload
def RedisBackupDownloadRestriction(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   limit_type: Optional[str] = None,
                                   ip_comparison_symbol: Optional[str] = None,
                                   limit_ips: Optional[Sequence[str]] = None,
                                   limit_vpcs: Optional[Sequence[RedisBackupDownloadRestrictionLimitVpcArgs]] = None,
                                   redis_backup_download_restriction_id: Optional[str] = None,
                                   vpc_comparison_symbol: Optional[str] = None)
func NewRedisBackupDownloadRestriction(ctx *Context, name string, args RedisBackupDownloadRestrictionArgs, opts ...ResourceOption) (*RedisBackupDownloadRestriction, error)
public RedisBackupDownloadRestriction(string name, RedisBackupDownloadRestrictionArgs args, CustomResourceOptions? opts = null)
public RedisBackupDownloadRestriction(String name, RedisBackupDownloadRestrictionArgs args)
public RedisBackupDownloadRestriction(String name, RedisBackupDownloadRestrictionArgs args, CustomResourceOptions options)
type: tencentcloud:RedisBackupDownloadRestriction
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

RedisBackupDownloadRestriction 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 RedisBackupDownloadRestriction resource accepts the following input properties:

LimitType This property is required. string
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
IpComparisonSymbol string
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
LimitIps List<string>
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
LimitVpcs List<RedisBackupDownloadRestrictionLimitVpc>
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
RedisBackupDownloadRestrictionId string
ID of the resource.
VpcComparisonSymbol string
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
LimitType This property is required. string
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
IpComparisonSymbol string
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
LimitIps []string
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
LimitVpcs []RedisBackupDownloadRestrictionLimitVpcArgs
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
RedisBackupDownloadRestrictionId string
ID of the resource.
VpcComparisonSymbol string
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
limitType This property is required. String
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
ipComparisonSymbol String
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
limitIps List<String>
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
limitVpcs List<RedisBackupDownloadRestrictionLimitVpc>
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
redisBackupDownloadRestrictionId String
ID of the resource.
vpcComparisonSymbol String
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
limitType This property is required. string
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
ipComparisonSymbol string
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
limitIps string[]
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
limitVpcs RedisBackupDownloadRestrictionLimitVpc[]
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
redisBackupDownloadRestrictionId string
ID of the resource.
vpcComparisonSymbol string
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
limit_type This property is required. str
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
ip_comparison_symbol str
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
limit_ips Sequence[str]
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
limit_vpcs Sequence[RedisBackupDownloadRestrictionLimitVpcArgs]
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
redis_backup_download_restriction_id str
ID of the resource.
vpc_comparison_symbol str
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
limitType This property is required. String
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
ipComparisonSymbol String
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
limitIps List<String>
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
limitVpcs List<Property Map>
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
redisBackupDownloadRestrictionId String
ID of the resource.
vpcComparisonSymbol String
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing RedisBackupDownloadRestriction Resource

Get an existing RedisBackupDownloadRestriction 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?: RedisBackupDownloadRestrictionState, opts?: CustomResourceOptions): RedisBackupDownloadRestriction
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ip_comparison_symbol: Optional[str] = None,
        limit_ips: Optional[Sequence[str]] = None,
        limit_type: Optional[str] = None,
        limit_vpcs: Optional[Sequence[RedisBackupDownloadRestrictionLimitVpcArgs]] = None,
        redis_backup_download_restriction_id: Optional[str] = None,
        vpc_comparison_symbol: Optional[str] = None) -> RedisBackupDownloadRestriction
func GetRedisBackupDownloadRestriction(ctx *Context, name string, id IDInput, state *RedisBackupDownloadRestrictionState, opts ...ResourceOption) (*RedisBackupDownloadRestriction, error)
public static RedisBackupDownloadRestriction Get(string name, Input<string> id, RedisBackupDownloadRestrictionState? state, CustomResourceOptions? opts = null)
public static RedisBackupDownloadRestriction get(String name, Output<String> id, RedisBackupDownloadRestrictionState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:RedisBackupDownloadRestriction    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
IpComparisonSymbol string
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
LimitIps List<string>
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
LimitType string
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
LimitVpcs List<RedisBackupDownloadRestrictionLimitVpc>
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
RedisBackupDownloadRestrictionId string
ID of the resource.
VpcComparisonSymbol string
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
IpComparisonSymbol string
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
LimitIps []string
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
LimitType string
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
LimitVpcs []RedisBackupDownloadRestrictionLimitVpcArgs
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
RedisBackupDownloadRestrictionId string
ID of the resource.
VpcComparisonSymbol string
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
ipComparisonSymbol String
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
limitIps List<String>
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
limitType String
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
limitVpcs List<RedisBackupDownloadRestrictionLimitVpc>
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
redisBackupDownloadRestrictionId String
ID of the resource.
vpcComparisonSymbol String
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
ipComparisonSymbol string
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
limitIps string[]
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
limitType string
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
limitVpcs RedisBackupDownloadRestrictionLimitVpc[]
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
redisBackupDownloadRestrictionId string
ID of the resource.
vpcComparisonSymbol string
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
ip_comparison_symbol str
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
limit_ips Sequence[str]
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
limit_type str
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
limit_vpcs Sequence[RedisBackupDownloadRestrictionLimitVpcArgs]
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
redis_backup_download_restriction_id str
ID of the resource.
vpc_comparison_symbol str
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
ipComparisonSymbol String
Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
limitIps List<String>
A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
limitType String
Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
limitVpcs List<Property Map>
A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
redisBackupDownloadRestrictionId String
ID of the resource.
vpcComparisonSymbol String
This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.

Supporting Types

RedisBackupDownloadRestrictionLimitVpc
, RedisBackupDownloadRestrictionLimitVpcArgs

Region This property is required. string
Customize the region of the VPC to which the backup file is downloaded.
VpcLists This property is required. List<string>
Customize the list of VPCs to download backup files.
Region This property is required. string
Customize the region of the VPC to which the backup file is downloaded.
VpcLists This property is required. []string
Customize the list of VPCs to download backup files.
region This property is required. String
Customize the region of the VPC to which the backup file is downloaded.
vpcLists This property is required. List<String>
Customize the list of VPCs to download backup files.
region This property is required. string
Customize the region of the VPC to which the backup file is downloaded.
vpcLists This property is required. string[]
Customize the list of VPCs to download backup files.
region This property is required. str
Customize the region of the VPC to which the backup file is downloaded.
vpc_lists This property is required. Sequence[str]
Customize the list of VPCs to download backup files.
region This property is required. String
Customize the region of the VPC to which the backup file is downloaded.
vpcLists This property is required. List<String>
Customize the list of VPCs to download backup files.

Import

redis backup_download_restriction can be imported using the region, e.g.

$ pulumi import tencentcloud:index/redisBackupDownloadRestriction:RedisBackupDownloadRestriction foo ap-guangzhou
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.