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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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",
});
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"),
})
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());
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")
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",
});
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
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.
- Data
Id This property is required. Changes to this property will trigger replacement.
- The ID of the data.
- Group
This property is required. Changes to this property will trigger replacement.
- The ID of the group.
- Instance
Id This property is required. Changes to this property will trigger replacement.
- The ID of the instance.
- Accept
Language string - The language type of the returned information. Valid values:
zh
,en
. - App
Name string - The name of the application.
- Beta
Ips string - The list of IP addresses where the beta release of the configuration is performed.
- Desc string
- The description of the configuration.
- Namespace
Id Changes to this property will trigger replacement.
- 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. - 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.
- Data
Id This property is required. Changes to this property will trigger replacement.
- The ID of the data.
- Group
This property is required. Changes to this property will trigger replacement.
- The ID of the group.
- Instance
Id This property is required. Changes to this property will trigger replacement.
- The ID of the instance.
- Accept
Language string - The language type of the returned information. Valid values:
zh
,en
. - App
Name string - The name of the application.
- Beta
Ips string - The list of IP addresses where the beta release of the configuration is performed.
- Desc string
- The description of the configuration.
- Namespace
Id Changes to this property will trigger replacement.
- 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. - 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.
- data
Id This property is required. Changes to this property will trigger replacement.
- The ID of the data.
- group
This property is required. Changes to this property will trigger replacement.
- The ID of the group.
- instance
Id This property is required. Changes to this property will trigger replacement.
- The ID of the instance.
- accept
Language String - The language type of the returned information. Valid values:
zh
,en
. - app
Name String - The name of the application.
- beta
Ips String - The list of IP addresses where the beta release of the configuration is performed.
- desc String
- The description of the configuration.
- namespace
Id Changes to this property will trigger replacement.
- 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. - 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.
- data
Id This property is required. Changes to this property will trigger replacement.
- The ID of the data.
- group
This property is required. Changes to this property will trigger replacement.
- The ID of the group.
- instance
Id This property is required. Changes to this property will trigger replacement.
- The ID of the instance.
- accept
Language string - The language type of the returned information. Valid values:
zh
,en
. - app
Name string - The name of the application.
- beta
Ips string - The list of IP addresses where the beta release of the configuration is performed.
- desc string
- The description of the configuration.
- namespace
Id Changes to this property will trigger replacement.
- 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. - 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.
- The ID of the data.
- group
This property is required. Changes to this property will trigger replacement.
- The ID of the group.
- instance_
id This property is required. Changes to this property will trigger replacement.
- 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.
- 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. - 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.
- data
Id This property is required. Changes to this property will trigger replacement.
- The ID of the data.
- group
This property is required. Changes to this property will trigger replacement.
- The ID of the group.
- instance
Id This property is required. Changes to this property will trigger replacement.
- The ID of the instance.
- accept
Language String - The language type of the returned information. Valid values:
zh
,en
. - app
Name String - The name of the application.
- beta
Ips String - The list of IP addresses where the beta release of the configuration is performed.
- desc String
- The description of the configuration.
- namespace
Id Changes to this property will trigger replacement.
- 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. - 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:
- Encrypted
Data stringKey - The encryption key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Encrypted
Data stringKey - The encryption key.
- Id string
- The provider-assigned unique ID for this managed resource.
- encrypted
Data StringKey - The encryption key.
- id String
- The provider-assigned unique ID for this managed resource.
- encrypted
Data stringKey - The encryption key.
- id string
- The provider-assigned unique ID for this managed resource.
- encrypted_
data_ strkey - The encryption key.
- id str
- The provider-assigned unique ID for this managed resource.
- encrypted
Data StringKey - 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.
- Accept
Language string - The language type of the returned information. Valid values:
zh
,en
. - App
Name string - The name of the application.
- Beta
Ips string - The list of IP addresses where the beta release of the configuration is performed.
- Content string
- The content of the configuration.
- Data
Id Changes to this property will trigger replacement.
- The ID of the data.
- Desc string
- The description of the configuration.
- Encrypted
Data stringKey - The encryption key.
- Group
Changes to this property will trigger replacement.
- The ID of the group.
- Instance
Id Changes to this property will trigger replacement.
- The ID of the instance.
- Namespace
Id Changes to this property will trigger replacement.
- 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. - string
- The tags of the configuration.
- Type string
- The format of the configuration. Supported formats include TEXT, JSON, and XML.
- Accept
Language string - The language type of the returned information. Valid values:
zh
,en
. - App
Name string - The name of the application.
- Beta
Ips string - The list of IP addresses where the beta release of the configuration is performed.
- Content string
- The content of the configuration.
- Data
Id Changes to this property will trigger replacement.
- The ID of the data.
- Desc string
- The description of the configuration.
- Encrypted
Data stringKey - The encryption key.
- Group
Changes to this property will trigger replacement.
- The ID of the group.
- Instance
Id Changes to this property will trigger replacement.
- The ID of the instance.
- Namespace
Id Changes to this property will trigger replacement.
- 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. - string
- The tags of the configuration.
- Type string
- The format of the configuration. Supported formats include TEXT, JSON, and XML.
- accept
Language String - The language type of the returned information. Valid values:
zh
,en
. - app
Name String - The name of the application.
- beta
Ips String - The list of IP addresses where the beta release of the configuration is performed.
- content String
- The content of the configuration.
- data
Id Changes to this property will trigger replacement.
- The ID of the data.
- desc String
- The description of the configuration.
- encrypted
Data StringKey - The encryption key.
- group
Changes to this property will trigger replacement.
- The ID of the group.
- instance
Id Changes to this property will trigger replacement.
- The ID of the instance.
- namespace
Id Changes to this property will trigger replacement.
- 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. - String
- The tags of the configuration.
- type String
- The format of the configuration. Supported formats include TEXT, JSON, and XML.
- accept
Language string - The language type of the returned information. Valid values:
zh
,en
. - app
Name string - The name of the application.
- beta
Ips string - The list of IP addresses where the beta release of the configuration is performed.
- content string
- The content of the configuration.
- data
Id Changes to this property will trigger replacement.
- The ID of the data.
- desc string
- The description of the configuration.
- encrypted
Data stringKey - The encryption key.
- group
Changes to this property will trigger replacement.
- The ID of the group.
- instance
Id Changes to this property will trigger replacement.
- The ID of the instance.
- namespace
Id Changes to this property will trigger replacement.
- 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. - 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.
- The ID of the data.
- desc str
- The description of the configuration.
- encrypted_
data_ strkey - The encryption key.
- group
Changes to this property will trigger replacement.
- The ID of the group.
- instance_
id Changes to this property will trigger replacement.
- The ID of the instance.
- namespace_
id Changes to this property will trigger replacement.
- 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. - str
- The tags of the configuration.
- type str
- The format of the configuration. Supported formats include TEXT, JSON, and XML.
- accept
Language String - The language type of the returned information. Valid values:
zh
,en
. - app
Name String - The name of the application.
- beta
Ips String - The list of IP addresses where the beta release of the configuration is performed.
- content String
- The content of the configuration.
- data
Id Changes to this property will trigger replacement.
- The ID of the data.
- desc String
- The description of the configuration.
- encrypted
Data StringKey - The encryption key.
- group
Changes to this property will trigger replacement.
- The ID of the group.
- instance
Id Changes to this property will trigger replacement.
- The ID of the instance.
- namespace
Id Changes to this property will trigger replacement.
- 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. - 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>
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.