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

tencentcloud.getMysqlSupportedPrivileges

Explore with Pulumi AI

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

    Use this data source to query detailed information of mysql supported_privileges

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const supportedPrivileges = tencentcloud.getMysqlSupportedPrivileges({
        instanceId: "cdb-fitq5t9h",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    supported_privileges = tencentcloud.get_mysql_supported_privileges(instance_id="cdb-fitq5t9h")
    
    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.GetMysqlSupportedPrivileges(ctx, &tencentcloud.GetMysqlSupportedPrivilegesArgs{
    			InstanceId: "cdb-fitq5t9h",
    		}, 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 supportedPrivileges = Tencentcloud.GetMysqlSupportedPrivileges.Invoke(new()
        {
            InstanceId = "cdb-fitq5t9h",
        });
    
    });
    
    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.GetMysqlSupportedPrivilegesArgs;
    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 supportedPrivileges = TencentcloudFunctions.getMysqlSupportedPrivileges(GetMysqlSupportedPrivilegesArgs.builder()
                .instanceId("cdb-fitq5t9h")
                .build());
    
        }
    }
    
    variables:
      supportedPrivileges:
        fn::invoke:
          function: tencentcloud:getMysqlSupportedPrivileges
          arguments:
            instanceId: cdb-fitq5t9h
    

    Using getMysqlSupportedPrivileges

    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 getMysqlSupportedPrivileges(args: GetMysqlSupportedPrivilegesArgs, opts?: InvokeOptions): Promise<GetMysqlSupportedPrivilegesResult>
    function getMysqlSupportedPrivilegesOutput(args: GetMysqlSupportedPrivilegesOutputArgs, opts?: InvokeOptions): Output<GetMysqlSupportedPrivilegesResult>
    def get_mysql_supported_privileges(id: Optional[str] = None,
                                       instance_id: Optional[str] = None,
                                       result_output_file: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetMysqlSupportedPrivilegesResult
    def get_mysql_supported_privileges_output(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[GetMysqlSupportedPrivilegesResult]
    func GetMysqlSupportedPrivileges(ctx *Context, args *GetMysqlSupportedPrivilegesArgs, opts ...InvokeOption) (*GetMysqlSupportedPrivilegesResult, error)
    func GetMysqlSupportedPrivilegesOutput(ctx *Context, args *GetMysqlSupportedPrivilegesOutputArgs, opts ...InvokeOption) GetMysqlSupportedPrivilegesResultOutput

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

    public static class GetMysqlSupportedPrivileges 
    {
        public static Task<GetMysqlSupportedPrivilegesResult> InvokeAsync(GetMysqlSupportedPrivilegesArgs args, InvokeOptions? opts = null)
        public static Output<GetMysqlSupportedPrivilegesResult> Invoke(GetMysqlSupportedPrivilegesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMysqlSupportedPrivilegesResult> getMysqlSupportedPrivileges(GetMysqlSupportedPrivilegesArgs args, InvokeOptions options)
    public static Output<GetMysqlSupportedPrivilegesResult> getMysqlSupportedPrivileges(GetMysqlSupportedPrivilegesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMysqlSupportedPrivileges:getMysqlSupportedPrivileges
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    id String
    resultOutputFile String
    Used to save results.

    getMysqlSupportedPrivileges Result

    The following output properties are available:

    ColumnSupportedPrivileges List<string>
    The database column permissions supported by the instance.
    DatabaseSupportedPrivileges List<string>
    Database permissions supported by the instance.
    GlobalSupportedPrivileges List<string>
    Global permissions supported by the instance.
    Id string
    InstanceId string
    TableSupportedPrivileges List<string>
    Database table permissions supported by the instance.
    ResultOutputFile string
    ColumnSupportedPrivileges []string
    The database column permissions supported by the instance.
    DatabaseSupportedPrivileges []string
    Database permissions supported by the instance.
    GlobalSupportedPrivileges []string
    Global permissions supported by the instance.
    Id string
    InstanceId string
    TableSupportedPrivileges []string
    Database table permissions supported by the instance.
    ResultOutputFile string
    columnSupportedPrivileges List<String>
    The database column permissions supported by the instance.
    databaseSupportedPrivileges List<String>
    Database permissions supported by the instance.
    globalSupportedPrivileges List<String>
    Global permissions supported by the instance.
    id String
    instanceId String
    tableSupportedPrivileges List<String>
    Database table permissions supported by the instance.
    resultOutputFile String
    columnSupportedPrivileges string[]
    The database column permissions supported by the instance.
    databaseSupportedPrivileges string[]
    Database permissions supported by the instance.
    globalSupportedPrivileges string[]
    Global permissions supported by the instance.
    id string
    instanceId string
    tableSupportedPrivileges string[]
    Database table permissions supported by the instance.
    resultOutputFile string
    column_supported_privileges Sequence[str]
    The database column permissions supported by the instance.
    database_supported_privileges Sequence[str]
    Database permissions supported by the instance.
    global_supported_privileges Sequence[str]
    Global permissions supported by the instance.
    id str
    instance_id str
    table_supported_privileges Sequence[str]
    Database table permissions supported by the instance.
    result_output_file str
    columnSupportedPrivileges List<String>
    The database column permissions supported by the instance.
    databaseSupportedPrivileges List<String>
    Database permissions supported by the instance.
    globalSupportedPrivileges List<String>
    Global permissions supported by the instance.
    id String
    instanceId String
    tableSupportedPrivileges List<String>
    Database table permissions supported by the instance.
    resultOutputFile String

    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