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

tencentcloud.MariadbAccountPrivileges

Explore with Pulumi AI

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

    Provides a resource to create a mariadb account_privileges

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const accountPrivileges = new tencentcloud.MariadbAccountPrivileges("accountPrivileges", {
        accounts: {
            host: "127.0.0.1",
            user: "keep-modify-privileges",
        },
        globalPrivileges: [
            "ALTER",
            "CREATE",
            "DELETE",
            "SELECT",
            "UPDATE",
            "DROP",
        ],
        instanceId: "tdsql-9vqvls95",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    account_privileges = tencentcloud.MariadbAccountPrivileges("accountPrivileges",
        accounts={
            "host": "127.0.0.1",
            "user": "keep-modify-privileges",
        },
        global_privileges=[
            "ALTER",
            "CREATE",
            "DELETE",
            "SELECT",
            "UPDATE",
            "DROP",
        ],
        instance_id="tdsql-9vqvls95")
    
    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.NewMariadbAccountPrivileges(ctx, "accountPrivileges", &tencentcloud.MariadbAccountPrivilegesArgs{
    			Accounts: &tencentcloud.MariadbAccountPrivilegesAccountsArgs{
    				Host: pulumi.String("127.0.0.1"),
    				User: pulumi.String("keep-modify-privileges"),
    			},
    			GlobalPrivileges: pulumi.StringArray{
    				pulumi.String("ALTER"),
    				pulumi.String("CREATE"),
    				pulumi.String("DELETE"),
    				pulumi.String("SELECT"),
    				pulumi.String("UPDATE"),
    				pulumi.String("DROP"),
    			},
    			InstanceId: pulumi.String("tdsql-9vqvls95"),
    		})
    		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 accountPrivileges = new Tencentcloud.MariadbAccountPrivileges("accountPrivileges", new()
        {
            Accounts = new Tencentcloud.Inputs.MariadbAccountPrivilegesAccountsArgs
            {
                Host = "127.0.0.1",
                User = "keep-modify-privileges",
            },
            GlobalPrivileges = new[]
            {
                "ALTER",
                "CREATE",
                "DELETE",
                "SELECT",
                "UPDATE",
                "DROP",
            },
            InstanceId = "tdsql-9vqvls95",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MariadbAccountPrivileges;
    import com.pulumi.tencentcloud.MariadbAccountPrivilegesArgs;
    import com.pulumi.tencentcloud.inputs.MariadbAccountPrivilegesAccountsArgs;
    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 accountPrivileges = new MariadbAccountPrivileges("accountPrivileges", MariadbAccountPrivilegesArgs.builder()
                .accounts(MariadbAccountPrivilegesAccountsArgs.builder()
                    .host("127.0.0.1")
                    .user("keep-modify-privileges")
                    .build())
                .globalPrivileges(            
                    "ALTER",
                    "CREATE",
                    "DELETE",
                    "SELECT",
                    "UPDATE",
                    "DROP")
                .instanceId("tdsql-9vqvls95")
                .build());
    
        }
    }
    
    resources:
      accountPrivileges:
        type: tencentcloud:MariadbAccountPrivileges
        properties:
          accounts:
            host: 127.0.0.1
            user: keep-modify-privileges
          globalPrivileges:
            - ALTER
            - CREATE
            - DELETE
            - SELECT
            - UPDATE
            - DROP
          instanceId: tdsql-9vqvls95
    

    Create MariadbAccountPrivileges Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MariadbAccountPrivileges(name: string, args: MariadbAccountPrivilegesArgs, opts?: CustomResourceOptions);
    @overload
    def MariadbAccountPrivileges(resource_name: str,
                                 args: MariadbAccountPrivilegesArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def MariadbAccountPrivileges(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 accounts: Optional[MariadbAccountPrivilegesAccountsArgs] = None,
                                 instance_id: Optional[str] = None,
                                 column_privileges: Optional[Sequence[MariadbAccountPrivilegesColumnPrivilegeArgs]] = None,
                                 database_privileges: Optional[Sequence[MariadbAccountPrivilegesDatabasePrivilegeArgs]] = None,
                                 function_privileges: Optional[Sequence[MariadbAccountPrivilegesFunctionPrivilegeArgs]] = None,
                                 global_privileges: Optional[Sequence[str]] = None,
                                 mariadb_account_privileges_id: Optional[str] = None,
                                 procedure_privileges: Optional[Sequence[MariadbAccountPrivilegesProcedurePrivilegeArgs]] = None,
                                 table_privileges: Optional[Sequence[MariadbAccountPrivilegesTablePrivilegeArgs]] = None,
                                 view_privileges: Optional[Sequence[MariadbAccountPrivilegesViewPrivilegeArgs]] = None)
    func NewMariadbAccountPrivileges(ctx *Context, name string, args MariadbAccountPrivilegesArgs, opts ...ResourceOption) (*MariadbAccountPrivileges, error)
    public MariadbAccountPrivileges(string name, MariadbAccountPrivilegesArgs args, CustomResourceOptions? opts = null)
    public MariadbAccountPrivileges(String name, MariadbAccountPrivilegesArgs args)
    public MariadbAccountPrivileges(String name, MariadbAccountPrivilegesArgs args, CustomResourceOptions options)
    
    type: tencentcloud:MariadbAccountPrivileges
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MariadbAccountPrivilegesArgs
    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 MariadbAccountPrivilegesArgs
    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 MariadbAccountPrivilegesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MariadbAccountPrivilegesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MariadbAccountPrivilegesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MariadbAccountPrivileges Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MariadbAccountPrivileges resource accepts the following input properties:

    Accounts MariadbAccountPrivilegesAccounts
    account information.
    InstanceId string
    instance id.
    ColumnPrivileges List<MariadbAccountPrivilegesColumnPrivilege>
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    DatabasePrivileges List<MariadbAccountPrivilegesDatabasePrivilege>
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    FunctionPrivileges List<MariadbAccountPrivilegesFunctionPrivilege>
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    GlobalPrivileges List<string>
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    MariadbAccountPrivilegesId string
    ID of the resource.
    ProcedurePrivileges List<MariadbAccountPrivilegesProcedurePrivilege>
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    TablePrivileges List<MariadbAccountPrivilegesTablePrivilege>
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    ViewPrivileges List<MariadbAccountPrivilegesViewPrivilege>
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    Accounts MariadbAccountPrivilegesAccountsArgs
    account information.
    InstanceId string
    instance id.
    ColumnPrivileges []MariadbAccountPrivilegesColumnPrivilegeArgs
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    DatabasePrivileges []MariadbAccountPrivilegesDatabasePrivilegeArgs
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    FunctionPrivileges []MariadbAccountPrivilegesFunctionPrivilegeArgs
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    GlobalPrivileges []string
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    MariadbAccountPrivilegesId string
    ID of the resource.
    ProcedurePrivileges []MariadbAccountPrivilegesProcedurePrivilegeArgs
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    TablePrivileges []MariadbAccountPrivilegesTablePrivilegeArgs
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    ViewPrivileges []MariadbAccountPrivilegesViewPrivilegeArgs
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    accounts MariadbAccountPrivilegesAccounts
    account information.
    instanceId String
    instance id.
    columnPrivileges List<MariadbAccountPrivilegesColumnPrivilege>
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    databasePrivileges List<MariadbAccountPrivilegesDatabasePrivilege>
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    functionPrivileges List<MariadbAccountPrivilegesFunctionPrivilege>
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    globalPrivileges List<String>
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    mariadbAccountPrivilegesId String
    ID of the resource.
    procedurePrivileges List<MariadbAccountPrivilegesProcedurePrivilege>
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    tablePrivileges List<MariadbAccountPrivilegesTablePrivilege>
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    viewPrivileges List<MariadbAccountPrivilegesViewPrivilege>
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    accounts MariadbAccountPrivilegesAccounts
    account information.
    instanceId string
    instance id.
    columnPrivileges MariadbAccountPrivilegesColumnPrivilege[]
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    databasePrivileges MariadbAccountPrivilegesDatabasePrivilege[]
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    functionPrivileges MariadbAccountPrivilegesFunctionPrivilege[]
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    globalPrivileges string[]
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    mariadbAccountPrivilegesId string
    ID of the resource.
    procedurePrivileges MariadbAccountPrivilegesProcedurePrivilege[]
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    tablePrivileges MariadbAccountPrivilegesTablePrivilege[]
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    viewPrivileges MariadbAccountPrivilegesViewPrivilege[]
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    accounts MariadbAccountPrivilegesAccountsArgs
    account information.
    instance_id str
    instance id.
    column_privileges Sequence[MariadbAccountPrivilegesColumnPrivilegeArgs]
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    database_privileges Sequence[MariadbAccountPrivilegesDatabasePrivilegeArgs]
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    function_privileges Sequence[MariadbAccountPrivilegesFunctionPrivilegeArgs]
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    global_privileges Sequence[str]
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    mariadb_account_privileges_id str
    ID of the resource.
    procedure_privileges Sequence[MariadbAccountPrivilegesProcedurePrivilegeArgs]
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    table_privileges Sequence[MariadbAccountPrivilegesTablePrivilegeArgs]
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    view_privileges Sequence[MariadbAccountPrivilegesViewPrivilegeArgs]
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    accounts Property Map
    account information.
    instanceId String
    instance id.
    columnPrivileges List<Property Map>
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    databasePrivileges List<Property Map>
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    functionPrivileges List<Property Map>
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    globalPrivileges List<String>
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    mariadbAccountPrivilegesId String
    ID of the resource.
    procedurePrivileges List<Property Map>
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    tablePrivileges List<Property Map>
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    viewPrivileges List<Property Map>
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MariadbAccountPrivileges Resource

    Get an existing MariadbAccountPrivileges resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MariadbAccountPrivilegesState, opts?: CustomResourceOptions): MariadbAccountPrivileges
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accounts: Optional[MariadbAccountPrivilegesAccountsArgs] = None,
            column_privileges: Optional[Sequence[MariadbAccountPrivilegesColumnPrivilegeArgs]] = None,
            database_privileges: Optional[Sequence[MariadbAccountPrivilegesDatabasePrivilegeArgs]] = None,
            function_privileges: Optional[Sequence[MariadbAccountPrivilegesFunctionPrivilegeArgs]] = None,
            global_privileges: Optional[Sequence[str]] = None,
            instance_id: Optional[str] = None,
            mariadb_account_privileges_id: Optional[str] = None,
            procedure_privileges: Optional[Sequence[MariadbAccountPrivilegesProcedurePrivilegeArgs]] = None,
            table_privileges: Optional[Sequence[MariadbAccountPrivilegesTablePrivilegeArgs]] = None,
            view_privileges: Optional[Sequence[MariadbAccountPrivilegesViewPrivilegeArgs]] = None) -> MariadbAccountPrivileges
    func GetMariadbAccountPrivileges(ctx *Context, name string, id IDInput, state *MariadbAccountPrivilegesState, opts ...ResourceOption) (*MariadbAccountPrivileges, error)
    public static MariadbAccountPrivileges Get(string name, Input<string> id, MariadbAccountPrivilegesState? state, CustomResourceOptions? opts = null)
    public static MariadbAccountPrivileges get(String name, Output<String> id, MariadbAccountPrivilegesState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MariadbAccountPrivileges    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Accounts MariadbAccountPrivilegesAccounts
    account information.
    ColumnPrivileges List<MariadbAccountPrivilegesColumnPrivilege>
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    DatabasePrivileges List<MariadbAccountPrivilegesDatabasePrivilege>
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    FunctionPrivileges List<MariadbAccountPrivilegesFunctionPrivilege>
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    GlobalPrivileges List<string>
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    InstanceId string
    instance id.
    MariadbAccountPrivilegesId string
    ID of the resource.
    ProcedurePrivileges List<MariadbAccountPrivilegesProcedurePrivilege>
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    TablePrivileges List<MariadbAccountPrivilegesTablePrivilege>
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    ViewPrivileges List<MariadbAccountPrivilegesViewPrivilege>
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    Accounts MariadbAccountPrivilegesAccountsArgs
    account information.
    ColumnPrivileges []MariadbAccountPrivilegesColumnPrivilegeArgs
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    DatabasePrivileges []MariadbAccountPrivilegesDatabasePrivilegeArgs
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    FunctionPrivileges []MariadbAccountPrivilegesFunctionPrivilegeArgs
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    GlobalPrivileges []string
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    InstanceId string
    instance id.
    MariadbAccountPrivilegesId string
    ID of the resource.
    ProcedurePrivileges []MariadbAccountPrivilegesProcedurePrivilegeArgs
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    TablePrivileges []MariadbAccountPrivilegesTablePrivilegeArgs
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    ViewPrivileges []MariadbAccountPrivilegesViewPrivilegeArgs
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    accounts MariadbAccountPrivilegesAccounts
    account information.
    columnPrivileges List<MariadbAccountPrivilegesColumnPrivilege>
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    databasePrivileges List<MariadbAccountPrivilegesDatabasePrivilege>
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    functionPrivileges List<MariadbAccountPrivilegesFunctionPrivilege>
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    globalPrivileges List<String>
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    instanceId String
    instance id.
    mariadbAccountPrivilegesId String
    ID of the resource.
    procedurePrivileges List<MariadbAccountPrivilegesProcedurePrivilege>
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    tablePrivileges List<MariadbAccountPrivilegesTablePrivilege>
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    viewPrivileges List<MariadbAccountPrivilegesViewPrivilege>
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    accounts MariadbAccountPrivilegesAccounts
    account information.
    columnPrivileges MariadbAccountPrivilegesColumnPrivilege[]
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    databasePrivileges MariadbAccountPrivilegesDatabasePrivilege[]
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    functionPrivileges MariadbAccountPrivilegesFunctionPrivilege[]
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    globalPrivileges string[]
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    instanceId string
    instance id.
    mariadbAccountPrivilegesId string
    ID of the resource.
    procedurePrivileges MariadbAccountPrivilegesProcedurePrivilege[]
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    tablePrivileges MariadbAccountPrivilegesTablePrivilege[]
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    viewPrivileges MariadbAccountPrivilegesViewPrivilege[]
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    accounts MariadbAccountPrivilegesAccountsArgs
    account information.
    column_privileges Sequence[MariadbAccountPrivilegesColumnPrivilegeArgs]
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    database_privileges Sequence[MariadbAccountPrivilegesDatabasePrivilegeArgs]
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    function_privileges Sequence[MariadbAccountPrivilegesFunctionPrivilegeArgs]
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    global_privileges Sequence[str]
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    instance_id str
    instance id.
    mariadb_account_privileges_id str
    ID of the resource.
    procedure_privileges Sequence[MariadbAccountPrivilegesProcedurePrivilegeArgs]
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    table_privileges Sequence[MariadbAccountPrivilegesTablePrivilegeArgs]
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    view_privileges Sequence[MariadbAccountPrivilegesViewPrivilegeArgs]
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.
    accounts Property Map
    account information.
    columnPrivileges List<Property Map>
    Column permission. Valid values of Privileges: SELECT, INSERT, UPDATE, REFERENCES.Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set Privileges to an empty array.
    databasePrivileges List<Property Map>
    Database permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set Privileges to an empty array.
    functionPrivileges List<Property Map>
    Database function permissions. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set Privileges to an empty array.
    globalPrivileges List<String>
    Global permission. Valid values of GlobalPrivileges: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER.Note: if the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
    instanceId String
    instance id.
    mariadbAccountPrivilegesId String
    ID of the resource.
    procedurePrivileges List<Property Map>
    Database stored procedure permission. Valid values of Privileges: ALTER ROUTINE, EXECUTE.Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set Privileges to an empty array.
    tablePrivileges List<Property Map>
    SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set Privileges to an empty array.
    viewPrivileges List<Property Map>
    Database view permission. Valid values of Privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER.Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set Privileges to an empty array.

    Supporting Types

    MariadbAccountPrivilegesAccounts, MariadbAccountPrivilegesAccountsArgs

    Host string
    user host.
    User string
    user name.
    Host string
    user host.
    User string
    user name.
    host String
    user host.
    user String
    user name.
    host string
    user host.
    user string
    user name.
    host str
    user host.
    user str
    user name.
    host String
    user host.
    user String
    user name.

    MariadbAccountPrivilegesColumnPrivilege, MariadbAccountPrivilegesColumnPrivilegeArgs

    Column string
    Column name.
    Database string
    Database name.
    Privileges List<string>
    Permission information.
    Table string
    Table name.
    Column string
    Column name.
    Database string
    Database name.
    Privileges []string
    Permission information.
    Table string
    Table name.
    column String
    Column name.
    database String
    Database name.
    privileges List<String>
    Permission information.
    table String
    Table name.
    column string
    Column name.
    database string
    Database name.
    privileges string[]
    Permission information.
    table string
    Table name.
    column str
    Column name.
    database str
    Database name.
    privileges Sequence[str]
    Permission information.
    table str
    Table name.
    column String
    Column name.
    database String
    Database name.
    privileges List<String>
    Permission information.
    table String
    Table name.

    MariadbAccountPrivilegesDatabasePrivilege, MariadbAccountPrivilegesDatabasePrivilegeArgs

    Database string
    Database name.
    Privileges List<string>
    Permission information.
    Database string
    Database name.
    Privileges []string
    Permission information.
    database String
    Database name.
    privileges List<String>
    Permission information.
    database string
    Database name.
    privileges string[]
    Permission information.
    database str
    Database name.
    privileges Sequence[str]
    Permission information.
    database String
    Database name.
    privileges List<String>
    Permission information.

    MariadbAccountPrivilegesFunctionPrivilege, MariadbAccountPrivilegesFunctionPrivilegeArgs

    Database string
    Database name.
    FunctionName string
    Function name.
    Privileges List<string>
    Permission information.
    Database string
    Database name.
    FunctionName string
    Function name.
    Privileges []string
    Permission information.
    database String
    Database name.
    functionName String
    Function name.
    privileges List<String>
    Permission information.
    database string
    Database name.
    functionName string
    Function name.
    privileges string[]
    Permission information.
    database str
    Database name.
    function_name str
    Function name.
    privileges Sequence[str]
    Permission information.
    database String
    Database name.
    functionName String
    Function name.
    privileges List<String>
    Permission information.

    MariadbAccountPrivilegesProcedurePrivilege, MariadbAccountPrivilegesProcedurePrivilegeArgs

    Database string
    Database name.
    Privileges List<string>
    Permission information.
    Procedure string
    Procedure name.
    Database string
    Database name.
    Privileges []string
    Permission information.
    Procedure string
    Procedure name.
    database String
    Database name.
    privileges List<String>
    Permission information.
    procedure String
    Procedure name.
    database string
    Database name.
    privileges string[]
    Permission information.
    procedure string
    Procedure name.
    database str
    Database name.
    privileges Sequence[str]
    Permission information.
    procedure str
    Procedure name.
    database String
    Database name.
    privileges List<String>
    Permission information.
    procedure String
    Procedure name.

    MariadbAccountPrivilegesTablePrivilege, MariadbAccountPrivilegesTablePrivilegeArgs

    Database string
    Database name.
    Privileges List<string>
    Permission information.
    Table string
    Table name.
    Database string
    Database name.
    Privileges []string
    Permission information.
    Table string
    Table name.
    database String
    Database name.
    privileges List<String>
    Permission information.
    table String
    Table name.
    database string
    Database name.
    privileges string[]
    Permission information.
    table string
    Table name.
    database str
    Database name.
    privileges Sequence[str]
    Permission information.
    table str
    Table name.
    database String
    Database name.
    privileges List<String>
    Permission information.
    table String
    Table name.

    MariadbAccountPrivilegesViewPrivilege, MariadbAccountPrivilegesViewPrivilegeArgs

    Database string
    Database name.
    Privileges List<string>
    Permission information.
    View string
    View name.
    Database string
    Database name.
    Privileges []string
    Permission information.
    View string
    View name.
    database String
    Database name.
    privileges List<String>
    Permission information.
    view String
    View name.
    database string
    Database name.
    privileges string[]
    Permission information.
    view string
    View name.
    database str
    Database name.
    privileges Sequence[str]
    Permission information.
    view str
    View name.
    database String
    Database name.
    privileges List<String>
    Permission information.
    view String
    View name.

    Import

    mariadb account_privileges can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/mariadbAccountPrivileges:MariadbAccountPrivileges account_privileges account_privileges_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    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