tencentcloud.DcdbAccountPrivileges
Explore with Pulumi AI
Provides a resource to create a dcdb account_privileges
Create DcdbAccountPrivileges Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DcdbAccountPrivileges(name: string, args: DcdbAccountPrivilegesArgs, opts?: CustomResourceOptions);
@overload
def DcdbAccountPrivileges(resource_name: str,
args: DcdbAccountPrivilegesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DcdbAccountPrivileges(resource_name: str,
opts: Optional[ResourceOptions] = None,
account: Optional[DcdbAccountPrivilegesAccountArgs] = None,
instance_id: Optional[str] = None,
column_privileges: Optional[DcdbAccountPrivilegesColumnPrivilegesArgs] = None,
database_privileges: Optional[DcdbAccountPrivilegesDatabasePrivilegesArgs] = None,
dcdb_account_privileges_id: Optional[str] = None,
global_privileges: Optional[Sequence[str]] = None,
table_privileges: Optional[DcdbAccountPrivilegesTablePrivilegesArgs] = None,
view_privileges: Optional[DcdbAccountPrivilegesViewPrivilegesArgs] = None)
func NewDcdbAccountPrivileges(ctx *Context, name string, args DcdbAccountPrivilegesArgs, opts ...ResourceOption) (*DcdbAccountPrivileges, error)
public DcdbAccountPrivileges(string name, DcdbAccountPrivilegesArgs args, CustomResourceOptions? opts = null)
public DcdbAccountPrivileges(String name, DcdbAccountPrivilegesArgs args)
public DcdbAccountPrivileges(String name, DcdbAccountPrivilegesArgs args, CustomResourceOptions options)
type: tencentcloud:DcdbAccountPrivileges
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 DcdbAccountPrivilegesArgs
- 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 DcdbAccountPrivilegesArgs
- 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 DcdbAccountPrivilegesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DcdbAccountPrivilegesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DcdbAccountPrivilegesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DcdbAccountPrivileges 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 DcdbAccountPrivileges resource accepts the following input properties:
- Account
Dcdb
Account Privileges Account - The account of the database, including username and host.
- Instance
Id string - The ID of instance.
- Column
Privileges DcdbAccount Privileges Column Privileges - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Database
Privileges DcdbAccount Privileges Database Privileges - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Dcdb
Account stringPrivileges Id - ID of the resource.
- Global
Privileges List<string> - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- Table
Privileges DcdbAccount Privileges Table Privileges - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- View
Privileges DcdbAccount Privileges View Privileges - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Account
Dcdb
Account Privileges Account Args - The account of the database, including username and host.
- Instance
Id string - The ID of instance.
- Column
Privileges DcdbAccount Privileges Column Privileges Args - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Database
Privileges DcdbAccount Privileges Database Privileges Args - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Dcdb
Account stringPrivileges Id - ID of the resource.
- Global
Privileges []string - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- Table
Privileges DcdbAccount Privileges Table Privileges Args - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- View
Privileges DcdbAccount Privileges View Privileges Args - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- account
Dcdb
Account Privileges Account - The account of the database, including username and host.
- instance
Id String - The ID of instance.
- column
Privileges DcdbAccount Privileges Column Privileges - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- database
Privileges DcdbAccount Privileges Database Privileges - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- dcdb
Account StringPrivileges Id - ID of the resource.
- global
Privileges List<String> - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- table
Privileges DcdbAccount Privileges Table Privileges - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- view
Privileges DcdbAccount Privileges View Privileges - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- account
Dcdb
Account Privileges Account - The account of the database, including username and host.
- instance
Id string - The ID of instance.
- column
Privileges DcdbAccount Privileges Column Privileges - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- database
Privileges DcdbAccount Privileges Database Privileges - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- dcdb
Account stringPrivileges Id - ID of the resource.
- global
Privileges string[] - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- table
Privileges DcdbAccount Privileges Table Privileges - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- view
Privileges DcdbAccount Privileges View Privileges - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- account
Dcdb
Account Privileges Account Args - The account of the database, including username and host.
- instance_
id str - The ID of instance.
- column_
privileges DcdbAccount Privileges Column Privileges Args - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- database_
privileges DcdbAccount Privileges Database Privileges Args - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- dcdb_
account_ strprivileges_ id - ID of the resource.
- global_
privileges Sequence[str] - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- table_
privileges DcdbAccount Privileges Table Privileges Args - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- view_
privileges DcdbAccount Privileges View Privileges Args - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- account Property Map
- The account of the database, including username and host.
- instance
Id String - The ID of instance.
- column
Privileges Property Map - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- database
Privileges Property Map - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- dcdb
Account StringPrivileges Id - ID of the resource.
- global
Privileges List<String> - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- table
Privileges Property Map - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- view
Privileges Property Map - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
Outputs
All input properties are implicitly available as output properties. Additionally, the DcdbAccountPrivileges 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 DcdbAccountPrivileges Resource
Get an existing DcdbAccountPrivileges 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?: DcdbAccountPrivilegesState, opts?: CustomResourceOptions): DcdbAccountPrivileges
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account: Optional[DcdbAccountPrivilegesAccountArgs] = None,
column_privileges: Optional[DcdbAccountPrivilegesColumnPrivilegesArgs] = None,
database_privileges: Optional[DcdbAccountPrivilegesDatabasePrivilegesArgs] = None,
dcdb_account_privileges_id: Optional[str] = None,
global_privileges: Optional[Sequence[str]] = None,
instance_id: Optional[str] = None,
table_privileges: Optional[DcdbAccountPrivilegesTablePrivilegesArgs] = None,
view_privileges: Optional[DcdbAccountPrivilegesViewPrivilegesArgs] = None) -> DcdbAccountPrivileges
func GetDcdbAccountPrivileges(ctx *Context, name string, id IDInput, state *DcdbAccountPrivilegesState, opts ...ResourceOption) (*DcdbAccountPrivileges, error)
public static DcdbAccountPrivileges Get(string name, Input<string> id, DcdbAccountPrivilegesState? state, CustomResourceOptions? opts = null)
public static DcdbAccountPrivileges get(String name, Output<String> id, DcdbAccountPrivilegesState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DcdbAccountPrivileges 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.
- Account
Dcdb
Account Privileges Account - The account of the database, including username and host.
- Column
Privileges DcdbAccount Privileges Column Privileges - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Database
Privileges DcdbAccount Privileges Database Privileges - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Dcdb
Account stringPrivileges Id - ID of the resource.
- Global
Privileges List<string> - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- Instance
Id string - The ID of instance.
- Table
Privileges DcdbAccount Privileges Table Privileges - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- View
Privileges DcdbAccount Privileges View Privileges - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Account
Dcdb
Account Privileges Account Args - The account of the database, including username and host.
- Column
Privileges DcdbAccount Privileges Column Privileges Args - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Database
Privileges DcdbAccount Privileges Database Privileges Args - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- Dcdb
Account stringPrivileges Id - ID of the resource.
- Global
Privileges []string - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- Instance
Id string - The ID of instance.
- Table
Privileges DcdbAccount Privileges Table Privileges Args - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- View
Privileges DcdbAccount Privileges View Privileges Args - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- account
Dcdb
Account Privileges Account - The account of the database, including username and host.
- column
Privileges DcdbAccount Privileges Column Privileges - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- database
Privileges DcdbAccount Privileges Database Privileges - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- dcdb
Account StringPrivileges Id - ID of the resource.
- global
Privileges List<String> - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- instance
Id String - The ID of instance.
- table
Privileges DcdbAccount Privileges Table Privileges - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- view
Privileges DcdbAccount Privileges View Privileges - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- account
Dcdb
Account Privileges Account - The account of the database, including username and host.
- column
Privileges DcdbAccount Privileges Column Privileges - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- database
Privileges DcdbAccount Privileges Database Privileges - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- dcdb
Account stringPrivileges Id - ID of the resource.
- global
Privileges string[] - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- instance
Id string - The ID of instance.
- table
Privileges DcdbAccount Privileges Table Privileges - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- view
Privileges DcdbAccount Privileges View Privileges - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- account
Dcdb
Account Privileges Account Args - The account of the database, including username and host.
- column_
privileges DcdbAccount Privileges Column Privileges Args - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- database_
privileges DcdbAccount Privileges Database Privileges Args - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- dcdb_
account_ strprivileges_ id - ID of the resource.
- global_
privileges Sequence[str] - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- instance_
id str - The ID of instance.
- table_
privileges DcdbAccount Privileges Table Privileges Args - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- view_
privileges DcdbAccount Privileges View Privileges Args - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- account Property Map
- The account of the database, including username and host.
- column
Privileges Property Map - Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- database
Privileges Property Map - Database permissions. Optional values for the Privileges permission are: 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 that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- dcdb
Account StringPrivileges Id - ID of the resource.
- global
Privileges List<String> - Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: 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 that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
- instance
Id String - The ID of instance.
- table
Privileges Property Map - Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
- view
Privileges Property Map - Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
Supporting Types
DcdbAccountPrivilegesAccount, DcdbAccountPrivilegesAccountArgs
DcdbAccountPrivilegesColumnPrivileges, DcdbAccountPrivilegesColumnPrivilegesArgs
- Column string
- Database column name.
- Database string
- The name of database.
- Privileges List<string>
- Permission information.
- Table string
- Database table name.
- Column string
- Database column name.
- Database string
- The name of database.
- Privileges []string
- Permission information.
- Table string
- Database table name.
- column String
- Database column name.
- database String
- The name of database.
- privileges List<String>
- Permission information.
- table String
- Database table name.
- column string
- Database column name.
- database string
- The name of database.
- privileges string[]
- Permission information.
- table string
- Database table name.
- column str
- Database column name.
- database str
- The name of database.
- privileges Sequence[str]
- Permission information.
- table str
- Database table name.
- column String
- Database column name.
- database String
- The name of database.
- privileges List<String>
- Permission information.
- table String
- Database table name.
DcdbAccountPrivilegesDatabasePrivileges, DcdbAccountPrivilegesDatabasePrivilegesArgs
- Database string
- The name of database.
- Privileges List<string>
- Permission information.
- Database string
- The name of database.
- Privileges []string
- Permission information.
- database String
- The name of database.
- privileges List<String>
- Permission information.
- database string
- The name of database.
- privileges string[]
- Permission information.
- database str
- The name of database.
- privileges Sequence[str]
- Permission information.
- database String
- The name of database.
- privileges List<String>
- Permission information.
DcdbAccountPrivilegesTablePrivileges, DcdbAccountPrivilegesTablePrivilegesArgs
- Database string
- The name of database.
- Privileges List<string>
- Permission information.
- Table string
- Database table name.
- Database string
- The name of database.
- Privileges []string
- Permission information.
- Table string
- Database table name.
- database String
- The name of database.
- privileges List<String>
- Permission information.
- table String
- Database table name.
- database string
- The name of database.
- privileges string[]
- Permission information.
- table string
- Database table name.
- database str
- The name of database.
- privileges Sequence[str]
- Permission information.
- table str
- Database table name.
- database String
- The name of database.
- privileges List<String>
- Permission information.
- table String
- Database table name.
DcdbAccountPrivilegesViewPrivileges, DcdbAccountPrivilegesViewPrivilegesArgs
- Database string
- The name of database.
- Privileges List<string>
- Permission information.
- View string
- Database view name.
- Database string
- The name of database.
- Privileges []string
- Permission information.
- View string
- Database view name.
- database String
- The name of database.
- privileges List<String>
- Permission information.
- view String
- Database view name.
- database string
- The name of database.
- privileges string[]
- Permission information.
- view string
- Database view name.
- database str
- The name of database.
- privileges Sequence[str]
- Permission information.
- view str
- Database view name.
- database String
- The name of database.
- privileges List<String>
- Permission information.
- view String
- Database view name.
Import
dcdb account_privileges can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dcdbAccountPrivileges:DcdbAccountPrivileges account_privileges instanceId#userName#host#dbName#tabName#viewName#colName
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.