alicloud.eci.VirtualNode
Explore with Pulumi AI
Provides a ECI Virtual Node resource.
For information about ECI Virtual Node and how to use it, see What is Virtual Node.
NOTE: Available since v1.145.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") || "tf-example";
const default = alicloud.eci.getZones({});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "10.0.0.0/8",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: name,
cidrBlock: "10.1.0.0/16",
vpcId: defaultNetwork.id,
zoneId: _default.then(_default => _default.zones?.[0]?.zoneIds?.[0]),
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: name,
vpcId: defaultNetwork.id,
});
const defaultEipAddress = new alicloud.ecs.EipAddress("default", {
isp: "BGP",
addressName: name,
netmode: "public",
bandwidth: "1",
securityProtectionTypes: ["AntiDDoS_Enhanced"],
paymentType: "PayAsYouGo",
});
const defaultGetResourceGroups = alicloud.resourcemanager.getResourceGroups({});
const defaultVirtualNode = new alicloud.eci.VirtualNode("default", {
securityGroupId: defaultSecurityGroup.id,
virtualNodeName: name,
vswitchId: defaultSwitch.id,
enablePublicNetwork: false,
eipInstanceId: defaultEipAddress.id,
resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.groups?.[0]?.id),
kubeConfig: "kube_config",
tags: {
Created: "TF",
},
taints: [{
effect: "NoSchedule",
key: "TF",
value: "example",
}],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.eci.get_zones()
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="10.0.0.0/8")
default_switch = alicloud.vpc.Switch("default",
vswitch_name=name,
cidr_block="10.1.0.0/16",
vpc_id=default_network.id,
zone_id=default.zones[0].zone_ids[0])
default_security_group = alicloud.ecs.SecurityGroup("default",
name=name,
vpc_id=default_network.id)
default_eip_address = alicloud.ecs.EipAddress("default",
isp="BGP",
address_name=name,
netmode="public",
bandwidth="1",
security_protection_types=["AntiDDoS_Enhanced"],
payment_type="PayAsYouGo")
default_get_resource_groups = alicloud.resourcemanager.get_resource_groups()
default_virtual_node = alicloud.eci.VirtualNode("default",
security_group_id=default_security_group.id,
virtual_node_name=name,
vswitch_id=default_switch.id,
enable_public_network=False,
eip_instance_id=default_eip_address.id,
resource_group_id=default_get_resource_groups.groups[0].id,
kube_config="kube_config",
tags={
"Created": "TF",
},
taints=[{
"effect": "NoSchedule",
"key": "TF",
"value": "example",
}])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eci"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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 := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := eci.GetZones(ctx, &eci.GetZonesArgs{}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.0.0.0/8"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("10.1.0.0/16"),
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(_default.Zones[0].ZoneIds[0]),
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
Name: pulumi.String(name),
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
defaultEipAddress, err := ecs.NewEipAddress(ctx, "default", &ecs.EipAddressArgs{
Isp: pulumi.String("BGP"),
AddressName: pulumi.String(name),
Netmode: pulumi.String("public"),
Bandwidth: pulumi.String("1"),
SecurityProtectionTypes: pulumi.StringArray{
pulumi.String("AntiDDoS_Enhanced"),
},
PaymentType: pulumi.String("PayAsYouGo"),
})
if err != nil {
return err
}
defaultGetResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
if err != nil {
return err
}
_, err = eci.NewVirtualNode(ctx, "default", &eci.VirtualNodeArgs{
SecurityGroupId: defaultSecurityGroup.ID(),
VirtualNodeName: pulumi.String(name),
VswitchId: defaultSwitch.ID(),
EnablePublicNetwork: pulumi.Bool(false),
EipInstanceId: defaultEipAddress.ID(),
ResourceGroupId: pulumi.String(defaultGetResourceGroups.Groups[0].Id),
KubeConfig: pulumi.String("kube_config"),
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
},
Taints: eci.VirtualNodeTaintArray{
&eci.VirtualNodeTaintArgs{
Effect: pulumi.String("NoSchedule"),
Key: pulumi.String("TF"),
Value: 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 config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = AliCloud.Eci.GetZones.Invoke();
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "10.0.0.0/8",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = name,
CidrBlock = "10.1.0.0/16",
VpcId = defaultNetwork.Id,
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneIds[0])),
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = name,
VpcId = defaultNetwork.Id,
});
var defaultEipAddress = new AliCloud.Ecs.EipAddress("default", new()
{
Isp = "BGP",
AddressName = name,
Netmode = "public",
Bandwidth = "1",
SecurityProtectionTypes = new[]
{
"AntiDDoS_Enhanced",
},
PaymentType = "PayAsYouGo",
});
var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultVirtualNode = new AliCloud.Eci.VirtualNode("default", new()
{
SecurityGroupId = defaultSecurityGroup.Id,
VirtualNodeName = name,
VswitchId = defaultSwitch.Id,
EnablePublicNetwork = false,
EipInstanceId = defaultEipAddress.Id,
ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id),
KubeConfig = "kube_config",
Tags =
{
{ "Created", "TF" },
},
Taints = new[]
{
new AliCloud.Eci.Inputs.VirtualNodeTaintArgs
{
Effect = "NoSchedule",
Key = "TF",
Value = "example",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eci.EciFunctions;
import com.pulumi.alicloud.eci.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.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecs.EipAddress;
import com.pulumi.alicloud.ecs.EipAddressArgs;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.eci.VirtualNode;
import com.pulumi.alicloud.eci.VirtualNodeArgs;
import com.pulumi.alicloud.eci.inputs.VirtualNodeTaintArgs;
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("tf-example");
final var default = EciFunctions.getZones();
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.0.0.0/8")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.1.0.0/16")
.vpcId(defaultNetwork.id())
.zoneId(default_.zones()[0].zoneIds()[0])
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name(name)
.vpcId(defaultNetwork.id())
.build());
var defaultEipAddress = new EipAddress("defaultEipAddress", EipAddressArgs.builder()
.isp("BGP")
.addressName(name)
.netmode("public")
.bandwidth("1")
.securityProtectionTypes("AntiDDoS_Enhanced")
.paymentType("PayAsYouGo")
.build());
final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
var defaultVirtualNode = new VirtualNode("defaultVirtualNode", VirtualNodeArgs.builder()
.securityGroupId(defaultSecurityGroup.id())
.virtualNodeName(name)
.vswitchId(defaultSwitch.id())
.enablePublicNetwork(false)
.eipInstanceId(defaultEipAddress.id())
.resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.kubeConfig("kube_config")
.tags(Map.of("Created", "TF"))
.taints(VirtualNodeTaintArgs.builder()
.effect("NoSchedule")
.key("TF")
.value("example")
.build())
.build());
}
}
configuration:
name:
type: string
default: tf-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 10.0.0.0/8
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vswitchName: ${name}
cidrBlock: 10.1.0.0/16
vpcId: ${defaultNetwork.id}
zoneId: ${default.zones[0].zoneIds[0]}
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
name: ${name}
vpcId: ${defaultNetwork.id}
defaultEipAddress:
type: alicloud:ecs:EipAddress
name: default
properties:
isp: BGP
addressName: ${name}
netmode: public
bandwidth: '1'
securityProtectionTypes:
- AntiDDoS_Enhanced
paymentType: PayAsYouGo
defaultVirtualNode:
type: alicloud:eci:VirtualNode
name: default
properties:
securityGroupId: ${defaultSecurityGroup.id}
virtualNodeName: ${name}
vswitchId: ${defaultSwitch.id}
enablePublicNetwork: false
eipInstanceId: ${defaultEipAddress.id}
resourceGroupId: ${defaultGetResourceGroups.groups[0].id}
kubeConfig: kube_config
tags:
Created: TF
taints:
- effect: NoSchedule
key: TF
value: example
variables:
default:
fn::invoke:
Function: alicloud:eci:getZones
Arguments: {}
defaultGetResourceGroups:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments: {}
Create VirtualNode Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualNode(name: string, args: VirtualNodeArgs, opts?: CustomResourceOptions);
@overload
def VirtualNode(resource_name: str,
args: VirtualNodeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualNode(resource_name: str,
opts: Optional[ResourceOptions] = None,
kube_config: Optional[str] = None,
security_group_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
eip_instance_id: Optional[str] = None,
enable_public_network: Optional[bool] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
taints: Optional[Sequence[VirtualNodeTaintArgs]] = None,
virtual_node_name: Optional[str] = None,
zone_id: Optional[str] = None)
func NewVirtualNode(ctx *Context, name string, args VirtualNodeArgs, opts ...ResourceOption) (*VirtualNode, error)
public VirtualNode(string name, VirtualNodeArgs args, CustomResourceOptions? opts = null)
public VirtualNode(String name, VirtualNodeArgs args)
public VirtualNode(String name, VirtualNodeArgs args, CustomResourceOptions options)
type: alicloud:eci:VirtualNode
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 VirtualNodeArgs
- 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 VirtualNodeArgs
- 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 VirtualNodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualNodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualNodeArgs
- 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 virtualNodeResource = new AliCloud.Eci.VirtualNode("virtualNodeResource", new()
{
KubeConfig = "string",
SecurityGroupId = "string",
VswitchId = "string",
EipInstanceId = "string",
EnablePublicNetwork = false,
ResourceGroupId = "string",
Tags =
{
{ "string", "string" },
},
Taints = new[]
{
new AliCloud.Eci.Inputs.VirtualNodeTaintArgs
{
Effect = "string",
Key = "string",
Value = "string",
},
},
VirtualNodeName = "string",
ZoneId = "string",
});
example, err := eci.NewVirtualNode(ctx, "virtualNodeResource", &eci.VirtualNodeArgs{
KubeConfig: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
EipInstanceId: pulumi.String("string"),
EnablePublicNetwork: pulumi.Bool(false),
ResourceGroupId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Taints: eci.VirtualNodeTaintArray{
&eci.VirtualNodeTaintArgs{
Effect: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
VirtualNodeName: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var virtualNodeResource = new VirtualNode("virtualNodeResource", VirtualNodeArgs.builder()
.kubeConfig("string")
.securityGroupId("string")
.vswitchId("string")
.eipInstanceId("string")
.enablePublicNetwork(false)
.resourceGroupId("string")
.tags(Map.of("string", "string"))
.taints(VirtualNodeTaintArgs.builder()
.effect("string")
.key("string")
.value("string")
.build())
.virtualNodeName("string")
.zoneId("string")
.build());
virtual_node_resource = alicloud.eci.VirtualNode("virtualNodeResource",
kube_config="string",
security_group_id="string",
vswitch_id="string",
eip_instance_id="string",
enable_public_network=False,
resource_group_id="string",
tags={
"string": "string",
},
taints=[{
"effect": "string",
"key": "string",
"value": "string",
}],
virtual_node_name="string",
zone_id="string")
const virtualNodeResource = new alicloud.eci.VirtualNode("virtualNodeResource", {
kubeConfig: "string",
securityGroupId: "string",
vswitchId: "string",
eipInstanceId: "string",
enablePublicNetwork: false,
resourceGroupId: "string",
tags: {
string: "string",
},
taints: [{
effect: "string",
key: "string",
value: "string",
}],
virtualNodeName: "string",
zoneId: "string",
});
type: alicloud:eci:VirtualNode
properties:
eipInstanceId: string
enablePublicNetwork: false
kubeConfig: string
resourceGroupId: string
securityGroupId: string
tags:
string: string
taints:
- effect: string
key: string
value: string
virtualNodeName: string
vswitchId: string
zoneId: string
VirtualNode 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 VirtualNode resource accepts the following input properties:
- Kube
Config string - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- Security
Group stringId - The security group ID.
- Vswitch
Id string - The vswitch id.
- Eip
Instance stringId - The Id of eip.
- Enable
Public boolNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - Resource
Group stringId - The resource group ID.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Taints
List<Pulumi.
Ali Cloud. Eci. Inputs. Virtual Node Taint> - The taint. See
taints
below. - Virtual
Node stringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - Zone
Id string - The Zone.
- Kube
Config string - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- Security
Group stringId - The security group ID.
- Vswitch
Id string - The vswitch id.
- Eip
Instance stringId - The Id of eip.
- Enable
Public boolNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - Resource
Group stringId - The resource group ID.
- map[string]string
- A mapping of tags to assign to the resource.
- Taints
[]Virtual
Node Taint Args - The taint. See
taints
below. - Virtual
Node stringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - Zone
Id string - The Zone.
- kube
Config String - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- security
Group StringId - The security group ID.
- vswitch
Id String - The vswitch id.
- eip
Instance StringId - The Id of eip.
- enable
Public BooleanNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - resource
Group StringId - The resource group ID.
- Map<String,String>
- A mapping of tags to assign to the resource.
- taints
List<Virtual
Node Taint> - The taint. See
taints
below. - virtual
Node StringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - zone
Id String - The Zone.
- kube
Config string - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- security
Group stringId - The security group ID.
- vswitch
Id string - The vswitch id.
- eip
Instance stringId - The Id of eip.
- enable
Public booleanNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - resource
Group stringId - The resource group ID.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- taints
Virtual
Node Taint[] - The taint. See
taints
below. - virtual
Node stringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - zone
Id string - The Zone.
- kube_
config str - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- security_
group_ strid - The security group ID.
- vswitch_
id str - The vswitch id.
- eip_
instance_ strid - The Id of eip.
- enable_
public_ boolnetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - resource_
group_ strid - The resource group ID.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- taints
Sequence[Virtual
Node Taint Args] - The taint. See
taints
below. - virtual_
node_ strname - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - zone_
id str - The Zone.
- kube
Config String - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- security
Group StringId - The security group ID.
- vswitch
Id String - The vswitch id.
- eip
Instance StringId - The Id of eip.
- enable
Public BooleanNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - resource
Group StringId - The resource group ID.
- Map<String>
- A mapping of tags to assign to the resource.
- taints List<Property Map>
- The taint. See
taints
below. - virtual
Node StringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - zone
Id String - The Zone.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualNode resource produces the following output properties:
Look up Existing VirtualNode Resource
Get an existing VirtualNode 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?: VirtualNodeState, opts?: CustomResourceOptions): VirtualNode
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
eip_instance_id: Optional[str] = None,
enable_public_network: Optional[bool] = None,
kube_config: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
taints: Optional[Sequence[VirtualNodeTaintArgs]] = None,
virtual_node_name: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> VirtualNode
func GetVirtualNode(ctx *Context, name string, id IDInput, state *VirtualNodeState, opts ...ResourceOption) (*VirtualNode, error)
public static VirtualNode Get(string name, Input<string> id, VirtualNodeState? state, CustomResourceOptions? opts = null)
public static VirtualNode get(String name, Output<String> id, VirtualNodeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Eip
Instance stringId - The Id of eip.
- Enable
Public boolNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - Kube
Config string - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- Resource
Group stringId - The resource group ID.
- Security
Group stringId - The security group ID.
- Status string
- The Status of the virtual node. Valid values:
Cleaned
,Failed
,Pending
,Ready
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Taints
List<Pulumi.
Ali Cloud. Eci. Inputs. Virtual Node Taint> - The taint. See
taints
below. - Virtual
Node stringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - Vswitch
Id string - The vswitch id.
- Zone
Id string - The Zone.
- Eip
Instance stringId - The Id of eip.
- Enable
Public boolNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - Kube
Config string - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- Resource
Group stringId - The resource group ID.
- Security
Group stringId - The security group ID.
- Status string
- The Status of the virtual node. Valid values:
Cleaned
,Failed
,Pending
,Ready
. - map[string]string
- A mapping of tags to assign to the resource.
- Taints
[]Virtual
Node Taint Args - The taint. See
taints
below. - Virtual
Node stringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - Vswitch
Id string - The vswitch id.
- Zone
Id string - The Zone.
- eip
Instance StringId - The Id of eip.
- enable
Public BooleanNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - kube
Config String - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- resource
Group StringId - The resource group ID.
- security
Group StringId - The security group ID.
- status String
- The Status of the virtual node. Valid values:
Cleaned
,Failed
,Pending
,Ready
. - Map<String,String>
- A mapping of tags to assign to the resource.
- taints
List<Virtual
Node Taint> - The taint. See
taints
below. - virtual
Node StringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - vswitch
Id String - The vswitch id.
- zone
Id String - The Zone.
- eip
Instance stringId - The Id of eip.
- enable
Public booleanNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - kube
Config string - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- resource
Group stringId - The resource group ID.
- security
Group stringId - The security group ID.
- status string
- The Status of the virtual node. Valid values:
Cleaned
,Failed
,Pending
,Ready
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- taints
Virtual
Node Taint[] - The taint. See
taints
below. - virtual
Node stringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - vswitch
Id string - The vswitch id.
- zone
Id string - The Zone.
- eip_
instance_ strid - The Id of eip.
- enable_
public_ boolnetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - kube_
config str - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- resource_
group_ strid - The resource group ID.
- security_
group_ strid - The security group ID.
- status str
- The Status of the virtual node. Valid values:
Cleaned
,Failed
,Pending
,Ready
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- taints
Sequence[Virtual
Node Taint Args] - The taint. See
taints
below. - virtual_
node_ strname - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - vswitch_
id str - The vswitch id.
- zone_
id str - The Zone.
- eip
Instance StringId - The Id of eip.
- enable
Public BooleanNetwork - Whether to enable public network. NOTE: If
eip_instance_id
is not configured andenable_public_network
is true, the system will create an elastic public network IP. - kube
Config String - The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
- resource
Group StringId - The resource group ID.
- security
Group StringId - The security group ID.
- status String
- The Status of the virtual node. Valid values:
Cleaned
,Failed
,Pending
,Ready
. - Map<String>
- A mapping of tags to assign to the resource.
- taints List<Property Map>
- The taint. See
taints
below. - virtual
Node StringName - The name of the virtual node. The length of the name is limited to
2
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters. - vswitch
Id String - The vswitch id.
- zone
Id String - The Zone.
Supporting Types
VirtualNodeTaint, VirtualNodeTaintArgs
Import
ECI Virtual Node can be imported using the id, e.g.
$ pulumi import alicloud:eci/virtualNode:VirtualNode 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
alicloud
Terraform Provider.