opentelekomcloud.TaurusdbMysqlBackupV3
Manages a TaurusDb MySQL backup resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const test = new opentelekomcloud.TaurusdbMysqlBackupV3("test", {
instanceId: instanceId,
description: "test description",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id = config.require_object("instanceId")
test = opentelekomcloud.TaurusdbMysqlBackupV3("test",
instance_id=instance_id,
description="test description")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
_, err := opentelekomcloud.NewTaurusdbMysqlBackupV3(ctx, "test", &opentelekomcloud.TaurusdbMysqlBackupV3Args{
InstanceId: pulumi.Any(instanceId),
Description: pulumi.String("test description"),
})
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 config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var test = new Opentelekomcloud.TaurusdbMysqlBackupV3("test", new()
{
InstanceId = instanceId,
Description = "test description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.TaurusdbMysqlBackupV3;
import com.pulumi.opentelekomcloud.TaurusdbMysqlBackupV3Args;
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 config = ctx.config();
final var instanceId = config.get("instanceId");
var test = new TaurusdbMysqlBackupV3("test", TaurusdbMysqlBackupV3Args.builder()
.instanceId(instanceId)
.description("test description")
.build());
}
}
configuration:
instanceId:
type: dynamic
resources:
test:
type: opentelekomcloud:TaurusdbMysqlBackupV3
properties:
instanceId: ${instanceId}
description: test description
Create TaurusdbMysqlBackupV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TaurusdbMysqlBackupV3(name: string, args: TaurusdbMysqlBackupV3Args, opts?: CustomResourceOptions);
@overload
def TaurusdbMysqlBackupV3(resource_name: str,
args: TaurusdbMysqlBackupV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def TaurusdbMysqlBackupV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
taurusdb_mysql_backup_v3_id: Optional[str] = None,
timeouts: Optional[TaurusdbMysqlBackupV3TimeoutsArgs] = None)
func NewTaurusdbMysqlBackupV3(ctx *Context, name string, args TaurusdbMysqlBackupV3Args, opts ...ResourceOption) (*TaurusdbMysqlBackupV3, error)
public TaurusdbMysqlBackupV3(string name, TaurusdbMysqlBackupV3Args args, CustomResourceOptions? opts = null)
public TaurusdbMysqlBackupV3(String name, TaurusdbMysqlBackupV3Args args)
public TaurusdbMysqlBackupV3(String name, TaurusdbMysqlBackupV3Args args, CustomResourceOptions options)
type: opentelekomcloud:TaurusdbMysqlBackupV3
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 TaurusdbMysqlBackupV3Args
- 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 TaurusdbMysqlBackupV3Args
- 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 TaurusdbMysqlBackupV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TaurusdbMysqlBackupV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TaurusdbMysqlBackupV3Args
- 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 taurusdbMysqlBackupV3Resource = new Opentelekomcloud.TaurusdbMysqlBackupV3("taurusdbMysqlBackupV3Resource", new()
{
InstanceId = "string",
Description = "string",
Name = "string",
TaurusdbMysqlBackupV3Id = "string",
Timeouts = new Opentelekomcloud.Inputs.TaurusdbMysqlBackupV3TimeoutsArgs
{
Create = "string",
},
});
example, err := opentelekomcloud.NewTaurusdbMysqlBackupV3(ctx, "taurusdbMysqlBackupV3Resource", &opentelekomcloud.TaurusdbMysqlBackupV3Args{
InstanceId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
TaurusdbMysqlBackupV3Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.TaurusdbMysqlBackupV3TimeoutsArgs{
Create: pulumi.String("string"),
},
})
var taurusdbMysqlBackupV3Resource = new TaurusdbMysqlBackupV3("taurusdbMysqlBackupV3Resource", TaurusdbMysqlBackupV3Args.builder()
.instanceId("string")
.description("string")
.name("string")
.taurusdbMysqlBackupV3Id("string")
.timeouts(TaurusdbMysqlBackupV3TimeoutsArgs.builder()
.create("string")
.build())
.build());
taurusdb_mysql_backup_v3_resource = opentelekomcloud.TaurusdbMysqlBackupV3("taurusdbMysqlBackupV3Resource",
instance_id="string",
description="string",
name="string",
taurusdb_mysql_backup_v3_id="string",
timeouts={
"create": "string",
})
const taurusdbMysqlBackupV3Resource = new opentelekomcloud.TaurusdbMysqlBackupV3("taurusdbMysqlBackupV3Resource", {
instanceId: "string",
description: "string",
name: "string",
taurusdbMysqlBackupV3Id: "string",
timeouts: {
create: "string",
},
});
type: opentelekomcloud:TaurusdbMysqlBackupV3
properties:
description: string
instanceId: string
name: string
taurusdbMysqlBackupV3Id: string
timeouts:
create: string
TaurusdbMysqlBackupV3 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 TaurusdbMysqlBackupV3 resource accepts the following input properties:
- Instance
Id string - Specifies the ID of the TaurusDb MySQL instance.
- Description string
- Specifies the description of the backup.
- Name string
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - Taurusdb
Mysql stringBackup V3Id - The resource ID.
- Timeouts
Taurusdb
Mysql Backup V3Timeouts
- Instance
Id string - Specifies the ID of the TaurusDb MySQL instance.
- Description string
- Specifies the description of the backup.
- Name string
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - Taurusdb
Mysql stringBackup V3Id - The resource ID.
- Timeouts
Taurusdb
Mysql Backup V3Timeouts Args
- instance
Id String - Specifies the ID of the TaurusDb MySQL instance.
- description String
- Specifies the description of the backup.
- name String
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - taurusdb
Mysql StringBackup V3Id - The resource ID.
- timeouts
Taurusdb
Mysql Backup V3Timeouts
- instance
Id string - Specifies the ID of the TaurusDb MySQL instance.
- description string
- Specifies the description of the backup.
- name string
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - taurusdb
Mysql stringBackup V3Id - The resource ID.
- timeouts
Taurusdb
Mysql Backup V3Timeouts
- instance_
id str - Specifies the ID of the TaurusDb MySQL instance.
- description str
- Specifies the description of the backup.
- name str
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - taurusdb_
mysql_ strbackup_ v3_ id - The resource ID.
- timeouts
Taurusdb
Mysql Backup V3Timeouts Args
- instance
Id String - Specifies the ID of the TaurusDb MySQL instance.
- description String
- Specifies the description of the backup.
- name String
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - taurusdb
Mysql StringBackup V3Id - The resource ID.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the TaurusdbMysqlBackupV3 resource produces the following output properties:
- Begin
Time string - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- Datastores
List<Taurusdb
Mysql Backup V3Datastore> - Indicates the database information.
- End
Time string - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- The resource region
- Size double
- Indicates the backup size in MB.
- Take
Up doubleTime - Indicates the backup duration in minutes.
- Begin
Time string - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- Datastores
[]Taurusdb
Mysql Backup V3Datastore - Indicates the database information.
- End
Time string - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- The resource region
- Size float64
- Indicates the backup size in MB.
- Take
Up float64Time - Indicates the backup duration in minutes.
- begin
Time String - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- datastores
List<Taurusdb
Mysql Backup V3Datastore> - Indicates the database information.
- end
Time String - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- The resource region
- size Double
- Indicates the backup size in MB.
- take
Up DoubleTime - Indicates the backup duration in minutes.
- begin
Time string - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- datastores
Taurusdb
Mysql Backup V3Datastore[] - Indicates the database information.
- end
Time string - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- The resource region
- size number
- Indicates the backup size in MB.
- take
Up numberTime - Indicates the backup duration in minutes.
- begin_
time str - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- datastores
Sequence[Taurusdb
Mysql Backup V3Datastore] - Indicates the database information.
- end_
time str - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- The resource region
- size float
- Indicates the backup size in MB.
- take_
up_ floattime - Indicates the backup duration in minutes.
- begin
Time String - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- datastores List<Property Map>
- Indicates the database information.
- end
Time String - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- The resource region
- size Number
- Indicates the backup size in MB.
- take
Up NumberTime - Indicates the backup duration in minutes.
Look up Existing TaurusdbMysqlBackupV3 Resource
Get an existing TaurusdbMysqlBackupV3 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?: TaurusdbMysqlBackupV3State, opts?: CustomResourceOptions): TaurusdbMysqlBackupV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
begin_time: Optional[str] = None,
datastores: Optional[Sequence[TaurusdbMysqlBackupV3DatastoreArgs]] = None,
description: Optional[str] = None,
end_time: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
size: Optional[float] = None,
take_up_time: Optional[float] = None,
taurusdb_mysql_backup_v3_id: Optional[str] = None,
timeouts: Optional[TaurusdbMysqlBackupV3TimeoutsArgs] = None) -> TaurusdbMysqlBackupV3
func GetTaurusdbMysqlBackupV3(ctx *Context, name string, id IDInput, state *TaurusdbMysqlBackupV3State, opts ...ResourceOption) (*TaurusdbMysqlBackupV3, error)
public static TaurusdbMysqlBackupV3 Get(string name, Input<string> id, TaurusdbMysqlBackupV3State? state, CustomResourceOptions? opts = null)
public static TaurusdbMysqlBackupV3 get(String name, Output<String> id, TaurusdbMysqlBackupV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:TaurusdbMysqlBackupV3 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.
- Begin
Time string - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- Datastores
List<Taurusdb
Mysql Backup V3Datastore> - Indicates the database information.
- Description string
- Specifies the description of the backup.
- End
Time string - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- Instance
Id string - Specifies the ID of the TaurusDb MySQL instance.
- Name string
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - Region string
- The resource region
- Size double
- Indicates the backup size in MB.
- Take
Up doubleTime - Indicates the backup duration in minutes.
- Taurusdb
Mysql stringBackup V3Id - The resource ID.
- Timeouts
Taurusdb
Mysql Backup V3Timeouts
- Begin
Time string - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- Datastores
[]Taurusdb
Mysql Backup V3Datastore Args - Indicates the database information.
- Description string
- Specifies the description of the backup.
- End
Time string - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- Instance
Id string - Specifies the ID of the TaurusDb MySQL instance.
- Name string
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - Region string
- The resource region
- Size float64
- Indicates the backup size in MB.
- Take
Up float64Time - Indicates the backup duration in minutes.
- Taurusdb
Mysql stringBackup V3Id - The resource ID.
- Timeouts
Taurusdb
Mysql Backup V3Timeouts Args
- begin
Time String - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- datastores
List<Taurusdb
Mysql Backup V3Datastore> - Indicates the database information.
- description String
- Specifies the description of the backup.
- end
Time String - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- instance
Id String - Specifies the ID of the TaurusDb MySQL instance.
- name String
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - region String
- The resource region
- size Double
- Indicates the backup size in MB.
- take
Up DoubleTime - Indicates the backup duration in minutes.
- taurusdb
Mysql StringBackup V3Id - The resource ID.
- timeouts
Taurusdb
Mysql Backup V3Timeouts
- begin
Time string - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- datastores
Taurusdb
Mysql Backup V3Datastore[] - Indicates the database information.
- description string
- Specifies the description of the backup.
- end
Time string - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- instance
Id string - Specifies the ID of the TaurusDb MySQL instance.
- name string
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - region string
- The resource region
- size number
- Indicates the backup size in MB.
- take
Up numberTime - Indicates the backup duration in minutes.
- taurusdb
Mysql stringBackup V3Id - The resource ID.
- timeouts
Taurusdb
Mysql Backup V3Timeouts
- begin_
time str - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- datastores
Sequence[Taurusdb
Mysql Backup V3Datastore Args] - Indicates the database information.
- description str
- Specifies the description of the backup.
- end_
time str - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- instance_
id str - Specifies the ID of the TaurusDb MySQL instance.
- name str
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - region str
- The resource region
- size float
- Indicates the backup size in MB.
- take_
up_ floattime - Indicates the backup duration in minutes.
- taurusdb_
mysql_ strbackup_ v3_ id - The resource ID.
- timeouts
Taurusdb
Mysql Backup V3Timeouts Args
- begin
Time String - Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
- datastores List<Property Map>
- Indicates the database information.
- description String
- Specifies the description of the backup.
- end
Time String - Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
- instance
Id String - Specifies the ID of the TaurusDb MySQL instance.
- name String
- Specifies the name of the backup. It must start with a letter and consist of
4
to64
characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed. - region String
- The resource region
- size Number
- Indicates the backup size in MB.
- take
Up NumberTime - Indicates the backup duration in minutes.
- taurusdb
Mysql StringBackup V3Id - The resource ID.
- timeouts Property Map
Supporting Types
TaurusdbMysqlBackupV3Datastore, TaurusdbMysqlBackupV3DatastoreArgs
TaurusdbMysqlBackupV3Timeouts, TaurusdbMysqlBackupV3TimeoutsArgs
- Create string
- Create string
- create String
- create string
- create str
- create String
Import
The TaurusDb Mysql backup can be imported using the id
, e.g.
bash
$ pulumi import opentelekomcloud:index/taurusdbMysqlBackupV3:TaurusdbMysqlBackupV3 test <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.