1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getSqlserverAccountDbAttachments
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getSqlserverAccountDbAttachments

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query the list of SQL Server account DB privileges.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const zones = tencentcloud.getAvailabilityZones({});
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
        vpcId: vpc.vpcId,
        cidrBlock: "10.0.0.0/16",
        isMulticast: false,
    });
    const securityGroup = new tencentcloud.SecurityGroup("securityGroup", {description: "desc."});
    const exampleSqlserverInstance = new tencentcloud.SqlserverInstance("exampleSqlserverInstance", {
        availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
        chargeType: "POSTPAID_BY_HOUR",
        period: 1,
        vpcId: vpc.vpcId,
        subnetId: subnet.subnetId,
        securityGroups: [securityGroup.securityGroupId],
        projectId: 0,
        memory: 2,
        storage: 20,
        maintenanceWeekSets: [
            1,
            2,
            3,
        ],
        maintenanceStartTime: "01:00",
        maintenanceTimeSpan: 3,
        tags: {
            createBy: "tfExample",
        },
    });
    const exampleSqlserverDb = new tencentcloud.SqlserverDb("exampleSqlserverDb", {
        instanceId: exampleSqlserverInstance.sqlserverInstanceId,
        charset: "Chinese_PRC_BIN",
        remark: "remark desc.",
    });
    const exampleSqlserverAccount = new tencentcloud.SqlserverAccount("exampleSqlserverAccount", {
        instanceId: exampleSqlserverInstance.sqlserverInstanceId,
        password: "PassWord@123",
        remark: "remark desc.",
    });
    const exampleSqlserverAccountDbAttachment = new tencentcloud.SqlserverAccountDbAttachment("exampleSqlserverAccountDbAttachment", {
        instanceId: exampleSqlserverInstance.sqlserverInstanceId,
        accountName: exampleSqlserverAccount.name,
        dbName: exampleSqlserverDb.name,
        privilege: "ReadWrite",
    });
    const test = tencentcloud.getSqlserverAccountDbAttachmentsOutput({
        instanceId: exampleSqlserverInstance.sqlserverInstanceId,
        accountName: exampleSqlserverAccountDbAttachment.accountName,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    zones = tencentcloud.get_availability_zones()
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        availability_zone=zones.zones[0].name,
        vpc_id=vpc.vpc_id,
        cidr_block="10.0.0.0/16",
        is_multicast=False)
    security_group = tencentcloud.SecurityGroup("securityGroup", description="desc.")
    example_sqlserver_instance = tencentcloud.SqlserverInstance("exampleSqlserverInstance",
        availability_zone=zones.zones[0].name,
        charge_type="POSTPAID_BY_HOUR",
        period=1,
        vpc_id=vpc.vpc_id,
        subnet_id=subnet.subnet_id,
        security_groups=[security_group.security_group_id],
        project_id=0,
        memory=2,
        storage=20,
        maintenance_week_sets=[
            1,
            2,
            3,
        ],
        maintenance_start_time="01:00",
        maintenance_time_span=3,
        tags={
            "createBy": "tfExample",
        })
    example_sqlserver_db = tencentcloud.SqlserverDb("exampleSqlserverDb",
        instance_id=example_sqlserver_instance.sqlserver_instance_id,
        charset="Chinese_PRC_BIN",
        remark="remark desc.")
    example_sqlserver_account = tencentcloud.SqlserverAccount("exampleSqlserverAccount",
        instance_id=example_sqlserver_instance.sqlserver_instance_id,
        password="PassWord@123",
        remark="remark desc.")
    example_sqlserver_account_db_attachment = tencentcloud.SqlserverAccountDbAttachment("exampleSqlserverAccountDbAttachment",
        instance_id=example_sqlserver_instance.sqlserver_instance_id,
        account_name=example_sqlserver_account.name,
        db_name=example_sqlserver_db.name,
        privilege="ReadWrite")
    test = tencentcloud.get_sqlserver_account_db_attachments_output(instance_id=example_sqlserver_instance.sqlserver_instance_id,
        account_name=example_sqlserver_account_db_attachment.account_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		zones, err := tencentcloud.GetAvailabilityZones(ctx, &tencentcloud.GetAvailabilityZonesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			AvailabilityZone: pulumi.String(zones.Zones[0].Name),
    			VpcId:            vpc.VpcId,
    			CidrBlock:        pulumi.String("10.0.0.0/16"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		securityGroup, err := tencentcloud.NewSecurityGroup(ctx, "securityGroup", &tencentcloud.SecurityGroupArgs{
    			Description: pulumi.String("desc."),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSqlserverInstance, err := tencentcloud.NewSqlserverInstance(ctx, "exampleSqlserverInstance", &tencentcloud.SqlserverInstanceArgs{
    			AvailabilityZone: pulumi.String(zones.Zones[0].Name),
    			ChargeType:       pulumi.String("POSTPAID_BY_HOUR"),
    			Period:           pulumi.Float64(1),
    			VpcId:            vpc.VpcId,
    			SubnetId:         subnet.SubnetId,
    			SecurityGroups: pulumi.StringArray{
    				securityGroup.SecurityGroupId,
    			},
    			ProjectId: pulumi.Float64(0),
    			Memory:    pulumi.Float64(2),
    			Storage:   pulumi.Float64(20),
    			MaintenanceWeekSets: pulumi.Float64Array{
    				pulumi.Float64(1),
    				pulumi.Float64(2),
    				pulumi.Float64(3),
    			},
    			MaintenanceStartTime: pulumi.String("01:00"),
    			MaintenanceTimeSpan:  pulumi.Float64(3),
    			Tags: pulumi.StringMap{
    				"createBy": pulumi.String("tfExample"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleSqlserverDb, err := tencentcloud.NewSqlserverDb(ctx, "exampleSqlserverDb", &tencentcloud.SqlserverDbArgs{
    			InstanceId: exampleSqlserverInstance.SqlserverInstanceId,
    			Charset:    pulumi.String("Chinese_PRC_BIN"),
    			Remark:     pulumi.String("remark desc."),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSqlserverAccount, err := tencentcloud.NewSqlserverAccount(ctx, "exampleSqlserverAccount", &tencentcloud.SqlserverAccountArgs{
    			InstanceId: exampleSqlserverInstance.SqlserverInstanceId,
    			Password:   pulumi.String("PassWord@123"),
    			Remark:     pulumi.String("remark desc."),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSqlserverAccountDbAttachment, err := tencentcloud.NewSqlserverAccountDbAttachment(ctx, "exampleSqlserverAccountDbAttachment", &tencentcloud.SqlserverAccountDbAttachmentArgs{
    			InstanceId:  exampleSqlserverInstance.SqlserverInstanceId,
    			AccountName: exampleSqlserverAccount.Name,
    			DbName:      exampleSqlserverDb.Name,
    			Privilege:   pulumi.String("ReadWrite"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.GetSqlserverAccountDbAttachmentsOutput(ctx, tencentcloud.GetSqlserverAccountDbAttachmentsOutputArgs{
    			InstanceId:  exampleSqlserverInstance.SqlserverInstanceId,
    			AccountName: exampleSqlserverAccountDbAttachment.AccountName,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var zones = Tencentcloud.GetAvailabilityZones.Invoke();
    
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            AvailabilityZone = zones.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Zones[0]?.Name),
            VpcId = vpc.VpcId,
            CidrBlock = "10.0.0.0/16",
            IsMulticast = false,
        });
    
        var securityGroup = new Tencentcloud.SecurityGroup("securityGroup", new()
        {
            Description = "desc.",
        });
    
        var exampleSqlserverInstance = new Tencentcloud.SqlserverInstance("exampleSqlserverInstance", new()
        {
            AvailabilityZone = zones.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Zones[0]?.Name),
            ChargeType = "POSTPAID_BY_HOUR",
            Period = 1,
            VpcId = vpc.VpcId,
            SubnetId = subnet.SubnetId,
            SecurityGroups = new[]
            {
                securityGroup.SecurityGroupId,
            },
            ProjectId = 0,
            Memory = 2,
            Storage = 20,
            MaintenanceWeekSets = new[]
            {
                1,
                2,
                3,
            },
            MaintenanceStartTime = "01:00",
            MaintenanceTimeSpan = 3,
            Tags = 
            {
                { "createBy", "tfExample" },
            },
        });
    
        var exampleSqlserverDb = new Tencentcloud.SqlserverDb("exampleSqlserverDb", new()
        {
            InstanceId = exampleSqlserverInstance.SqlserverInstanceId,
            Charset = "Chinese_PRC_BIN",
            Remark = "remark desc.",
        });
    
        var exampleSqlserverAccount = new Tencentcloud.SqlserverAccount("exampleSqlserverAccount", new()
        {
            InstanceId = exampleSqlserverInstance.SqlserverInstanceId,
            Password = "PassWord@123",
            Remark = "remark desc.",
        });
    
        var exampleSqlserverAccountDbAttachment = new Tencentcloud.SqlserverAccountDbAttachment("exampleSqlserverAccountDbAttachment", new()
        {
            InstanceId = exampleSqlserverInstance.SqlserverInstanceId,
            AccountName = exampleSqlserverAccount.Name,
            DbName = exampleSqlserverDb.Name,
            Privilege = "ReadWrite",
        });
    
        var test = Tencentcloud.GetSqlserverAccountDbAttachments.Invoke(new()
        {
            InstanceId = exampleSqlserverInstance.SqlserverInstanceId,
            AccountName = exampleSqlserverAccountDbAttachment.AccountName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesArgs;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.SecurityGroup;
    import com.pulumi.tencentcloud.SecurityGroupArgs;
    import com.pulumi.tencentcloud.SqlserverInstance;
    import com.pulumi.tencentcloud.SqlserverInstanceArgs;
    import com.pulumi.tencentcloud.SqlserverDb;
    import com.pulumi.tencentcloud.SqlserverDbArgs;
    import com.pulumi.tencentcloud.SqlserverAccount;
    import com.pulumi.tencentcloud.SqlserverAccountArgs;
    import com.pulumi.tencentcloud.SqlserverAccountDbAttachment;
    import com.pulumi.tencentcloud.SqlserverAccountDbAttachmentArgs;
    import com.pulumi.tencentcloud.inputs.GetSqlserverAccountDbAttachmentsArgs;
    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 zones = TencentcloudFunctions.getAvailabilityZones();
    
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .availabilityZone(zones.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.zones()[0].name()))
                .vpcId(vpc.vpcId())
                .cidrBlock("10.0.0.0/16")
                .isMulticast(false)
                .build());
    
            var securityGroup = new SecurityGroup("securityGroup", SecurityGroupArgs.builder()
                .description("desc.")
                .build());
    
            var exampleSqlserverInstance = new SqlserverInstance("exampleSqlserverInstance", SqlserverInstanceArgs.builder()
                .availabilityZone(zones.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.zones()[0].name()))
                .chargeType("POSTPAID_BY_HOUR")
                .period(1)
                .vpcId(vpc.vpcId())
                .subnetId(subnet.subnetId())
                .securityGroups(securityGroup.securityGroupId())
                .projectId(0)
                .memory(2)
                .storage(20)
                .maintenanceWeekSets(            
                    1,
                    2,
                    3)
                .maintenanceStartTime("01:00")
                .maintenanceTimeSpan(3)
                .tags(Map.of("createBy", "tfExample"))
                .build());
    
            var exampleSqlserverDb = new SqlserverDb("exampleSqlserverDb", SqlserverDbArgs.builder()
                .instanceId(exampleSqlserverInstance.sqlserverInstanceId())
                .charset("Chinese_PRC_BIN")
                .remark("remark desc.")
                .build());
    
            var exampleSqlserverAccount = new SqlserverAccount("exampleSqlserverAccount", SqlserverAccountArgs.builder()
                .instanceId(exampleSqlserverInstance.sqlserverInstanceId())
                .password("PassWord@123")
                .remark("remark desc.")
                .build());
    
            var exampleSqlserverAccountDbAttachment = new SqlserverAccountDbAttachment("exampleSqlserverAccountDbAttachment", SqlserverAccountDbAttachmentArgs.builder()
                .instanceId(exampleSqlserverInstance.sqlserverInstanceId())
                .accountName(exampleSqlserverAccount.name())
                .dbName(exampleSqlserverDb.name())
                .privilege("ReadWrite")
                .build());
    
            final var test = TencentcloudFunctions.getSqlserverAccountDbAttachments(GetSqlserverAccountDbAttachmentsArgs.builder()
                .instanceId(exampleSqlserverInstance.sqlserverInstanceId())
                .accountName(exampleSqlserverAccountDbAttachment.accountName())
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          availabilityZone: ${zones.zones[0].name}
          vpcId: ${vpc.vpcId}
          cidrBlock: 10.0.0.0/16
          isMulticast: false
      securityGroup:
        type: tencentcloud:SecurityGroup
        properties:
          description: desc.
      exampleSqlserverInstance:
        type: tencentcloud:SqlserverInstance
        properties:
          availabilityZone: ${zones.zones[0].name}
          chargeType: POSTPAID_BY_HOUR
          period: 1
          vpcId: ${vpc.vpcId}
          subnetId: ${subnet.subnetId}
          securityGroups:
            - ${securityGroup.securityGroupId}
          projectId: 0
          memory: 2
          storage: 20
          maintenanceWeekSets:
            - 1
            - 2
            - 3
          maintenanceStartTime: 01:00
          maintenanceTimeSpan: 3
          tags:
            createBy: tfExample
      exampleSqlserverDb:
        type: tencentcloud:SqlserverDb
        properties:
          instanceId: ${exampleSqlserverInstance.sqlserverInstanceId}
          charset: Chinese_PRC_BIN
          remark: remark desc.
      exampleSqlserverAccount:
        type: tencentcloud:SqlserverAccount
        properties:
          instanceId: ${exampleSqlserverInstance.sqlserverInstanceId}
          password: PassWord@123
          remark: remark desc.
      exampleSqlserverAccountDbAttachment:
        type: tencentcloud:SqlserverAccountDbAttachment
        properties:
          instanceId: ${exampleSqlserverInstance.sqlserverInstanceId}
          accountName: ${exampleSqlserverAccount.name}
          dbName: ${exampleSqlserverDb.name}
          privilege: ReadWrite
    variables:
      zones:
        fn::invoke:
          function: tencentcloud:getAvailabilityZones
          arguments: {}
      test:
        fn::invoke:
          function: tencentcloud:getSqlserverAccountDbAttachments
          arguments:
            instanceId: ${exampleSqlserverInstance.sqlserverInstanceId}
            accountName: ${exampleSqlserverAccountDbAttachment.accountName}
    

    Using getSqlserverAccountDbAttachments

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSqlserverAccountDbAttachments(args: GetSqlserverAccountDbAttachmentsArgs, opts?: InvokeOptions): Promise<GetSqlserverAccountDbAttachmentsResult>
    function getSqlserverAccountDbAttachmentsOutput(args: GetSqlserverAccountDbAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetSqlserverAccountDbAttachmentsResult>
    def get_sqlserver_account_db_attachments(account_name: Optional[str] = None,
                                             db_name: Optional[str] = None,
                                             id: Optional[str] = None,
                                             instance_id: Optional[str] = None,
                                             result_output_file: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetSqlserverAccountDbAttachmentsResult
    def get_sqlserver_account_db_attachments_output(account_name: Optional[pulumi.Input[str]] = None,
                                             db_name: Optional[pulumi.Input[str]] = None,
                                             id: Optional[pulumi.Input[str]] = None,
                                             instance_id: Optional[pulumi.Input[str]] = None,
                                             result_output_file: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetSqlserverAccountDbAttachmentsResult]
    func GetSqlserverAccountDbAttachments(ctx *Context, args *GetSqlserverAccountDbAttachmentsArgs, opts ...InvokeOption) (*GetSqlserverAccountDbAttachmentsResult, error)
    func GetSqlserverAccountDbAttachmentsOutput(ctx *Context, args *GetSqlserverAccountDbAttachmentsOutputArgs, opts ...InvokeOption) GetSqlserverAccountDbAttachmentsResultOutput

    > Note: This function is named GetSqlserverAccountDbAttachments in the Go SDK.

    public static class GetSqlserverAccountDbAttachments 
    {
        public static Task<GetSqlserverAccountDbAttachmentsResult> InvokeAsync(GetSqlserverAccountDbAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetSqlserverAccountDbAttachmentsResult> Invoke(GetSqlserverAccountDbAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSqlserverAccountDbAttachmentsResult> getSqlserverAccountDbAttachments(GetSqlserverAccountDbAttachmentsArgs args, InvokeOptions options)
    public static Output<GetSqlserverAccountDbAttachmentsResult> getSqlserverAccountDbAttachments(GetSqlserverAccountDbAttachmentsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getSqlserverAccountDbAttachments:getSqlserverAccountDbAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    SQL Server instance ID that the account belongs to.
    AccountName string
    Name of the SQL Server account to be queried.
    DbName string
    Name of the DB to be queried.
    Id string
    ResultOutputFile string
    Used to store results.
    InstanceId string
    SQL Server instance ID that the account belongs to.
    AccountName string
    Name of the SQL Server account to be queried.
    DbName string
    Name of the DB to be queried.
    Id string
    ResultOutputFile string
    Used to store results.
    instanceId String
    SQL Server instance ID that the account belongs to.
    accountName String
    Name of the SQL Server account to be queried.
    dbName String
    Name of the DB to be queried.
    id String
    resultOutputFile String
    Used to store results.
    instanceId string
    SQL Server instance ID that the account belongs to.
    accountName string
    Name of the SQL Server account to be queried.
    dbName string
    Name of the DB to be queried.
    id string
    resultOutputFile string
    Used to store results.
    instance_id str
    SQL Server instance ID that the account belongs to.
    account_name str
    Name of the SQL Server account to be queried.
    db_name str
    Name of the DB to be queried.
    id str
    result_output_file str
    Used to store results.
    instanceId String
    SQL Server instance ID that the account belongs to.
    accountName String
    Name of the SQL Server account to be queried.
    dbName String
    Name of the DB to be queried.
    id String
    resultOutputFile String
    Used to store results.

    getSqlserverAccountDbAttachments Result

    The following output properties are available:

    Id string
    InstanceId string
    SQL Server instance ID that the account belongs to.
    Lists List<GetSqlserverAccountDbAttachmentsList>
    A list of SQL Server account. Each element contains the following attributes:
    AccountName string
    SQL Server account name.
    DbName string
    SQL Server DB name.
    ResultOutputFile string
    Id string
    InstanceId string
    SQL Server instance ID that the account belongs to.
    Lists []GetSqlserverAccountDbAttachmentsList
    A list of SQL Server account. Each element contains the following attributes:
    AccountName string
    SQL Server account name.
    DbName string
    SQL Server DB name.
    ResultOutputFile string
    id String
    instanceId String
    SQL Server instance ID that the account belongs to.
    lists List<GetSqlserverAccountDbAttachmentsList>
    A list of SQL Server account. Each element contains the following attributes:
    accountName String
    SQL Server account name.
    dbName String
    SQL Server DB name.
    resultOutputFile String
    id string
    instanceId string
    SQL Server instance ID that the account belongs to.
    lists GetSqlserverAccountDbAttachmentsList[]
    A list of SQL Server account. Each element contains the following attributes:
    accountName string
    SQL Server account name.
    dbName string
    SQL Server DB name.
    resultOutputFile string
    id str
    instance_id str
    SQL Server instance ID that the account belongs to.
    lists Sequence[GetSqlserverAccountDbAttachmentsList]
    A list of SQL Server account. Each element contains the following attributes:
    account_name str
    SQL Server account name.
    db_name str
    SQL Server DB name.
    result_output_file str
    id String
    instanceId String
    SQL Server instance ID that the account belongs to.
    lists List<Property Map>
    A list of SQL Server account. Each element contains the following attributes:
    accountName String
    SQL Server account name.
    dbName String
    SQL Server DB name.
    resultOutputFile String

    Supporting Types

    GetSqlserverAccountDbAttachmentsList

    AccountName string
    Name of the SQL Server account to be queried.
    DbName string
    Name of the DB to be queried.
    InstanceId string
    SQL Server instance ID that the account belongs to.
    Privilege string
    Privilege of the account on DB. Valid value are ReadOnly, ReadWrite.
    AccountName string
    Name of the SQL Server account to be queried.
    DbName string
    Name of the DB to be queried.
    InstanceId string
    SQL Server instance ID that the account belongs to.
    Privilege string
    Privilege of the account on DB. Valid value are ReadOnly, ReadWrite.
    accountName String
    Name of the SQL Server account to be queried.
    dbName String
    Name of the DB to be queried.
    instanceId String
    SQL Server instance ID that the account belongs to.
    privilege String
    Privilege of the account on DB. Valid value are ReadOnly, ReadWrite.
    accountName string
    Name of the SQL Server account to be queried.
    dbName string
    Name of the DB to be queried.
    instanceId string
    SQL Server instance ID that the account belongs to.
    privilege string
    Privilege of the account on DB. Valid value are ReadOnly, ReadWrite.
    account_name str
    Name of the SQL Server account to be queried.
    db_name str
    Name of the DB to be queried.
    instance_id str
    SQL Server instance ID that the account belongs to.
    privilege str
    Privilege of the account on DB. Valid value are ReadOnly, ReadWrite.
    accountName String
    Name of the SQL Server account to be queried.
    dbName String
    Name of the DB to be queried.
    instanceId String
    SQL Server instance ID that the account belongs to.
    privilege String
    Privilege of the account on DB. Valid value are ReadOnly, ReadWrite.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack