published on Saturday, Apr 4, 2026 by Pulumi
published on Saturday, Apr 4, 2026 by Pulumi
Provides a Lindorm Public Network resource.
Public network connection of Lindorm instance.
For information about Lindorm Public Network and how to use it, see What is Public Network.
NOTE: Available since v1.250.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 zoneId = config.get("zoneId") || "cn-shanghai-f";
const regionId = config.get("regionId") || "cn-shanghai";
const defaultX7MgJO = new alicloud.vpc.Network("defaultX7MgJO", {
description: name,
cidrBlock: "10.0.0.0/8",
vpcName: "amp-example-shanghai",
});
const default45mCzM = new alicloud.vpc.Switch("default45mCzM", {
description: name,
vpcId: defaultX7MgJO.id,
zoneId: zoneId,
cidrBlock: "10.0.0.0/24",
});
const defaultQpsLKr = new alicloud.lindorm.Instance("defaultQpsLKr", {
paymentType: "PayAsYouGo",
tableEngineNodeCount: 2,
instanceStorage: "80",
zoneId: zoneId,
vswitchId: default45mCzM.id,
diskCategory: "cloud_efficiency",
tableEngineSpecification: "lindorm.g.xlarge",
instanceName: "tf-example",
vpcId: defaultX7MgJO.id,
});
const _default = new alicloud.lindorm.PublicNetwork("default", {
instanceId: defaultQpsLKr.id,
enablePublicNetwork: 1,
engineType: "lindorm",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
zone_id = config.get("zoneId")
if zone_id is None:
zone_id = "cn-shanghai-f"
region_id = config.get("regionId")
if region_id is None:
region_id = "cn-shanghai"
default_x7_mg_jo = alicloud.vpc.Network("defaultX7MgJO",
description=name,
cidr_block="10.0.0.0/8",
vpc_name="amp-example-shanghai")
default45m_cz_m = alicloud.vpc.Switch("default45mCzM",
description=name,
vpc_id=default_x7_mg_jo.id,
zone_id=zone_id,
cidr_block="10.0.0.0/24")
default_qps_l_kr = alicloud.lindorm.Instance("defaultQpsLKr",
payment_type="PayAsYouGo",
table_engine_node_count=2,
instance_storage="80",
zone_id=zone_id,
vswitch_id=default45m_cz_m.id,
disk_category="cloud_efficiency",
table_engine_specification="lindorm.g.xlarge",
instance_name="tf-example",
vpc_id=default_x7_mg_jo.id)
default = alicloud.lindorm.PublicNetwork("default",
instance_id=default_qps_l_kr.id,
enable_public_network=1,
engine_type="lindorm")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/lindorm"
"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
}
zoneId := "cn-shanghai-f"
if param := cfg.Get("zoneId"); param != "" {
zoneId = param
}
regionId := "cn-shanghai"
if param := cfg.Get("regionId"); param != "" {
regionId = param
}
defaultX7MgJO, err := vpc.NewNetwork(ctx, "defaultX7MgJO", &vpc.NetworkArgs{
Description: pulumi.String(pulumi.String(name)),
CidrBlock: pulumi.String("10.0.0.0/8"),
VpcName: pulumi.String("amp-example-shanghai"),
})
if err != nil {
return err
}
default45mCzM, err := vpc.NewSwitch(ctx, "default45mCzM", &vpc.SwitchArgs{
Description: pulumi.String(pulumi.String(name)),
VpcId: defaultX7MgJO.ID(),
ZoneId: pulumi.String(pulumi.String(zoneId)),
CidrBlock: pulumi.String("10.0.0.0/24"),
})
if err != nil {
return err
}
defaultQpsLKr, err := lindorm.NewInstance(ctx, "defaultQpsLKr", &lindorm.InstanceArgs{
PaymentType: pulumi.String("PayAsYouGo"),
TableEngineNodeCount: pulumi.Int(2),
InstanceStorage: pulumi.String("80"),
ZoneId: pulumi.String(pulumi.String(zoneId)),
VswitchId: default45mCzM.ID(),
DiskCategory: pulumi.String("cloud_efficiency"),
TableEngineSpecification: pulumi.String("lindorm.g.xlarge"),
InstanceName: pulumi.String("tf-example"),
VpcId: defaultX7MgJO.ID(),
})
if err != nil {
return err
}
_, err = lindorm.NewPublicNetwork(ctx, "default", &lindorm.PublicNetworkArgs{
InstanceId: defaultQpsLKr.ID(),
EnablePublicNetwork: pulumi.Int(1),
EngineType: pulumi.String("lindorm"),
})
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 zoneId = config.Get("zoneId") ?? "cn-shanghai-f";
var regionId = config.Get("regionId") ?? "cn-shanghai";
var defaultX7MgJO = new AliCloud.Vpc.Network("defaultX7MgJO", new()
{
Description = name,
CidrBlock = "10.0.0.0/8",
VpcName = "amp-example-shanghai",
});
var default45mCzM = new AliCloud.Vpc.Switch("default45mCzM", new()
{
Description = name,
VpcId = defaultX7MgJO.Id,
ZoneId = zoneId,
CidrBlock = "10.0.0.0/24",
});
var defaultQpsLKr = new AliCloud.Lindorm.Instance("defaultQpsLKr", new()
{
PaymentType = "PayAsYouGo",
TableEngineNodeCount = 2,
InstanceStorage = "80",
ZoneId = zoneId,
VswitchId = default45mCzM.Id,
DiskCategory = "cloud_efficiency",
TableEngineSpecification = "lindorm.g.xlarge",
InstanceName = "tf-example",
VpcId = defaultX7MgJO.Id,
});
var @default = new AliCloud.Lindorm.PublicNetwork("default", new()
{
InstanceId = defaultQpsLKr.Id,
EnablePublicNetwork = 1,
EngineType = "lindorm",
});
});
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.lindorm.Instance;
import com.pulumi.alicloud.lindorm.InstanceArgs;
import com.pulumi.alicloud.lindorm.PublicNetwork;
import com.pulumi.alicloud.lindorm.PublicNetworkArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var zoneId = config.get("zoneId").orElse("cn-shanghai-f");
final var regionId = config.get("regionId").orElse("cn-shanghai");
var defaultX7MgJO = new Network("defaultX7MgJO", NetworkArgs.builder()
.description(name)
.cidrBlock("10.0.0.0/8")
.vpcName("amp-example-shanghai")
.build());
var default45mCzM = new Switch("default45mCzM", SwitchArgs.builder()
.description(name)
.vpcId(defaultX7MgJO.id())
.zoneId(zoneId)
.cidrBlock("10.0.0.0/24")
.build());
var defaultQpsLKr = new Instance("defaultQpsLKr", InstanceArgs.builder()
.paymentType("PayAsYouGo")
.tableEngineNodeCount(2)
.instanceStorage("80")
.zoneId(zoneId)
.vswitchId(default45mCzM.id())
.diskCategory("cloud_efficiency")
.tableEngineSpecification("lindorm.g.xlarge")
.instanceName("tf-example")
.vpcId(defaultX7MgJO.id())
.build());
var default_ = new PublicNetwork("default", PublicNetworkArgs.builder()
.instanceId(defaultQpsLKr.id())
.enablePublicNetwork(1)
.engineType("lindorm")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
zoneId:
type: string
default: cn-shanghai-f
regionId:
type: string
default: cn-shanghai
resources:
defaultX7MgJO:
type: alicloud:vpc:Network
properties:
description: ${name}
cidrBlock: 10.0.0.0/8
vpcName: amp-example-shanghai
default45mCzM:
type: alicloud:vpc:Switch
properties:
description: ${name}
vpcId: ${defaultX7MgJO.id}
zoneId: ${zoneId}
cidrBlock: 10.0.0.0/24
defaultQpsLKr:
type: alicloud:lindorm:Instance
properties:
paymentType: PayAsYouGo
tableEngineNodeCount: '2'
instanceStorage: '80'
zoneId: ${zoneId}
vswitchId: ${default45mCzM.id}
diskCategory: cloud_efficiency
tableEngineSpecification: lindorm.g.xlarge
instanceName: tf-example
vpcId: ${defaultX7MgJO.id}
default:
type: alicloud:lindorm:PublicNetwork
properties:
instanceId: ${defaultQpsLKr.id}
enablePublicNetwork: '1'
engineType: lindorm
Deleting alicloud.lindorm.PublicNetwork or removing it from your configuration
Terraform cannot destroy resource alicloud.lindorm.PublicNetwork. Terraform will remove this resource from the state file, however resources may remain.
📚 Need more examples? VIEW MORE EXAMPLES
Create PublicNetwork Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PublicNetwork(name: string, args: PublicNetworkArgs, opts?: CustomResourceOptions);@overload
def PublicNetwork(resource_name: str,
args: PublicNetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PublicNetwork(resource_name: str,
opts: Optional[ResourceOptions] = None,
engine_type: Optional[str] = None,
instance_id: Optional[str] = None,
enable_public_network: Optional[int] = None)func NewPublicNetwork(ctx *Context, name string, args PublicNetworkArgs, opts ...ResourceOption) (*PublicNetwork, error)public PublicNetwork(string name, PublicNetworkArgs args, CustomResourceOptions? opts = null)
public PublicNetwork(String name, PublicNetworkArgs args)
public PublicNetwork(String name, PublicNetworkArgs args, CustomResourceOptions options)
type: alicloud:lindorm:PublicNetwork
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 PublicNetworkArgs
- 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 PublicNetworkArgs
- 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 PublicNetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PublicNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PublicNetworkArgs
- 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 publicNetworkResource = new AliCloud.Lindorm.PublicNetwork("publicNetworkResource", new()
{
EngineType = "string",
InstanceId = "string",
EnablePublicNetwork = 0,
});
example, err := lindorm.NewPublicNetwork(ctx, "publicNetworkResource", &lindorm.PublicNetworkArgs{
EngineType: pulumi.String("string"),
InstanceId: pulumi.String("string"),
EnablePublicNetwork: pulumi.Int(0),
})
var publicNetworkResource = new PublicNetwork("publicNetworkResource", PublicNetworkArgs.builder()
.engineType("string")
.instanceId("string")
.enablePublicNetwork(0)
.build());
public_network_resource = alicloud.lindorm.PublicNetwork("publicNetworkResource",
engine_type="string",
instance_id="string",
enable_public_network=0)
const publicNetworkResource = new alicloud.lindorm.PublicNetwork("publicNetworkResource", {
engineType: "string",
instanceId: "string",
enablePublicNetwork: 0,
});
type: alicloud:lindorm:PublicNetwork
properties:
enablePublicNetwork: 0
engineType: string
instanceId: string
PublicNetwork 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 PublicNetwork resource accepts the following input properties:
- Engine
Type string - Engine type, value:
- Instance
Id string - Instance ID
- Enable
Public intNetwork - Open or close the public connection. Value:
- Engine
Type string - Engine type, value:
- Instance
Id string - Instance ID
- Enable
Public intNetwork - Open or close the public connection. Value:
- engine
Type String - Engine type, value:
- instance
Id String - Instance ID
- enable
Public IntegerNetwork - Open or close the public connection. Value:
- engine
Type string - Engine type, value:
- instance
Id string - Instance ID
- enable
Public numberNetwork - Open or close the public connection. Value:
- engine_
type str - Engine type, value:
- instance_
id str - Instance ID
- enable_
public_ intnetwork - Open or close the public connection. Value:
- engine
Type String - Engine type, value:
- instance
Id String - Instance ID
- enable
Public NumberNetwork - Open or close the public connection. Value:
Outputs
All input properties are implicitly available as output properties. Additionally, the PublicNetwork resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
Look up Existing PublicNetwork Resource
Get an existing PublicNetwork 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?: PublicNetworkState, opts?: CustomResourceOptions): PublicNetwork@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enable_public_network: Optional[int] = None,
engine_type: Optional[str] = None,
instance_id: Optional[str] = None,
status: Optional[str] = None) -> PublicNetworkfunc GetPublicNetwork(ctx *Context, name string, id IDInput, state *PublicNetworkState, opts ...ResourceOption) (*PublicNetwork, error)public static PublicNetwork Get(string name, Input<string> id, PublicNetworkState? state, CustomResourceOptions? opts = null)public static PublicNetwork get(String name, Output<String> id, PublicNetworkState state, CustomResourceOptions options)resources: _: type: alicloud:lindorm:PublicNetwork 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.
- Enable
Public intNetwork - Open or close the public connection. Value:
- Engine
Type string - Engine type, value:
- Instance
Id string - Instance ID
- Status string
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- Enable
Public intNetwork - Open or close the public connection. Value:
- Engine
Type string - Engine type, value:
- Instance
Id string - Instance ID
- Status string
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- enable
Public IntegerNetwork - Open or close the public connection. Value:
- engine
Type String - Engine type, value:
- instance
Id String - Instance ID
- status String
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- enable
Public numberNetwork - Open or close the public connection. Value:
- engine
Type string - Engine type, value:
- instance
Id string - Instance ID
- status string
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- enable_
public_ intnetwork - Open or close the public connection. Value:
- engine_
type str - Engine type, value:
- instance_
id str - Instance ID
- status str
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
- enable
Public NumberNetwork - Open or close the public connection. Value:
- engine
Type String - Engine type, value:
- instance
Id String - Instance ID
- status String
- Instance status, returns:_EXPANDING
: Capacity-based cloud storage is being expanded._version_transing: The minor version is being upgraded._CHANGING: The specification is being upgraded or downgraded._SWITCHING:SSL is being changed._OPENING: The data subscription function is being activated._TRANSFER: migrates data to the database._CREATING: in the production disaster recovery instance._RECOVERING: The backup is being restored._IMPORTING: Data is being imported._MODIFYING: The network is being changed._SWITCHING: The internal network and the external network are being switched._CREATING: creates a network link._DELETING`: deletes a network link.
Import
Lindorm Public Network can be imported using the id, e.g.
$ pulumi import alicloud:lindorm/publicNetwork:PublicNetwork example <id>
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 Saturday, Apr 4, 2026 by Pulumi
