1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eci
  5. VirtualNode
Alibaba Cloud v3.49.1 published on Wednesday, Feb 28, 2024 by Pulumi

alicloud.eci.VirtualNode

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.49.1 published on Wednesday, Feb 28, 2024 by Pulumi

    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

    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 defaultZones = AliCloud.Eci.GetZones.Invoke();
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "10.0.0.0/8",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = name,
            CidrBlock = "10.1.0.0/16",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneIds[0]),
        });
    
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
        {
            VpcId = defaultNetwork.Id,
        });
    
        var defaultEipAddress = new AliCloud.Ecs.EipAddress("defaultEipAddress", new()
        {
            Isp = "BGP",
            AddressName = name,
            Netmode = "public",
            Bandwidth = "1",
            SecurityProtectionTypes = new[]
            {
                "AntiDDoS_Enhanced",
            },
            PaymentType = "PayAsYouGo",
        });
    
        var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke();
    
        var defaultVirtualNode = new AliCloud.Eci.VirtualNode("defaultVirtualNode", new()
        {
            SecurityGroupId = defaultSecurityGroup.Id,
            VirtualNodeName = name,
            VswitchId = defaultSwitch.Id,
            EnablePublicNetwork = false,
            EipInstanceId = defaultEipAddress.Id,
            ResourceGroupId = defaultResourceGroups.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 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
    		}
    		defaultZones, err := eci.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.0.0.0/8"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.1.0.0/16"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      *pulumi.String(defaultZones.Zones[0].ZoneIds[0]),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
    			VpcId: defaultNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultEipAddress, err := ecs.NewEipAddress(ctx, "defaultEipAddress", &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
    		}
    		defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		_, err = eci.NewVirtualNode(ctx, "defaultVirtualNode", &eci.VirtualNodeArgs{
    			SecurityGroupId:     defaultSecurityGroup.ID(),
    			VirtualNodeName:     pulumi.String(name),
    			VswitchId:           defaultSwitch.ID(),
    			EnablePublicNetwork: pulumi.Bool(false),
    			EipInstanceId:       defaultEipAddress.ID(),
    			ResourceGroupId:     *pulumi.String(defaultResourceGroups.Groups[0].Id),
    			KubeConfig:          pulumi.String("kube_config"),
    			Tags: pulumi.Map{
    				"Created": pulumi.Any("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
    	})
    }
    
    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 defaultZones = 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(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneIds()[0]))
                .build());
    
            var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
                .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 defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups();
    
            var defaultVirtualNode = new VirtualNode("defaultVirtualNode", VirtualNodeArgs.builder()        
                .securityGroupId(defaultSecurityGroup.id())
                .virtualNodeName(name)
                .vswitchId(defaultSwitch.id())
                .enablePublicNetwork(false)
                .eipInstanceId(defaultEipAddress.id())
                .resourceGroupId(defaultResourceGroups.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());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default_zones = alicloud.eci.get_zones()
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="10.0.0.0/8")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name=name,
        cidr_block="10.1.0.0/16",
        vpc_id=default_network.id,
        zone_id=default_zones.zones[0].zone_ids[0])
    default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_network.id)
    default_eip_address = alicloud.ecs.EipAddress("defaultEipAddress",
        isp="BGP",
        address_name=name,
        netmode="public",
        bandwidth="1",
        security_protection_types=["AntiDDoS_Enhanced"],
        payment_type="PayAsYouGo")
    default_resource_groups = alicloud.resourcemanager.get_resource_groups()
    default_virtual_node = alicloud.eci.VirtualNode("defaultVirtualNode",
        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_resource_groups.groups[0].id,
        kube_config="kube_config",
        tags={
            "Created": "TF",
        },
        taints=[alicloud.eci.VirtualNodeTaintArgs(
            effect="NoSchedule",
            key="TF",
            value="example",
        )])
    
    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 defaultZones = alicloud.eci.getZones({});
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "10.0.0.0/8",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: name,
        cidrBlock: "10.1.0.0/16",
        vpcId: defaultNetwork.id,
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.zoneIds?.[0]),
    });
    const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetwork.id});
    const defaultEipAddress = new alicloud.ecs.EipAddress("defaultEipAddress", {
        isp: "BGP",
        addressName: name,
        netmode: "public",
        bandwidth: "1",
        securityProtectionTypes: ["AntiDDoS_Enhanced"],
        paymentType: "PayAsYouGo",
    });
    const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({});
    const defaultVirtualNode = new alicloud.eci.VirtualNode("defaultVirtualNode", {
        securityGroupId: defaultSecurityGroup.id,
        virtualNodeName: name,
        vswitchId: defaultSwitch.id,
        enablePublicNetwork: false,
        eipInstanceId: defaultEipAddress.id,
        resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.groups?.[0]?.id),
        kubeConfig: "kube_config",
        tags: {
            Created: "TF",
        },
        taints: [{
            effect: "NoSchedule",
            key: "TF",
            value: "example",
        }],
    });
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 10.0.0.0/8
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 10.1.0.0/16
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultZones.zones[0].zoneIds[0]}
      defaultSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        properties:
          vpcId: ${defaultNetwork.id}
      defaultEipAddress:
        type: alicloud:ecs:EipAddress
        properties:
          isp: BGP
          addressName: ${name}
          netmode: public
          bandwidth: '1'
          securityProtectionTypes:
            - AntiDDoS_Enhanced
          paymentType: PayAsYouGo
      defaultVirtualNode:
        type: alicloud:eci:VirtualNode
        properties:
          securityGroupId: ${defaultSecurityGroup.id}
          virtualNodeName: ${name}
          vswitchId: ${defaultSwitch.id}
          enablePublicNetwork: false
          eipInstanceId: ${defaultEipAddress.id}
          resourceGroupId: ${defaultResourceGroups.groups[0].id}
          kubeConfig: kube_config
          tags:
            Created: TF
          taints:
            - effect: NoSchedule
              key: TF
              value: example
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:eci:getZones
          Arguments: {}
      defaultResourceGroups:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments: {}
    

    Create VirtualNode Resource

    new VirtualNode(name: string, args: VirtualNodeArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualNode(resource_name: 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,
                    tags: Optional[Mapping[str, Any]] = None,
                    taints: Optional[Sequence[VirtualNodeTaintArgs]] = None,
                    virtual_node_name: Optional[str] = None,
                    vswitch_id: Optional[str] = None,
                    zone_id: Optional[str] = None)
    @overload
    def VirtualNode(resource_name: str,
                    args: VirtualNodeArgs,
                    opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The VirtualNode resource accepts the following input properties:

    KubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    SecurityGroupId string
    The security group ID.
    VswitchId string
    The vswitch id.
    EipInstanceId string
    The Id of eip.
    EnablePublicNetwork bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    ResourceGroupId string
    The resource group ID.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    Taints List<Pulumi.AliCloud.Eci.Inputs.VirtualNodeTaint>
    The taint. See taints below.
    VirtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    ZoneId string
    The Zone.
    KubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    SecurityGroupId string
    The security group ID.
    VswitchId string
    The vswitch id.
    EipInstanceId string
    The Id of eip.
    EnablePublicNetwork bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    ResourceGroupId string
    The resource group ID.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    Taints []VirtualNodeTaintArgs
    The taint. See taints below.
    VirtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    ZoneId string
    The Zone.
    kubeConfig String
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    securityGroupId String
    The security group ID.
    vswitchId String
    The vswitch id.
    eipInstanceId String
    The Id of eip.
    enablePublicNetwork Boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    resourceGroupId String
    The resource group ID.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    taints List<VirtualNodeTaint>
    The taint. See taints below.
    virtualNodeName String
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    zoneId String
    The Zone.
    kubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    securityGroupId string
    The security group ID.
    vswitchId string
    The vswitch id.
    eipInstanceId string
    The Id of eip.
    enablePublicNetwork boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    resourceGroupId string
    The resource group ID.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    taints VirtualNodeTaint[]
    The taint. See taints below.
    virtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    zoneId string
    The Zone.
    kube_config str
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    security_group_id str
    The security group ID.
    vswitch_id str
    The vswitch id.
    eip_instance_id str
    The Id of eip.
    enable_public_network bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    resource_group_id str
    The resource group ID.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    taints Sequence[VirtualNodeTaintArgs]
    The taint. See taints below.
    virtual_node_name str
    The name of the virtual node. The length of the name is limited to 2 to 128 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.
    kubeConfig String
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    securityGroupId String
    The security group ID.
    vswitchId String
    The vswitch id.
    eipInstanceId String
    The Id of eip.
    enablePublicNetwork Boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    resourceGroupId String
    The resource group ID.
    tags Map<Any>
    A mapping of tags to assign to the resource.
    taints List<Property Map>
    The taint. See taints below.
    virtualNodeName String
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    zoneId String
    The Zone.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.

    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, Any]] = 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.
    The following state arguments are supported:
    EipInstanceId string
    The Id of eip.
    EnablePublicNetwork bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    KubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    ResourceGroupId string
    The resource group ID.
    SecurityGroupId string
    The security group ID.
    Status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    Taints List<Pulumi.AliCloud.Eci.Inputs.VirtualNodeTaint>
    The taint. See taints below.
    VirtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    VswitchId string
    The vswitch id.
    ZoneId string
    The Zone.
    EipInstanceId string
    The Id of eip.
    EnablePublicNetwork bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    KubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    ResourceGroupId string
    The resource group ID.
    SecurityGroupId string
    The security group ID.
    Status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    Taints []VirtualNodeTaintArgs
    The taint. See taints below.
    VirtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    VswitchId string
    The vswitch id.
    ZoneId string
    The Zone.
    eipInstanceId String
    The Id of eip.
    enablePublicNetwork Boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    kubeConfig String
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    resourceGroupId String
    The resource group ID.
    securityGroupId String
    The security group ID.
    status String
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    taints List<VirtualNodeTaint>
    The taint. See taints below.
    virtualNodeName String
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    vswitchId String
    The vswitch id.
    zoneId String
    The Zone.
    eipInstanceId string
    The Id of eip.
    enablePublicNetwork boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    kubeConfig string
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    resourceGroupId string
    The resource group ID.
    securityGroupId string
    The security group ID.
    status string
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    taints VirtualNodeTaint[]
    The taint. See taints below.
    virtualNodeName string
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    vswitchId string
    The vswitch id.
    zoneId string
    The Zone.
    eip_instance_id str
    The Id of eip.
    enable_public_network bool
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_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_id str
    The resource group ID.
    security_group_id str
    The security group ID.
    status str
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    taints Sequence[VirtualNodeTaintArgs]
    The taint. See taints below.
    virtual_node_name str
    The name of the virtual node. The length of the name is limited to 2 to 128 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.
    eipInstanceId String
    The Id of eip.
    enablePublicNetwork Boolean
    Whether to enable public network. NOTE: If eip_instance_id is not configured and enable_public_network is true, the system will create an elastic public network IP.
    kubeConfig String
    The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
    resourceGroupId String
    The resource group ID.
    securityGroupId String
    The security group ID.
    status String
    The Status of the virtual node. Valid values: Cleaned, Failed, Pending, Ready.
    tags Map<Any>
    A mapping of tags to assign to the resource.
    taints List<Property Map>
    The taint. See taints below.
    virtualNodeName String
    The name of the virtual node. The length of the name is limited to 2 to 128 characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
    vswitchId String
    The vswitch id.
    zoneId String
    The Zone.

    Supporting Types

    VirtualNodeTaint, VirtualNodeTaintArgs

    Effect string
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    Key string
    The key of the taint.
    Value string
    The value of the taint.
    Effect string
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    Key string
    The key of the taint.
    Value string
    The value of the taint.
    effect String
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    key String
    The key of the taint.
    value String
    The value of the taint.
    effect string
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    key string
    The key of the taint.
    value string
    The value of the taint.
    effect str
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    key str
    The key of the taint.
    value str
    The value of the taint.
    effect String
    The effect of the taint. Valid values: NoSchedule, NoExecute and PreferNoSchedule.
    key String
    The key of the taint.
    value String
    The value of the taint.

    Import

    ECI Virtual Node can be imported using the id, e.g.

    $ pulumi import alicloud:eci/virtualNode:VirtualNode example <id>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.49.1 published on Wednesday, Feb 28, 2024 by Pulumi