published on Thursday, Jun 25, 2026 by Pulumi
published on Thursday, Jun 25, 2026 by Pulumi
Provides a PolarDB Application Endpoint resource. This resource is used to manage the network access endpoints (such as Public Network) for a specific PolarDB AI Application.
NOTE: Available since v1.279.0.
Example Usage
Create a PolarDB Application Endpoint
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Assume you have already created a PolarDB Application
const _default = new alicloud.polardb.ApplicationEndpoint("default", {
applicationId: "pa-xxx",
endpointId: "pa-xxx",
netType: "Public",
});
import pulumi
import pulumi_alicloud as alicloud
# Assume you have already created a PolarDB Application
default = alicloud.polardb.ApplicationEndpoint("default",
application_id="pa-xxx",
endpoint_id="pa-xxx",
net_type="Public")
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 {
// Assume you have already created a PolarDB Application
_, err := polardb.NewApplicationEndpoint(ctx, "default", &polardb.ApplicationEndpointArgs{
ApplicationId: pulumi.String("pa-xxx"),
EndpointId: pulumi.String("pa-xxx"),
NetType: pulumi.String("Public"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Assume you have already created a PolarDB Application
var @default = new AliCloud.PolarDB.ApplicationEndpoint("default", new()
{
ApplicationId = "pa-xxx",
EndpointId = "pa-xxx",
NetType = "Public",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.polardb.ApplicationEndpoint;
import com.pulumi.alicloud.polardb.ApplicationEndpointArgs;
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) {
// Assume you have already created a PolarDB Application
var default_ = new ApplicationEndpoint("default", ApplicationEndpointArgs.builder()
.applicationId("pa-xxx")
.endpointId("pa-xxx")
.netType("Public")
.build());
}
}
resources:
# Assume you have already created a PolarDB Application
default:
type: alicloud:polardb:ApplicationEndpoint
properties:
applicationId: pa-xxx
endpointId: pa-xxx
netType: Public
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
# Assume you have already created a PolarDB Application
resource "alicloud_polardb_applicationendpoint" "default" {
application_id = "pa-xxx"
endpoint_id = "pa-xxx"
net_type = "Public"
}
Removing alicloud.polardb.ApplicationEndpoint from your configuration
The alicloud.polardb.ApplicationEndpoint resource allows you to manage the network endpoints of your PolarDB application. Removing this resource from your configuration will remove it from your statefile and management, but may not disable the network access immediately depending on the underlying API behavior. Please verify the status in the PolarDB Console.
📚 Need more examples? VIEW MORE EXAMPLES
Create ApplicationEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplicationEndpoint(name: string, args: ApplicationEndpointArgs, opts?: CustomResourceOptions);@overload
def ApplicationEndpoint(resource_name: str,
args: ApplicationEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApplicationEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
endpoint_id: Optional[str] = None,
net_type: Optional[str] = None)func NewApplicationEndpoint(ctx *Context, name string, args ApplicationEndpointArgs, opts ...ResourceOption) (*ApplicationEndpoint, error)public ApplicationEndpoint(string name, ApplicationEndpointArgs args, CustomResourceOptions? opts = null)
public ApplicationEndpoint(String name, ApplicationEndpointArgs args)
public ApplicationEndpoint(String name, ApplicationEndpointArgs args, CustomResourceOptions options)
type: alicloud:polardb:ApplicationEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_polardb_applicationendpoint" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ApplicationEndpointArgs
- 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 ApplicationEndpointArgs
- 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 ApplicationEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationEndpointArgs
- 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 applicationEndpointResource = new AliCloud.PolarDB.ApplicationEndpoint("applicationEndpointResource", new()
{
ApplicationId = "string",
EndpointId = "string",
NetType = "string",
});
example, err := polardb.NewApplicationEndpoint(ctx, "applicationEndpointResource", &polardb.ApplicationEndpointArgs{
ApplicationId: pulumi.String("string"),
EndpointId: pulumi.String("string"),
NetType: pulumi.String("string"),
})
resource "alicloud_polardb_applicationendpoint" "applicationEndpointResource" {
application_id = "string"
endpoint_id = "string"
net_type = "string"
}
var applicationEndpointResource = new ApplicationEndpoint("applicationEndpointResource", ApplicationEndpointArgs.builder()
.applicationId("string")
.endpointId("string")
.netType("string")
.build());
application_endpoint_resource = alicloud.polardb.ApplicationEndpoint("applicationEndpointResource",
application_id="string",
endpoint_id="string",
net_type="string")
const applicationEndpointResource = new alicloud.polardb.ApplicationEndpoint("applicationEndpointResource", {
applicationId: "string",
endpointId: "string",
netType: "string",
});
type: alicloud:polardb:ApplicationEndpoint
properties:
applicationId: string
endpointId: string
netType: string
ApplicationEndpoint 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 ApplicationEndpoint resource accepts the following input properties:
- Application
Id string - The ID of the PolarDB application to which the endpoint belongs.
- Endpoint
Id string - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- Net
Type string - The network type of the endpoint. Valid value:
Public.
- Application
Id string - The ID of the PolarDB application to which the endpoint belongs.
- Endpoint
Id string - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- Net
Type string - The network type of the endpoint. Valid value:
Public.
- application_
id string - The ID of the PolarDB application to which the endpoint belongs.
- endpoint_
id string - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net_
type string - The network type of the endpoint. Valid value:
Public.
- application
Id String - The ID of the PolarDB application to which the endpoint belongs.
- endpoint
Id String - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net
Type String - The network type of the endpoint. Valid value:
Public.
- application
Id string - The ID of the PolarDB application to which the endpoint belongs.
- endpoint
Id string - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net
Type string - The network type of the endpoint. Valid value:
Public.
- application_
id str - The ID of the PolarDB application to which the endpoint belongs.
- endpoint_
id str - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net_
type str - The network type of the endpoint. Valid value:
Public.
- application
Id String - The ID of the PolarDB application to which the endpoint belongs.
- endpoint
Id String - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net
Type String - The network type of the endpoint. Valid value:
Public.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplicationEndpoint resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ApplicationEndpoint Resource
Get an existing ApplicationEndpoint 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?: ApplicationEndpointState, opts?: CustomResourceOptions): ApplicationEndpoint@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
endpoint_id: Optional[str] = None,
net_type: Optional[str] = None) -> ApplicationEndpointfunc GetApplicationEndpoint(ctx *Context, name string, id IDInput, state *ApplicationEndpointState, opts ...ResourceOption) (*ApplicationEndpoint, error)public static ApplicationEndpoint Get(string name, Input<string> id, ApplicationEndpointState? state, CustomResourceOptions? opts = null)public static ApplicationEndpoint get(String name, Output<String> id, ApplicationEndpointState state, CustomResourceOptions options)resources: _: type: alicloud:polardb:ApplicationEndpoint get: id: ${id}import {
to = alicloud_polardb_applicationendpoint.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.
- Application
Id string - The ID of the PolarDB application to which the endpoint belongs.
- Endpoint
Id string - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- Net
Type string - The network type of the endpoint. Valid value:
Public.
- Application
Id string - The ID of the PolarDB application to which the endpoint belongs.
- Endpoint
Id string - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- Net
Type string - The network type of the endpoint. Valid value:
Public.
- application_
id string - The ID of the PolarDB application to which the endpoint belongs.
- endpoint_
id string - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net_
type string - The network type of the endpoint. Valid value:
Public.
- application
Id String - The ID of the PolarDB application to which the endpoint belongs.
- endpoint
Id String - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net
Type String - The network type of the endpoint. Valid value:
Public.
- application
Id string - The ID of the PolarDB application to which the endpoint belongs.
- endpoint
Id string - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net
Type string - The network type of the endpoint. Valid value:
Public.
- application_
id str - The ID of the PolarDB application to which the endpoint belongs.
- endpoint_
id str - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net_
type str - The network type of the endpoint. Valid value:
Public.
- application
Id String - The ID of the PolarDB application to which the endpoint belongs.
- endpoint
Id String - The ID of the endpoint. This is usually obtained from the application details or list interfaces.
- net
Type String - The network type of the endpoint. Valid value:
Public.
Import
PolarDB Application Endpoint can be imported using the id, e.g.
$ pulumi import alicloud:polardb/applicationEndpoint:ApplicationEndpoint example pa-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, Jun 25, 2026 by Pulumi