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

tencentcloud.getCynosdbAccountAllGrantPrivileges

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 cynosdb account_all_grant_privileges

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const accountAllGrantPrivileges = tencentcloud.getCynosdbAccountAllGrantPrivileges({
        account: {
            accountName: "keep_dts",
            host: "%",
        },
        clusterId: "cynosdbmysql-bws8h88b",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    account_all_grant_privileges = tencentcloud.get_cynosdb_account_all_grant_privileges(account={
            "account_name": "keep_dts",
            "host": "%",
        },
        cluster_id="cynosdbmysql-bws8h88b")
    
    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.GetCynosdbAccountAllGrantPrivileges(ctx, &tencentcloud.GetCynosdbAccountAllGrantPrivilegesArgs{
    			Account: tencentcloud.GetCynosdbAccountAllGrantPrivilegesAccount{
    				AccountName: "keep_dts",
    				Host:        pulumi.StringRef("%"),
    			},
    			ClusterId: "cynosdbmysql-bws8h88b",
    		}, 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 accountAllGrantPrivileges = Tencentcloud.GetCynosdbAccountAllGrantPrivileges.Invoke(new()
        {
            Account = new Tencentcloud.Inputs.GetCynosdbAccountAllGrantPrivilegesAccountInputArgs
            {
                AccountName = "keep_dts",
                Host = "%",
            },
            ClusterId = "cynosdbmysql-bws8h88b",
        });
    
    });
    
    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.GetCynosdbAccountAllGrantPrivilegesArgs;
    import com.pulumi.tencentcloud.inputs.GetCynosdbAccountAllGrantPrivilegesAccountArgs;
    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 accountAllGrantPrivileges = TencentcloudFunctions.getCynosdbAccountAllGrantPrivileges(GetCynosdbAccountAllGrantPrivilegesArgs.builder()
                .account(GetCynosdbAccountAllGrantPrivilegesAccountArgs.builder()
                    .accountName("keep_dts")
                    .host("%")
                    .build())
                .clusterId("cynosdbmysql-bws8h88b")
                .build());
    
        }
    }
    
    variables:
      accountAllGrantPrivileges:
        fn::invoke:
          function: tencentcloud:getCynosdbAccountAllGrantPrivileges
          arguments:
            account:
              accountName: keep_dts
              host: '%'
            clusterId: cynosdbmysql-bws8h88b
    

    Using getCynosdbAccountAllGrantPrivileges

    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 getCynosdbAccountAllGrantPrivileges(args: GetCynosdbAccountAllGrantPrivilegesArgs, opts?: InvokeOptions): Promise<GetCynosdbAccountAllGrantPrivilegesResult>
    function getCynosdbAccountAllGrantPrivilegesOutput(args: GetCynosdbAccountAllGrantPrivilegesOutputArgs, opts?: InvokeOptions): Output<GetCynosdbAccountAllGrantPrivilegesResult>
    def get_cynosdb_account_all_grant_privileges(account: Optional[GetCynosdbAccountAllGrantPrivilegesAccount] = None,
                                                 cluster_id: Optional[str] = None,
                                                 id: Optional[str] = None,
                                                 result_output_file: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetCynosdbAccountAllGrantPrivilegesResult
    def get_cynosdb_account_all_grant_privileges_output(account: Optional[pulumi.Input[GetCynosdbAccountAllGrantPrivilegesAccountArgs]] = None,
                                                 cluster_id: Optional[pulumi.Input[str]] = None,
                                                 id: Optional[pulumi.Input[str]] = None,
                                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbAccountAllGrantPrivilegesResult]
    func GetCynosdbAccountAllGrantPrivileges(ctx *Context, args *GetCynosdbAccountAllGrantPrivilegesArgs, opts ...InvokeOption) (*GetCynosdbAccountAllGrantPrivilegesResult, error)
    func GetCynosdbAccountAllGrantPrivilegesOutput(ctx *Context, args *GetCynosdbAccountAllGrantPrivilegesOutputArgs, opts ...InvokeOption) GetCynosdbAccountAllGrantPrivilegesResultOutput

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

    public static class GetCynosdbAccountAllGrantPrivileges 
    {
        public static Task<GetCynosdbAccountAllGrantPrivilegesResult> InvokeAsync(GetCynosdbAccountAllGrantPrivilegesArgs args, InvokeOptions? opts = null)
        public static Output<GetCynosdbAccountAllGrantPrivilegesResult> Invoke(GetCynosdbAccountAllGrantPrivilegesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCynosdbAccountAllGrantPrivilegesResult> getCynosdbAccountAllGrantPrivileges(GetCynosdbAccountAllGrantPrivilegesArgs args, InvokeOptions options)
    public static Output<GetCynosdbAccountAllGrantPrivilegesResult> getCynosdbAccountAllGrantPrivileges(GetCynosdbAccountAllGrantPrivilegesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCynosdbAccountAllGrantPrivileges:getCynosdbAccountAllGrantPrivileges
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Account GetCynosdbAccountAllGrantPrivilegesAccount
    account information.
    ClusterId string
    Cluster ID.
    Id string
    ResultOutputFile string
    Used to save results.
    Account GetCynosdbAccountAllGrantPrivilegesAccount
    account information.
    ClusterId string
    Cluster ID.
    Id string
    ResultOutputFile string
    Used to save results.
    account GetCynosdbAccountAllGrantPrivilegesAccount
    account information.
    clusterId String
    Cluster ID.
    id String
    resultOutputFile String
    Used to save results.
    account GetCynosdbAccountAllGrantPrivilegesAccount
    account information.
    clusterId string
    Cluster ID.
    id string
    resultOutputFile string
    Used to save results.
    account GetCynosdbAccountAllGrantPrivilegesAccount
    account information.
    cluster_id str
    Cluster ID.
    id str
    result_output_file str
    Used to save results.
    account Property Map
    account information.
    clusterId String
    Cluster ID.
    id String
    resultOutputFile String
    Used to save results.

    getCynosdbAccountAllGrantPrivileges Result

    The following output properties are available:

    Account GetCynosdbAccountAllGrantPrivilegesAccount
    ClusterId string
    DatabasePrivileges List<GetCynosdbAccountAllGrantPrivilegesDatabasePrivilege>
    Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
    GlobalPrivileges List<string>
    Global permission note: This field may return null, indicating that a valid value cannot be obtained.
    Id string
    PrivilegeStatements List<string>
    Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
    TablePrivileges List<GetCynosdbAccountAllGrantPrivilegesTablePrivilege>
    Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
    ResultOutputFile string
    Account GetCynosdbAccountAllGrantPrivilegesAccount
    ClusterId string
    DatabasePrivileges []GetCynosdbAccountAllGrantPrivilegesDatabasePrivilege
    Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
    GlobalPrivileges []string
    Global permission note: This field may return null, indicating that a valid value cannot be obtained.
    Id string
    PrivilegeStatements []string
    Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
    TablePrivileges []GetCynosdbAccountAllGrantPrivilegesTablePrivilege
    Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
    ResultOutputFile string
    account GetCynosdbAccountAllGrantPrivilegesAccount
    clusterId String
    databasePrivileges List<GetCynosdbAccountAllGrantPrivilegesDatabasePrivilege>
    Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
    globalPrivileges List<String>
    Global permission note: This field may return null, indicating that a valid value cannot be obtained.
    id String
    privilegeStatements List<String>
    Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
    tablePrivileges List<GetCynosdbAccountAllGrantPrivilegesTablePrivilege>
    Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
    resultOutputFile String
    account GetCynosdbAccountAllGrantPrivilegesAccount
    clusterId string
    databasePrivileges GetCynosdbAccountAllGrantPrivilegesDatabasePrivilege[]
    Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
    globalPrivileges string[]
    Global permission note: This field may return null, indicating that a valid value cannot be obtained.
    id string
    privilegeStatements string[]
    Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
    tablePrivileges GetCynosdbAccountAllGrantPrivilegesTablePrivilege[]
    Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
    resultOutputFile string
    account GetCynosdbAccountAllGrantPrivilegesAccount
    cluster_id str
    database_privileges Sequence[GetCynosdbAccountAllGrantPrivilegesDatabasePrivilege]
    Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
    global_privileges Sequence[str]
    Global permission note: This field may return null, indicating that a valid value cannot be obtained.
    id str
    privilege_statements Sequence[str]
    Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
    table_privileges Sequence[GetCynosdbAccountAllGrantPrivilegesTablePrivilege]
    Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
    result_output_file str
    account Property Map
    clusterId String
    databasePrivileges List<Property Map>
    Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
    globalPrivileges List<String>
    Global permission note: This field may return null, indicating that a valid value cannot be obtained.
    id String
    privilegeStatements List<String>
    Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
    tablePrivileges List<Property Map>
    Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
    resultOutputFile String

    Supporting Types

    GetCynosdbAccountAllGrantPrivilegesAccount

    AccountName string
    Account.
    Host string
    Host, default %.
    AccountName string
    Account.
    Host string
    Host, default %.
    accountName String
    Account.
    host String
    Host, default %.
    accountName string
    Account.
    host string
    Host, default %.
    account_name str
    Account.
    host str
    Host, default %.
    accountName String
    Account.
    host String
    Host, default %.

    GetCynosdbAccountAllGrantPrivilegesDatabasePrivilege

    Db string
    Database name.
    Privileges List<string>
    Permission List.
    Db string
    Database name.
    Privileges []string
    Permission List.
    db String
    Database name.
    privileges List<String>
    Permission List.
    db string
    Database name.
    privileges string[]
    Permission List.
    db str
    Database name.
    privileges Sequence[str]
    Permission List.
    db String
    Database name.
    privileges List<String>
    Permission List.

    GetCynosdbAccountAllGrantPrivilegesTablePrivilege

    Db string
    Database name.
    Privileges List<string>
    Permission List.
    TableName string
    Table Name.
    Db string
    Database name.
    Privileges []string
    Permission List.
    TableName string
    Table Name.
    db String
    Database name.
    privileges List<String>
    Permission List.
    tableName String
    Table Name.
    db string
    Database name.
    privileges string[]
    Permission List.
    tableName string
    Table Name.
    db str
    Database name.
    privileges Sequence[str]
    Permission List.
    table_name str
    Table Name.
    db String
    Database name.
    privileges List<String>
    Permission List.
    tableName String
    Table Name.

    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