published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Provides a PolarDB Gateway resource.
NOTE: Available since v1.290.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.polardb.Gateway("default", {
zoneId: "cn-beijing-l",
dbClusterClass: "polar.app.g2.small",
payType: "Postpaid",
vpcId: "vpc-xxx",
vswitchId: "vsw-xxx",
securityGroupId: "sg-xxx",
dbType: "PostgreSQL",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.polardb.Gateway("default",
zone_id="cn-beijing-l",
db_cluster_class="polar.app.g2.small",
pay_type="Postpaid",
vpc_id="vpc-xxx",
vswitch_id="vsw-xxx",
security_group_id="sg-xxx",
db_type="PostgreSQL")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/polardb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := polardb.NewGateway(ctx, "default", &polardb.GatewayArgs{
ZoneId: pulumi.String("cn-beijing-l"),
DbClusterClass: pulumi.String("polar.app.g2.small"),
PayType: pulumi.String("Postpaid"),
VpcId: pulumi.String("vpc-xxx"),
VswitchId: pulumi.String("vsw-xxx"),
SecurityGroupId: pulumi.String("sg-xxx"),
DbType: pulumi.String("PostgreSQL"),
})
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 @default = new AliCloud.PolarDB.Gateway("default", new()
{
ZoneId = "cn-beijing-l",
DbClusterClass = "polar.app.g2.small",
PayType = "Postpaid",
VpcId = "vpc-xxx",
VswitchId = "vsw-xxx",
SecurityGroupId = "sg-xxx",
DbType = "PostgreSQL",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.polardb.Gateway;
import com.pulumi.alicloud.polardb.GatewayArgs;
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) {
var default_ = new Gateway("default", GatewayArgs.builder()
.zoneId("cn-beijing-l")
.dbClusterClass("polar.app.g2.small")
.payType("Postpaid")
.vpcId("vpc-xxx")
.vswitchId("vsw-xxx")
.securityGroupId("sg-xxx")
.dbType("PostgreSQL")
.build());
}
}
resources:
default:
type: alicloud:polardb:Gateway
properties:
zoneId: cn-beijing-l
dbClusterClass: polar.app.g2.small
payType: Postpaid
vpcId: vpc-xxx
vswitchId: vsw-xxx
securityGroupId: sg-xxx
dbType: PostgreSQL
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
resource "alicloud_polardb_gateway" "default" {
zone_id = "cn-beijing-l"
db_cluster_class = "polar.app.g2.small"
pay_type = "Postpaid"
vpc_id = "vpc-xxx"
vswitch_id = "vsw-xxx"
security_group_id = "sg-xxx"
db_type = "PostgreSQL"
}
📚 Need more examples? VIEW MORE EXAMPLES
Create Gateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Gateway(name: string, args: GatewayArgs, opts?: CustomResourceOptions);@overload
def Gateway(resource_name: str,
args: GatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Gateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
pay_type: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
auto_renew: Optional[bool] = None,
db_cluster_class: Optional[str] = None,
db_type: Optional[str] = None,
period: Optional[str] = None,
security_group_id: Optional[str] = None,
used_time: Optional[int] = None,
zone_id: Optional[str] = None)func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)
public Gateway(String name, GatewayArgs args)
public Gateway(String name, GatewayArgs args, CustomResourceOptions options)
type: alicloud:polardb:Gateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_polardb_gateway" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args GatewayArgs
- 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 GatewayArgs
- 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 GatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayArgs
- 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 examplegatewayResourceResourceFromPolardbgateway = new AliCloud.PolarDB.Gateway("examplegatewayResourceResourceFromPolardbgateway", new()
{
PayType = "string",
VpcId = "string",
VswitchId = "string",
AutoRenew = false,
DbClusterClass = "string",
DbType = "string",
Period = "string",
SecurityGroupId = "string",
UsedTime = 0,
ZoneId = "string",
});
example, err := polardb.NewGateway(ctx, "examplegatewayResourceResourceFromPolardbgateway", &polardb.GatewayArgs{
PayType: pulumi.String("string"),
VpcId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
DbClusterClass: pulumi.String("string"),
DbType: pulumi.String("string"),
Period: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
UsedTime: pulumi.Int(0),
ZoneId: pulumi.String("string"),
})
resource "alicloud_polardb_gateway" "examplegatewayResourceResourceFromPolardbgateway" {
lifecycle {
create_before_destroy = true
}
pay_type = "string"
vpc_id = "string"
vswitch_id = "string"
auto_renew = false
db_cluster_class = "string"
db_type = "string"
period = "string"
security_group_id = "string"
used_time = 0
zone_id = "string"
}
var examplegatewayResourceResourceFromPolardbgateway = new com.pulumi.alicloud.polardb.Gateway("examplegatewayResourceResourceFromPolardbgateway", com.pulumi.alicloud.polardb.GatewayArgs.builder()
.payType("string")
.vpcId("string")
.vswitchId("string")
.autoRenew(false)
.dbClusterClass("string")
.dbType("string")
.period("string")
.securityGroupId("string")
.usedTime(0)
.zoneId("string")
.build());
examplegateway_resource_resource_from_polardbgateway = alicloud.polardb.Gateway("examplegatewayResourceResourceFromPolardbgateway",
pay_type="string",
vpc_id="string",
vswitch_id="string",
auto_renew=False,
db_cluster_class="string",
db_type="string",
period="string",
security_group_id="string",
used_time=0,
zone_id="string")
const examplegatewayResourceResourceFromPolardbgateway = new alicloud.polardb.Gateway("examplegatewayResourceResourceFromPolardbgateway", {
payType: "string",
vpcId: "string",
vswitchId: "string",
autoRenew: false,
dbClusterClass: "string",
dbType: "string",
period: "string",
securityGroupId: "string",
usedTime: 0,
zoneId: "string",
});
type: alicloud:polardb:Gateway
properties:
autoRenew: false
dbClusterClass: string
dbType: string
payType: string
period: string
securityGroupId: string
usedTime: 0
vpcId: string
vswitchId: string
zoneId: string
Gateway 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 Gateway resource accepts the following input properties:
- Pay
Type string - The billing method. Valid values:
Postpaid,Prepaid. - Vpc
Id string - The ID of the VPC.
- Vswitch
Id string - The ID of the vSwitch.
- Auto
Renew bool - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - Db
Cluster stringClass - The specifications of the PolarDB gateway.
- Db
Type string - The database engine. Valid values:
MySQL,PostgreSQL. - Period string
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - Security
Group stringId - The ID of the security group.
- Used
Time int - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - Zone
Id string - The zone ID of the PolarDB gateway.
- Pay
Type string - The billing method. Valid values:
Postpaid,Prepaid. - Vpc
Id string - The ID of the VPC.
- Vswitch
Id string - The ID of the vSwitch.
- Auto
Renew bool - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - Db
Cluster stringClass - The specifications of the PolarDB gateway.
- Db
Type string - The database engine. Valid values:
MySQL,PostgreSQL. - Period string
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - Security
Group stringId - The ID of the security group.
- Used
Time int - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - Zone
Id string - The zone ID of the PolarDB gateway.
- pay_
type string - The billing method. Valid values:
Postpaid,Prepaid. - vpc_
id string - The ID of the VPC.
- vswitch_
id string - The ID of the vSwitch.
- auto_
renew bool - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - db_
cluster_ stringclass - The specifications of the PolarDB gateway.
- db_
type string - The database engine. Valid values:
MySQL,PostgreSQL. - period string
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - security_
group_ stringid - The ID of the security group.
- used_
time number - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - zone_
id string - The zone ID of the PolarDB gateway.
- pay
Type String - The billing method. Valid values:
Postpaid,Prepaid. - vpc
Id String - The ID of the VPC.
- vswitch
Id String - The ID of the vSwitch.
- auto
Renew Boolean - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - db
Cluster StringClass - The specifications of the PolarDB gateway.
- db
Type String - The database engine. Valid values:
MySQL,PostgreSQL. - period String
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - security
Group StringId - The ID of the security group.
- used
Time Integer - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - zone
Id String - The zone ID of the PolarDB gateway.
- pay
Type string - The billing method. Valid values:
Postpaid,Prepaid. - vpc
Id string - The ID of the VPC.
- vswitch
Id string - The ID of the vSwitch.
- auto
Renew boolean - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - db
Cluster stringClass - The specifications of the PolarDB gateway.
- db
Type string - The database engine. Valid values:
MySQL,PostgreSQL. - period string
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - security
Group stringId - The ID of the security group.
- used
Time number - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - zone
Id string - The zone ID of the PolarDB gateway.
- pay_
type str - The billing method. Valid values:
Postpaid,Prepaid. - vpc_
id str - The ID of the VPC.
- vswitch_
id str - The ID of the vSwitch.
- auto_
renew bool - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - db_
cluster_ strclass - The specifications of the PolarDB gateway.
- db_
type str - The database engine. Valid values:
MySQL,PostgreSQL. - period str
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - security_
group_ strid - The ID of the security group.
- used_
time int - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - zone_
id str - The zone ID of the PolarDB gateway.
- pay
Type String - The billing method. Valid values:
Postpaid,Prepaid. - vpc
Id String - The ID of the VPC.
- vswitch
Id String - The ID of the vSwitch.
- auto
Renew Boolean - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - db
Cluster StringClass - The specifications of the PolarDB gateway.
- db
Type String - The database engine. Valid values:
MySQL,PostgreSQL. - period String
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - security
Group StringId - The ID of the security group.
- used
Time Number - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - zone
Id String - The zone ID of the PolarDB gateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:
- Create
Time string - (Available since v1.290.0) The time when the PolarDB gateway was created.
- Current
Version string - (Available since v1.290.0) The current gateway version.
- Description string
- (Available since v1.290.0) The description of the PolarDB gateway.
- Endpoints
List<Pulumi.
Ali Cloud. Polar DB. Outputs. Gateway Endpoint> - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- Expire
Time string - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- Expired bool
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version string - (Available since v1.290.0) The latest available gateway version.
- Modify
Time string - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- Region
Id string - (Available since v1.290.0) The region ID of the PolarDB gateway.
- Running
Version string - (Available since v1.290.0) The running gateway version.
- Security
Ip List<Pulumi.Arrays Ali Cloud. Polar DB. Outputs. Gateway Security Ip Array> - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- Status string
- (Available since v1.290.0) The status of the PolarDB gateway.
- Create
Time string - (Available since v1.290.0) The time when the PolarDB gateway was created.
- Current
Version string - (Available since v1.290.0) The current gateway version.
- Description string
- (Available since v1.290.0) The description of the PolarDB gateway.
- Endpoints
[]Gateway
Endpoint - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- Expire
Time string - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- Expired bool
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version string - (Available since v1.290.0) The latest available gateway version.
- Modify
Time string - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- Region
Id string - (Available since v1.290.0) The region ID of the PolarDB gateway.
- Running
Version string - (Available since v1.290.0) The running gateway version.
- Security
Ip []GatewayArrays Security Ip Array - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- Status string
- (Available since v1.290.0) The status of the PolarDB gateway.
- create_
time string - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current_
version string - (Available since v1.290.0) The current gateway version.
- description string
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints list(object)
- (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire_
time string - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired bool
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- id string
- The provider-assigned unique ID for this managed resource.
- latest_
version string - (Available since v1.290.0) The latest available gateway version.
- modify_
time string - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- region_
id string - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running_
version string - (Available since v1.290.0) The running gateway version.
- security_
ip_ list(object)arrays - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status string
- (Available since v1.290.0) The status of the PolarDB gateway.
- create
Time String - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current
Version String - (Available since v1.290.0) The current gateway version.
- description String
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints
List<Gateway
Endpoint> - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire
Time String - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired Boolean
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version String - (Available since v1.290.0) The latest available gateway version.
- modify
Time String - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- region
Id String - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running
Version String - (Available since v1.290.0) The running gateway version.
- security
Ip List<GatewayArrays Security Ip Array> - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status String
- (Available since v1.290.0) The status of the PolarDB gateway.
- create
Time string - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current
Version string - (Available since v1.290.0) The current gateway version.
- description string
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints
Gateway
Endpoint[] - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire
Time string - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired boolean
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Version string - (Available since v1.290.0) The latest available gateway version.
- modify
Time string - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- region
Id string - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running
Version string - (Available since v1.290.0) The running gateway version.
- security
Ip GatewayArrays Security Ip Array[] - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status string
- (Available since v1.290.0) The status of the PolarDB gateway.
- create_
time str - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current_
version str - (Available since v1.290.0) The current gateway version.
- description str
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints
Sequence[Gateway
Endpoint] - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire_
time str - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired bool
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
version str - (Available since v1.290.0) The latest available gateway version.
- modify_
time str - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- region_
id str - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running_
version str - (Available since v1.290.0) The running gateway version.
- security_
ip_ Sequence[Gatewayarrays Security Ip Array] - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status str
- (Available since v1.290.0) The status of the PolarDB gateway.
- create
Time String - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current
Version String - (Available since v1.290.0) The current gateway version.
- description String
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints List<Property Map>
- (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire
Time String - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired Boolean
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version String - (Available since v1.290.0) The latest available gateway version.
- modify
Time String - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- region
Id String - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running
Version String - (Available since v1.290.0) The running gateway version.
- security
Ip List<Property Map>Arrays - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status String
- (Available since v1.290.0) The status of the PolarDB gateway.
Look up Existing Gateway Resource
Get an existing Gateway 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?: GatewayState, opts?: CustomResourceOptions): Gateway@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew: Optional[bool] = None,
create_time: Optional[str] = None,
current_version: Optional[str] = None,
db_cluster_class: Optional[str] = None,
db_type: Optional[str] = None,
description: Optional[str] = None,
endpoints: Optional[Sequence[GatewayEndpointArgs]] = None,
expire_time: Optional[str] = None,
expired: Optional[bool] = None,
latest_version: Optional[str] = None,
modify_time: Optional[str] = None,
pay_type: Optional[str] = None,
period: Optional[str] = None,
region_id: Optional[str] = None,
running_version: Optional[str] = None,
security_group_id: Optional[str] = None,
security_ip_arrays: Optional[Sequence[GatewaySecurityIpArrayArgs]] = None,
status: Optional[str] = None,
used_time: Optional[int] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> Gatewayfunc GetGateway(ctx *Context, name string, id IDInput, state *GatewayState, opts ...ResourceOption) (*Gateway, error)public static Gateway Get(string name, Input<string> id, GatewayState? state, CustomResourceOptions? opts = null)public static Gateway get(String name, Output<String> id, GatewayState state, CustomResourceOptions options)resources: _: type: alicloud:polardb:Gateway get: id: ${id}import {
to = alicloud_polardb_gateway.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.
- Auto
Renew bool - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - Create
Time string - (Available since v1.290.0) The time when the PolarDB gateway was created.
- Current
Version string - (Available since v1.290.0) The current gateway version.
- Db
Cluster stringClass - The specifications of the PolarDB gateway.
- Db
Type string - The database engine. Valid values:
MySQL,PostgreSQL. - Description string
- (Available since v1.290.0) The description of the PolarDB gateway.
- Endpoints
List<Pulumi.
Ali Cloud. Polar DB. Inputs. Gateway Endpoint> - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- Expire
Time string - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- Expired bool
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- Latest
Version string - (Available since v1.290.0) The latest available gateway version.
- Modify
Time string - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- Pay
Type string - The billing method. Valid values:
Postpaid,Prepaid. - Period string
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - Region
Id string - (Available since v1.290.0) The region ID of the PolarDB gateway.
- Running
Version string - (Available since v1.290.0) The running gateway version.
- Security
Group stringId - The ID of the security group.
- Security
Ip List<Pulumi.Arrays Ali Cloud. Polar DB. Inputs. Gateway Security Ip Array> - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- Status string
- (Available since v1.290.0) The status of the PolarDB gateway.
- Used
Time int - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - Vpc
Id string - The ID of the VPC.
- Vswitch
Id string - The ID of the vSwitch.
- Zone
Id string - The zone ID of the PolarDB gateway.
- Auto
Renew bool - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - Create
Time string - (Available since v1.290.0) The time when the PolarDB gateway was created.
- Current
Version string - (Available since v1.290.0) The current gateway version.
- Db
Cluster stringClass - The specifications of the PolarDB gateway.
- Db
Type string - The database engine. Valid values:
MySQL,PostgreSQL. - Description string
- (Available since v1.290.0) The description of the PolarDB gateway.
- Endpoints
[]Gateway
Endpoint Args - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- Expire
Time string - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- Expired bool
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- Latest
Version string - (Available since v1.290.0) The latest available gateway version.
- Modify
Time string - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- Pay
Type string - The billing method. Valid values:
Postpaid,Prepaid. - Period string
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - Region
Id string - (Available since v1.290.0) The region ID of the PolarDB gateway.
- Running
Version string - (Available since v1.290.0) The running gateway version.
- Security
Group stringId - The ID of the security group.
- Security
Ip []GatewayArrays Security Ip Array Args - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- Status string
- (Available since v1.290.0) The status of the PolarDB gateway.
- Used
Time int - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - Vpc
Id string - The ID of the VPC.
- Vswitch
Id string - The ID of the vSwitch.
- Zone
Id string - The zone ID of the PolarDB gateway.
- auto_
renew bool - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - create_
time string - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current_
version string - (Available since v1.290.0) The current gateway version.
- db_
cluster_ stringclass - The specifications of the PolarDB gateway.
- db_
type string - The database engine. Valid values:
MySQL,PostgreSQL. - description string
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints list(object)
- (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire_
time string - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired bool
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- latest_
version string - (Available since v1.290.0) The latest available gateway version.
- modify_
time string - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- pay_
type string - The billing method. Valid values:
Postpaid,Prepaid. - period string
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - region_
id string - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running_
version string - (Available since v1.290.0) The running gateway version.
- security_
group_ stringid - The ID of the security group.
- security_
ip_ list(object)arrays - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status string
- (Available since v1.290.0) The status of the PolarDB gateway.
- used_
time number - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - vpc_
id string - The ID of the VPC.
- vswitch_
id string - The ID of the vSwitch.
- zone_
id string - The zone ID of the PolarDB gateway.
- auto
Renew Boolean - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - create
Time String - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current
Version String - (Available since v1.290.0) The current gateway version.
- db
Cluster StringClass - The specifications of the PolarDB gateway.
- db
Type String - The database engine. Valid values:
MySQL,PostgreSQL. - description String
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints
List<Gateway
Endpoint> - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire
Time String - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired Boolean
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- latest
Version String - (Available since v1.290.0) The latest available gateway version.
- modify
Time String - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- pay
Type String - The billing method. Valid values:
Postpaid,Prepaid. - period String
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - region
Id String - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running
Version String - (Available since v1.290.0) The running gateway version.
- security
Group StringId - The ID of the security group.
- security
Ip List<GatewayArrays Security Ip Array> - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status String
- (Available since v1.290.0) The status of the PolarDB gateway.
- used
Time Integer - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - vpc
Id String - The ID of the VPC.
- vswitch
Id String - The ID of the vSwitch.
- zone
Id String - The zone ID of the PolarDB gateway.
- auto
Renew boolean - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - create
Time string - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current
Version string - (Available since v1.290.0) The current gateway version.
- db
Cluster stringClass - The specifications of the PolarDB gateway.
- db
Type string - The database engine. Valid values:
MySQL,PostgreSQL. - description string
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints
Gateway
Endpoint[] - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire
Time string - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired boolean
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- latest
Version string - (Available since v1.290.0) The latest available gateway version.
- modify
Time string - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- pay
Type string - The billing method. Valid values:
Postpaid,Prepaid. - period string
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - region
Id string - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running
Version string - (Available since v1.290.0) The running gateway version.
- security
Group stringId - The ID of the security group.
- security
Ip GatewayArrays Security Ip Array[] - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status string
- (Available since v1.290.0) The status of the PolarDB gateway.
- used
Time number - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - vpc
Id string - The ID of the VPC.
- vswitch
Id string - The ID of the vSwitch.
- zone
Id string - The zone ID of the PolarDB gateway.
- auto_
renew bool - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - create_
time str - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current_
version str - (Available since v1.290.0) The current gateway version.
- db_
cluster_ strclass - The specifications of the PolarDB gateway.
- db_
type str - The database engine. Valid values:
MySQL,PostgreSQL. - description str
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints
Sequence[Gateway
Endpoint Args] - (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire_
time str - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired bool
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- latest_
version str - (Available since v1.290.0) The latest available gateway version.
- modify_
time str - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- pay_
type str - The billing method. Valid values:
Postpaid,Prepaid. - period str
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - region_
id str - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running_
version str - (Available since v1.290.0) The running gateway version.
- security_
group_ strid - The ID of the security group.
- security_
ip_ Sequence[Gatewayarrays Security Ip Array Args] - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status str
- (Available since v1.290.0) The status of the PolarDB gateway.
- used_
time int - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - vpc_
id str - The ID of the VPC.
- vswitch_
id str - The ID of the vSwitch.
- zone_
id str - The zone ID of the PolarDB gateway.
- auto
Renew Boolean - Whether to enable automatic renewal for a subscription gateway. Default value:
false. - create
Time String - (Available since v1.290.0) The time when the PolarDB gateway was created.
- current
Version String - (Available since v1.290.0) The current gateway version.
- db
Cluster StringClass - The specifications of the PolarDB gateway.
- db
Type String - The database engine. Valid values:
MySQL,PostgreSQL. - description String
- (Available since v1.290.0) The description of the PolarDB gateway.
- endpoints List<Property Map>
- (Available since v1.290.0) The endpoints of the PolarDB gateway. Each item contains the following attributes:
- expire
Time String - (Available since v1.290.0) The expiration time of the PolarDB gateway.
- expired Boolean
- (Available since v1.290.0) Indicates whether the PolarDB gateway has expired.
- latest
Version String - (Available since v1.290.0) The latest available gateway version.
- modify
Time String - (Available since v1.290.0) The time when the PolarDB gateway was last modified.
- pay
Type String - The billing method. Valid values:
Postpaid,Prepaid. - period String
- The unit of the subscription duration. Valid values:
Month,Year. This argument is required whenpayTypeisPrepaid. - region
Id String - (Available since v1.290.0) The region ID of the PolarDB gateway.
- running
Version String - (Available since v1.290.0) The running gateway version.
- security
Group StringId - The ID of the security group.
- security
Ip List<Property Map>Arrays - (Available since v1.290.0) The IP whitelist groups of the PolarDB gateway. Each item contains the following attributes:
- status String
- (Available since v1.290.0) The status of the PolarDB gateway.
- used
Time Number - The subscription duration. Valid values are
1to9whenperiodisMonth, and1to3whenperiodisYear. This argument is required whenpayTypeisPrepaid. - vpc
Id String - The ID of the VPC.
- vswitch
Id String - The ID of the vSwitch.
- zone
Id String - The zone ID of the PolarDB gateway.
Supporting Types
GatewayEndpoint, GatewayEndpointArgs
- Address string
- The endpoint address.
- Endpoint
Id string - The endpoint ID.
- Gateway
Id string - The gateway ID.
- Network
Type string - The network type. Valid values:
Private,Public. - Port int
- The endpoint port.
- Tunnel
Id string - The tunnel ID.
- Vpc
Id string - The ID of the VPC.
- Address string
- The endpoint address.
- Endpoint
Id string - The endpoint ID.
- Gateway
Id string - The gateway ID.
- Network
Type string - The network type. Valid values:
Private,Public. - Port int
- The endpoint port.
- Tunnel
Id string - The tunnel ID.
- Vpc
Id string - The ID of the VPC.
- address string
- The endpoint address.
- endpoint_
id string - The endpoint ID.
- gateway_
id string - The gateway ID.
- network_
type string - The network type. Valid values:
Private,Public. - port number
- The endpoint port.
- tunnel_
id string - The tunnel ID.
- vpc_
id string - The ID of the VPC.
- address String
- The endpoint address.
- endpoint
Id String - The endpoint ID.
- gateway
Id String - The gateway ID.
- network
Type String - The network type. Valid values:
Private,Public. - port Integer
- The endpoint port.
- tunnel
Id String - The tunnel ID.
- vpc
Id String - The ID of the VPC.
- address string
- The endpoint address.
- endpoint
Id string - The endpoint ID.
- gateway
Id string - The gateway ID.
- network
Type string - The network type. Valid values:
Private,Public. - port number
- The endpoint port.
- tunnel
Id string - The tunnel ID.
- vpc
Id string - The ID of the VPC.
- address str
- The endpoint address.
- endpoint_
id str - The endpoint ID.
- gateway_
id str - The gateway ID.
- network_
type str - The network type. Valid values:
Private,Public. - port int
- The endpoint port.
- tunnel_
id str - The tunnel ID.
- vpc_
id str - The ID of the VPC.
- address String
- The endpoint address.
- endpoint
Id String - The endpoint ID.
- gateway
Id String - The gateway ID.
- network
Type String - The network type. Valid values:
Private,Public. - port Number
- The endpoint port.
- tunnel
Id String - The tunnel ID.
- vpc
Id String - The ID of the VPC.
GatewaySecurityIpArray, GatewaySecurityIpArrayArgs
Import
PolarDB Gateway can be imported using the ID, e.g.
$ pulumi import alicloud:polardb/gateway:Gateway example gw-abc12345678
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