1. Packages
  2. Volcenginecc Provider
  3. API Docs
  4. cbr
  5. Vault
volcenginecc v0.0.20 published on Thursday, Jan 22, 2026 by Volcengine
volcenginecc logo
volcenginecc v0.0.20 published on Thursday, Jan 22, 2026 by Volcengine

    用于存放您的备份数据。

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const cBRVaultDemo = new volcenginecc.cbr.Vault("CBRVaultDemo", {
        vaultName: "CBRVaultDemo",
        projectName: "default",
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    c_br_vault_demo = volcenginecc.cbr.Vault("CBRVaultDemo",
        vault_name="CBRVaultDemo",
        project_name="default")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cbr"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cbr.NewVault(ctx, "CBRVaultDemo", &cbr.VaultArgs{
    			VaultName:   pulumi.String("CBRVaultDemo"),
    			ProjectName: pulumi.String("default"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var cBRVaultDemo = new Volcenginecc.Cbr.Vault("CBRVaultDemo", new()
        {
            VaultName = "CBRVaultDemo",
            ProjectName = "default",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.cbr.Vault;
    import com.volcengine.volcenginecc.cbr.VaultArgs;
    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 cBRVaultDemo = new Vault("cBRVaultDemo", VaultArgs.builder()
                .vaultName("CBRVaultDemo")
                .projectName("default")
                .build());
    
        }
    }
    
    resources:
      cBRVaultDemo:
        type: volcenginecc:cbr:Vault
        name: CBRVaultDemo
        properties:
          vaultName: CBRVaultDemo
          projectName: default
    

    Create Vault Resource

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

    Constructor syntax

    new Vault(name: string, args: VaultArgs, opts?: CustomResourceOptions);
    @overload
    def Vault(resource_name: str,
              args: VaultArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Vault(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              vault_name: Optional[str] = None,
              project_name: Optional[str] = None)
    func NewVault(ctx *Context, name string, args VaultArgs, opts ...ResourceOption) (*Vault, error)
    public Vault(string name, VaultArgs args, CustomResourceOptions? opts = null)
    public Vault(String name, VaultArgs args)
    public Vault(String name, VaultArgs args, CustomResourceOptions options)
    
    type: volcenginecc:cbr:Vault
    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 VaultArgs
    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 VaultArgs
    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 VaultArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VaultArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VaultArgs
    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 vaultResource = new Volcenginecc.Cbr.Vault("vaultResource", new()
    {
        VaultName = "string",
        ProjectName = "string",
    });
    
    example, err := cbr.NewVault(ctx, "vaultResource", &cbr.VaultArgs{
    	VaultName:   pulumi.String("string"),
    	ProjectName: pulumi.String("string"),
    })
    
    var vaultResource = new Vault("vaultResource", VaultArgs.builder()
        .vaultName("string")
        .projectName("string")
        .build());
    
    vault_resource = volcenginecc.cbr.Vault("vaultResource",
        vault_name="string",
        project_name="string")
    
    const vaultResource = new volcenginecc.cbr.Vault("vaultResource", {
        vaultName: "string",
        projectName: "string",
    });
    
    type: volcenginecc:cbr:Vault
    properties:
        projectName: string
        vaultName: string
    

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

    VaultName string
    备份库名称。
    ProjectName string
    项目名称。
    VaultName string
    备份库名称。
    ProjectName string
    项目名称。
    vaultName String
    备份库名称。
    projectName String
    项目名称。
    vaultName string
    备份库名称。
    projectName string
    项目名称。
    vault_name str
    备份库名称。
    project_name str
    项目名称。
    vaultName String
    备份库名称。
    projectName String
    项目名称。

    Outputs

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

    CreatedTime string
    创建时间。
    Endpoint string
    访问域名。
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags List<Volcengine.VaultTag>
    VaultId string
    备份库 ID。
    CreatedTime string
    创建时间。
    Endpoint string
    访问域名。
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags []VaultTag
    VaultId string
    备份库 ID。
    createdTime String
    创建时间。
    endpoint String
    访问域名。
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<VaultTag>
    vaultId String
    备份库 ID。
    createdTime string
    创建时间。
    endpoint string
    访问域名。
    id string
    The provider-assigned unique ID for this managed resource.
    tags VaultTag[]
    vaultId string
    备份库 ID。
    created_time str
    创建时间。
    endpoint str
    访问域名。
    id str
    The provider-assigned unique ID for this managed resource.
    tags Sequence[VaultTag]
    vault_id str
    备份库 ID。
    createdTime String
    创建时间。
    endpoint String
    访问域名。
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<Property Map>
    vaultId String
    备份库 ID。

    Look up Existing Vault Resource

    Get an existing Vault 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?: VaultState, opts?: CustomResourceOptions): Vault
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_time: Optional[str] = None,
            endpoint: Optional[str] = None,
            project_name: Optional[str] = None,
            tags: Optional[Sequence[VaultTagArgs]] = None,
            vault_id: Optional[str] = None,
            vault_name: Optional[str] = None) -> Vault
    func GetVault(ctx *Context, name string, id IDInput, state *VaultState, opts ...ResourceOption) (*Vault, error)
    public static Vault Get(string name, Input<string> id, VaultState? state, CustomResourceOptions? opts = null)
    public static Vault get(String name, Output<String> id, VaultState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:cbr:Vault    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:
    CreatedTime string
    创建时间。
    Endpoint string
    访问域名。
    ProjectName string
    项目名称。
    Tags List<Volcengine.VaultTag>
    VaultId string
    备份库 ID。
    VaultName string
    备份库名称。
    CreatedTime string
    创建时间。
    Endpoint string
    访问域名。
    ProjectName string
    项目名称。
    Tags []VaultTagArgs
    VaultId string
    备份库 ID。
    VaultName string
    备份库名称。
    createdTime String
    创建时间。
    endpoint String
    访问域名。
    projectName String
    项目名称。
    tags List<VaultTag>
    vaultId String
    备份库 ID。
    vaultName String
    备份库名称。
    createdTime string
    创建时间。
    endpoint string
    访问域名。
    projectName string
    项目名称。
    tags VaultTag[]
    vaultId string
    备份库 ID。
    vaultName string
    备份库名称。
    created_time str
    创建时间。
    endpoint str
    访问域名。
    project_name str
    项目名称。
    tags Sequence[VaultTagArgs]
    vault_id str
    备份库 ID。
    vault_name str
    备份库名称。
    createdTime String
    创建时间。
    endpoint String
    访问域名。
    projectName String
    项目名称。
    tags List<Property Map>
    vaultId String
    备份库 ID。
    vaultName String
    备份库名称。

    Supporting Types

    VaultTag, VaultTagArgs

    Key string
    标签键。
    Value string
    标签值。
    Key string
    标签键。
    Value string
    标签值。
    key String
    标签键。
    value String
    标签值。
    key string
    标签键。
    value string
    标签值。
    key str
    标签键。
    value str
    标签值。
    key String
    标签键。
    value String
    标签值。

    Import

    $ pulumi import volcenginecc:cbr/vault:Vault example "vault_id"
    

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

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    volcenginecc v0.0.20 published on Thursday, Jan 22, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate