selectel.DbaasGrantV1
Explore with Pulumi AI
Grants privileges to the users in Managed Databases using public API v1. Not applicable to Redis and Kafka. Learn more about Managed Databases in the official Selectel documentation.
Example Usage
PostgreSQL, PostgreSQL for 1C, and PostgreSQL TimescaleDB
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const grant1 = new selectel.DbaasGrantV1("grant1", {
projectId: selectel_vpc_project_v2.project_1.id,
region: "ru-3",
datastoreId: selectel_dbaas_postgresql_datastore_v1.datastore_1.id,
databaseId: selectel_dbaas_postgresql_database_v1.database_1.id,
userId: selectel_dbaas_user_v1.user_1.id,
});
import pulumi
import pulumi_selectel as selectel
grant1 = selectel.DbaasGrantV1("grant1",
project_id=selectel_vpc_project_v2["project_1"]["id"],
region="ru-3",
datastore_id=selectel_dbaas_postgresql_datastore_v1["datastore_1"]["id"],
database_id=selectel_dbaas_postgresql_database_v1["database_1"]["id"],
user_id=selectel_dbaas_user_v1["user_1"]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDbaasGrantV1(ctx, "grant1", &selectel.DbaasGrantV1Args{
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Region: pulumi.String("ru-3"),
DatastoreId: pulumi.Any(selectel_dbaas_postgresql_datastore_v1.Datastore_1.Id),
DatabaseId: pulumi.Any(selectel_dbaas_postgresql_database_v1.Database_1.Id),
UserId: pulumi.Any(selectel_dbaas_user_v1.User_1.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var grant1 = new Selectel.DbaasGrantV1("grant1", new()
{
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Region = "ru-3",
DatastoreId = selectel_dbaas_postgresql_datastore_v1.Datastore_1.Id,
DatabaseId = selectel_dbaas_postgresql_database_v1.Database_1.Id,
UserId = selectel_dbaas_user_v1.User_1.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DbaasGrantV1;
import com.pulumi.selectel.DbaasGrantV1Args;
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 grant1 = new DbaasGrantV1("grant1", DbaasGrantV1Args.builder()
.projectId(selectel_vpc_project_v2.project_1().id())
.region("ru-3")
.datastoreId(selectel_dbaas_postgresql_datastore_v1.datastore_1().id())
.databaseId(selectel_dbaas_postgresql_database_v1.database_1().id())
.userId(selectel_dbaas_user_v1.user_1().id())
.build());
}
}
resources:
grant1:
type: selectel:DbaasGrantV1
properties:
projectId: ${selectel_vpc_project_v2.project_1.id}
region: ru-3
datastoreId: ${selectel_dbaas_postgresql_datastore_v1.datastore_1.id}
databaseId: ${selectel_dbaas_postgresql_database_v1.database_1.id}
userId: ${selectel_dbaas_user_v1.user_1.id}
MySQL semi-sync and MySQL sync
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const grant1 = new selectel.DbaasGrantV1("grant1", {
projectId: selectel_vpc_project_v2.project_1.id,
region: "ru-3",
datastoreId: selectel_dbaas_mysql_datastore_v1.datastore_1.id,
databaseId: selectel_dbaas_mysql_database_v1.database_1.id,
userId: selectel_dbaas_user_v1.user_1.id,
});
import pulumi
import pulumi_selectel as selectel
grant1 = selectel.DbaasGrantV1("grant1",
project_id=selectel_vpc_project_v2["project_1"]["id"],
region="ru-3",
datastore_id=selectel_dbaas_mysql_datastore_v1["datastore_1"]["id"],
database_id=selectel_dbaas_mysql_database_v1["database_1"]["id"],
user_id=selectel_dbaas_user_v1["user_1"]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDbaasGrantV1(ctx, "grant1", &selectel.DbaasGrantV1Args{
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Region: pulumi.String("ru-3"),
DatastoreId: pulumi.Any(selectel_dbaas_mysql_datastore_v1.Datastore_1.Id),
DatabaseId: pulumi.Any(selectel_dbaas_mysql_database_v1.Database_1.Id),
UserId: pulumi.Any(selectel_dbaas_user_v1.User_1.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var grant1 = new Selectel.DbaasGrantV1("grant1", new()
{
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Region = "ru-3",
DatastoreId = selectel_dbaas_mysql_datastore_v1.Datastore_1.Id,
DatabaseId = selectel_dbaas_mysql_database_v1.Database_1.Id,
UserId = selectel_dbaas_user_v1.User_1.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DbaasGrantV1;
import com.pulumi.selectel.DbaasGrantV1Args;
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 grant1 = new DbaasGrantV1("grant1", DbaasGrantV1Args.builder()
.projectId(selectel_vpc_project_v2.project_1().id())
.region("ru-3")
.datastoreId(selectel_dbaas_mysql_datastore_v1.datastore_1().id())
.databaseId(selectel_dbaas_mysql_database_v1.database_1().id())
.userId(selectel_dbaas_user_v1.user_1().id())
.build());
}
}
resources:
grant1:
type: selectel:DbaasGrantV1
properties:
projectId: ${selectel_vpc_project_v2.project_1.id}
region: ru-3
datastoreId: ${selectel_dbaas_mysql_datastore_v1.datastore_1.id}
databaseId: ${selectel_dbaas_mysql_database_v1.database_1.id}
userId: ${selectel_dbaas_user_v1.user_1.id}
Create DbaasGrantV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbaasGrantV1(name: string, args: DbaasGrantV1Args, opts?: CustomResourceOptions);
@overload
def DbaasGrantV1(resource_name: str,
args: DbaasGrantV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def DbaasGrantV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_id: Optional[str] = None,
datastore_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
user_id: Optional[str] = None,
dbaas_grant_v1_id: Optional[str] = None,
timeouts: Optional[DbaasGrantV1TimeoutsArgs] = None)
func NewDbaasGrantV1(ctx *Context, name string, args DbaasGrantV1Args, opts ...ResourceOption) (*DbaasGrantV1, error)
public DbaasGrantV1(string name, DbaasGrantV1Args args, CustomResourceOptions? opts = null)
public DbaasGrantV1(String name, DbaasGrantV1Args args)
public DbaasGrantV1(String name, DbaasGrantV1Args args, CustomResourceOptions options)
type: selectel:DbaasGrantV1
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 DbaasGrantV1Args
- 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 DbaasGrantV1Args
- 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 DbaasGrantV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbaasGrantV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbaasGrantV1Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dbaasGrantV1Resource = new Selectel.DbaasGrantV1("dbaasGrantV1Resource", new()
{
DatabaseId = "string",
DatastoreId = "string",
ProjectId = "string",
Region = "string",
UserId = "string",
DbaasGrantV1Id = "string",
Timeouts = new Selectel.Inputs.DbaasGrantV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := selectel.NewDbaasGrantV1(ctx, "dbaasGrantV1Resource", &selectel.DbaasGrantV1Args{
DatabaseId: pulumi.String("string"),
DatastoreId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
UserId: pulumi.String("string"),
DbaasGrantV1Id: pulumi.String("string"),
Timeouts: &selectel.DbaasGrantV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var dbaasGrantV1Resource = new DbaasGrantV1("dbaasGrantV1Resource", DbaasGrantV1Args.builder()
.databaseId("string")
.datastoreId("string")
.projectId("string")
.region("string")
.userId("string")
.dbaasGrantV1Id("string")
.timeouts(DbaasGrantV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
dbaas_grant_v1_resource = selectel.DbaasGrantV1("dbaasGrantV1Resource",
database_id="string",
datastore_id="string",
project_id="string",
region="string",
user_id="string",
dbaas_grant_v1_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const dbaasGrantV1Resource = new selectel.DbaasGrantV1("dbaasGrantV1Resource", {
databaseId: "string",
datastoreId: "string",
projectId: "string",
region: "string",
userId: "string",
dbaasGrantV1Id: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: selectel:DbaasGrantV1
properties:
databaseId: string
datastoreId: string
dbaasGrantV1Id: string
projectId: string
region: string
timeouts:
create: string
delete: string
update: string
userId: string
DbaasGrantV1 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 DbaasGrantV1 resource accepts the following input properties:
- Database
Id string - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- Datastore
Id string - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - User
Id string - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- Dbaas
Grant stringV1Id - Timeouts
Dbaas
Grant V1Timeouts
- Database
Id string - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- Datastore
Id string - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - User
Id string - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- Dbaas
Grant stringV1Id - Timeouts
Dbaas
Grant V1Timeouts Args
- database
Id String - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- datastore
Id String - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- project
Id String - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - user
Id String - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- dbaas
Grant StringV1Id - timeouts
Dbaas
Grant V1Timeouts
- database
Id string - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- datastore
Id string - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- project
Id string - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region string
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - user
Id string - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- dbaas
Grant stringV1Id - timeouts
Dbaas
Grant V1Timeouts
- database_
id str - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- datastore_
id str - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- project_
id str - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region str
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - user_
id str - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- dbaas_
grant_ strv1_ id - timeouts
Dbaas
Grant V1Timeouts Args
- database
Id String - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- datastore
Id String - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- project
Id String - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - user
Id String - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- dbaas
Grant StringV1Id - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DbaasGrantV1 resource produces the following output properties:
Look up Existing DbaasGrantV1 Resource
Get an existing DbaasGrantV1 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?: DbaasGrantV1State, opts?: CustomResourceOptions): DbaasGrantV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
database_id: Optional[str] = None,
datastore_id: Optional[str] = None,
dbaas_grant_v1_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[DbaasGrantV1TimeoutsArgs] = None,
user_id: Optional[str] = None) -> DbaasGrantV1
func GetDbaasGrantV1(ctx *Context, name string, id IDInput, state *DbaasGrantV1State, opts ...ResourceOption) (*DbaasGrantV1, error)
public static DbaasGrantV1 Get(string name, Input<string> id, DbaasGrantV1State? state, CustomResourceOptions? opts = null)
public static DbaasGrantV1 get(String name, Output<String> id, DbaasGrantV1State state, CustomResourceOptions options)
resources: _: type: selectel:DbaasGrantV1 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.
- Database
Id string - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- Datastore
Id string - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- Dbaas
Grant stringV1Id - Project
Id string - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - Status string
- Status of the user privilege.
- Timeouts
Dbaas
Grant V1Timeouts - User
Id string - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- Database
Id string - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- Datastore
Id string - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- Dbaas
Grant stringV1Id - Project
Id string - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - Status string
- Status of the user privilege.
- Timeouts
Dbaas
Grant V1Timeouts Args - User
Id string - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- database
Id String - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- datastore
Id String - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- dbaas
Grant StringV1Id - project
Id String - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - status String
- Status of the user privilege.
- timeouts
Dbaas
Grant V1Timeouts - user
Id String - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- database
Id string - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- datastore
Id string - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- dbaas
Grant stringV1Id - project
Id string - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region string
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - status string
- Status of the user privilege.
- timeouts
Dbaas
Grant V1Timeouts - user
Id string - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- database_
id str - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- datastore_
id str - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- dbaas_
grant_ strv1_ id - project_
id str - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region str
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - status str
- Status of the user privilege.
- timeouts
Dbaas
Grant V1Timeouts Args - user_
id str - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
- database
Id String - Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
- datastore
Id String - Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
- dbaas
Grant StringV1Id - project
Id String - Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3
. Changing this creates a new privilege for the user. - status String
- Status of the user privilege.
- timeouts Property Map
- user
Id String - Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
Supporting Types
DbaasGrantV1Timeouts, DbaasGrantV1TimeoutsArgs
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectel
Terraform Provider.