1. Packages
  2. Volcengine
  3. API Docs
  4. veenedge
  5. CloudServer
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.veenedge.CloudServer

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Provides a resource to manage veenedge cloud server

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Veenedge.CloudServer("foo", new()
        {
            BillingConfig = new Volcengine.Veenedge.Inputs.CloudServerBillingConfigArgs
            {
                BandwidthBillingMethod = "MonthlyP95",
                ComputingBillingMethod = "MonthlyPeak",
            },
            CloudserverName = "tf-test",
            DefaultAreaName = "C******na",
            DefaultIsp = "CMCC",
            ImageId = "image*****viqm",
            NetworkConfig = new Volcengine.Veenedge.Inputs.CloudServerNetworkConfigArgs
            {
                BandwidthPeak = "5",
            },
            ScheduleStrategy = new Volcengine.Veenedge.Inputs.CloudServerScheduleStrategyArgs
            {
                NetworkStrategy = "region",
                PriceStrategy = "high_priority",
                ScheduleStrategy = "dispersion",
            },
            SecretData = "sshkey-47*****wgc",
            SecretType = "KeyPair",
            ServerAreaLevel = "region",
            SpecName = "veEN****rge",
            StorageConfig = new Volcengine.Veenedge.Inputs.CloudServerStorageConfigArgs
            {
                DataDiskLists = new[]
                {
                    new Volcengine.Veenedge.Inputs.CloudServerStorageConfigDataDiskListArgs
                    {
                        Capacity = "20",
                        StorageType = "CloudBlockSSD",
                    },
                },
                SystemDisk = new Volcengine.Veenedge.Inputs.CloudServerStorageConfigSystemDiskArgs
                {
                    Capacity = "40",
                    StorageType = "CloudBlockSSD",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/veenedge"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := veenedge.NewCloudServer(ctx, "foo", &veenedge.CloudServerArgs{
    			BillingConfig: &veenedge.CloudServerBillingConfigArgs{
    				BandwidthBillingMethod: pulumi.String("MonthlyP95"),
    				ComputingBillingMethod: pulumi.String("MonthlyPeak"),
    			},
    			CloudserverName: pulumi.String("tf-test"),
    			DefaultAreaName: pulumi.String("C******na"),
    			DefaultIsp:      pulumi.String("CMCC"),
    			ImageId:         pulumi.String("image*****viqm"),
    			NetworkConfig: &veenedge.CloudServerNetworkConfigArgs{
    				BandwidthPeak: pulumi.String("5"),
    			},
    			ScheduleStrategy: &veenedge.CloudServerScheduleStrategyArgs{
    				NetworkStrategy:  pulumi.String("region"),
    				PriceStrategy:    pulumi.String("high_priority"),
    				ScheduleStrategy: pulumi.String("dispersion"),
    			},
    			SecretData:      pulumi.String("sshkey-47*****wgc"),
    			SecretType:      pulumi.String("KeyPair"),
    			ServerAreaLevel: pulumi.String("region"),
    			SpecName:        pulumi.String("veEN****rge"),
    			StorageConfig: &veenedge.CloudServerStorageConfigArgs{
    				DataDiskLists: veenedge.CloudServerStorageConfigDataDiskListArray{
    					&veenedge.CloudServerStorageConfigDataDiskListArgs{
    						Capacity:    pulumi.String("20"),
    						StorageType: pulumi.String("CloudBlockSSD"),
    					},
    				},
    				SystemDisk: &veenedge.CloudServerStorageConfigSystemDiskArgs{
    					Capacity:    pulumi.String("40"),
    					StorageType: pulumi.String("CloudBlockSSD"),
    				},
    			},
    		})
    		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.volcengine.veenedge.CloudServer;
    import com.pulumi.volcengine.veenedge.CloudServerArgs;
    import com.pulumi.volcengine.veenedge.inputs.CloudServerBillingConfigArgs;
    import com.pulumi.volcengine.veenedge.inputs.CloudServerNetworkConfigArgs;
    import com.pulumi.volcengine.veenedge.inputs.CloudServerScheduleStrategyArgs;
    import com.pulumi.volcengine.veenedge.inputs.CloudServerStorageConfigArgs;
    import com.pulumi.volcengine.veenedge.inputs.CloudServerStorageConfigSystemDiskArgs;
    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) {
            var foo = new CloudServer("foo", CloudServerArgs.builder()        
                .billingConfig(CloudServerBillingConfigArgs.builder()
                    .bandwidthBillingMethod("MonthlyP95")
                    .computingBillingMethod("MonthlyPeak")
                    .build())
                .cloudserverName("tf-test")
                .defaultAreaName("C******na")
                .defaultIsp("CMCC")
                .imageId("image*****viqm")
                .networkConfig(CloudServerNetworkConfigArgs.builder()
                    .bandwidthPeak(5)
                    .build())
                .scheduleStrategy(CloudServerScheduleStrategyArgs.builder()
                    .networkStrategy("region")
                    .priceStrategy("high_priority")
                    .scheduleStrategy("dispersion")
                    .build())
                .secretData("sshkey-47*****wgc")
                .secretType("KeyPair")
                .serverAreaLevel("region")
                .specName("veEN****rge")
                .storageConfig(CloudServerStorageConfigArgs.builder()
                    .dataDiskLists(CloudServerStorageConfigDataDiskListArgs.builder()
                        .capacity(20)
                        .storageType("CloudBlockSSD")
                        .build())
                    .systemDisk(CloudServerStorageConfigSystemDiskArgs.builder()
                        .capacity(40)
                        .storageType("CloudBlockSSD")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.veenedge.CloudServer("foo",
        billing_config=volcengine.veenedge.CloudServerBillingConfigArgs(
            bandwidth_billing_method="MonthlyP95",
            computing_billing_method="MonthlyPeak",
        ),
        cloudserver_name="tf-test",
        default_area_name="C******na",
        default_isp="CMCC",
        image_id="image*****viqm",
        network_config=volcengine.veenedge.CloudServerNetworkConfigArgs(
            bandwidth_peak="5",
        ),
        schedule_strategy=volcengine.veenedge.CloudServerScheduleStrategyArgs(
            network_strategy="region",
            price_strategy="high_priority",
            schedule_strategy="dispersion",
        ),
        secret_data="sshkey-47*****wgc",
        secret_type="KeyPair",
        server_area_level="region",
        spec_name="veEN****rge",
        storage_config=volcengine.veenedge.CloudServerStorageConfigArgs(
            data_disk_lists=[volcengine.veenedge.CloudServerStorageConfigDataDiskListArgs(
                capacity="20",
                storage_type="CloudBlockSSD",
            )],
            system_disk=volcengine.veenedge.CloudServerStorageConfigSystemDiskArgs(
                capacity="40",
                storage_type="CloudBlockSSD",
            ),
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.veenedge.CloudServer("foo", {
        billingConfig: {
            bandwidthBillingMethod: "MonthlyP95",
            computingBillingMethod: "MonthlyPeak",
        },
        cloudserverName: "tf-test",
        defaultAreaName: "C******na",
        defaultIsp: "CMCC",
        imageId: "image*****viqm",
        networkConfig: {
            bandwidthPeak: "5",
        },
        scheduleStrategy: {
            networkStrategy: "region",
            priceStrategy: "high_priority",
            scheduleStrategy: "dispersion",
        },
        secretData: "sshkey-47*****wgc",
        secretType: "KeyPair",
        serverAreaLevel: "region",
        specName: "veEN****rge",
        storageConfig: {
            dataDiskLists: [{
                capacity: "20",
                storageType: "CloudBlockSSD",
            }],
            systemDisk: {
                capacity: "40",
                storageType: "CloudBlockSSD",
            },
        },
    });
    
    resources:
      foo:
        type: volcengine:veenedge:CloudServer
        properties:
          billingConfig:
            bandwidthBillingMethod: MonthlyP95
            computingBillingMethod: MonthlyPeak
          cloudserverName: tf-test
          defaultAreaName: C******na
          defaultIsp: CMCC
          imageId: image*****viqm
          networkConfig:
            bandwidthPeak: 5
          scheduleStrategy:
            networkStrategy: region
            priceStrategy: high_priority
            scheduleStrategy: dispersion
          secretData: sshkey-47*****wgc
          secretType: KeyPair
          serverAreaLevel: region
          specName: veEN****rge
          storageConfig:
            dataDiskLists:
              - capacity: 20
                storageType: CloudBlockSSD
            systemDisk:
              capacity: 40
              storageType: CloudBlockSSD
    

    Create CloudServer Resource

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

    Constructor syntax

    new CloudServer(name: string, args: CloudServerArgs, opts?: CustomResourceOptions);
    @overload
    def CloudServer(resource_name: str,
                    args: CloudServerArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudServer(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    image_id: Optional[str] = None,
                    schedule_strategy: Optional[CloudServerScheduleStrategyArgs] = None,
                    storage_config: Optional[CloudServerStorageConfigArgs] = None,
                    default_area_name: Optional[str] = None,
                    network_config: Optional[CloudServerNetworkConfigArgs] = None,
                    default_isp: Optional[str] = None,
                    cloudserver_name: Optional[str] = None,
                    spec_name: Optional[str] = None,
                    secret_type: Optional[str] = None,
                    server_area_level: Optional[str] = None,
                    default_cluster_name: Optional[str] = None,
                    secret_data: Optional[str] = None,
                    billing_config: Optional[CloudServerBillingConfigArgs] = None,
                    custom_data: Optional[CloudServerCustomDataArgs] = None)
    func NewCloudServer(ctx *Context, name string, args CloudServerArgs, opts ...ResourceOption) (*CloudServer, error)
    public CloudServer(string name, CloudServerArgs args, CustomResourceOptions? opts = null)
    public CloudServer(String name, CloudServerArgs args)
    public CloudServer(String name, CloudServerArgs args, CustomResourceOptions options)
    
    type: volcengine:veenedge:CloudServer
    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 CloudServerArgs
    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 CloudServerArgs
    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 CloudServerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudServerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var cloudServerResource = new Volcengine.Veenedge.CloudServer("cloudServerResource", new()
    {
        ImageId = "string",
        ScheduleStrategy = new Volcengine.Veenedge.Inputs.CloudServerScheduleStrategyArgs
        {
            NetworkStrategy = "string",
            PriceStrategy = "string",
            ScheduleStrategy = "string",
        },
        StorageConfig = new Volcengine.Veenedge.Inputs.CloudServerStorageConfigArgs
        {
            SystemDisk = new Volcengine.Veenedge.Inputs.CloudServerStorageConfigSystemDiskArgs
            {
                Capacity = "string",
                StorageType = "string",
            },
            DataDiskLists = new[]
            {
                new Volcengine.Veenedge.Inputs.CloudServerStorageConfigDataDiskListArgs
                {
                    Capacity = "string",
                    StorageType = "string",
                },
            },
        },
        DefaultAreaName = "string",
        NetworkConfig = new Volcengine.Veenedge.Inputs.CloudServerNetworkConfigArgs
        {
            BandwidthPeak = "string",
            CustomExternalInterfaceName = "string",
            CustomInternalInterfaceName = "string",
            EnableIpv6 = false,
            InternalBandwidthPeak = "string",
        },
        DefaultIsp = "string",
        CloudserverName = "string",
        SpecName = "string",
        SecretType = "string",
        ServerAreaLevel = "string",
        DefaultClusterName = "string",
        SecretData = "string",
        BillingConfig = new Volcengine.Veenedge.Inputs.CloudServerBillingConfigArgs
        {
            BandwidthBillingMethod = "string",
            ComputingBillingMethod = "string",
        },
        CustomData = new Volcengine.Veenedge.Inputs.CloudServerCustomDataArgs
        {
            Data = "string",
        },
    });
    
    example, err := veenedge.NewCloudServer(ctx, "cloudServerResource", &veenedge.CloudServerArgs{
    	ImageId: pulumi.String("string"),
    	ScheduleStrategy: &veenedge.CloudServerScheduleStrategyArgs{
    		NetworkStrategy:  pulumi.String("string"),
    		PriceStrategy:    pulumi.String("string"),
    		ScheduleStrategy: pulumi.String("string"),
    	},
    	StorageConfig: &veenedge.CloudServerStorageConfigArgs{
    		SystemDisk: &veenedge.CloudServerStorageConfigSystemDiskArgs{
    			Capacity:    pulumi.String("string"),
    			StorageType: pulumi.String("string"),
    		},
    		DataDiskLists: veenedge.CloudServerStorageConfigDataDiskListArray{
    			&veenedge.CloudServerStorageConfigDataDiskListArgs{
    				Capacity:    pulumi.String("string"),
    				StorageType: pulumi.String("string"),
    			},
    		},
    	},
    	DefaultAreaName: pulumi.String("string"),
    	NetworkConfig: &veenedge.CloudServerNetworkConfigArgs{
    		BandwidthPeak:               pulumi.String("string"),
    		CustomExternalInterfaceName: pulumi.String("string"),
    		CustomInternalInterfaceName: pulumi.String("string"),
    		EnableIpv6:                  pulumi.Bool(false),
    		InternalBandwidthPeak:       pulumi.String("string"),
    	},
    	DefaultIsp:         pulumi.String("string"),
    	CloudserverName:    pulumi.String("string"),
    	SpecName:           pulumi.String("string"),
    	SecretType:         pulumi.String("string"),
    	ServerAreaLevel:    pulumi.String("string"),
    	DefaultClusterName: pulumi.String("string"),
    	SecretData:         pulumi.String("string"),
    	BillingConfig: &veenedge.CloudServerBillingConfigArgs{
    		BandwidthBillingMethod: pulumi.String("string"),
    		ComputingBillingMethod: pulumi.String("string"),
    	},
    	CustomData: &veenedge.CloudServerCustomDataArgs{
    		Data: pulumi.String("string"),
    	},
    })
    
    var cloudServerResource = new CloudServer("cloudServerResource", CloudServerArgs.builder()        
        .imageId("string")
        .scheduleStrategy(CloudServerScheduleStrategyArgs.builder()
            .networkStrategy("string")
            .priceStrategy("string")
            .scheduleStrategy("string")
            .build())
        .storageConfig(CloudServerStorageConfigArgs.builder()
            .systemDisk(CloudServerStorageConfigSystemDiskArgs.builder()
                .capacity("string")
                .storageType("string")
                .build())
            .dataDiskLists(CloudServerStorageConfigDataDiskListArgs.builder()
                .capacity("string")
                .storageType("string")
                .build())
            .build())
        .defaultAreaName("string")
        .networkConfig(CloudServerNetworkConfigArgs.builder()
            .bandwidthPeak("string")
            .customExternalInterfaceName("string")
            .customInternalInterfaceName("string")
            .enableIpv6(false)
            .internalBandwidthPeak("string")
            .build())
        .defaultIsp("string")
        .cloudserverName("string")
        .specName("string")
        .secretType("string")
        .serverAreaLevel("string")
        .defaultClusterName("string")
        .secretData("string")
        .billingConfig(CloudServerBillingConfigArgs.builder()
            .bandwidthBillingMethod("string")
            .computingBillingMethod("string")
            .build())
        .customData(CloudServerCustomDataArgs.builder()
            .data("string")
            .build())
        .build());
    
    cloud_server_resource = volcengine.veenedge.CloudServer("cloudServerResource",
        image_id="string",
        schedule_strategy=volcengine.veenedge.CloudServerScheduleStrategyArgs(
            network_strategy="string",
            price_strategy="string",
            schedule_strategy="string",
        ),
        storage_config=volcengine.veenedge.CloudServerStorageConfigArgs(
            system_disk=volcengine.veenedge.CloudServerStorageConfigSystemDiskArgs(
                capacity="string",
                storage_type="string",
            ),
            data_disk_lists=[volcengine.veenedge.CloudServerStorageConfigDataDiskListArgs(
                capacity="string",
                storage_type="string",
            )],
        ),
        default_area_name="string",
        network_config=volcengine.veenedge.CloudServerNetworkConfigArgs(
            bandwidth_peak="string",
            custom_external_interface_name="string",
            custom_internal_interface_name="string",
            enable_ipv6=False,
            internal_bandwidth_peak="string",
        ),
        default_isp="string",
        cloudserver_name="string",
        spec_name="string",
        secret_type="string",
        server_area_level="string",
        default_cluster_name="string",
        secret_data="string",
        billing_config=volcengine.veenedge.CloudServerBillingConfigArgs(
            bandwidth_billing_method="string",
            computing_billing_method="string",
        ),
        custom_data=volcengine.veenedge.CloudServerCustomDataArgs(
            data="string",
        ))
    
    const cloudServerResource = new volcengine.veenedge.CloudServer("cloudServerResource", {
        imageId: "string",
        scheduleStrategy: {
            networkStrategy: "string",
            priceStrategy: "string",
            scheduleStrategy: "string",
        },
        storageConfig: {
            systemDisk: {
                capacity: "string",
                storageType: "string",
            },
            dataDiskLists: [{
                capacity: "string",
                storageType: "string",
            }],
        },
        defaultAreaName: "string",
        networkConfig: {
            bandwidthPeak: "string",
            customExternalInterfaceName: "string",
            customInternalInterfaceName: "string",
            enableIpv6: false,
            internalBandwidthPeak: "string",
        },
        defaultIsp: "string",
        cloudserverName: "string",
        specName: "string",
        secretType: "string",
        serverAreaLevel: "string",
        defaultClusterName: "string",
        secretData: "string",
        billingConfig: {
            bandwidthBillingMethod: "string",
            computingBillingMethod: "string",
        },
        customData: {
            data: "string",
        },
    });
    
    type: volcengine:veenedge:CloudServer
    properties:
        billingConfig:
            bandwidthBillingMethod: string
            computingBillingMethod: string
        cloudserverName: string
        customData:
            data: string
        defaultAreaName: string
        defaultClusterName: string
        defaultIsp: string
        imageId: string
        networkConfig:
            bandwidthPeak: string
            customExternalInterfaceName: string
            customInternalInterfaceName: string
            enableIpv6: false
            internalBandwidthPeak: string
        scheduleStrategy:
            networkStrategy: string
            priceStrategy: string
            scheduleStrategy: string
        secretData: string
        secretType: string
        serverAreaLevel: string
        specName: string
        storageConfig:
            dataDiskLists:
                - capacity: string
                  storageType: string
            systemDisk:
                capacity: string
                storageType: string
    

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

    CloudserverName string
    The name of cloud server.
    DefaultAreaName string
    The name of default area.
    DefaultIsp string
    The default isp info.
    ImageId string
    The image id of cloud server.
    NetworkConfig Volcengine.CloudServerNetworkConfig
    The config of the network.
    ScheduleStrategy Volcengine.CloudServerScheduleStrategy
    The schedule strategy.
    SecretType string
    The type of secret. The value can be KeyPair or Password.
    ServerAreaLevel string
    The server area level. The value can be region or city.
    SpecName string
    The spec name of cloud server.
    StorageConfig Volcengine.CloudServerStorageConfig
    The config of the storage.
    BillingConfig Volcengine.CloudServerBillingConfig
    The config of the billing.
    CustomData Volcengine.CloudServerCustomData
    The custom data.
    DefaultClusterName string
    The name of default cluster.
    SecretData string
    The data of secret. The value can be Password or KeyPair ID.
    CloudserverName string
    The name of cloud server.
    DefaultAreaName string
    The name of default area.
    DefaultIsp string
    The default isp info.
    ImageId string
    The image id of cloud server.
    NetworkConfig CloudServerNetworkConfigArgs
    The config of the network.
    ScheduleStrategy CloudServerScheduleStrategyArgs
    The schedule strategy.
    SecretType string
    The type of secret. The value can be KeyPair or Password.
    ServerAreaLevel string
    The server area level. The value can be region or city.
    SpecName string
    The spec name of cloud server.
    StorageConfig CloudServerStorageConfigArgs
    The config of the storage.
    BillingConfig CloudServerBillingConfigArgs
    The config of the billing.
    CustomData CloudServerCustomDataArgs
    The custom data.
    DefaultClusterName string
    The name of default cluster.
    SecretData string
    The data of secret. The value can be Password or KeyPair ID.
    cloudserverName String
    The name of cloud server.
    defaultAreaName String
    The name of default area.
    defaultIsp String
    The default isp info.
    imageId String
    The image id of cloud server.
    networkConfig CloudServerNetworkConfig
    The config of the network.
    scheduleStrategy CloudServerScheduleStrategy
    The schedule strategy.
    secretType String
    The type of secret. The value can be KeyPair or Password.
    serverAreaLevel String
    The server area level. The value can be region or city.
    specName String
    The spec name of cloud server.
    storageConfig CloudServerStorageConfig
    The config of the storage.
    billingConfig CloudServerBillingConfig
    The config of the billing.
    customData CloudServerCustomData
    The custom data.
    defaultClusterName String
    The name of default cluster.
    secretData String
    The data of secret. The value can be Password or KeyPair ID.
    cloudserverName string
    The name of cloud server.
    defaultAreaName string
    The name of default area.
    defaultIsp string
    The default isp info.
    imageId string
    The image id of cloud server.
    networkConfig CloudServerNetworkConfig
    The config of the network.
    scheduleStrategy CloudServerScheduleStrategy
    The schedule strategy.
    secretType string
    The type of secret. The value can be KeyPair or Password.
    serverAreaLevel string
    The server area level. The value can be region or city.
    specName string
    The spec name of cloud server.
    storageConfig CloudServerStorageConfig
    The config of the storage.
    billingConfig CloudServerBillingConfig
    The config of the billing.
    customData CloudServerCustomData
    The custom data.
    defaultClusterName string
    The name of default cluster.
    secretData string
    The data of secret. The value can be Password or KeyPair ID.
    cloudserver_name str
    The name of cloud server.
    default_area_name str
    The name of default area.
    default_isp str
    The default isp info.
    image_id str
    The image id of cloud server.
    network_config CloudServerNetworkConfigArgs
    The config of the network.
    schedule_strategy CloudServerScheduleStrategyArgs
    The schedule strategy.
    secret_type str
    The type of secret. The value can be KeyPair or Password.
    server_area_level str
    The server area level. The value can be region or city.
    spec_name str
    The spec name of cloud server.
    storage_config CloudServerStorageConfigArgs
    The config of the storage.
    billing_config CloudServerBillingConfigArgs
    The config of the billing.
    custom_data CloudServerCustomDataArgs
    The custom data.
    default_cluster_name str
    The name of default cluster.
    secret_data str
    The data of secret. The value can be Password or KeyPair ID.
    cloudserverName String
    The name of cloud server.
    defaultAreaName String
    The name of default area.
    defaultIsp String
    The default isp info.
    imageId String
    The image id of cloud server.
    networkConfig Property Map
    The config of the network.
    scheduleStrategy Property Map
    The schedule strategy.
    secretType String
    The type of secret. The value can be KeyPair or Password.
    serverAreaLevel String
    The server area level. The value can be region or city.
    specName String
    The spec name of cloud server.
    storageConfig Property Map
    The config of the storage.
    billingConfig Property Map
    The config of the billing.
    customData Property Map
    The custom data.
    defaultClusterName String
    The name of default cluster.
    secretData String
    The data of secret. The value can be Password or KeyPair ID.

    Outputs

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

    DefaultInstanceId string
    The default instance id generate by cloud server.
    Id string
    The provider-assigned unique ID for this managed resource.
    DefaultInstanceId string
    The default instance id generate by cloud server.
    Id string
    The provider-assigned unique ID for this managed resource.
    defaultInstanceId String
    The default instance id generate by cloud server.
    id String
    The provider-assigned unique ID for this managed resource.
    defaultInstanceId string
    The default instance id generate by cloud server.
    id string
    The provider-assigned unique ID for this managed resource.
    default_instance_id str
    The default instance id generate by cloud server.
    id str
    The provider-assigned unique ID for this managed resource.
    defaultInstanceId String
    The default instance id generate by cloud server.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CloudServer Resource

    Get an existing CloudServer 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?: CloudServerState, opts?: CustomResourceOptions): CloudServer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            billing_config: Optional[CloudServerBillingConfigArgs] = None,
            cloudserver_name: Optional[str] = None,
            custom_data: Optional[CloudServerCustomDataArgs] = None,
            default_area_name: Optional[str] = None,
            default_cluster_name: Optional[str] = None,
            default_instance_id: Optional[str] = None,
            default_isp: Optional[str] = None,
            image_id: Optional[str] = None,
            network_config: Optional[CloudServerNetworkConfigArgs] = None,
            schedule_strategy: Optional[CloudServerScheduleStrategyArgs] = None,
            secret_data: Optional[str] = None,
            secret_type: Optional[str] = None,
            server_area_level: Optional[str] = None,
            spec_name: Optional[str] = None,
            storage_config: Optional[CloudServerStorageConfigArgs] = None) -> CloudServer
    func GetCloudServer(ctx *Context, name string, id IDInput, state *CloudServerState, opts ...ResourceOption) (*CloudServer, error)
    public static CloudServer Get(string name, Input<string> id, CloudServerState? state, CustomResourceOptions? opts = null)
    public static CloudServer get(String name, Output<String> id, CloudServerState 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:
    BillingConfig Volcengine.CloudServerBillingConfig
    The config of the billing.
    CloudserverName string
    The name of cloud server.
    CustomData Volcengine.CloudServerCustomData
    The custom data.
    DefaultAreaName string
    The name of default area.
    DefaultClusterName string
    The name of default cluster.
    DefaultInstanceId string
    The default instance id generate by cloud server.
    DefaultIsp string
    The default isp info.
    ImageId string
    The image id of cloud server.
    NetworkConfig Volcengine.CloudServerNetworkConfig
    The config of the network.
    ScheduleStrategy Volcengine.CloudServerScheduleStrategy
    The schedule strategy.
    SecretData string
    The data of secret. The value can be Password or KeyPair ID.
    SecretType string
    The type of secret. The value can be KeyPair or Password.
    ServerAreaLevel string
    The server area level. The value can be region or city.
    SpecName string
    The spec name of cloud server.
    StorageConfig Volcengine.CloudServerStorageConfig
    The config of the storage.
    BillingConfig CloudServerBillingConfigArgs
    The config of the billing.
    CloudserverName string
    The name of cloud server.
    CustomData CloudServerCustomDataArgs
    The custom data.
    DefaultAreaName string
    The name of default area.
    DefaultClusterName string
    The name of default cluster.
    DefaultInstanceId string
    The default instance id generate by cloud server.
    DefaultIsp string
    The default isp info.
    ImageId string
    The image id of cloud server.
    NetworkConfig CloudServerNetworkConfigArgs
    The config of the network.
    ScheduleStrategy CloudServerScheduleStrategyArgs
    The schedule strategy.
    SecretData string
    The data of secret. The value can be Password or KeyPair ID.
    SecretType string
    The type of secret. The value can be KeyPair or Password.
    ServerAreaLevel string
    The server area level. The value can be region or city.
    SpecName string
    The spec name of cloud server.
    StorageConfig CloudServerStorageConfigArgs
    The config of the storage.
    billingConfig CloudServerBillingConfig
    The config of the billing.
    cloudserverName String
    The name of cloud server.
    customData CloudServerCustomData
    The custom data.
    defaultAreaName String
    The name of default area.
    defaultClusterName String
    The name of default cluster.
    defaultInstanceId String
    The default instance id generate by cloud server.
    defaultIsp String
    The default isp info.
    imageId String
    The image id of cloud server.
    networkConfig CloudServerNetworkConfig
    The config of the network.
    scheduleStrategy CloudServerScheduleStrategy
    The schedule strategy.
    secretData String
    The data of secret. The value can be Password or KeyPair ID.
    secretType String
    The type of secret. The value can be KeyPair or Password.
    serverAreaLevel String
    The server area level. The value can be region or city.
    specName String
    The spec name of cloud server.
    storageConfig CloudServerStorageConfig
    The config of the storage.
    billingConfig CloudServerBillingConfig
    The config of the billing.
    cloudserverName string
    The name of cloud server.
    customData CloudServerCustomData
    The custom data.
    defaultAreaName string
    The name of default area.
    defaultClusterName string
    The name of default cluster.
    defaultInstanceId string
    The default instance id generate by cloud server.
    defaultIsp string
    The default isp info.
    imageId string
    The image id of cloud server.
    networkConfig CloudServerNetworkConfig
    The config of the network.
    scheduleStrategy CloudServerScheduleStrategy
    The schedule strategy.
    secretData string
    The data of secret. The value can be Password or KeyPair ID.
    secretType string
    The type of secret. The value can be KeyPair or Password.
    serverAreaLevel string
    The server area level. The value can be region or city.
    specName string
    The spec name of cloud server.
    storageConfig CloudServerStorageConfig
    The config of the storage.
    billing_config CloudServerBillingConfigArgs
    The config of the billing.
    cloudserver_name str
    The name of cloud server.
    custom_data CloudServerCustomDataArgs
    The custom data.
    default_area_name str
    The name of default area.
    default_cluster_name str
    The name of default cluster.
    default_instance_id str
    The default instance id generate by cloud server.
    default_isp str
    The default isp info.
    image_id str
    The image id of cloud server.
    network_config CloudServerNetworkConfigArgs
    The config of the network.
    schedule_strategy CloudServerScheduleStrategyArgs
    The schedule strategy.
    secret_data str
    The data of secret. The value can be Password or KeyPair ID.
    secret_type str
    The type of secret. The value can be KeyPair or Password.
    server_area_level str
    The server area level. The value can be region or city.
    spec_name str
    The spec name of cloud server.
    storage_config CloudServerStorageConfigArgs
    The config of the storage.
    billingConfig Property Map
    The config of the billing.
    cloudserverName String
    The name of cloud server.
    customData Property Map
    The custom data.
    defaultAreaName String
    The name of default area.
    defaultClusterName String
    The name of default cluster.
    defaultInstanceId String
    The default instance id generate by cloud server.
    defaultIsp String
    The default isp info.
    imageId String
    The image id of cloud server.
    networkConfig Property Map
    The config of the network.
    scheduleStrategy Property Map
    The schedule strategy.
    secretData String
    The data of secret. The value can be Password or KeyPair ID.
    secretType String
    The type of secret. The value can be KeyPair or Password.
    serverAreaLevel String
    The server area level. The value can be region or city.
    specName String
    The spec name of cloud server.
    storageConfig Property Map
    The config of the storage.

    Supporting Types

    CloudServerBillingConfig, CloudServerBillingConfigArgs

    BandwidthBillingMethod string
    The method of bandwidth billing. The value can be MonthlyP95 or DailyPeak.
    ComputingBillingMethod string
    The method of computing billing. The value can be MonthlyPeak or DailyPeak.
    BandwidthBillingMethod string
    The method of bandwidth billing. The value can be MonthlyP95 or DailyPeak.
    ComputingBillingMethod string
    The method of computing billing. The value can be MonthlyPeak or DailyPeak.
    bandwidthBillingMethod String
    The method of bandwidth billing. The value can be MonthlyP95 or DailyPeak.
    computingBillingMethod String
    The method of computing billing. The value can be MonthlyPeak or DailyPeak.
    bandwidthBillingMethod string
    The method of bandwidth billing. The value can be MonthlyP95 or DailyPeak.
    computingBillingMethod string
    The method of computing billing. The value can be MonthlyPeak or DailyPeak.
    bandwidth_billing_method str
    The method of bandwidth billing. The value can be MonthlyP95 or DailyPeak.
    computing_billing_method str
    The method of computing billing. The value can be MonthlyPeak or DailyPeak.
    bandwidthBillingMethod String
    The method of bandwidth billing. The value can be MonthlyP95 or DailyPeak.
    computingBillingMethod String
    The method of computing billing. The value can be MonthlyPeak or DailyPeak.

    CloudServerCustomData, CloudServerCustomDataArgs

    Data string
    The custom data info.
    Data string
    The custom data info.
    data String
    The custom data info.
    data string
    The custom data info.
    data str
    The custom data info.
    data String
    The custom data info.

    CloudServerNetworkConfig, CloudServerNetworkConfigArgs

    BandwidthPeak string
    The peak of bandwidth.
    CustomExternalInterfaceName string
    The name of custom external interface.
    CustomInternalInterfaceName string
    The name of custom internal interface.
    EnableIpv6 bool
    Whether enable ipv6.
    InternalBandwidthPeak string
    The internal peak of bandwidth.
    BandwidthPeak string
    The peak of bandwidth.
    CustomExternalInterfaceName string
    The name of custom external interface.
    CustomInternalInterfaceName string
    The name of custom internal interface.
    EnableIpv6 bool
    Whether enable ipv6.
    InternalBandwidthPeak string
    The internal peak of bandwidth.
    bandwidthPeak String
    The peak of bandwidth.
    customExternalInterfaceName String
    The name of custom external interface.
    customInternalInterfaceName String
    The name of custom internal interface.
    enableIpv6 Boolean
    Whether enable ipv6.
    internalBandwidthPeak String
    The internal peak of bandwidth.
    bandwidthPeak string
    The peak of bandwidth.
    customExternalInterfaceName string
    The name of custom external interface.
    customInternalInterfaceName string
    The name of custom internal interface.
    enableIpv6 boolean
    Whether enable ipv6.
    internalBandwidthPeak string
    The internal peak of bandwidth.
    bandwidth_peak str
    The peak of bandwidth.
    custom_external_interface_name str
    The name of custom external interface.
    custom_internal_interface_name str
    The name of custom internal interface.
    enable_ipv6 bool
    Whether enable ipv6.
    internal_bandwidth_peak str
    The internal peak of bandwidth.
    bandwidthPeak String
    The peak of bandwidth.
    customExternalInterfaceName String
    The name of custom external interface.
    customInternalInterfaceName String
    The name of custom internal interface.
    enableIpv6 Boolean
    Whether enable ipv6.
    internalBandwidthPeak String
    The internal peak of bandwidth.

    CloudServerScheduleStrategy, CloudServerScheduleStrategyArgs

    NetworkStrategy string
    The network strategy.
    PriceStrategy string
    The price strategy. The value can be high_priority or low_priority.
    ScheduleStrategy string
    The type of schedule strategy. The value can be dispersion or concentration.
    NetworkStrategy string
    The network strategy.
    PriceStrategy string
    The price strategy. The value can be high_priority or low_priority.
    ScheduleStrategy string
    The type of schedule strategy. The value can be dispersion or concentration.
    networkStrategy String
    The network strategy.
    priceStrategy String
    The price strategy. The value can be high_priority or low_priority.
    scheduleStrategy String
    The type of schedule strategy. The value can be dispersion or concentration.
    networkStrategy string
    The network strategy.
    priceStrategy string
    The price strategy. The value can be high_priority or low_priority.
    scheduleStrategy string
    The type of schedule strategy. The value can be dispersion or concentration.
    network_strategy str
    The network strategy.
    price_strategy str
    The price strategy. The value can be high_priority or low_priority.
    schedule_strategy str
    The type of schedule strategy. The value can be dispersion or concentration.
    networkStrategy String
    The network strategy.
    priceStrategy String
    The price strategy. The value can be high_priority or low_priority.
    scheduleStrategy String
    The type of schedule strategy. The value can be dispersion or concentration.

    CloudServerStorageConfig, CloudServerStorageConfigArgs

    systemDisk Property Map
    The disk info of system.
    dataDiskLists List<Property Map>
    The disk list info of data.

    CloudServerStorageConfigDataDiskList, CloudServerStorageConfigDataDiskListArgs

    Capacity string
    The capacity of storage.
    StorageType string
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    Capacity string
    The capacity of storage.
    StorageType string
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    capacity String
    The capacity of storage.
    storageType String
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    capacity string
    The capacity of storage.
    storageType string
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    capacity str
    The capacity of storage.
    storage_type str
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    capacity String
    The capacity of storage.
    storageType String
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.

    CloudServerStorageConfigSystemDisk, CloudServerStorageConfigSystemDiskArgs

    Capacity string
    The capacity of storage.
    StorageType string
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    Capacity string
    The capacity of storage.
    StorageType string
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    capacity String
    The capacity of storage.
    storageType String
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    capacity string
    The capacity of storage.
    storageType string
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    capacity str
    The capacity of storage.
    storage_type str
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.
    capacity String
    The capacity of storage.
    storageType String
    The type of storage. The value can be CloudBlockHDD or CloudBlockSSD.

    Import

    CloudServer can be imported using the id, e.g.

     $ pulumi import volcengine:veenedge/cloudServer:CloudServer default cloudserver-n769ewmjjqyqh5dv
    

    After the veenedge cloud server is created, a default edge instance will be created, we recommend managing this default instance as follows resource “volcengine_veenedge_instance” “foo1” {

    instance_id = volcengine_veenedge_cloud_server.foo.default_instance_id }

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine