opentelekomcloud.CssSnapshotConfigurationV1
Explore with Pulumi AI
Up-to-date reference of API arguments for CSS snapshot you can get at documentation portal
Manages a CSS configuration of automatic snapshot creation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const secgroup = opentelekomcloud.getNetworkingSecgroupV2({
name: _var.security_group,
});
const cluster = new opentelekomcloud.CssClusterV1("cluster", {
expectNodeNum: 1,
nodeConfig: {
flavor: "css.medium.8",
networkInfo: {
securityGroupId: secgroup.then(secgroup => secgroup.id),
networkId: _var.network_id,
vpcId: _var.vpc_id,
},
volume: {
volumeType: "COMMON",
size: 40,
},
availabilityZone: _var.availability_zone,
},
});
const bucket = new opentelekomcloud.ObsBucket("bucket", {
bucket: "tf-snap-testing",
forceDestroy: true,
});
const config = new opentelekomcloud.CssSnapshotConfigurationV1("config", {
clusterId: cluster.cssClusterV1Id,
configuration: {
bucket: bucket.bucket,
agency: "css_obs_agency",
basePath: "css/snapshot",
},
creationPolicy: {
prefix: "snapshot",
period: "00:00 GMT+03:00",
keepday: 2,
enable: true,
deleteAuto: true,
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
secgroup = opentelekomcloud.get_networking_secgroup_v2(name=var["security_group"])
cluster = opentelekomcloud.CssClusterV1("cluster",
expect_node_num=1,
node_config={
"flavor": "css.medium.8",
"network_info": {
"security_group_id": secgroup.id,
"network_id": var["network_id"],
"vpc_id": var["vpc_id"],
},
"volume": {
"volume_type": "COMMON",
"size": 40,
},
"availability_zone": var["availability_zone"],
})
bucket = opentelekomcloud.ObsBucket("bucket",
bucket="tf-snap-testing",
force_destroy=True)
config = opentelekomcloud.CssSnapshotConfigurationV1("config",
cluster_id=cluster.css_cluster_v1_id,
configuration={
"bucket": bucket.bucket,
"agency": "css_obs_agency",
"base_path": "css/snapshot",
},
creation_policy={
"prefix": "snapshot",
"period": "00:00 GMT+03:00",
"keepday": 2,
"enable": True,
"delete_auto": True,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
secgroup, err := opentelekomcloud.LookupNetworkingSecgroupV2(ctx, &opentelekomcloud.LookupNetworkingSecgroupV2Args{
Name: pulumi.StringRef(_var.Security_group),
}, nil)
if err != nil {
return err
}
cluster, err := opentelekomcloud.NewCssClusterV1(ctx, "cluster", &opentelekomcloud.CssClusterV1Args{
ExpectNodeNum: pulumi.Float64(1),
NodeConfig: &opentelekomcloud.CssClusterV1NodeConfigArgs{
Flavor: pulumi.String("css.medium.8"),
NetworkInfo: &opentelekomcloud.CssClusterV1NodeConfigNetworkInfoArgs{
SecurityGroupId: pulumi.String(secgroup.Id),
NetworkId: pulumi.Any(_var.Network_id),
VpcId: pulumi.Any(_var.Vpc_id),
},
Volume: &opentelekomcloud.CssClusterV1NodeConfigVolumeArgs{
VolumeType: pulumi.String("COMMON"),
Size: pulumi.Float64(40),
},
AvailabilityZone: pulumi.Any(_var.Availability_zone),
},
})
if err != nil {
return err
}
bucket, err := opentelekomcloud.NewObsBucket(ctx, "bucket", &opentelekomcloud.ObsBucketArgs{
Bucket: pulumi.String("tf-snap-testing"),
ForceDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCssSnapshotConfigurationV1(ctx, "config", &opentelekomcloud.CssSnapshotConfigurationV1Args{
ClusterId: cluster.CssClusterV1Id,
Configuration: &opentelekomcloud.CssSnapshotConfigurationV1ConfigurationArgs{
Bucket: bucket.Bucket,
Agency: pulumi.String("css_obs_agency"),
BasePath: pulumi.String("css/snapshot"),
},
CreationPolicy: &opentelekomcloud.CssSnapshotConfigurationV1CreationPolicyArgs{
Prefix: pulumi.String("snapshot"),
Period: pulumi.String("00:00 GMT+03:00"),
Keepday: pulumi.Float64(2),
Enable: pulumi.Bool(true),
DeleteAuto: pulumi.Bool(true),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var secgroup = Opentelekomcloud.GetNetworkingSecgroupV2.Invoke(new()
{
Name = @var.Security_group,
});
var cluster = new Opentelekomcloud.CssClusterV1("cluster", new()
{
ExpectNodeNum = 1,
NodeConfig = new Opentelekomcloud.Inputs.CssClusterV1NodeConfigArgs
{
Flavor = "css.medium.8",
NetworkInfo = new Opentelekomcloud.Inputs.CssClusterV1NodeConfigNetworkInfoArgs
{
SecurityGroupId = secgroup.Apply(getNetworkingSecgroupV2Result => getNetworkingSecgroupV2Result.Id),
NetworkId = @var.Network_id,
VpcId = @var.Vpc_id,
},
Volume = new Opentelekomcloud.Inputs.CssClusterV1NodeConfigVolumeArgs
{
VolumeType = "COMMON",
Size = 40,
},
AvailabilityZone = @var.Availability_zone,
},
});
var bucket = new Opentelekomcloud.ObsBucket("bucket", new()
{
Bucket = "tf-snap-testing",
ForceDestroy = true,
});
var config = new Opentelekomcloud.CssSnapshotConfigurationV1("config", new()
{
ClusterId = cluster.CssClusterV1Id,
Configuration = new Opentelekomcloud.Inputs.CssSnapshotConfigurationV1ConfigurationArgs
{
Bucket = bucket.Bucket,
Agency = "css_obs_agency",
BasePath = "css/snapshot",
},
CreationPolicy = new Opentelekomcloud.Inputs.CssSnapshotConfigurationV1CreationPolicyArgs
{
Prefix = "snapshot",
Period = "00:00 GMT+03:00",
Keepday = 2,
Enable = true,
DeleteAuto = true,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetNetworkingSecgroupV2Args;
import com.pulumi.opentelekomcloud.CssClusterV1;
import com.pulumi.opentelekomcloud.CssClusterV1Args;
import com.pulumi.opentelekomcloud.inputs.CssClusterV1NodeConfigArgs;
import com.pulumi.opentelekomcloud.inputs.CssClusterV1NodeConfigNetworkInfoArgs;
import com.pulumi.opentelekomcloud.inputs.CssClusterV1NodeConfigVolumeArgs;
import com.pulumi.opentelekomcloud.ObsBucket;
import com.pulumi.opentelekomcloud.ObsBucketArgs;
import com.pulumi.opentelekomcloud.CssSnapshotConfigurationV1;
import com.pulumi.opentelekomcloud.CssSnapshotConfigurationV1Args;
import com.pulumi.opentelekomcloud.inputs.CssSnapshotConfigurationV1ConfigurationArgs;
import com.pulumi.opentelekomcloud.inputs.CssSnapshotConfigurationV1CreationPolicyArgs;
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 secgroup = OpentelekomcloudFunctions.getNetworkingSecgroupV2(GetNetworkingSecgroupV2Args.builder()
.name(var_.security_group())
.build());
var cluster = new CssClusterV1("cluster", CssClusterV1Args.builder()
.expectNodeNum(1)
.nodeConfig(CssClusterV1NodeConfigArgs.builder()
.flavor("css.medium.8")
.networkInfo(CssClusterV1NodeConfigNetworkInfoArgs.builder()
.securityGroupId(secgroup.applyValue(getNetworkingSecgroupV2Result -> getNetworkingSecgroupV2Result.id()))
.networkId(var_.network_id())
.vpcId(var_.vpc_id())
.build())
.volume(CssClusterV1NodeConfigVolumeArgs.builder()
.volumeType("COMMON")
.size(40)
.build())
.availabilityZone(var_.availability_zone())
.build())
.build());
var bucket = new ObsBucket("bucket", ObsBucketArgs.builder()
.bucket("tf-snap-testing")
.forceDestroy(true)
.build());
var config = new CssSnapshotConfigurationV1("config", CssSnapshotConfigurationV1Args.builder()
.clusterId(cluster.cssClusterV1Id())
.configuration(CssSnapshotConfigurationV1ConfigurationArgs.builder()
.bucket(bucket.bucket())
.agency("css_obs_agency")
.basePath("css/snapshot")
.build())
.creationPolicy(CssSnapshotConfigurationV1CreationPolicyArgs.builder()
.prefix("snapshot")
.period("00:00 GMT+03:00")
.keepday(2)
.enable(true)
.deleteAuto(true)
.build())
.build());
}
}
resources:
cluster:
type: opentelekomcloud:CssClusterV1
properties:
expectNodeNum: 1
nodeConfig:
flavor: css.medium.8
networkInfo:
securityGroupId: ${secgroup.id}
networkId: ${var.network_id}
vpcId: ${var.vpc_id}
volume:
volumeType: COMMON
size: 40
availabilityZone: ${var.availability_zone}
bucket:
type: opentelekomcloud:ObsBucket
properties:
bucket: tf-snap-testing
forceDestroy: true
config:
type: opentelekomcloud:CssSnapshotConfigurationV1
properties:
clusterId: ${cluster.cssClusterV1Id}
configuration:
bucket: ${bucket.bucket}
agency: css_obs_agency
basePath: css/snapshot
creationPolicy:
prefix: snapshot
period: 00:00 GMT+03:00
keepday: 2
enable: true
deleteAuto: true
variables:
secgroup:
fn::invoke:
function: opentelekomcloud:getNetworkingSecgroupV2
arguments:
name: ${var.security_group}
Create CssSnapshotConfigurationV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CssSnapshotConfigurationV1(name: string, args: CssSnapshotConfigurationV1Args, opts?: CustomResourceOptions);
@overload
def CssSnapshotConfigurationV1(resource_name: str,
args: CssSnapshotConfigurationV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def CssSnapshotConfigurationV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
automatic: Optional[bool] = None,
configuration: Optional[CssSnapshotConfigurationV1ConfigurationArgs] = None,
creation_policy: Optional[CssSnapshotConfigurationV1CreationPolicyArgs] = None,
css_snapshot_configuration_v1_id: Optional[str] = None,
timeouts: Optional[CssSnapshotConfigurationV1TimeoutsArgs] = None)
func NewCssSnapshotConfigurationV1(ctx *Context, name string, args CssSnapshotConfigurationV1Args, opts ...ResourceOption) (*CssSnapshotConfigurationV1, error)
public CssSnapshotConfigurationV1(string name, CssSnapshotConfigurationV1Args args, CustomResourceOptions? opts = null)
public CssSnapshotConfigurationV1(String name, CssSnapshotConfigurationV1Args args)
public CssSnapshotConfigurationV1(String name, CssSnapshotConfigurationV1Args args, CustomResourceOptions options)
type: opentelekomcloud:CssSnapshotConfigurationV1
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 CssSnapshotConfigurationV1Args
- 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 CssSnapshotConfigurationV1Args
- 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 CssSnapshotConfigurationV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CssSnapshotConfigurationV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CssSnapshotConfigurationV1Args
- 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 cssSnapshotConfigurationV1Resource = new Opentelekomcloud.CssSnapshotConfigurationV1("cssSnapshotConfigurationV1Resource", new()
{
ClusterId = "string",
Automatic = false,
Configuration = new Opentelekomcloud.Inputs.CssSnapshotConfigurationV1ConfigurationArgs
{
Agency = "string",
BasePath = "string",
Bucket = "string",
KmsId = "string",
},
CreationPolicy = new Opentelekomcloud.Inputs.CssSnapshotConfigurationV1CreationPolicyArgs
{
Enable = false,
Keepday = 0,
Period = "string",
Prefix = "string",
DeleteAuto = false,
},
CssSnapshotConfigurationV1Id = "string",
Timeouts = new Opentelekomcloud.Inputs.CssSnapshotConfigurationV1TimeoutsArgs
{
Create = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewCssSnapshotConfigurationV1(ctx, "cssSnapshotConfigurationV1Resource", &opentelekomcloud.CssSnapshotConfigurationV1Args{
ClusterId: pulumi.String("string"),
Automatic: pulumi.Bool(false),
Configuration: &opentelekomcloud.CssSnapshotConfigurationV1ConfigurationArgs{
Agency: pulumi.String("string"),
BasePath: pulumi.String("string"),
Bucket: pulumi.String("string"),
KmsId: pulumi.String("string"),
},
CreationPolicy: &opentelekomcloud.CssSnapshotConfigurationV1CreationPolicyArgs{
Enable: pulumi.Bool(false),
Keepday: pulumi.Float64(0),
Period: pulumi.String("string"),
Prefix: pulumi.String("string"),
DeleteAuto: pulumi.Bool(false),
},
CssSnapshotConfigurationV1Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.CssSnapshotConfigurationV1TimeoutsArgs{
Create: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var cssSnapshotConfigurationV1Resource = new CssSnapshotConfigurationV1("cssSnapshotConfigurationV1Resource", CssSnapshotConfigurationV1Args.builder()
.clusterId("string")
.automatic(false)
.configuration(CssSnapshotConfigurationV1ConfigurationArgs.builder()
.agency("string")
.basePath("string")
.bucket("string")
.kmsId("string")
.build())
.creationPolicy(CssSnapshotConfigurationV1CreationPolicyArgs.builder()
.enable(false)
.keepday(0)
.period("string")
.prefix("string")
.deleteAuto(false)
.build())
.cssSnapshotConfigurationV1Id("string")
.timeouts(CssSnapshotConfigurationV1TimeoutsArgs.builder()
.create("string")
.update("string")
.build())
.build());
css_snapshot_configuration_v1_resource = opentelekomcloud.CssSnapshotConfigurationV1("cssSnapshotConfigurationV1Resource",
cluster_id="string",
automatic=False,
configuration={
"agency": "string",
"base_path": "string",
"bucket": "string",
"kms_id": "string",
},
creation_policy={
"enable": False,
"keepday": 0,
"period": "string",
"prefix": "string",
"delete_auto": False,
},
css_snapshot_configuration_v1_id="string",
timeouts={
"create": "string",
"update": "string",
})
const cssSnapshotConfigurationV1Resource = new opentelekomcloud.CssSnapshotConfigurationV1("cssSnapshotConfigurationV1Resource", {
clusterId: "string",
automatic: false,
configuration: {
agency: "string",
basePath: "string",
bucket: "string",
kmsId: "string",
},
creationPolicy: {
enable: false,
keepday: 0,
period: "string",
prefix: "string",
deleteAuto: false,
},
cssSnapshotConfigurationV1Id: "string",
timeouts: {
create: "string",
update: "string",
},
});
type: opentelekomcloud:CssSnapshotConfigurationV1
properties:
automatic: false
clusterId: string
configuration:
agency: string
basePath: string
bucket: string
kmsId: string
creationPolicy:
deleteAuto: false
enable: false
keepday: 0
period: string
prefix: string
cssSnapshotConfigurationV1Id: string
timeouts:
create: string
update: string
CssSnapshotConfigurationV1 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 CssSnapshotConfigurationV1 resource accepts the following input properties:
- Cluster
Id string - ID of the CSS cluster.
- Automatic bool
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - Configuration
Css
Snapshot Configuration V1Configuration - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - Creation
Policy CssSnapshot Configuration V1Creation Policy - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - Css
Snapshot stringConfiguration V1Id - Timeouts
Css
Snapshot Configuration V1Timeouts
- Cluster
Id string - ID of the CSS cluster.
- Automatic bool
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - Configuration
Css
Snapshot Configuration V1Configuration Args - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - Creation
Policy CssSnapshot Configuration V1Creation Policy Args - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - Css
Snapshot stringConfiguration V1Id - Timeouts
Css
Snapshot Configuration V1Timeouts Args
- cluster
Id String - ID of the CSS cluster.
- automatic Boolean
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - configuration
Css
Snapshot Configuration V1Configuration - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - creation
Policy CssSnapshot Configuration V1Creation Policy - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - css
Snapshot StringConfiguration V1Id - timeouts
Css
Snapshot Configuration V1Timeouts
- cluster
Id string - ID of the CSS cluster.
- automatic boolean
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - configuration
Css
Snapshot Configuration V1Configuration - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - creation
Policy CssSnapshot Configuration V1Creation Policy - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - css
Snapshot stringConfiguration V1Id - timeouts
Css
Snapshot Configuration V1Timeouts
- cluster_
id str - ID of the CSS cluster.
- automatic bool
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - configuration
Css
Snapshot Configuration V1Configuration Args - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - creation_
policy CssSnapshot Configuration V1Creation Policy Args - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - css_
snapshot_ strconfiguration_ v1_ id - timeouts
Css
Snapshot Configuration V1Timeouts Args
- cluster
Id String - ID of the CSS cluster.
- automatic Boolean
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - configuration Property Map
- The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - creation
Policy Property Map - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - css
Snapshot StringConfiguration V1Id - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CssSnapshotConfigurationV1 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 CssSnapshotConfigurationV1 Resource
Get an existing CssSnapshotConfigurationV1 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?: CssSnapshotConfigurationV1State, opts?: CustomResourceOptions): CssSnapshotConfigurationV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
automatic: Optional[bool] = None,
cluster_id: Optional[str] = None,
configuration: Optional[CssSnapshotConfigurationV1ConfigurationArgs] = None,
creation_policy: Optional[CssSnapshotConfigurationV1CreationPolicyArgs] = None,
css_snapshot_configuration_v1_id: Optional[str] = None,
timeouts: Optional[CssSnapshotConfigurationV1TimeoutsArgs] = None) -> CssSnapshotConfigurationV1
func GetCssSnapshotConfigurationV1(ctx *Context, name string, id IDInput, state *CssSnapshotConfigurationV1State, opts ...ResourceOption) (*CssSnapshotConfigurationV1, error)
public static CssSnapshotConfigurationV1 Get(string name, Input<string> id, CssSnapshotConfigurationV1State? state, CustomResourceOptions? opts = null)
public static CssSnapshotConfigurationV1 get(String name, Output<String> id, CssSnapshotConfigurationV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:CssSnapshotConfigurationV1 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.
- Automatic bool
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - Cluster
Id string - ID of the CSS cluster.
- Configuration
Css
Snapshot Configuration V1Configuration - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - Creation
Policy CssSnapshot Configuration V1Creation Policy - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - Css
Snapshot stringConfiguration V1Id - Timeouts
Css
Snapshot Configuration V1Timeouts
- Automatic bool
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - Cluster
Id string - ID of the CSS cluster.
- Configuration
Css
Snapshot Configuration V1Configuration Args - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - Creation
Policy CssSnapshot Configuration V1Creation Policy Args - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - Css
Snapshot stringConfiguration V1Id - Timeouts
Css
Snapshot Configuration V1Timeouts Args
- automatic Boolean
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - cluster
Id String - ID of the CSS cluster.
- configuration
Css
Snapshot Configuration V1Configuration - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - creation
Policy CssSnapshot Configuration V1Creation Policy - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - css
Snapshot StringConfiguration V1Id - timeouts
Css
Snapshot Configuration V1Timeouts
- automatic boolean
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - cluster
Id string - ID of the CSS cluster.
- configuration
Css
Snapshot Configuration V1Configuration - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - creation
Policy CssSnapshot Configuration V1Creation Policy - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - css
Snapshot stringConfiguration V1Id - timeouts
Css
Snapshot Configuration V1Timeouts
- automatic bool
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - cluster_
id str - ID of the CSS cluster.
- configuration
Css
Snapshot Configuration V1Configuration Args - The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - creation_
policy CssSnapshot Configuration V1Creation Policy Args - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - css_
snapshot_ strconfiguration_ v1_ id - timeouts
Css
Snapshot Configuration V1Timeouts Args
- automatic Boolean
- Use automatic configuration for CCS cluster screenshots.
Mutually exclusive with
configuration
/creation_policy
. - cluster
Id String - ID of the CSS cluster.
- configuration Property Map
- The basic configurations of a cluster snapshot. Structure is documented below.
Mutually exclusive with
automatic
. - creation
Policy Property Map - Parameters related to automatic snapshot creation. Structure is documented below.
Mutually exclusive with
automatic
. - css
Snapshot StringConfiguration V1Id - timeouts Property Map
Supporting Types
CssSnapshotConfigurationV1Configuration, CssSnapshotConfigurationV1ConfigurationArgs
- Agency string
- The agency used by CSS to access OBS.
- Base
Path string - Storage path of the snapshot in the OBS bucket.
- Bucket string
- The bucket which will be used for storing snapshots.
- Kms
Id string Key ID used for snapshot encryption.
~> If the key used for encryption is in the Pending deletion or disable state, you cannot perform backup and restoration operations on the cluster. Specifically, new snapshots cannot be created for the cluster, and existing snapshots cannot be used for restoration. In this case, switch to the KMS management console and change the state of the target key to enable so that backup and restore operations are allowed on the cluster. For more details see https://docs.otc.t-systems.com/api/css/css_03_0030.html
- Agency string
- The agency used by CSS to access OBS.
- Base
Path string - Storage path of the snapshot in the OBS bucket.
- Bucket string
- The bucket which will be used for storing snapshots.
- Kms
Id string Key ID used for snapshot encryption.
~> If the key used for encryption is in the Pending deletion or disable state, you cannot perform backup and restoration operations on the cluster. Specifically, new snapshots cannot be created for the cluster, and existing snapshots cannot be used for restoration. In this case, switch to the KMS management console and change the state of the target key to enable so that backup and restore operations are allowed on the cluster. For more details see https://docs.otc.t-systems.com/api/css/css_03_0030.html
- agency String
- The agency used by CSS to access OBS.
- base
Path String - Storage path of the snapshot in the OBS bucket.
- bucket String
- The bucket which will be used for storing snapshots.
- kms
Id String Key ID used for snapshot encryption.
~> If the key used for encryption is in the Pending deletion or disable state, you cannot perform backup and restoration operations on the cluster. Specifically, new snapshots cannot be created for the cluster, and existing snapshots cannot be used for restoration. In this case, switch to the KMS management console and change the state of the target key to enable so that backup and restore operations are allowed on the cluster. For more details see https://docs.otc.t-systems.com/api/css/css_03_0030.html
- agency string
- The agency used by CSS to access OBS.
- base
Path string - Storage path of the snapshot in the OBS bucket.
- bucket string
- The bucket which will be used for storing snapshots.
- kms
Id string Key ID used for snapshot encryption.
~> If the key used for encryption is in the Pending deletion or disable state, you cannot perform backup and restoration operations on the cluster. Specifically, new snapshots cannot be created for the cluster, and existing snapshots cannot be used for restoration. In this case, switch to the KMS management console and change the state of the target key to enable so that backup and restore operations are allowed on the cluster. For more details see https://docs.otc.t-systems.com/api/css/css_03_0030.html
- agency str
- The agency used by CSS to access OBS.
- base_
path str - Storage path of the snapshot in the OBS bucket.
- bucket str
- The bucket which will be used for storing snapshots.
- kms_
id str Key ID used for snapshot encryption.
~> If the key used for encryption is in the Pending deletion or disable state, you cannot perform backup and restoration operations on the cluster. Specifically, new snapshots cannot be created for the cluster, and existing snapshots cannot be used for restoration. In this case, switch to the KMS management console and change the state of the target key to enable so that backup and restore operations are allowed on the cluster. For more details see https://docs.otc.t-systems.com/api/css/css_03_0030.html
- agency String
- The agency used by CSS to access OBS.
- base
Path String - Storage path of the snapshot in the OBS bucket.
- bucket String
- The bucket which will be used for storing snapshots.
- kms
Id String Key ID used for snapshot encryption.
~> If the key used for encryption is in the Pending deletion or disable state, you cannot perform backup and restoration operations on the cluster. Specifically, new snapshots cannot be created for the cluster, and existing snapshots cannot be used for restoration. In this case, switch to the KMS management console and change the state of the target key to enable so that backup and restore operations are allowed on the cluster. For more details see https://docs.otc.t-systems.com/api/css/css_03_0030.html
CssSnapshotConfigurationV1CreationPolicy, CssSnapshotConfigurationV1CreationPolicyArgs
- Enable bool
- Value
true
indicates that the automatic snapshot creation policy is enabled, and valuefalse
indicates that the automatic snapshot creation policy is disabled. - Keepday double
- Number of days that a snapshot can be retained. The value ranges from
1
to90
. The system automatically deletes snapshots that have been retained for the allowed maximum duration on the half hour. - Period string
- Time when a snapshot is created every day. Snapshots can only be created on the hour.
The time format is the time followed by the time zone, specifically,
HH:mm z
. In the format,HH:mm
refers to the hour time andz
refers to the time zone, for example,00:00 GMT+08:00
and01:00 GMT+08:00
. - Prefix string
- Prefix of the snapshot name that is automatically created.
- Delete
Auto bool - Whether to delete all automatically created snapshots when the automatic
snapshot creation policy is disabled. The default value is
false
, indicating that snapshots that have been automatically created are not deleted when the automatic snapshot creation function is disabled. If this parameter is set totrue
, all automatically created snapshots are deleted when the automatic snapshot creation policy is disabled.
- Enable bool
- Value
true
indicates that the automatic snapshot creation policy is enabled, and valuefalse
indicates that the automatic snapshot creation policy is disabled. - Keepday float64
- Number of days that a snapshot can be retained. The value ranges from
1
to90
. The system automatically deletes snapshots that have been retained for the allowed maximum duration on the half hour. - Period string
- Time when a snapshot is created every day. Snapshots can only be created on the hour.
The time format is the time followed by the time zone, specifically,
HH:mm z
. In the format,HH:mm
refers to the hour time andz
refers to the time zone, for example,00:00 GMT+08:00
and01:00 GMT+08:00
. - Prefix string
- Prefix of the snapshot name that is automatically created.
- Delete
Auto bool - Whether to delete all automatically created snapshots when the automatic
snapshot creation policy is disabled. The default value is
false
, indicating that snapshots that have been automatically created are not deleted when the automatic snapshot creation function is disabled. If this parameter is set totrue
, all automatically created snapshots are deleted when the automatic snapshot creation policy is disabled.
- enable Boolean
- Value
true
indicates that the automatic snapshot creation policy is enabled, and valuefalse
indicates that the automatic snapshot creation policy is disabled. - keepday Double
- Number of days that a snapshot can be retained. The value ranges from
1
to90
. The system automatically deletes snapshots that have been retained for the allowed maximum duration on the half hour. - period String
- Time when a snapshot is created every day. Snapshots can only be created on the hour.
The time format is the time followed by the time zone, specifically,
HH:mm z
. In the format,HH:mm
refers to the hour time andz
refers to the time zone, for example,00:00 GMT+08:00
and01:00 GMT+08:00
. - prefix String
- Prefix of the snapshot name that is automatically created.
- delete
Auto Boolean - Whether to delete all automatically created snapshots when the automatic
snapshot creation policy is disabled. The default value is
false
, indicating that snapshots that have been automatically created are not deleted when the automatic snapshot creation function is disabled. If this parameter is set totrue
, all automatically created snapshots are deleted when the automatic snapshot creation policy is disabled.
- enable boolean
- Value
true
indicates that the automatic snapshot creation policy is enabled, and valuefalse
indicates that the automatic snapshot creation policy is disabled. - keepday number
- Number of days that a snapshot can be retained. The value ranges from
1
to90
. The system automatically deletes snapshots that have been retained for the allowed maximum duration on the half hour. - period string
- Time when a snapshot is created every day. Snapshots can only be created on the hour.
The time format is the time followed by the time zone, specifically,
HH:mm z
. In the format,HH:mm
refers to the hour time andz
refers to the time zone, for example,00:00 GMT+08:00
and01:00 GMT+08:00
. - prefix string
- Prefix of the snapshot name that is automatically created.
- delete
Auto boolean - Whether to delete all automatically created snapshots when the automatic
snapshot creation policy is disabled. The default value is
false
, indicating that snapshots that have been automatically created are not deleted when the automatic snapshot creation function is disabled. If this parameter is set totrue
, all automatically created snapshots are deleted when the automatic snapshot creation policy is disabled.
- enable bool
- Value
true
indicates that the automatic snapshot creation policy is enabled, and valuefalse
indicates that the automatic snapshot creation policy is disabled. - keepday float
- Number of days that a snapshot can be retained. The value ranges from
1
to90
. The system automatically deletes snapshots that have been retained for the allowed maximum duration on the half hour. - period str
- Time when a snapshot is created every day. Snapshots can only be created on the hour.
The time format is the time followed by the time zone, specifically,
HH:mm z
. In the format,HH:mm
refers to the hour time andz
refers to the time zone, for example,00:00 GMT+08:00
and01:00 GMT+08:00
. - prefix str
- Prefix of the snapshot name that is automatically created.
- delete_
auto bool - Whether to delete all automatically created snapshots when the automatic
snapshot creation policy is disabled. The default value is
false
, indicating that snapshots that have been automatically created are not deleted when the automatic snapshot creation function is disabled. If this parameter is set totrue
, all automatically created snapshots are deleted when the automatic snapshot creation policy is disabled.
- enable Boolean
- Value
true
indicates that the automatic snapshot creation policy is enabled, and valuefalse
indicates that the automatic snapshot creation policy is disabled. - keepday Number
- Number of days that a snapshot can be retained. The value ranges from
1
to90
. The system automatically deletes snapshots that have been retained for the allowed maximum duration on the half hour. - period String
- Time when a snapshot is created every day. Snapshots can only be created on the hour.
The time format is the time followed by the time zone, specifically,
HH:mm z
. In the format,HH:mm
refers to the hour time andz
refers to the time zone, for example,00:00 GMT+08:00
and01:00 GMT+08:00
. - prefix String
- Prefix of the snapshot name that is automatically created.
- delete
Auto Boolean - Whether to delete all automatically created snapshots when the automatic
snapshot creation policy is disabled. The default value is
false
, indicating that snapshots that have been automatically created are not deleted when the automatic snapshot creation function is disabled. If this parameter is set totrue
, all automatically created snapshots are deleted when the automatic snapshot creation policy is disabled.
CssSnapshotConfigurationV1Timeouts, CssSnapshotConfigurationV1TimeoutsArgs
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.