1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. mse
  5. NacosConfig
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.mse.NacosConfig

Explore with Pulumi AI

Provides a Microservice Engine (MSE) Nacos Config resource.

For information about Microservice Engine (MSE) Nacos Config and how to use it, see What is Nacos configuration

NOTE: Available since v1.233.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const exampleNetwork = new alicloud.vpc.Network("example", {
    vpcName: "terraform-example",
    cidrBlock: "172.17.3.0/24",
});
const exampleSwitch = new alicloud.vpc.Switch("example", {
    vswitchName: "terraform-example",
    cidrBlock: "172.17.3.0/24",
    vpcId: exampleNetwork.id,
    zoneId: example.then(example => example.zones?.[0]?.id),
});
const exampleCluster = new alicloud.mse.Cluster("example", {
    connectionType: "slb",
    netType: "privatenet",
    vswitchId: exampleSwitch.id,
    clusterSpecification: "MSE_SC_1_2_60_c",
    clusterVersion: "NACOS_2_0_0",
    instanceCount: 3,
    pubNetworkFlow: "1",
    clusterAliasName: "example",
    mseVersion: "mse_pro",
    clusterType: "Nacos-Ans",
});
const exampleEngineNamespace = new alicloud.mse.EngineNamespace("example", {
    instanceId: exampleCluster.id,
    namespaceShowName: "example",
    namespaceId: "example",
});
const exampleNacosConfig = new alicloud.mse.NacosConfig("example", {
    instanceId: exampleCluster.id,
    dataId: "example",
    group: "example",
    namespaceId: exampleEngineNamespace.namespaceId,
    content: "example",
    type: "text",
    tags: "example",
    appName: "example",
    desc: "example",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.get_zones(available_resource_creation="VSwitch")
example_network = alicloud.vpc.Network("example",
    vpc_name="terraform-example",
    cidr_block="172.17.3.0/24")
example_switch = alicloud.vpc.Switch("example",
    vswitch_name="terraform-example",
    cidr_block="172.17.3.0/24",
    vpc_id=example_network.id,
    zone_id=example.zones[0].id)
example_cluster = alicloud.mse.Cluster("example",
    connection_type="slb",
    net_type="privatenet",
    vswitch_id=example_switch.id,
    cluster_specification="MSE_SC_1_2_60_c",
    cluster_version="NACOS_2_0_0",
    instance_count=3,
    pub_network_flow="1",
    cluster_alias_name="example",
    mse_version="mse_pro",
    cluster_type="Nacos-Ans")
example_engine_namespace = alicloud.mse.EngineNamespace("example",
    instance_id=example_cluster.id,
    namespace_show_name="example",
    namespace_id="example")
example_nacos_config = alicloud.mse.NacosConfig("example",
    instance_id=example_cluster.id,
    data_id="example",
    group="example",
    namespace_id=example_engine_namespace.namespace_id,
    content="example",
    type="text",
    tags="example",
    app_name="example",
    desc="example")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/mse"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
			VpcName:   pulumi.String("terraform-example"),
			CidrBlock: pulumi.String("172.17.3.0/24"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
			VswitchName: pulumi.String("terraform-example"),
			CidrBlock:   pulumi.String("172.17.3.0/24"),
			VpcId:       exampleNetwork.ID(),
			ZoneId:      pulumi.String(example.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		exampleCluster, err := mse.NewCluster(ctx, "example", &mse.ClusterArgs{
			ConnectionType:       pulumi.String("slb"),
			NetType:              pulumi.String("privatenet"),
			VswitchId:            exampleSwitch.ID(),
			ClusterSpecification: pulumi.String("MSE_SC_1_2_60_c"),
			ClusterVersion:       pulumi.String("NACOS_2_0_0"),
			InstanceCount:        pulumi.Int(3),
			PubNetworkFlow:       pulumi.String("1"),
			ClusterAliasName:     pulumi.String("example"),
			MseVersion:           pulumi.String("mse_pro"),
			ClusterType:          pulumi.String("Nacos-Ans"),
		})
		if err != nil {
			return err
		}
		exampleEngineNamespace, err := mse.NewEngineNamespace(ctx, "example", &mse.EngineNamespaceArgs{
			InstanceId:        exampleCluster.ID(),
			NamespaceShowName: pulumi.String("example"),
			NamespaceId:       pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		_, err = mse.NewNacosConfig(ctx, "example", &mse.NacosConfigArgs{
			InstanceId:  exampleCluster.ID(),
			DataId:      pulumi.String("example"),
			Group:       pulumi.String("example"),
			NamespaceId: exampleEngineNamespace.NamespaceId,
			Content:     pulumi.String("example"),
			Type:        pulumi.String("text"),
			Tags:        pulumi.String("example"),
			AppName:     pulumi.String("example"),
			Desc:        pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "VSwitch",
    });

    var exampleNetwork = new AliCloud.Vpc.Network("example", new()
    {
        VpcName = "terraform-example",
        CidrBlock = "172.17.3.0/24",
    });

    var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
    {
        VswitchName = "terraform-example",
        CidrBlock = "172.17.3.0/24",
        VpcId = exampleNetwork.Id,
        ZoneId = example.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
    });

    var exampleCluster = new AliCloud.Mse.Cluster("example", new()
    {
        ConnectionType = "slb",
        NetType = "privatenet",
        VswitchId = exampleSwitch.Id,
        ClusterSpecification = "MSE_SC_1_2_60_c",
        ClusterVersion = "NACOS_2_0_0",
        InstanceCount = 3,
        PubNetworkFlow = "1",
        ClusterAliasName = "example",
        MseVersion = "mse_pro",
        ClusterType = "Nacos-Ans",
    });

    var exampleEngineNamespace = new AliCloud.Mse.EngineNamespace("example", new()
    {
        InstanceId = exampleCluster.Id,
        NamespaceShowName = "example",
        NamespaceId = "example",
    });

    var exampleNacosConfig = new AliCloud.Mse.NacosConfig("example", new()
    {
        InstanceId = exampleCluster.Id,
        DataId = "example",
        Group = "example",
        NamespaceId = exampleEngineNamespace.NamespaceId,
        Content = "example",
        Type = "text",
        Tags = "example",
        AppName = "example",
        Desc = "example",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
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.mse.Cluster;
import com.pulumi.alicloud.mse.ClusterArgs;
import com.pulumi.alicloud.mse.EngineNamespace;
import com.pulumi.alicloud.mse.EngineNamespaceArgs;
import com.pulumi.alicloud.mse.NacosConfig;
import com.pulumi.alicloud.mse.NacosConfigArgs;
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 example = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("VSwitch")
            .build());

        var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
            .vpcName("terraform-example")
            .cidrBlock("172.17.3.0/24")
            .build());

        var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
            .vswitchName("terraform-example")
            .cidrBlock("172.17.3.0/24")
            .vpcId(exampleNetwork.id())
            .zoneId(example.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
            .build());

        var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
            .connectionType("slb")
            .netType("privatenet")
            .vswitchId(exampleSwitch.id())
            .clusterSpecification("MSE_SC_1_2_60_c")
            .clusterVersion("NACOS_2_0_0")
            .instanceCount("3")
            .pubNetworkFlow("1")
            .clusterAliasName("example")
            .mseVersion("mse_pro")
            .clusterType("Nacos-Ans")
            .build());

        var exampleEngineNamespace = new EngineNamespace("exampleEngineNamespace", EngineNamespaceArgs.builder()
            .instanceId(exampleCluster.id())
            .namespaceShowName("example")
            .namespaceId("example")
            .build());

        var exampleNacosConfig = new NacosConfig("exampleNacosConfig", NacosConfigArgs.builder()
            .instanceId(exampleCluster.id())
            .dataId("example")
            .group("example")
            .namespaceId(exampleEngineNamespace.namespaceId())
            .content("example")
            .type("text")
            .tags("example")
            .appName("example")
            .desc("example")
            .build());

    }
}
Copy
resources:
  exampleNetwork:
    type: alicloud:vpc:Network
    name: example
    properties:
      vpcName: terraform-example
      cidrBlock: 172.17.3.0/24
  exampleSwitch:
    type: alicloud:vpc:Switch
    name: example
    properties:
      vswitchName: terraform-example
      cidrBlock: 172.17.3.0/24
      vpcId: ${exampleNetwork.id}
      zoneId: ${example.zones[0].id}
  exampleCluster:
    type: alicloud:mse:Cluster
    name: example
    properties:
      connectionType: slb
      netType: privatenet
      vswitchId: ${exampleSwitch.id}
      clusterSpecification: MSE_SC_1_2_60_c
      clusterVersion: NACOS_2_0_0
      instanceCount: '3'
      pubNetworkFlow: '1'
      clusterAliasName: example
      mseVersion: mse_pro
      clusterType: Nacos-Ans
  exampleEngineNamespace:
    type: alicloud:mse:EngineNamespace
    name: example
    properties:
      instanceId: ${exampleCluster.id}
      namespaceShowName: example
      namespaceId: example
  exampleNacosConfig:
    type: alicloud:mse:NacosConfig
    name: example
    properties:
      instanceId: ${exampleCluster.id}
      dataId: example
      group: example
      namespaceId: ${exampleEngineNamespace.namespaceId}
      content: example
      type: text
      tags: example
      appName: example
      desc: example
variables:
  example:
    fn::invoke:
      function: alicloud:getZones
      arguments:
        availableResourceCreation: VSwitch
Copy

Create NacosConfig Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new NacosConfig(name: string, args: NacosConfigArgs, opts?: CustomResourceOptions);
@overload
def NacosConfig(resource_name: str,
                args: NacosConfigArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def NacosConfig(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                content: Optional[str] = None,
                data_id: Optional[str] = None,
                group: Optional[str] = None,
                instance_id: Optional[str] = None,
                accept_language: Optional[str] = None,
                app_name: Optional[str] = None,
                beta_ips: Optional[str] = None,
                desc: Optional[str] = None,
                namespace_id: Optional[str] = None,
                tags: Optional[str] = None,
                type: Optional[str] = None)
func NewNacosConfig(ctx *Context, name string, args NacosConfigArgs, opts ...ResourceOption) (*NacosConfig, error)
public NacosConfig(string name, NacosConfigArgs args, CustomResourceOptions? opts = null)
public NacosConfig(String name, NacosConfigArgs args)
public NacosConfig(String name, NacosConfigArgs args, CustomResourceOptions options)
type: alicloud:mse:NacosConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NacosConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NacosConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NacosConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NacosConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NacosConfigArgs
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 nacosConfigResource = new AliCloud.Mse.NacosConfig("nacosConfigResource", new()
{
    Content = "string",
    DataId = "string",
    Group = "string",
    InstanceId = "string",
    AcceptLanguage = "string",
    AppName = "string",
    BetaIps = "string",
    Desc = "string",
    NamespaceId = "string",
    Tags = "string",
    Type = "string",
});
Copy
example, err := mse.NewNacosConfig(ctx, "nacosConfigResource", &mse.NacosConfigArgs{
	Content:        pulumi.String("string"),
	DataId:         pulumi.String("string"),
	Group:          pulumi.String("string"),
	InstanceId:     pulumi.String("string"),
	AcceptLanguage: pulumi.String("string"),
	AppName:        pulumi.String("string"),
	BetaIps:        pulumi.String("string"),
	Desc:           pulumi.String("string"),
	NamespaceId:    pulumi.String("string"),
	Tags:           pulumi.String("string"),
	Type:           pulumi.String("string"),
})
Copy
var nacosConfigResource = new NacosConfig("nacosConfigResource", NacosConfigArgs.builder()
    .content("string")
    .dataId("string")
    .group("string")
    .instanceId("string")
    .acceptLanguage("string")
    .appName("string")
    .betaIps("string")
    .desc("string")
    .namespaceId("string")
    .tags("string")
    .type("string")
    .build());
Copy
nacos_config_resource = alicloud.mse.NacosConfig("nacosConfigResource",
    content="string",
    data_id="string",
    group="string",
    instance_id="string",
    accept_language="string",
    app_name="string",
    beta_ips="string",
    desc="string",
    namespace_id="string",
    tags="string",
    type="string")
Copy
const nacosConfigResource = new alicloud.mse.NacosConfig("nacosConfigResource", {
    content: "string",
    dataId: "string",
    group: "string",
    instanceId: "string",
    acceptLanguage: "string",
    appName: "string",
    betaIps: "string",
    desc: "string",
    namespaceId: "string",
    tags: "string",
    type: "string",
});
Copy
type: alicloud:mse:NacosConfig
properties:
    acceptLanguage: string
    appName: string
    betaIps: string
    content: string
    dataId: string
    desc: string
    group: string
    instanceId: string
    namespaceId: string
    tags: string
    type: string
Copy

NacosConfig 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 NacosConfig resource accepts the following input properties:

Content This property is required. string
The content of the configuration.
DataId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the data.
Group
This property is required.
Changes to this property will trigger replacement.
string
The ID of the group.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
AcceptLanguage string
The language type of the returned information. Valid values: zh, en.
AppName string
The name of the application.
BetaIps string
The list of IP addresses where the beta release of the configuration is performed.
Desc string
The description of the configuration.
NamespaceId Changes to this property will trigger replacement. string
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
Tags string
The tags of the configuration.
Type string
The format of the configuration. Supported formats include TEXT, JSON, and XML.
Content This property is required. string
The content of the configuration.
DataId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the data.
Group
This property is required.
Changes to this property will trigger replacement.
string
The ID of the group.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
AcceptLanguage string
The language type of the returned information. Valid values: zh, en.
AppName string
The name of the application.
BetaIps string
The list of IP addresses where the beta release of the configuration is performed.
Desc string
The description of the configuration.
NamespaceId Changes to this property will trigger replacement. string
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
Tags string
The tags of the configuration.
Type string
The format of the configuration. Supported formats include TEXT, JSON, and XML.
content This property is required. String
The content of the configuration.
dataId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the data.
group
This property is required.
Changes to this property will trigger replacement.
String
The ID of the group.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the instance.
acceptLanguage String
The language type of the returned information. Valid values: zh, en.
appName String
The name of the application.
betaIps String
The list of IP addresses where the beta release of the configuration is performed.
desc String
The description of the configuration.
namespaceId Changes to this property will trigger replacement. String
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
tags String
The tags of the configuration.
type String
The format of the configuration. Supported formats include TEXT, JSON, and XML.
content This property is required. string
The content of the configuration.
dataId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the data.
group
This property is required.
Changes to this property will trigger replacement.
string
The ID of the group.
instanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
acceptLanguage string
The language type of the returned information. Valid values: zh, en.
appName string
The name of the application.
betaIps string
The list of IP addresses where the beta release of the configuration is performed.
desc string
The description of the configuration.
namespaceId Changes to this property will trigger replacement. string
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
tags string
The tags of the configuration.
type string
The format of the configuration. Supported formats include TEXT, JSON, and XML.
content This property is required. str
The content of the configuration.
data_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the data.
group
This property is required.
Changes to this property will trigger replacement.
str
The ID of the group.
instance_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the instance.
accept_language str
The language type of the returned information. Valid values: zh, en.
app_name str
The name of the application.
beta_ips str
The list of IP addresses where the beta release of the configuration is performed.
desc str
The description of the configuration.
namespace_id Changes to this property will trigger replacement. str
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
tags str
The tags of the configuration.
type str
The format of the configuration. Supported formats include TEXT, JSON, and XML.
content This property is required. String
The content of the configuration.
dataId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the data.
group
This property is required.
Changes to this property will trigger replacement.
String
The ID of the group.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the instance.
acceptLanguage String
The language type of the returned information. Valid values: zh, en.
appName String
The name of the application.
betaIps String
The list of IP addresses where the beta release of the configuration is performed.
desc String
The description of the configuration.
namespaceId Changes to this property will trigger replacement. String
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
tags String
The tags of the configuration.
type String
The format of the configuration. Supported formats include TEXT, JSON, and XML.

Outputs

All input properties are implicitly available as output properties. Additionally, the NacosConfig resource produces the following output properties:

EncryptedDataKey string
The encryption key.
Id string
The provider-assigned unique ID for this managed resource.
EncryptedDataKey string
The encryption key.
Id string
The provider-assigned unique ID for this managed resource.
encryptedDataKey String
The encryption key.
id String
The provider-assigned unique ID for this managed resource.
encryptedDataKey string
The encryption key.
id string
The provider-assigned unique ID for this managed resource.
encrypted_data_key str
The encryption key.
id str
The provider-assigned unique ID for this managed resource.
encryptedDataKey String
The encryption key.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing NacosConfig Resource

Get an existing NacosConfig 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?: NacosConfigState, opts?: CustomResourceOptions): NacosConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accept_language: Optional[str] = None,
        app_name: Optional[str] = None,
        beta_ips: Optional[str] = None,
        content: Optional[str] = None,
        data_id: Optional[str] = None,
        desc: Optional[str] = None,
        encrypted_data_key: Optional[str] = None,
        group: Optional[str] = None,
        instance_id: Optional[str] = None,
        namespace_id: Optional[str] = None,
        tags: Optional[str] = None,
        type: Optional[str] = None) -> NacosConfig
func GetNacosConfig(ctx *Context, name string, id IDInput, state *NacosConfigState, opts ...ResourceOption) (*NacosConfig, error)
public static NacosConfig Get(string name, Input<string> id, NacosConfigState? state, CustomResourceOptions? opts = null)
public static NacosConfig get(String name, Output<String> id, NacosConfigState state, CustomResourceOptions options)
resources:  _:    type: alicloud:mse:NacosConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AcceptLanguage string
The language type of the returned information. Valid values: zh, en.
AppName string
The name of the application.
BetaIps string
The list of IP addresses where the beta release of the configuration is performed.
Content string
The content of the configuration.
DataId Changes to this property will trigger replacement. string
The ID of the data.
Desc string
The description of the configuration.
EncryptedDataKey string
The encryption key.
Group Changes to this property will trigger replacement. string
The ID of the group.
InstanceId Changes to this property will trigger replacement. string
The ID of the instance.
NamespaceId Changes to this property will trigger replacement. string
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
Tags string
The tags of the configuration.
Type string
The format of the configuration. Supported formats include TEXT, JSON, and XML.
AcceptLanguage string
The language type of the returned information. Valid values: zh, en.
AppName string
The name of the application.
BetaIps string
The list of IP addresses where the beta release of the configuration is performed.
Content string
The content of the configuration.
DataId Changes to this property will trigger replacement. string
The ID of the data.
Desc string
The description of the configuration.
EncryptedDataKey string
The encryption key.
Group Changes to this property will trigger replacement. string
The ID of the group.
InstanceId Changes to this property will trigger replacement. string
The ID of the instance.
NamespaceId Changes to this property will trigger replacement. string
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
Tags string
The tags of the configuration.
Type string
The format of the configuration. Supported formats include TEXT, JSON, and XML.
acceptLanguage String
The language type of the returned information. Valid values: zh, en.
appName String
The name of the application.
betaIps String
The list of IP addresses where the beta release of the configuration is performed.
content String
The content of the configuration.
dataId Changes to this property will trigger replacement. String
The ID of the data.
desc String
The description of the configuration.
encryptedDataKey String
The encryption key.
group Changes to this property will trigger replacement. String
The ID of the group.
instanceId Changes to this property will trigger replacement. String
The ID of the instance.
namespaceId Changes to this property will trigger replacement. String
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
tags String
The tags of the configuration.
type String
The format of the configuration. Supported formats include TEXT, JSON, and XML.
acceptLanguage string
The language type of the returned information. Valid values: zh, en.
appName string
The name of the application.
betaIps string
The list of IP addresses where the beta release of the configuration is performed.
content string
The content of the configuration.
dataId Changes to this property will trigger replacement. string
The ID of the data.
desc string
The description of the configuration.
encryptedDataKey string
The encryption key.
group Changes to this property will trigger replacement. string
The ID of the group.
instanceId Changes to this property will trigger replacement. string
The ID of the instance.
namespaceId Changes to this property will trigger replacement. string
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
tags string
The tags of the configuration.
type string
The format of the configuration. Supported formats include TEXT, JSON, and XML.
accept_language str
The language type of the returned information. Valid values: zh, en.
app_name str
The name of the application.
beta_ips str
The list of IP addresses where the beta release of the configuration is performed.
content str
The content of the configuration.
data_id Changes to this property will trigger replacement. str
The ID of the data.
desc str
The description of the configuration.
encrypted_data_key str
The encryption key.
group Changes to this property will trigger replacement. str
The ID of the group.
instance_id Changes to this property will trigger replacement. str
The ID of the instance.
namespace_id Changes to this property will trigger replacement. str
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
tags str
The tags of the configuration.
type str
The format of the configuration. Supported formats include TEXT, JSON, and XML.
acceptLanguage String
The language type of the returned information. Valid values: zh, en.
appName String
The name of the application.
betaIps String
The list of IP addresses where the beta release of the configuration is performed.
content String
The content of the configuration.
dataId Changes to this property will trigger replacement. String
The ID of the data.
desc String
The description of the configuration.
encryptedDataKey String
The encryption key.
group Changes to this property will trigger replacement. String
The ID of the group.
instanceId Changes to this property will trigger replacement. String
The ID of the instance.
namespaceId Changes to this property will trigger replacement. String
The id of Namespace. If you want to create a config under the public namespace, this parameter can be set to an empty string "" or just not set this parameter.
tags String
The tags of the configuration.
type String
The format of the configuration. Supported formats include TEXT, JSON, and XML.

Import

Microservice Engine (MSE) Nacos Config can be imported using the id, e.g.

Note: If instance_id, namespace_id, data_id, and group contain “:”, please replace it with “\\:”, available since v1.243.0

$ pulumi import alicloud:mse/nacosConfig:NacosConfig example <instance_id>:<namespace_id>:<data_id>:<group>
Copy

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 alicloud Terraform Provider.