1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. ReplicationLink
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.sql.ReplicationLink

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    A replication link. Azure REST API version: 2023-05-01-preview.

    Other available API versions: 2023-08-01-preview, 2024-05-01-preview.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var replicationLink = new AzureNative.Sql.ReplicationLink("replicationLink", new()
        {
            DatabaseName = "gamma-db",
            LinkId = "00000000-1111-2222-3333-666666666666",
            LinkType = AzureNative.Sql.ReplicationLinkType.STANDBY,
            ResourceGroupName = "Default",
            ServerName = "sourcesvr",
        });
    
    });
    
    package main
    
    import (
    	sql "github.com/pulumi/pulumi-azure-native-sdk/sql/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sql.NewReplicationLink(ctx, "replicationLink", &sql.ReplicationLinkArgs{
    			DatabaseName:      pulumi.String("gamma-db"),
    			LinkId:            pulumi.String("00000000-1111-2222-3333-666666666666"),
    			LinkType:          pulumi.String(sql.ReplicationLinkTypeSTANDBY),
    			ResourceGroupName: pulumi.String("Default"),
    			ServerName:        pulumi.String("sourcesvr"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.sql.ReplicationLink;
    import com.pulumi.azurenative.sql.ReplicationLinkArgs;
    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 replicationLink = new ReplicationLink("replicationLink", ReplicationLinkArgs.builder()
                .databaseName("gamma-db")
                .linkId("00000000-1111-2222-3333-666666666666")
                .linkType("STANDBY")
                .resourceGroupName("Default")
                .serverName("sourcesvr")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    replication_link = azure_native.sql.ReplicationLink("replicationLink",
        database_name="gamma-db",
        link_id="00000000-1111-2222-3333-666666666666",
        link_type=azure_native.sql.ReplicationLinkType.STANDBY,
        resource_group_name="Default",
        server_name="sourcesvr")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const replicationLink = new azure_native.sql.ReplicationLink("replicationLink", {
        databaseName: "gamma-db",
        linkId: "00000000-1111-2222-3333-666666666666",
        linkType: azure_native.sql.ReplicationLinkType.STANDBY,
        resourceGroupName: "Default",
        serverName: "sourcesvr",
    });
    
    resources:
      replicationLink:
        type: azure-native:sql:ReplicationLink
        properties:
          databaseName: gamma-db
          linkId: 00000000-1111-2222-3333-666666666666
          linkType: STANDBY
          resourceGroupName: Default
          serverName: sourcesvr
    

    Create ReplicationLink Resource

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

    Constructor syntax

    new ReplicationLink(name: string, args: ReplicationLinkArgs, opts?: CustomResourceOptions);
    @overload
    def ReplicationLink(resource_name: str,
                        args: ReplicationLinkArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReplicationLink(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        database_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        server_name: Optional[str] = None,
                        link_id: Optional[str] = None,
                        link_type: Optional[Union[str, ReplicationLinkType]] = None)
    func NewReplicationLink(ctx *Context, name string, args ReplicationLinkArgs, opts ...ResourceOption) (*ReplicationLink, error)
    public ReplicationLink(string name, ReplicationLinkArgs args, CustomResourceOptions? opts = null)
    public ReplicationLink(String name, ReplicationLinkArgs args)
    public ReplicationLink(String name, ReplicationLinkArgs args, CustomResourceOptions options)
    
    type: azure-native:sql:ReplicationLink
    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 ReplicationLinkArgs
    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 ReplicationLinkArgs
    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 ReplicationLinkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicationLinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicationLinkArgs
    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 replicationLinkResource = new AzureNative.Sql.ReplicationLink("replicationLinkResource", new()
    {
        DatabaseName = "string",
        ResourceGroupName = "string",
        ServerName = "string",
        LinkId = "string",
        LinkType = "string",
    });
    
    example, err := sql.NewReplicationLink(ctx, "replicationLinkResource", &sql.ReplicationLinkArgs{
    	DatabaseName:      pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	ServerName:        pulumi.String("string"),
    	LinkId:            pulumi.String("string"),
    	LinkType:          pulumi.String("string"),
    })
    
    var replicationLinkResource = new ReplicationLink("replicationLinkResource", ReplicationLinkArgs.builder()
        .databaseName("string")
        .resourceGroupName("string")
        .serverName("string")
        .linkId("string")
        .linkType("string")
        .build());
    
    replication_link_resource = azure_native.sql.ReplicationLink("replicationLinkResource",
        database_name="string",
        resource_group_name="string",
        server_name="string",
        link_id="string",
        link_type="string")
    
    const replicationLinkResource = new azure_native.sql.ReplicationLink("replicationLinkResource", {
        databaseName: "string",
        resourceGroupName: "string",
        serverName: "string",
        linkId: "string",
        linkType: "string",
    });
    
    type: azure-native:sql:ReplicationLink
    properties:
        databaseName: string
        linkId: string
        linkType: string
        resourceGroupName: string
        serverName: string
    

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

    DatabaseName string
    The name of the database.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    ServerName string
    The name of the server.
    LinkId string
    LinkType string | Pulumi.AzureNative.Sql.ReplicationLinkType
    Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED.
    DatabaseName string
    The name of the database.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    ServerName string
    The name of the server.
    LinkId string
    LinkType string | ReplicationLinkType
    Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED.
    databaseName String
    The name of the database.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    serverName String
    The name of the server.
    linkId String
    linkType String | ReplicationLinkType
    Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED.
    databaseName string
    The name of the database.
    resourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    serverName string
    The name of the server.
    linkId string
    linkType string | ReplicationLinkType
    Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED.
    database_name str
    The name of the database.
    resource_group_name str
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    server_name str
    The name of the server.
    link_id str
    link_type str | ReplicationLinkType
    Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED.
    databaseName String
    The name of the database.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    serverName String
    The name of the server.
    linkId String
    linkType String | "GEO" | "NAMED" | "STANDBY"
    Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    IsTerminationAllowed bool
    Whether the user is currently allowed to terminate the link.
    Name string
    Resource name.
    PartnerDatabase string
    Resource partner database.
    PartnerDatabaseId string
    Resource partner database Id.
    PartnerLocation string
    Resource partner location.
    PartnerRole string
    Partner replication role.
    PartnerServer string
    Resource partner server.
    PercentComplete int
    Seeding completion percentage for the link.
    ReplicationMode string
    Replication mode.
    ReplicationState string
    Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
    Role string
    Local replication role.
    StartTime string
    Time at which the link was created.
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsTerminationAllowed bool
    Whether the user is currently allowed to terminate the link.
    Name string
    Resource name.
    PartnerDatabase string
    Resource partner database.
    PartnerDatabaseId string
    Resource partner database Id.
    PartnerLocation string
    Resource partner location.
    PartnerRole string
    Partner replication role.
    PartnerServer string
    Resource partner server.
    PercentComplete int
    Seeding completion percentage for the link.
    ReplicationMode string
    Replication mode.
    ReplicationState string
    Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
    Role string
    Local replication role.
    StartTime string
    Time at which the link was created.
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    isTerminationAllowed Boolean
    Whether the user is currently allowed to terminate the link.
    name String
    Resource name.
    partnerDatabase String
    Resource partner database.
    partnerDatabaseId String
    Resource partner database Id.
    partnerLocation String
    Resource partner location.
    partnerRole String
    Partner replication role.
    partnerServer String
    Resource partner server.
    percentComplete Integer
    Seeding completion percentage for the link.
    replicationMode String
    Replication mode.
    replicationState String
    Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
    role String
    Local replication role.
    startTime String
    Time at which the link was created.
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    isTerminationAllowed boolean
    Whether the user is currently allowed to terminate the link.
    name string
    Resource name.
    partnerDatabase string
    Resource partner database.
    partnerDatabaseId string
    Resource partner database Id.
    partnerLocation string
    Resource partner location.
    partnerRole string
    Partner replication role.
    partnerServer string
    Resource partner server.
    percentComplete number
    Seeding completion percentage for the link.
    replicationMode string
    Replication mode.
    replicationState string
    Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
    role string
    Local replication role.
    startTime string
    Time at which the link was created.
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    is_termination_allowed bool
    Whether the user is currently allowed to terminate the link.
    name str
    Resource name.
    partner_database str
    Resource partner database.
    partner_database_id str
    Resource partner database Id.
    partner_location str
    Resource partner location.
    partner_role str
    Partner replication role.
    partner_server str
    Resource partner server.
    percent_complete int
    Seeding completion percentage for the link.
    replication_mode str
    Replication mode.
    replication_state str
    Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
    role str
    Local replication role.
    start_time str
    Time at which the link was created.
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    isTerminationAllowed Boolean
    Whether the user is currently allowed to terminate the link.
    name String
    Resource name.
    partnerDatabase String
    Resource partner database.
    partnerDatabaseId String
    Resource partner database Id.
    partnerLocation String
    Resource partner location.
    partnerRole String
    Partner replication role.
    partnerServer String
    Resource partner server.
    percentComplete Number
    Seeding completion percentage for the link.
    replicationMode String
    Replication mode.
    replicationState String
    Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
    role String
    Local replication role.
    startTime String
    Time at which the link was created.
    type String
    Resource type.

    Supporting Types

    ReplicationLinkType, ReplicationLinkTypeArgs

    GEO
    GEO
    NAMED
    NAMED
    STANDBY
    STANDBY
    ReplicationLinkTypeGEO
    GEO
    ReplicationLinkTypeNAMED
    NAMED
    ReplicationLinkTypeSTANDBY
    STANDBY
    GEO
    GEO
    NAMED
    NAMED
    STANDBY
    STANDBY
    GEO
    GEO
    NAMED
    NAMED
    STANDBY
    STANDBY
    GEO
    GEO
    NAMED
    NAMED
    STANDBY
    STANDBY
    "GEO"
    GEO
    "NAMED"
    NAMED
    "STANDBY"
    STANDBY

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:sql:ReplicationLink 00000000-1111-2222-3333-666666666666 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi