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

tencentcloud.getSqlserverReadonlyGroups

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 readonly groups.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getSqlserverDbs({
        instanceId: "mssql-ds1xhnt9",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_sqlserver_dbs(instance_id="mssql-ds1xhnt9")
    
    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 {
    		_, err := tencentcloud.GetSqlserverDbs(ctx, &tencentcloud.GetSqlserverDbsArgs{
    			InstanceId: "mssql-ds1xhnt9",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Tencentcloud.GetSqlserverDbs.Invoke(new()
        {
            InstanceId = "mssql-ds1xhnt9",
        });
    
    });
    
    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.GetSqlserverDbsArgs;
    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 example = TencentcloudFunctions.getSqlserverDbs(GetSqlserverDbsArgs.builder()
                .instanceId("mssql-ds1xhnt9")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getSqlserverDbs
          arguments:
            instanceId: mssql-ds1xhnt9
    

    Using getSqlserverReadonlyGroups

    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 getSqlserverReadonlyGroups(args: GetSqlserverReadonlyGroupsArgs, opts?: InvokeOptions): Promise<GetSqlserverReadonlyGroupsResult>
    function getSqlserverReadonlyGroupsOutput(args: GetSqlserverReadonlyGroupsOutputArgs, opts?: InvokeOptions): Output<GetSqlserverReadonlyGroupsResult>
    def get_sqlserver_readonly_groups(id: Optional[str] = None,
                                      master_instance_id: Optional[str] = None,
                                      result_output_file: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetSqlserverReadonlyGroupsResult
    def get_sqlserver_readonly_groups_output(id: Optional[pulumi.Input[str]] = None,
                                      master_instance_id: Optional[pulumi.Input[str]] = None,
                                      result_output_file: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetSqlserverReadonlyGroupsResult]
    func GetSqlserverReadonlyGroups(ctx *Context, args *GetSqlserverReadonlyGroupsArgs, opts ...InvokeOption) (*GetSqlserverReadonlyGroupsResult, error)
    func GetSqlserverReadonlyGroupsOutput(ctx *Context, args *GetSqlserverReadonlyGroupsOutputArgs, opts ...InvokeOption) GetSqlserverReadonlyGroupsResultOutput

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

    public static class GetSqlserverReadonlyGroups 
    {
        public static Task<GetSqlserverReadonlyGroupsResult> InvokeAsync(GetSqlserverReadonlyGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetSqlserverReadonlyGroupsResult> Invoke(GetSqlserverReadonlyGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSqlserverReadonlyGroupsResult> getSqlserverReadonlyGroups(GetSqlserverReadonlyGroupsArgs args, InvokeOptions options)
    public static Output<GetSqlserverReadonlyGroupsResult> getSqlserverReadonlyGroups(GetSqlserverReadonlyGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getSqlserverReadonlyGroups:getSqlserverReadonlyGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the readonly group.
    MasterInstanceId string
    Master SQL Server instance ID.
    ResultOutputFile string
    Used to store results.
    Id string
    ID of the readonly group.
    MasterInstanceId string
    Master SQL Server instance ID.
    ResultOutputFile string
    Used to store results.
    id String
    ID of the readonly group.
    masterInstanceId String
    Master SQL Server instance ID.
    resultOutputFile String
    Used to store results.
    id string
    ID of the readonly group.
    masterInstanceId string
    Master SQL Server instance ID.
    resultOutputFile string
    Used to store results.
    id str
    ID of the readonly group.
    master_instance_id str
    Master SQL Server instance ID.
    result_output_file str
    Used to store results.
    id String
    ID of the readonly group.
    masterInstanceId String
    Master SQL Server instance ID.
    resultOutputFile String
    Used to store results.

    getSqlserverReadonlyGroups Result

    The following output properties are available:

    Id string
    ID of the readonly group.
    Lists List<GetSqlserverReadonlyGroupsList>
    A list of SQL Server readonly group. Each element contains the following attributes:
    MasterInstanceId string
    Master instance id.
    ResultOutputFile string
    Id string
    ID of the readonly group.
    Lists []GetSqlserverReadonlyGroupsList
    A list of SQL Server readonly group. Each element contains the following attributes:
    MasterInstanceId string
    Master instance id.
    ResultOutputFile string
    id String
    ID of the readonly group.
    lists List<GetSqlserverReadonlyGroupsList>
    A list of SQL Server readonly group. Each element contains the following attributes:
    masterInstanceId String
    Master instance id.
    resultOutputFile String
    id string
    ID of the readonly group.
    lists GetSqlserverReadonlyGroupsList[]
    A list of SQL Server readonly group. Each element contains the following attributes:
    masterInstanceId string
    Master instance id.
    resultOutputFile string
    id str
    ID of the readonly group.
    lists Sequence[GetSqlserverReadonlyGroupsList]
    A list of SQL Server readonly group. Each element contains the following attributes:
    master_instance_id str
    Master instance id.
    result_output_file str
    id String
    ID of the readonly group.
    lists List<Property Map>
    A list of SQL Server readonly group. Each element contains the following attributes:
    masterInstanceId String
    Master instance id.
    resultOutputFile String

    Supporting Types

    GetSqlserverReadonlyGroupsList

    Id string
    ID of the readonly group.
    IsOfflineDelay double
    Indicate whether to offline delayed readonly instances.
    MasterInstanceId string
    Master SQL Server instance ID.
    MaxDelayTime double
    Maximum delay time of the readonly instances.
    MinInstances double
    Minimum readonly instances that stays in the group.
    Name string
    Name of the readonly group.
    ReadonlyInstanceSets List<string>
    Readonly instance ID set of the readonly group.
    Status double
    Status of the readonly group. 1 for running, 5 for applying.
    Vip string
    Virtual IP address of the readonly group.
    Vport double
    Virtual port of the readonly group.
    Id string
    ID of the readonly group.
    IsOfflineDelay float64
    Indicate whether to offline delayed readonly instances.
    MasterInstanceId string
    Master SQL Server instance ID.
    MaxDelayTime float64
    Maximum delay time of the readonly instances.
    MinInstances float64
    Minimum readonly instances that stays in the group.
    Name string
    Name of the readonly group.
    ReadonlyInstanceSets []string
    Readonly instance ID set of the readonly group.
    Status float64
    Status of the readonly group. 1 for running, 5 for applying.
    Vip string
    Virtual IP address of the readonly group.
    Vport float64
    Virtual port of the readonly group.
    id String
    ID of the readonly group.
    isOfflineDelay Double
    Indicate whether to offline delayed readonly instances.
    masterInstanceId String
    Master SQL Server instance ID.
    maxDelayTime Double
    Maximum delay time of the readonly instances.
    minInstances Double
    Minimum readonly instances that stays in the group.
    name String
    Name of the readonly group.
    readonlyInstanceSets List<String>
    Readonly instance ID set of the readonly group.
    status Double
    Status of the readonly group. 1 for running, 5 for applying.
    vip String
    Virtual IP address of the readonly group.
    vport Double
    Virtual port of the readonly group.
    id string
    ID of the readonly group.
    isOfflineDelay number
    Indicate whether to offline delayed readonly instances.
    masterInstanceId string
    Master SQL Server instance ID.
    maxDelayTime number
    Maximum delay time of the readonly instances.
    minInstances number
    Minimum readonly instances that stays in the group.
    name string
    Name of the readonly group.
    readonlyInstanceSets string[]
    Readonly instance ID set of the readonly group.
    status number
    Status of the readonly group. 1 for running, 5 for applying.
    vip string
    Virtual IP address of the readonly group.
    vport number
    Virtual port of the readonly group.
    id str
    ID of the readonly group.
    is_offline_delay float
    Indicate whether to offline delayed readonly instances.
    master_instance_id str
    Master SQL Server instance ID.
    max_delay_time float
    Maximum delay time of the readonly instances.
    min_instances float
    Minimum readonly instances that stays in the group.
    name str
    Name of the readonly group.
    readonly_instance_sets Sequence[str]
    Readonly instance ID set of the readonly group.
    status float
    Status of the readonly group. 1 for running, 5 for applying.
    vip str
    Virtual IP address of the readonly group.
    vport float
    Virtual port of the readonly group.
    id String
    ID of the readonly group.
    isOfflineDelay Number
    Indicate whether to offline delayed readonly instances.
    masterInstanceId String
    Master SQL Server instance ID.
    maxDelayTime Number
    Maximum delay time of the readonly instances.
    minInstances Number
    Minimum readonly instances that stays in the group.
    name String
    Name of the readonly group.
    readonlyInstanceSets List<String>
    Readonly instance ID set of the readonly group.
    status Number
    Status of the readonly group. 1 for running, 5 for applying.
    vip String
    Virtual IP address of the readonly group.
    vport Number
    Virtual port of the readonly group.

    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