We recommend using Azure Native.
azure.dataprotection.BackupInstanceMysqlFlexibleServer
Explore with Pulumi AI
Manages a Backup Instance to back up MySQL Flexible Server.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleFlexibleServer = new azure.mysql.FlexibleServer("example", {
name: "example-mysqlfs",
resourceGroupName: example.name,
location: example.location,
administratorLogin: "adminTerraform",
administratorPassword: "QAZwsx123",
version: "8.0.21",
skuName: "B_Standard_B1s",
zone: "1",
});
const exampleBackupVault = new azure.dataprotection.BackupVault("example", {
name: "example-backupvault",
resourceGroupName: example.name,
location: example.location,
datastoreType: "VaultStore",
redundancy: "LocallyRedundant",
softDelete: "Off",
identity: {
type: "SystemAssigned",
},
});
const exampleAssignment = new azure.authorization.Assignment("example", {
scope: example.id,
roleDefinitionName: "Reader",
principalId: exampleBackupVault.identity.apply(identity => identity?.principalId),
});
const example2 = new azure.authorization.Assignment("example2", {
scope: exampleFlexibleServer.id,
roleDefinitionName: "MySQL Backup And Export Operator",
principalId: exampleBackupVault.identity.apply(identity => identity?.principalId),
});
const exampleBackupPolicyMysqlFlexibleServer = new azure.dataprotection.BackupPolicyMysqlFlexibleServer("example", {
name: "example-dp",
vaultId: exampleBackupVault.id,
backupRepeatingTimeIntervals: ["R/2021-05-23T02:30:00+00:00/P1W"],
defaultRetentionRule: {
lifeCycles: [{
duration: "P4M",
dataStoreType: "VaultStore",
}],
},
}, {
dependsOn: [
exampleAssignment,
example2,
],
});
const exampleBackupInstanceMysqlFlexibleServer = new azure.dataprotection.BackupInstanceMysqlFlexibleServer("example", {
name: "example-dbi",
location: example.location,
vaultId: exampleBackupVault.id,
serverId: exampleFlexibleServer.id,
backupPolicyId: exampleBackupPolicyMysqlFlexibleServer.id,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_flexible_server = azure.mysql.FlexibleServer("example",
name="example-mysqlfs",
resource_group_name=example.name,
location=example.location,
administrator_login="adminTerraform",
administrator_password="QAZwsx123",
version="8.0.21",
sku_name="B_Standard_B1s",
zone="1")
example_backup_vault = azure.dataprotection.BackupVault("example",
name="example-backupvault",
resource_group_name=example.name,
location=example.location,
datastore_type="VaultStore",
redundancy="LocallyRedundant",
soft_delete="Off",
identity={
"type": "SystemAssigned",
})
example_assignment = azure.authorization.Assignment("example",
scope=example.id,
role_definition_name="Reader",
principal_id=example_backup_vault.identity.principal_id)
example2 = azure.authorization.Assignment("example2",
scope=example_flexible_server.id,
role_definition_name="MySQL Backup And Export Operator",
principal_id=example_backup_vault.identity.principal_id)
example_backup_policy_mysql_flexible_server = azure.dataprotection.BackupPolicyMysqlFlexibleServer("example",
name="example-dp",
vault_id=example_backup_vault.id,
backup_repeating_time_intervals=["R/2021-05-23T02:30:00+00:00/P1W"],
default_retention_rule={
"life_cycles": [{
"duration": "P4M",
"data_store_type": "VaultStore",
}],
},
opts = pulumi.ResourceOptions(depends_on=[
example_assignment,
example2,
]))
example_backup_instance_mysql_flexible_server = azure.dataprotection.BackupInstanceMysqlFlexibleServer("example",
name="example-dbi",
location=example.location,
vault_id=example_backup_vault.id,
server_id=example_flexible_server.id,
backup_policy_id=example_backup_policy_mysql_flexible_server.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dataprotection"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mysql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleFlexibleServer, err := mysql.NewFlexibleServer(ctx, "example", &mysql.FlexibleServerArgs{
Name: pulumi.String("example-mysqlfs"),
ResourceGroupName: example.Name,
Location: example.Location,
AdministratorLogin: pulumi.String("adminTerraform"),
AdministratorPassword: pulumi.String("QAZwsx123"),
Version: pulumi.String("8.0.21"),
SkuName: pulumi.String("B_Standard_B1s"),
Zone: pulumi.String("1"),
})
if err != nil {
return err
}
exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "example", &dataprotection.BackupVaultArgs{
Name: pulumi.String("example-backupvault"),
ResourceGroupName: example.Name,
Location: example.Location,
DatastoreType: pulumi.String("VaultStore"),
Redundancy: pulumi.String("LocallyRedundant"),
SoftDelete: pulumi.String("Off"),
Identity: &dataprotection.BackupVaultIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
if err != nil {
return err
}
exampleAssignment, err := authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{
Scope: example.ID(),
RoleDefinitionName: pulumi.String("Reader"),
PrincipalId: pulumi.String(exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) {
return &identity.PrincipalId, nil
}).(pulumi.StringPtrOutput)),
})
if err != nil {
return err
}
example2, err := authorization.NewAssignment(ctx, "example2", &authorization.AssignmentArgs{
Scope: exampleFlexibleServer.ID(),
RoleDefinitionName: pulumi.String("MySQL Backup And Export Operator"),
PrincipalId: pulumi.String(exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) {
return &identity.PrincipalId, nil
}).(pulumi.StringPtrOutput)),
})
if err != nil {
return err
}
exampleBackupPolicyMysqlFlexibleServer, err := dataprotection.NewBackupPolicyMysqlFlexibleServer(ctx, "example", &dataprotection.BackupPolicyMysqlFlexibleServerArgs{
Name: pulumi.String("example-dp"),
VaultId: exampleBackupVault.ID(),
BackupRepeatingTimeIntervals: pulumi.StringArray{
pulumi.String("R/2021-05-23T02:30:00+00:00/P1W"),
},
DefaultRetentionRule: &dataprotection.BackupPolicyMysqlFlexibleServerDefaultRetentionRuleArgs{
LifeCycles: dataprotection.BackupPolicyMysqlFlexibleServerDefaultRetentionRuleLifeCycleArray{
&dataprotection.BackupPolicyMysqlFlexibleServerDefaultRetentionRuleLifeCycleArgs{
Duration: pulumi.String("P4M"),
DataStoreType: pulumi.String("VaultStore"),
},
},
},
}, pulumi.DependsOn([]pulumi.Resource{
exampleAssignment,
example2,
}))
if err != nil {
return err
}
_, err = dataprotection.NewBackupInstanceMysqlFlexibleServer(ctx, "example", &dataprotection.BackupInstanceMysqlFlexibleServerArgs{
Name: pulumi.String("example-dbi"),
Location: example.Location,
VaultId: exampleBackupVault.ID(),
ServerId: exampleFlexibleServer.ID(),
BackupPolicyId: exampleBackupPolicyMysqlFlexibleServer.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleFlexibleServer = new Azure.MySql.FlexibleServer("example", new()
{
Name = "example-mysqlfs",
ResourceGroupName = example.Name,
Location = example.Location,
AdministratorLogin = "adminTerraform",
AdministratorPassword = "QAZwsx123",
Version = "8.0.21",
SkuName = "B_Standard_B1s",
Zone = "1",
});
var exampleBackupVault = new Azure.DataProtection.BackupVault("example", new()
{
Name = "example-backupvault",
ResourceGroupName = example.Name,
Location = example.Location,
DatastoreType = "VaultStore",
Redundancy = "LocallyRedundant",
SoftDelete = "Off",
Identity = new Azure.DataProtection.Inputs.BackupVaultIdentityArgs
{
Type = "SystemAssigned",
},
});
var exampleAssignment = new Azure.Authorization.Assignment("example", new()
{
Scope = example.Id,
RoleDefinitionName = "Reader",
PrincipalId = exampleBackupVault.Identity.Apply(identity => identity?.PrincipalId),
});
var example2 = new Azure.Authorization.Assignment("example2", new()
{
Scope = exampleFlexibleServer.Id,
RoleDefinitionName = "MySQL Backup And Export Operator",
PrincipalId = exampleBackupVault.Identity.Apply(identity => identity?.PrincipalId),
});
var exampleBackupPolicyMysqlFlexibleServer = new Azure.DataProtection.BackupPolicyMysqlFlexibleServer("example", new()
{
Name = "example-dp",
VaultId = exampleBackupVault.Id,
BackupRepeatingTimeIntervals = new[]
{
"R/2021-05-23T02:30:00+00:00/P1W",
},
DefaultRetentionRule = new Azure.DataProtection.Inputs.BackupPolicyMysqlFlexibleServerDefaultRetentionRuleArgs
{
LifeCycles = new[]
{
new Azure.DataProtection.Inputs.BackupPolicyMysqlFlexibleServerDefaultRetentionRuleLifeCycleArgs
{
Duration = "P4M",
DataStoreType = "VaultStore",
},
},
},
}, new CustomResourceOptions
{
DependsOn =
{
exampleAssignment,
example2,
},
});
var exampleBackupInstanceMysqlFlexibleServer = new Azure.DataProtection.BackupInstanceMysqlFlexibleServer("example", new()
{
Name = "example-dbi",
Location = example.Location,
VaultId = exampleBackupVault.Id,
ServerId = exampleFlexibleServer.Id,
BackupPolicyId = exampleBackupPolicyMysqlFlexibleServer.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.mysql.FlexibleServer;
import com.pulumi.azure.mysql.FlexibleServerArgs;
import com.pulumi.azure.dataprotection.BackupVault;
import com.pulumi.azure.dataprotection.BackupVaultArgs;
import com.pulumi.azure.dataprotection.inputs.BackupVaultIdentityArgs;
import com.pulumi.azure.authorization.Assignment;
import com.pulumi.azure.authorization.AssignmentArgs;
import com.pulumi.azure.dataprotection.BackupPolicyMysqlFlexibleServer;
import com.pulumi.azure.dataprotection.BackupPolicyMysqlFlexibleServerArgs;
import com.pulumi.azure.dataprotection.inputs.BackupPolicyMysqlFlexibleServerDefaultRetentionRuleArgs;
import com.pulumi.azure.dataprotection.BackupInstanceMysqlFlexibleServer;
import com.pulumi.azure.dataprotection.BackupInstanceMysqlFlexibleServerArgs;
import com.pulumi.resources.CustomResourceOptions;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleFlexibleServer = new FlexibleServer("exampleFlexibleServer", FlexibleServerArgs.builder()
.name("example-mysqlfs")
.resourceGroupName(example.name())
.location(example.location())
.administratorLogin("adminTerraform")
.administratorPassword("QAZwsx123")
.version("8.0.21")
.skuName("B_Standard_B1s")
.zone("1")
.build());
var exampleBackupVault = new BackupVault("exampleBackupVault", BackupVaultArgs.builder()
.name("example-backupvault")
.resourceGroupName(example.name())
.location(example.location())
.datastoreType("VaultStore")
.redundancy("LocallyRedundant")
.softDelete("Off")
.identity(BackupVaultIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var exampleAssignment = new Assignment("exampleAssignment", AssignmentArgs.builder()
.scope(example.id())
.roleDefinitionName("Reader")
.principalId(exampleBackupVault.identity().applyValue(identity -> identity.principalId()))
.build());
var example2 = new Assignment("example2", AssignmentArgs.builder()
.scope(exampleFlexibleServer.id())
.roleDefinitionName("MySQL Backup And Export Operator")
.principalId(exampleBackupVault.identity().applyValue(identity -> identity.principalId()))
.build());
var exampleBackupPolicyMysqlFlexibleServer = new BackupPolicyMysqlFlexibleServer("exampleBackupPolicyMysqlFlexibleServer", BackupPolicyMysqlFlexibleServerArgs.builder()
.name("example-dp")
.vaultId(exampleBackupVault.id())
.backupRepeatingTimeIntervals("R/2021-05-23T02:30:00+00:00/P1W")
.defaultRetentionRule(BackupPolicyMysqlFlexibleServerDefaultRetentionRuleArgs.builder()
.lifeCycles(BackupPolicyMysqlFlexibleServerDefaultRetentionRuleLifeCycleArgs.builder()
.duration("P4M")
.dataStoreType("VaultStore")
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(
exampleAssignment,
example2)
.build());
var exampleBackupInstanceMysqlFlexibleServer = new BackupInstanceMysqlFlexibleServer("exampleBackupInstanceMysqlFlexibleServer", BackupInstanceMysqlFlexibleServerArgs.builder()
.name("example-dbi")
.location(example.location())
.vaultId(exampleBackupVault.id())
.serverId(exampleFlexibleServer.id())
.backupPolicyId(exampleBackupPolicyMysqlFlexibleServer.id())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleFlexibleServer:
type: azure:mysql:FlexibleServer
name: example
properties:
name: example-mysqlfs
resourceGroupName: ${example.name}
location: ${example.location}
administratorLogin: adminTerraform
administratorPassword: QAZwsx123
version: 8.0.21
skuName: B_Standard_B1s
zone: '1'
exampleBackupVault:
type: azure:dataprotection:BackupVault
name: example
properties:
name: example-backupvault
resourceGroupName: ${example.name}
location: ${example.location}
datastoreType: VaultStore
redundancy: LocallyRedundant
softDelete: Off
identity:
type: SystemAssigned
exampleAssignment:
type: azure:authorization:Assignment
name: example
properties:
scope: ${example.id}
roleDefinitionName: Reader
principalId: ${exampleBackupVault.identity.principalId}
example2:
type: azure:authorization:Assignment
properties:
scope: ${exampleFlexibleServer.id}
roleDefinitionName: MySQL Backup And Export Operator
principalId: ${exampleBackupVault.identity.principalId}
exampleBackupPolicyMysqlFlexibleServer:
type: azure:dataprotection:BackupPolicyMysqlFlexibleServer
name: example
properties:
name: example-dp
vaultId: ${exampleBackupVault.id}
backupRepeatingTimeIntervals:
- R/2021-05-23T02:30:00+00:00/P1W
defaultRetentionRule:
lifeCycles:
- duration: P4M
dataStoreType: VaultStore
options:
dependson:
- ${exampleAssignment}
- ${example2}
exampleBackupInstanceMysqlFlexibleServer:
type: azure:dataprotection:BackupInstanceMysqlFlexibleServer
name: example
properties:
name: example-dbi
location: ${example.location}
vaultId: ${exampleBackupVault.id}
serverId: ${exampleFlexibleServer.id}
backupPolicyId: ${exampleBackupPolicyMysqlFlexibleServer.id}
Create BackupInstanceMysqlFlexibleServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupInstanceMysqlFlexibleServer(name: string, args: BackupInstanceMysqlFlexibleServerArgs, opts?: CustomResourceOptions);
@overload
def BackupInstanceMysqlFlexibleServer(resource_name: str,
args: BackupInstanceMysqlFlexibleServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupInstanceMysqlFlexibleServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_policy_id: Optional[str] = None,
server_id: Optional[str] = None,
vault_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None)
func NewBackupInstanceMysqlFlexibleServer(ctx *Context, name string, args BackupInstanceMysqlFlexibleServerArgs, opts ...ResourceOption) (*BackupInstanceMysqlFlexibleServer, error)
public BackupInstanceMysqlFlexibleServer(string name, BackupInstanceMysqlFlexibleServerArgs args, CustomResourceOptions? opts = null)
public BackupInstanceMysqlFlexibleServer(String name, BackupInstanceMysqlFlexibleServerArgs args)
public BackupInstanceMysqlFlexibleServer(String name, BackupInstanceMysqlFlexibleServerArgs args, CustomResourceOptions options)
type: azure:dataprotection:BackupInstanceMysqlFlexibleServer
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 BackupInstanceMysqlFlexibleServerArgs
- 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 BackupInstanceMysqlFlexibleServerArgs
- 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 BackupInstanceMysqlFlexibleServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupInstanceMysqlFlexibleServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupInstanceMysqlFlexibleServerArgs
- 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 backupInstanceMysqlFlexibleServerResource = new Azure.DataProtection.BackupInstanceMysqlFlexibleServer("backupInstanceMysqlFlexibleServerResource", new()
{
BackupPolicyId = "string",
ServerId = "string",
VaultId = "string",
Location = "string",
Name = "string",
});
example, err := dataprotection.NewBackupInstanceMysqlFlexibleServer(ctx, "backupInstanceMysqlFlexibleServerResource", &dataprotection.BackupInstanceMysqlFlexibleServerArgs{
BackupPolicyId: pulumi.String("string"),
ServerId: pulumi.String("string"),
VaultId: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
})
var backupInstanceMysqlFlexibleServerResource = new BackupInstanceMysqlFlexibleServer("backupInstanceMysqlFlexibleServerResource", BackupInstanceMysqlFlexibleServerArgs.builder()
.backupPolicyId("string")
.serverId("string")
.vaultId("string")
.location("string")
.name("string")
.build());
backup_instance_mysql_flexible_server_resource = azure.dataprotection.BackupInstanceMysqlFlexibleServer("backupInstanceMysqlFlexibleServerResource",
backup_policy_id="string",
server_id="string",
vault_id="string",
location="string",
name="string")
const backupInstanceMysqlFlexibleServerResource = new azure.dataprotection.BackupInstanceMysqlFlexibleServer("backupInstanceMysqlFlexibleServerResource", {
backupPolicyId: "string",
serverId: "string",
vaultId: "string",
location: "string",
name: "string",
});
type: azure:dataprotection:BackupInstanceMysqlFlexibleServer
properties:
backupPolicyId: string
location: string
name: string
serverId: string
vaultId: string
BackupInstanceMysqlFlexibleServer 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 BackupInstanceMysqlFlexibleServer resource accepts the following input properties:
- Backup
Policy stringId - The ID of the Backup Policy.
- Server
Id string - The ID of the source server. Changing this forces a new resource to be created.
- Vault
Id string - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- Location string
- The location of the source database. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- Backup
Policy stringId - The ID of the Backup Policy.
- Server
Id string - The ID of the source server. Changing this forces a new resource to be created.
- Vault
Id string - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- Location string
- The location of the source database. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- backup
Policy StringId - The ID of the Backup Policy.
- server
Id String - The ID of the source server. Changing this forces a new resource to be created.
- vault
Id String - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- location String
- The location of the source database. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- backup
Policy stringId - The ID of the Backup Policy.
- server
Id string - The ID of the source server. Changing this forces a new resource to be created.
- vault
Id string - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- location string
- The location of the source database. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- backup_
policy_ strid - The ID of the Backup Policy.
- server_
id str - The ID of the source server. Changing this forces a new resource to be created.
- vault_
id str - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- location str
- The location of the source database. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- backup
Policy StringId - The ID of the Backup Policy.
- server
Id String - The ID of the source server. Changing this forces a new resource to be created.
- vault
Id String - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- location String
- The location of the source database. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupInstanceMysqlFlexibleServer 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 BackupInstanceMysqlFlexibleServer Resource
Get an existing BackupInstanceMysqlFlexibleServer 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?: BackupInstanceMysqlFlexibleServerState, opts?: CustomResourceOptions): BackupInstanceMysqlFlexibleServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_policy_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
server_id: Optional[str] = None,
vault_id: Optional[str] = None) -> BackupInstanceMysqlFlexibleServer
func GetBackupInstanceMysqlFlexibleServer(ctx *Context, name string, id IDInput, state *BackupInstanceMysqlFlexibleServerState, opts ...ResourceOption) (*BackupInstanceMysqlFlexibleServer, error)
public static BackupInstanceMysqlFlexibleServer Get(string name, Input<string> id, BackupInstanceMysqlFlexibleServerState? state, CustomResourceOptions? opts = null)
public static BackupInstanceMysqlFlexibleServer get(String name, Output<String> id, BackupInstanceMysqlFlexibleServerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
Policy stringId - The ID of the Backup Policy.
- Location string
- The location of the source database. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- Server
Id string - The ID of the source server. Changing this forces a new resource to be created.
- Vault
Id string - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- Backup
Policy stringId - The ID of the Backup Policy.
- Location string
- The location of the source database. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- Server
Id string - The ID of the source server. Changing this forces a new resource to be created.
- Vault
Id string - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- backup
Policy StringId - The ID of the Backup Policy.
- location String
- The location of the source database. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- server
Id String - The ID of the source server. Changing this forces a new resource to be created.
- vault
Id String - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- backup
Policy stringId - The ID of the Backup Policy.
- location string
- The location of the source database. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- server
Id string - The ID of the source server. Changing this forces a new resource to be created.
- vault
Id string - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- backup_
policy_ strid - The ID of the Backup Policy.
- location str
- The location of the source database. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- server_
id str - The ID of the source server. Changing this forces a new resource to be created.
- vault_
id str - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
- backup
Policy StringId - The ID of the Backup Policy.
- location String
- The location of the source database. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created.
- server
Id String - The ID of the source server. Changing this forces a new resource to be created.
- vault
Id String - The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created.
Import
Backup Instance MySQL Flexible Servers can be imported using the resource id
, e.g.
$ pulumi import azure:dataprotection/backupInstanceMysqlFlexibleServer:BackupInstanceMysqlFlexibleServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupInstances/backupInstance1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.