published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Provides a AnalyticDB for PostgreSQL (GPDB) Db Extension resource.
For information about AnalyticDB for PostgreSQL (GPDB) Db Extension and how to use it, see What is Db Extension.
NOTE: Available since v1.291.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const defaultiYyNGW = new alicloud.vpc.Network("defaultiYyNGW", {cidrBlock: "192.168.0.0/16"});
const defaultPlruct = new alicloud.vpc.Switch("defaultPlruct", {
vpcId: defaultiYyNGW.id,
zoneId: "cn-beijing-h",
cidrBlock: "192.168.1.0/24",
});
const defaultqsmpIy = new alicloud.gpdb.Instance("defaultqsmpIy", {
instanceSpec: "2C8G",
segNodeNum: 2,
segStorageType: "cloud_essd",
instanceNetworkType: "VPC",
dbInstanceCategory: "Basic",
paymentType: "PayAsYouGo",
sslEnabled: 0,
engineVersion: "6.0",
engine: "gpdb",
zoneId: "cn-beijing-h",
vswitchId: defaultPlruct.id,
storageSize: 50,
masterCu: 4,
vpcId: defaultiYyNGW.id,
dbInstanceMode: "StorageElastic",
});
const defaultOwner = new alicloud.gpdb.Account("defaultOwner", {
accountName: "tf_example",
accountPassword: "Example1234",
accountDescription: "tf_example",
dbInstanceId: defaultqsmpIy.id,
});
const defaultPPmRVa = new alicloud.gpdb.Database("defaultPPmRVa", {
owner: defaultOwner.accountName,
databaseName: "seagull",
dbInstanceId: defaultqsmpIy.id,
characterSetName: "UTF8",
collate: "en_US.utf8",
ctype: "en_US.utf8",
});
const _default = new alicloud.gpdb.DbExtension("default", {
extensionName: "uuid-ossp",
dbInstanceId: defaultqsmpIy.id,
databaseName: defaultPPmRVa.databaseName,
isLaexampleVersion: true,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
defaulti_yy_ngw = alicloud.vpc.Network("defaultiYyNGW", cidr_block="192.168.0.0/16")
default_plruct = alicloud.vpc.Switch("defaultPlruct",
vpc_id=defaulti_yy_ngw.id,
zone_id="cn-beijing-h",
cidr_block="192.168.1.0/24")
defaultqsmp_iy = alicloud.gpdb.Instance("defaultqsmpIy",
instance_spec="2C8G",
seg_node_num=2,
seg_storage_type="cloud_essd",
instance_network_type="VPC",
db_instance_category="Basic",
payment_type="PayAsYouGo",
ssl_enabled=0,
engine_version="6.0",
engine="gpdb",
zone_id="cn-beijing-h",
vswitch_id=default_plruct.id,
storage_size=50,
master_cu=4,
vpc_id=defaulti_yy_ngw.id,
db_instance_mode="StorageElastic")
default_owner = alicloud.gpdb.Account("defaultOwner",
account_name="tf_example",
account_password="Example1234",
account_description="tf_example",
db_instance_id=defaultqsmp_iy.id)
default_p_pm_r_va = alicloud.gpdb.Database("defaultPPmRVa",
owner=default_owner.account_name,
database_name="seagull",
db_instance_id=defaultqsmp_iy.id,
character_set_name="UTF8",
collate="en_US.utf8",
ctype="en_US.utf8")
default = alicloud.gpdb.DbExtension("default",
extension_name="uuid-ossp",
db_instance_id=defaultqsmp_iy.id,
database_name=default_p_pm_r_va.database_name,
is_laexample_version=True)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/gpdb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultiYyNGW, err := vpc.NewNetwork(ctx, "defaultiYyNGW", &vpc.NetworkArgs{
CidrBlock: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
defaultPlruct, err := vpc.NewSwitch(ctx, "defaultPlruct", &vpc.SwitchArgs{
VpcId: defaultiYyNGW.ID().ToIDOutput().ToStringOutput(),
ZoneId: pulumi.String("cn-beijing-h"),
CidrBlock: pulumi.String("192.168.1.0/24"),
})
if err != nil {
return err
}
defaultqsmpIy, err := gpdb.NewInstance(ctx, "defaultqsmpIy", &gpdb.InstanceArgs{
InstanceSpec: pulumi.String("2C8G"),
SegNodeNum: pulumi.Int(2),
SegStorageType: pulumi.String("cloud_essd"),
InstanceNetworkType: pulumi.String("VPC"),
DbInstanceCategory: pulumi.String("Basic"),
PaymentType: pulumi.String("PayAsYouGo"),
SslEnabled: pulumi.Int(0),
EngineVersion: pulumi.String("6.0"),
Engine: pulumi.String("gpdb"),
ZoneId: pulumi.String("cn-beijing-h"),
VswitchId: defaultPlruct.ID().ToIDOutput().ToStringOutput(),
StorageSize: pulumi.Int(50),
MasterCu: pulumi.Int(4),
VpcId: defaultiYyNGW.ID().ToIDOutput().ToStringOutput(),
DbInstanceMode: pulumi.String("StorageElastic"),
})
if err != nil {
return err
}
defaultOwner, err := gpdb.NewAccount(ctx, "defaultOwner", &gpdb.AccountArgs{
AccountName: pulumi.String("tf_example"),
AccountPassword: pulumi.String("Example1234"),
AccountDescription: pulumi.String("tf_example"),
DbInstanceId: defaultqsmpIy.ID().ToIDOutput().ToStringOutput(),
})
if err != nil {
return err
}
defaultPPmRVa, err := gpdb.NewDatabase(ctx, "defaultPPmRVa", &gpdb.DatabaseArgs{
Owner: defaultOwner.AccountName,
DatabaseName: pulumi.String("seagull"),
DbInstanceId: defaultqsmpIy.ID().ToIDOutput().ToStringOutput(),
CharacterSetName: pulumi.String("UTF8"),
Collate: pulumi.String("en_US.utf8"),
Ctype: pulumi.String("en_US.utf8"),
})
if err != nil {
return err
}
_, err = gpdb.NewDbExtension(ctx, "default", &gpdb.DbExtensionArgs{
ExtensionName: pulumi.String("uuid-ossp"),
DbInstanceId: defaultqsmpIy.ID().ToIDOutput().ToStringOutput(),
DatabaseName: defaultPPmRVa.DatabaseName,
IsLaexampleVersion: true,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var defaultiYyNGW = new AliCloud.Vpc.Network("defaultiYyNGW", new()
{
CidrBlock = "192.168.0.0/16",
});
var defaultPlruct = new AliCloud.Vpc.Switch("defaultPlruct", new()
{
VpcId = defaultiYyNGW.Id,
ZoneId = "cn-beijing-h",
CidrBlock = "192.168.1.0/24",
});
var defaultqsmpIy = new AliCloud.Gpdb.Instance("defaultqsmpIy", new()
{
InstanceSpec = "2C8G",
SegNodeNum = 2,
SegStorageType = "cloud_essd",
InstanceNetworkType = "VPC",
DbInstanceCategory = "Basic",
PaymentType = "PayAsYouGo",
SslEnabled = 0,
EngineVersion = "6.0",
Engine = "gpdb",
ZoneId = "cn-beijing-h",
VswitchId = defaultPlruct.Id,
StorageSize = 50,
MasterCu = 4,
VpcId = defaultiYyNGW.Id,
DbInstanceMode = "StorageElastic",
});
var defaultOwner = new AliCloud.Gpdb.Account("defaultOwner", new()
{
AccountName = "tf_example",
AccountPassword = "Example1234",
AccountDescription = "tf_example",
DbInstanceId = defaultqsmpIy.Id,
});
var defaultPPmRVa = new AliCloud.Gpdb.Database("defaultPPmRVa", new()
{
Owner = defaultOwner.AccountName,
DatabaseName = "seagull",
DbInstanceId = defaultqsmpIy.Id,
CharacterSetName = "UTF8",
Collate = "en_US.utf8",
Ctype = "en_US.utf8",
});
var @default = new AliCloud.Gpdb.DbExtension("default", new()
{
ExtensionName = "uuid-ossp",
DbInstanceId = defaultqsmpIy.Id,
DatabaseName = defaultPPmRVa.DatabaseName,
IsLaexampleVersion = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.gpdb.Instance;
import com.pulumi.alicloud.gpdb.InstanceArgs;
import com.pulumi.alicloud.gpdb.Account;
import com.pulumi.alicloud.gpdb.AccountArgs;
import com.pulumi.alicloud.gpdb.Database;
import com.pulumi.alicloud.gpdb.DatabaseArgs;
import com.pulumi.alicloud.gpdb.DbExtension;
import com.pulumi.alicloud.gpdb.DbExtensionArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var defaultiYyNGW = new Network("defaultiYyNGW", NetworkArgs.builder()
.cidrBlock("192.168.0.0/16")
.build());
var defaultPlruct = new Switch("defaultPlruct", SwitchArgs.builder()
.vpcId(defaultiYyNGW.id())
.zoneId("cn-beijing-h")
.cidrBlock("192.168.1.0/24")
.build());
var defaultqsmpIy = new Instance("defaultqsmpIy", InstanceArgs.builder()
.instanceSpec("2C8G")
.segNodeNum(2)
.segStorageType("cloud_essd")
.instanceNetworkType("VPC")
.dbInstanceCategory("Basic")
.paymentType("PayAsYouGo")
.sslEnabled(0)
.engineVersion("6.0")
.engine("gpdb")
.zoneId("cn-beijing-h")
.vswitchId(defaultPlruct.id())
.storageSize(50)
.masterCu(4)
.vpcId(defaultiYyNGW.id())
.dbInstanceMode("StorageElastic")
.build());
var defaultOwner = new Account("defaultOwner", AccountArgs.builder()
.accountName("tf_example")
.accountPassword("Example1234")
.accountDescription("tf_example")
.dbInstanceId(defaultqsmpIy.id())
.build());
var defaultPPmRVa = new Database("defaultPPmRVa", DatabaseArgs.builder()
.owner(defaultOwner.accountName())
.databaseName("seagull")
.dbInstanceId(defaultqsmpIy.id())
.characterSetName("UTF8")
.collate("en_US.utf8")
.ctype("en_US.utf8")
.build());
var default_ = new DbExtension("default", DbExtensionArgs.builder()
.extensionName("uuid-ossp")
.dbInstanceId(defaultqsmpIy.id())
.databaseName(defaultPPmRVa.databaseName())
.isLaexampleVersion(true)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultiYyNGW:
type: alicloud:vpc:Network
properties:
cidrBlock: 192.168.0.0/16
defaultPlruct:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultiYyNGW.id}
zoneId: cn-beijing-h
cidrBlock: 192.168.1.0/24
defaultqsmpIy:
type: alicloud:gpdb:Instance
properties:
instanceSpec: 2C8G
segNodeNum: '2'
segStorageType: cloud_essd
instanceNetworkType: VPC
dbInstanceCategory: Basic
paymentType: PayAsYouGo
sslEnabled: '0'
engineVersion: '6.0'
engine: gpdb
zoneId: cn-beijing-h
vswitchId: ${defaultPlruct.id}
storageSize: '50'
masterCu: '4'
vpcId: ${defaultiYyNGW.id}
dbInstanceMode: StorageElastic
defaultOwner:
type: alicloud:gpdb:Account
properties:
accountName: tf_example
accountPassword: Example1234
accountDescription: tf_example
dbInstanceId: ${defaultqsmpIy.id}
defaultPPmRVa:
type: alicloud:gpdb:Database
properties:
owner: ${defaultOwner.accountName}
databaseName: seagull
dbInstanceId: ${defaultqsmpIy.id}
characterSetName: UTF8
collate: en_US.utf8
ctype: en_US.utf8
default:
type: alicloud:gpdb:DbExtension
properties:
extensionName: uuid-ossp
dbInstanceId: ${defaultqsmpIy.id}
databaseName: ${defaultPPmRVa.databaseName}
isLaexampleVersion: true
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
resource "alicloud_vpc_network" "defaultiYyNGW" {
cidr_block = "192.168.0.0/16"
}
resource "alicloud_vpc_switch" "defaultPlruct" {
vpc_id = alicloud_vpc_network.defaultiYyNGW.id
zone_id = "cn-beijing-h"
cidr_block = "192.168.1.0/24"
}
resource "alicloud_gpdb_instance" "defaultqsmpIy" {
instance_spec = "2C8G"
seg_node_num = "2"
seg_storage_type = "cloud_essd"
instance_network_type = "VPC"
db_instance_category = "Basic"
payment_type = "PayAsYouGo"
ssl_enabled = "0"
engine_version = "6.0"
engine = "gpdb"
zone_id = "cn-beijing-h"
vswitch_id = alicloud_vpc_switch.defaultPlruct.id
storage_size = "50"
master_cu = "4"
vpc_id = alicloud_vpc_network.defaultiYyNGW.id
db_instance_mode = "StorageElastic"
}
resource "alicloud_gpdb_account" "defaultOwner" {
account_name = "tf_example"
account_password = "Example1234"
account_description = "tf_example"
db_instance_id = alicloud_gpdb_instance.defaultqsmpIy.id
}
resource "alicloud_gpdb_database" "defaultPPmRVa" {
owner = alicloud_gpdb_account.defaultOwner.account_name
database_name = "seagull"
db_instance_id = alicloud_gpdb_instance.defaultqsmpIy.id
character_set_name = "UTF8"
collate = "en_US.utf8"
ctype = "en_US.utf8"
}
resource "alicloud_gpdb_dbextension" "default" {
extension_name = "uuid-ossp"
db_instance_id = alicloud_gpdb_instance.defaultqsmpIy.id
database_name = alicloud_gpdb_database.defaultPPmRVa.database_name
is_laexample_version = true
}
variable "name" {
type = string
default = "terraform-example"
}
📚 Need more examples? VIEW MORE EXAMPLES
Create DbExtension Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbExtension(name: string, args: DbExtensionArgs, opts?: CustomResourceOptions);@overload
def DbExtension(resource_name: str,
args: DbExtensionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbExtension(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_name: Optional[str] = None,
db_instance_id: Optional[str] = None,
extension_name: Optional[str] = None,
is_latest_version: Optional[bool] = None)func NewDbExtension(ctx *Context, name string, args DbExtensionArgs, opts ...ResourceOption) (*DbExtension, error)public DbExtension(string name, DbExtensionArgs args, CustomResourceOptions? opts = null)
public DbExtension(String name, DbExtensionArgs args)
public DbExtension(String name, DbExtensionArgs args, CustomResourceOptions options)
type: alicloud:gpdb:DbExtension
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_gpdb_db_extension" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DbExtensionArgs
- 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 DbExtensionArgs
- 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 DbExtensionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbExtensionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbExtensionArgs
- 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 dbExtensionResource = new AliCloud.Gpdb.DbExtension("dbExtensionResource", new()
{
DatabaseName = "string",
DbInstanceId = "string",
ExtensionName = "string",
IsLatestVersion = false,
});
example, err := gpdb.NewDbExtension(ctx, "dbExtensionResource", &gpdb.DbExtensionArgs{
DatabaseName: pulumi.String("string"),
DbInstanceId: pulumi.String("string"),
ExtensionName: pulumi.String("string"),
IsLatestVersion: pulumi.Bool(false),
})
resource "alicloud_gpdb_db_extension" "dbExtensionResource" {
lifecycle {
create_before_destroy = true
}
database_name = "string"
db_instance_id = "string"
extension_name = "string"
is_latest_version = false
}
var dbExtensionResource = new DbExtension("dbExtensionResource", DbExtensionArgs.builder()
.databaseName("string")
.dbInstanceId("string")
.extensionName("string")
.isLatestVersion(false)
.build());
db_extension_resource = alicloud.gpdb.DbExtension("dbExtensionResource",
database_name="string",
db_instance_id="string",
extension_name="string",
is_latest_version=False)
const dbExtensionResource = new alicloud.gpdb.DbExtension("dbExtensionResource", {
databaseName: "string",
dbInstanceId: "string",
extensionName: "string",
isLatestVersion: false,
});
type: alicloud:gpdb:DbExtension
properties:
databaseName: string
dbInstanceId: string
extensionName: string
isLatestVersion: false
DbExtension 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 DbExtension resource accepts the following input properties:
- Database
Name string - The name of the database.
- Db
Instance stringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- Extension
Name string - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- Is
Latest boolVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- Database
Name string - The name of the database.
- Db
Instance stringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- Extension
Name string - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- Is
Latest boolVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- database_
name string - The name of the database.
- db_
instance_ stringid The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- extension_
name string - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is_
latest_ boolversion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- database
Name String - The name of the database.
- db
Instance StringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- extension
Name String - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is
Latest BooleanVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- database
Name string - The name of the database.
- db
Instance stringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- extension
Name string - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is
Latest booleanVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- database_
name str - The name of the database.
- db_
instance_ strid The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- extension_
name str - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is_
latest_ boolversion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- database
Name String - The name of the database.
- db
Instance StringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- extension
Name String - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is
Latest BooleanVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbExtension resource produces the following output properties:
- Current
Version string - Plug-in current version.
- Description string
- Plug-in description.
- Extension
Id string - Plug-in id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Install boolNeed Restart - Whether the instance needs to be restarted for installation.
- Latest
Version string - Plug-in latest version.
- Status string
- The status of the extension.
- Current
Version string - Plug-in current version.
- Description string
- Plug-in description.
- Extension
Id string - Plug-in id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Install boolNeed Restart - Whether the instance needs to be restarted for installation.
- Latest
Version string - Plug-in latest version.
- Status string
- The status of the extension.
- current_
version string - Plug-in current version.
- description string
- Plug-in description.
- extension_
id string - Plug-in id.
- id string
- The provider-assigned unique ID for this managed resource.
- is_
install_ boolneed_ restart - Whether the instance needs to be restarted for installation.
- latest_
version string - Plug-in latest version.
- status string
- The status of the extension.
- current
Version String - Plug-in current version.
- description String
- Plug-in description.
- extension
Id String - Plug-in id.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Install BooleanNeed Restart - Whether the instance needs to be restarted for installation.
- latest
Version String - Plug-in latest version.
- status String
- The status of the extension.
- current
Version string - Plug-in current version.
- description string
- Plug-in description.
- extension
Id string - Plug-in id.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Install booleanNeed Restart - Whether the instance needs to be restarted for installation.
- latest
Version string - Plug-in latest version.
- status string
- The status of the extension.
- current_
version str - Plug-in current version.
- description str
- Plug-in description.
- extension_
id str - Plug-in id.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
install_ boolneed_ restart - Whether the instance needs to be restarted for installation.
- latest_
version str - Plug-in latest version.
- status str
- The status of the extension.
- current
Version String - Plug-in current version.
- description String
- Plug-in description.
- extension
Id String - Plug-in id.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Install BooleanNeed Restart - Whether the instance needs to be restarted for installation.
- latest
Version String - Plug-in latest version.
- status String
- The status of the extension.
Look up Existing DbExtension Resource
Get an existing DbExtension 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?: DbExtensionState, opts?: CustomResourceOptions): DbExtension@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
current_version: Optional[str] = None,
database_name: Optional[str] = None,
db_instance_id: Optional[str] = None,
description: Optional[str] = None,
extension_id: Optional[str] = None,
extension_name: Optional[str] = None,
is_install_need_restart: Optional[bool] = None,
is_latest_version: Optional[bool] = None,
latest_version: Optional[str] = None,
status: Optional[str] = None) -> DbExtensionfunc GetDbExtension(ctx *Context, name string, id IDInput, state *DbExtensionState, opts ...ResourceOption) (*DbExtension, error)public static DbExtension Get(string name, Input<string> id, DbExtensionState? state, CustomResourceOptions? opts = null)public static DbExtension get(String name, Output<String> id, DbExtensionState state, CustomResourceOptions options)resources: _: type: alicloud:gpdb:DbExtension get: id: ${id}import {
to = alicloud_gpdb_db_extension.example
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.
- Current
Version string - Plug-in current version.
- Database
Name string - The name of the database.
- Db
Instance stringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- Description string
- Plug-in description.
- Extension
Id string - Plug-in id.
- Extension
Name string - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- Is
Install boolNeed Restart - Whether the instance needs to be restarted for installation.
- Is
Latest boolVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- Latest
Version string - Plug-in latest version.
- Status string
- The status of the extension.
- Current
Version string - Plug-in current version.
- Database
Name string - The name of the database.
- Db
Instance stringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- Description string
- Plug-in description.
- Extension
Id string - Plug-in id.
- Extension
Name string - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- Is
Install boolNeed Restart - Whether the instance needs to be restarted for installation.
- Is
Latest boolVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- Latest
Version string - Plug-in latest version.
- Status string
- The status of the extension.
- current_
version string - Plug-in current version.
- database_
name string - The name of the database.
- db_
instance_ stringid The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- description string
- Plug-in description.
- extension_
id string - Plug-in id.
- extension_
name string - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is_
install_ boolneed_ restart - Whether the instance needs to be restarted for installation.
- is_
latest_ boolversion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- latest_
version string - Plug-in latest version.
- status string
- The status of the extension.
- current
Version String - Plug-in current version.
- database
Name String - The name of the database.
- db
Instance StringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- description String
- Plug-in description.
- extension
Id String - Plug-in id.
- extension
Name String - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is
Install BooleanNeed Restart - Whether the instance needs to be restarted for installation.
- is
Latest BooleanVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- latest
Version String - Plug-in latest version.
- status String
- The status of the extension.
- current
Version string - Plug-in current version.
- database
Name string - The name of the database.
- db
Instance stringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- description string
- Plug-in description.
- extension
Id string - Plug-in id.
- extension
Name string - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is
Install booleanNeed Restart - Whether the instance needs to be restarted for installation.
- is
Latest booleanVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- latest
Version string - Plug-in latest version.
- status string
- The status of the extension.
- current_
version str - Plug-in current version.
- database_
name str - The name of the database.
- db_
instance_ strid The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- description str
- Plug-in description.
- extension_
id str - Plug-in id.
- extension_
name str - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is_
install_ boolneed_ restart - Whether the instance needs to be restarted for installation.
- is_
latest_ boolversion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- latest_
version str - Plug-in latest version.
- status str
- The status of the extension.
- current
Version String - Plug-in current version.
- database
Name String - The name of the database.
- db
Instance StringId The instance ID.
NOTE: You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
- description String
- Plug-in description.
- extension
Id String - Plug-in id.
- extension
Name String - The name of the extension to install. Each resource manages exactly one extension; multiple extension names are not supported.
- is
Install BooleanNeed Restart - Whether the instance needs to be restarted for installation.
- is
Latest BooleanVersion - Whether the extension is at its latest version. Setting it to true calls UpgradeExtensions to upgrade the extension to the latest version. Leaving it unset or setting it to false triggers no upgrade and does not downgrade the extension. On read, this field is refreshed with the actual value returned by the server.
- latest
Version String - Plug-in latest version.
- status String
- The status of the extension.
Import
AnalyticDB for PostgreSQL (GPDB) Db Extension can be imported using the id, e.g.
$ pulumi import alicloud:gpdb/dbExtension:DbExtension example <db_instance_id>:<database_name>:<extension_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Thursday, Sep 17, 2026 by Pulumi