1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. ServerCommunicationLink
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.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.sql.ServerCommunicationLink

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.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    Server communication link. Azure REST API version: 2014-04-01. Prior API version in Azure Native 1.x: 2014-04-01.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var serverCommunicationLink = new AzureNative.Sql.ServerCommunicationLink("serverCommunicationLink", new()
        {
            CommunicationLinkName = "link1",
            PartnerServer = "sqldcrudtest-test",
            ResourceGroupName = "sqlcrudtest-7398",
            ServerName = "sqlcrudtest-4645",
        });
    
    });
    
    package main
    
    import (
    	"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.NewServerCommunicationLink(ctx, "serverCommunicationLink", &sql.ServerCommunicationLinkArgs{
    			CommunicationLinkName: pulumi.String("link1"),
    			PartnerServer:         pulumi.String("sqldcrudtest-test"),
    			ResourceGroupName:     pulumi.String("sqlcrudtest-7398"),
    			ServerName:            pulumi.String("sqlcrudtest-4645"),
    		})
    		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.ServerCommunicationLink;
    import com.pulumi.azurenative.sql.ServerCommunicationLinkArgs;
    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 serverCommunicationLink = new ServerCommunicationLink("serverCommunicationLink", ServerCommunicationLinkArgs.builder()        
                .communicationLinkName("link1")
                .partnerServer("sqldcrudtest-test")
                .resourceGroupName("sqlcrudtest-7398")
                .serverName("sqlcrudtest-4645")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    server_communication_link = azure_native.sql.ServerCommunicationLink("serverCommunicationLink",
        communication_link_name="link1",
        partner_server="sqldcrudtest-test",
        resource_group_name="sqlcrudtest-7398",
        server_name="sqlcrudtest-4645")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const serverCommunicationLink = new azure_native.sql.ServerCommunicationLink("serverCommunicationLink", {
        communicationLinkName: "link1",
        partnerServer: "sqldcrudtest-test",
        resourceGroupName: "sqlcrudtest-7398",
        serverName: "sqlcrudtest-4645",
    });
    
    resources:
      serverCommunicationLink:
        type: azure-native:sql:ServerCommunicationLink
        properties:
          communicationLinkName: link1
          partnerServer: sqldcrudtest-test
          resourceGroupName: sqlcrudtest-7398
          serverName: sqlcrudtest-4645
    

    Create ServerCommunicationLink Resource

    new ServerCommunicationLink(name: string, args: ServerCommunicationLinkArgs, opts?: CustomResourceOptions);
    @overload
    def ServerCommunicationLink(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                communication_link_name: Optional[str] = None,
                                partner_server: Optional[str] = None,
                                resource_group_name: Optional[str] = None,
                                server_name: Optional[str] = None)
    @overload
    def ServerCommunicationLink(resource_name: str,
                                args: ServerCommunicationLinkArgs,
                                opts: Optional[ResourceOptions] = None)
    func NewServerCommunicationLink(ctx *Context, name string, args ServerCommunicationLinkArgs, opts ...ResourceOption) (*ServerCommunicationLink, error)
    public ServerCommunicationLink(string name, ServerCommunicationLinkArgs args, CustomResourceOptions? opts = null)
    public ServerCommunicationLink(String name, ServerCommunicationLinkArgs args)
    public ServerCommunicationLink(String name, ServerCommunicationLinkArgs args, CustomResourceOptions options)
    
    type: azure-native:sql:ServerCommunicationLink
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ServerCommunicationLinkArgs
    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 ServerCommunicationLinkArgs
    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 ServerCommunicationLinkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServerCommunicationLinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServerCommunicationLinkArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ServerCommunicationLink Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServerCommunicationLink resource accepts the following input properties:

    PartnerServer string
    The name of the partner server.
    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.
    CommunicationLinkName string
    The name of the server communication link.
    PartnerServer string
    The name of the partner server.
    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.
    CommunicationLinkName string
    The name of the server communication link.
    partnerServer String
    The name of the partner server.
    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.
    communicationLinkName String
    The name of the server communication link.
    partnerServer string
    The name of the partner server.
    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.
    communicationLinkName string
    The name of the server communication link.
    partner_server str
    The name of the partner server.
    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.
    communication_link_name str
    The name of the server communication link.
    partnerServer String
    The name of the partner server.
    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.
    communicationLinkName String
    The name of the server communication link.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    Communication link kind. This property is used for Azure Portal metadata.
    Location string
    Communication link location.
    Name string
    Resource name.
    State string
    The state.
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    Communication link kind. This property is used for Azure Portal metadata.
    Location string
    Communication link location.
    Name string
    Resource name.
    State string
    The state.
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    Communication link kind. This property is used for Azure Portal metadata.
    location String
    Communication link location.
    name String
    Resource name.
    state String
    The state.
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    Communication link kind. This property is used for Azure Portal metadata.
    location string
    Communication link location.
    name string
    Resource name.
    state string
    The state.
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    kind str
    Communication link kind. This property is used for Azure Portal metadata.
    location str
    Communication link location.
    name str
    Resource name.
    state str
    The state.
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    Communication link kind. This property is used for Azure Portal metadata.
    location String
    Communication link location.
    name String
    Resource name.
    state String
    The state.
    type String
    Resource type.

    Import

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

    $ pulumi import azure-native:sql:ServerCommunicationLink link1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName} 
    

    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.34.0 published on Thursday, Mar 28, 2024 by Pulumi