flexibleengine.CssSnapshotV1
Explore with Pulumi AI
CSS cluster snapshot management
Example Usage
create a snapshot
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const snapshot = new flexibleengine.CssSnapshotV1("snapshot", {clusterId: _var.css_cluster_id});
import pulumi
import pulumi_flexibleengine as flexibleengine
snapshot = flexibleengine.CssSnapshotV1("snapshot", cluster_id=var["css_cluster_id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewCssSnapshotV1(ctx, "snapshot", &flexibleengine.CssSnapshotV1Args{
ClusterId: pulumi.Any(_var.Css_cluster_id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var snapshot = new Flexibleengine.CssSnapshotV1("snapshot", new()
{
ClusterId = @var.Css_cluster_id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.CssSnapshotV1;
import com.pulumi.flexibleengine.CssSnapshotV1Args;
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 snapshot = new CssSnapshotV1("snapshot", CssSnapshotV1Args.builder()
.clusterId(var_.css_cluster_id())
.build());
}
}
resources:
snapshot:
type: flexibleengine:CssSnapshotV1
properties:
clusterId: ${var.css_cluster_id}
Create CssSnapshotV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CssSnapshotV1(name: string, args: CssSnapshotV1Args, opts?: CustomResourceOptions);
@overload
def CssSnapshotV1(resource_name: str,
args: CssSnapshotV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def CssSnapshotV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
css_snapshot_v1_id: Optional[str] = None,
description: Optional[str] = None,
indices: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[CssSnapshotV1TimeoutsArgs] = None)
func NewCssSnapshotV1(ctx *Context, name string, args CssSnapshotV1Args, opts ...ResourceOption) (*CssSnapshotV1, error)
public CssSnapshotV1(string name, CssSnapshotV1Args args, CustomResourceOptions? opts = null)
public CssSnapshotV1(String name, CssSnapshotV1Args args)
public CssSnapshotV1(String name, CssSnapshotV1Args args, CustomResourceOptions options)
type: flexibleengine:CssSnapshotV1
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 CssSnapshotV1Args
- 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 CssSnapshotV1Args
- 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 CssSnapshotV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CssSnapshotV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CssSnapshotV1Args
- 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 cssSnapshotV1Resource = new Flexibleengine.CssSnapshotV1("cssSnapshotV1Resource", new()
{
ClusterId = "string",
CssSnapshotV1Id = "string",
Description = "string",
Indices = "string",
Name = "string",
Timeouts = new Flexibleengine.Inputs.CssSnapshotV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := flexibleengine.NewCssSnapshotV1(ctx, "cssSnapshotV1Resource", &flexibleengine.CssSnapshotV1Args{
ClusterId: pulumi.String("string"),
CssSnapshotV1Id: pulumi.String("string"),
Description: pulumi.String("string"),
Indices: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &flexibleengine.CssSnapshotV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var cssSnapshotV1Resource = new CssSnapshotV1("cssSnapshotV1Resource", CssSnapshotV1Args.builder()
.clusterId("string")
.cssSnapshotV1Id("string")
.description("string")
.indices("string")
.name("string")
.timeouts(CssSnapshotV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
css_snapshot_v1_resource = flexibleengine.CssSnapshotV1("cssSnapshotV1Resource",
cluster_id="string",
css_snapshot_v1_id="string",
description="string",
indices="string",
name="string",
timeouts={
"create": "string",
"delete": "string",
})
const cssSnapshotV1Resource = new flexibleengine.CssSnapshotV1("cssSnapshotV1Resource", {
clusterId: "string",
cssSnapshotV1Id: "string",
description: "string",
indices: "string",
name: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: flexibleengine:CssSnapshotV1
properties:
clusterId: string
cssSnapshotV1Id: string
description: string
indices: string
name: string
timeouts:
create: string
delete: string
CssSnapshotV1 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 CssSnapshotV1 resource accepts the following input properties:
- Cluster
Id string - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- Css
Snapshot stringV1Id - Description string
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- Indices string
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- Name string
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- Timeouts
Css
Snapshot V1Timeouts
- Cluster
Id string - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- Css
Snapshot stringV1Id - Description string
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- Indices string
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- Name string
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- Timeouts
Css
Snapshot V1Timeouts Args
- cluster
Id String - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- css
Snapshot StringV1Id - description String
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- indices String
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- name String
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- timeouts
Css
Snapshot V1Timeouts
- cluster
Id string - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- css
Snapshot stringV1Id - description string
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- indices string
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- name string
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- timeouts
Css
Snapshot V1Timeouts
- cluster_
id str - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- css_
snapshot_ strv1_ id - description str
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- indices str
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- name str
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- timeouts
Css
Snapshot V1Timeouts Args
- cluster
Id String - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- css
Snapshot StringV1Id - description String
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- indices String
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- name String
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CssSnapshotV1 resource produces the following output properties:
- Backup
Type string - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- Cluster
Name string - Indicates the CSS cluster name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Indicates the snapshot status.
- Backup
Type string - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- Cluster
Name string - Indicates the CSS cluster name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Indicates the snapshot status.
- backup
Type String - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- cluster
Name String - Indicates the CSS cluster name.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Indicates the snapshot status.
- backup
Type string - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- cluster
Name string - Indicates the CSS cluster name.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Indicates the snapshot status.
- backup_
type str - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- cluster_
name str - Indicates the CSS cluster name.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Indicates the snapshot status.
- backup
Type String - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- cluster
Name String - Indicates the CSS cluster name.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Indicates the snapshot status.
Look up Existing CssSnapshotV1 Resource
Get an existing CssSnapshotV1 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?: CssSnapshotV1State, opts?: CustomResourceOptions): CssSnapshotV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_type: Optional[str] = None,
cluster_id: Optional[str] = None,
cluster_name: Optional[str] = None,
css_snapshot_v1_id: Optional[str] = None,
description: Optional[str] = None,
indices: Optional[str] = None,
name: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[CssSnapshotV1TimeoutsArgs] = None) -> CssSnapshotV1
func GetCssSnapshotV1(ctx *Context, name string, id IDInput, state *CssSnapshotV1State, opts ...ResourceOption) (*CssSnapshotV1, error)
public static CssSnapshotV1 Get(string name, Input<string> id, CssSnapshotV1State? state, CustomResourceOptions? opts = null)
public static CssSnapshotV1 get(String name, Output<String> id, CssSnapshotV1State state, CustomResourceOptions options)
resources: _: type: flexibleengine:CssSnapshotV1 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.
- Backup
Type string - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- Cluster
Id string - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- Cluster
Name string - Indicates the CSS cluster name.
- Css
Snapshot stringV1Id - Description string
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- Indices string
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- Name string
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- Status string
- Indicates the snapshot status.
- Timeouts
Css
Snapshot V1Timeouts
- Backup
Type string - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- Cluster
Id string - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- Cluster
Name string - Indicates the CSS cluster name.
- Css
Snapshot stringV1Id - Description string
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- Indices string
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- Name string
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- Status string
- Indicates the snapshot status.
- Timeouts
Css
Snapshot V1Timeouts Args
- backup
Type String - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- cluster
Id String - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- cluster
Name String - Indicates the CSS cluster name.
- css
Snapshot StringV1Id - description String
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- indices String
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- name String
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- status String
- Indicates the snapshot status.
- timeouts
Css
Snapshot V1Timeouts
- backup
Type string - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- cluster
Id string - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- cluster
Name string - Indicates the CSS cluster name.
- css
Snapshot stringV1Id - description string
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- indices string
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- name string
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- status string
- Indicates the snapshot status.
- timeouts
Css
Snapshot V1Timeouts
- backup_
type str - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- cluster_
id str - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- cluster_
name str - Indicates the CSS cluster name.
- css_
snapshot_ strv1_ id - description str
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- indices str
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- name str
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- status str
- Indicates the snapshot status.
- timeouts
Css
Snapshot V1Timeouts Args
- backup
Type String - Indicates the snapshot creation mode, the value should be "manual" or "automated".
- cluster
Id String - Specifies ID of the CSS cluster where index data is to be backed up. Changing this parameter will create a new resource.
- cluster
Name String - Indicates the CSS cluster name.
- css
Snapshot StringV1Id - description String
- Specifies the description of a snapshot. The value contains 0 to 256 characters, and angle brackets (<) and (>) are not allowed. Changing this parameter will create a new resource.
- indices String
- Specifies the name of the index to be backed up. Multiple index names are separated by commas (,). By default, data of all indices is backed up. You can use the asterisk () to back up data of certain indices. For example, if you enter 2018-06, then data of indices with the name prefix of 2018-06 will be backed up. The value contains 0 to 1024 characters. Uppercase letters, spaces, and certain special characters (including "<|>/?) are not allowed. Changing this parameter will create a new resource.
- name String
- Specifies the snapshot name. The snapshot name must start with a letter and contains 4 to 64 characters consisting of only lowercase letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- status String
- Indicates the snapshot status.
- timeouts Property Map
Supporting Types
CssSnapshotV1Timeouts, CssSnapshotV1TimeoutsArgs
Import
This resource can be imported by specifying the CSS cluster ID and snapshot ID
separated by a slash, e.g.:
$ pulumi import flexibleengine:index/cssSnapshotV1:CssSnapshotV1 snapshot_1 <cluster_id>/<snapshot_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.