volcengine.veenedge.CloudServer
Explore with Pulumi AI
Provides a resource to manage veenedge cloud server
Example Usage
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",
},
},
});
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",
),
))
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using 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 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());
}
}
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,
secret_type: Optional[str] = None,
storage_config: Optional[CloudServerStorageConfigArgs] = None,
default_area_name: Optional[str] = None,
network_config: Optional[CloudServerNetworkConfigArgs] = None,
default_isp: Optional[str] = None,
schedule_strategy: Optional[CloudServerScheduleStrategyArgs] = None,
spec_name: Optional[str] = None,
cloudserver_name: Optional[str] = None,
server_area_level: Optional[str] = None,
billing_config: Optional[CloudServerBillingConfigArgs] = None,
secret_data: Optional[str] = None,
default_cluster_name: Optional[str] = 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
This property is required. string - The unique name of the resource.
- args
This property is required. CloudServerArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. CloudServerArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. CloudServerArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. CloudServerArgs - 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 cloudServerResource = new Volcengine.Veenedge.CloudServer("cloudServerResource", new()
{
ImageId = "string",
SecretType = "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",
ScheduleStrategy = new Volcengine.Veenedge.Inputs.CloudServerScheduleStrategyArgs
{
NetworkStrategy = "string",
PriceStrategy = "string",
ScheduleStrategy = "string",
},
SpecName = "string",
CloudserverName = "string",
ServerAreaLevel = "string",
BillingConfig = new Volcengine.Veenedge.Inputs.CloudServerBillingConfigArgs
{
BandwidthBillingMethod = "string",
ComputingBillingMethod = "string",
},
SecretData = "string",
DefaultClusterName = "string",
CustomData = new Volcengine.Veenedge.Inputs.CloudServerCustomDataArgs
{
Data = "string",
},
});
example, err := veenedge.NewCloudServer(ctx, "cloudServerResource", &veenedge.CloudServerArgs{
ImageId: pulumi.String("string"),
SecretType: 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"),
ScheduleStrategy: &veenedge.CloudServerScheduleStrategyArgs{
NetworkStrategy: pulumi.String("string"),
PriceStrategy: pulumi.String("string"),
ScheduleStrategy: pulumi.String("string"),
},
SpecName: pulumi.String("string"),
CloudserverName: pulumi.String("string"),
ServerAreaLevel: pulumi.String("string"),
BillingConfig: &veenedge.CloudServerBillingConfigArgs{
BandwidthBillingMethod: pulumi.String("string"),
ComputingBillingMethod: pulumi.String("string"),
},
SecretData: pulumi.String("string"),
DefaultClusterName: pulumi.String("string"),
CustomData: &veenedge.CloudServerCustomDataArgs{
Data: pulumi.String("string"),
},
})
var cloudServerResource = new CloudServer("cloudServerResource", CloudServerArgs.builder()
.imageId("string")
.secretType("string")
.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")
.scheduleStrategy(CloudServerScheduleStrategyArgs.builder()
.networkStrategy("string")
.priceStrategy("string")
.scheduleStrategy("string")
.build())
.specName("string")
.cloudserverName("string")
.serverAreaLevel("string")
.billingConfig(CloudServerBillingConfigArgs.builder()
.bandwidthBillingMethod("string")
.computingBillingMethod("string")
.build())
.secretData("string")
.defaultClusterName("string")
.customData(CloudServerCustomDataArgs.builder()
.data("string")
.build())
.build());
cloud_server_resource = volcengine.veenedge.CloudServer("cloudServerResource",
image_id="string",
secret_type="string",
storage_config={
"system_disk": {
"capacity": "string",
"storage_type": "string",
},
"data_disk_lists": [{
"capacity": "string",
"storage_type": "string",
}],
},
default_area_name="string",
network_config={
"bandwidth_peak": "string",
"custom_external_interface_name": "string",
"custom_internal_interface_name": "string",
"enable_ipv6": False,
"internal_bandwidth_peak": "string",
},
default_isp="string",
schedule_strategy={
"network_strategy": "string",
"price_strategy": "string",
"schedule_strategy": "string",
},
spec_name="string",
cloudserver_name="string",
server_area_level="string",
billing_config={
"bandwidth_billing_method": "string",
"computing_billing_method": "string",
},
secret_data="string",
default_cluster_name="string",
custom_data={
"data": "string",
})
const cloudServerResource = new volcengine.veenedge.CloudServer("cloudServerResource", {
imageId: "string",
secretType: "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",
scheduleStrategy: {
networkStrategy: "string",
priceStrategy: "string",
scheduleStrategy: "string",
},
specName: "string",
cloudserverName: "string",
serverAreaLevel: "string",
billingConfig: {
bandwidthBillingMethod: "string",
computingBillingMethod: "string",
},
secretData: "string",
defaultClusterName: "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CloudServer resource accepts the following input properties:
- Cloudserver
Name This property is required. Changes to this property will trigger replacement.
- The name of cloud server.
- Default
Area Name This property is required. string - The name of default area.
- Default
Isp This property is required. string - The default isp info.
- Image
Id This property is required. Changes to this property will trigger replacement.
- The image id of cloud server.
- Network
Config This property is required. Changes to this property will trigger replacement.
Server Network Config - The config of the network.
- Schedule
Strategy This property is required. Changes to this property will trigger replacement.
Server Schedule Strategy - The schedule strategy.
- Secret
Type This property is required. Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - Server
Area Level This property is required. Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - Spec
Name This property is required. Changes to this property will trigger replacement.
- The spec name of cloud server.
- Storage
Config This property is required. Changes to this property will trigger replacement.
Server Storage Config - The config of the storage.
- Billing
Config Changes to this property will trigger replacement.
Server Billing Config - The config of the billing.
- Custom
Data Changes to this property will trigger replacement.
Server Custom Data - The custom data.
- Default
Cluster stringName - The name of default cluster.
- Secret
Data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- Cloudserver
Name This property is required. Changes to this property will trigger replacement.
- The name of cloud server.
- Default
Area Name This property is required. string - The name of default area.
- Default
Isp This property is required. string - The default isp info.
- Image
Id This property is required. Changes to this property will trigger replacement.
- The image id of cloud server.
- Network
Config This property is required. Changes to this property will trigger replacement.
Server Network Config Args - The config of the network.
- Schedule
Strategy This property is required. Changes to this property will trigger replacement.
Server Schedule Strategy Args - The schedule strategy.
- Secret
Type This property is required. Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - Server
Area Level This property is required. Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - Spec
Name This property is required. Changes to this property will trigger replacement.
- The spec name of cloud server.
- Storage
Config This property is required. Changes to this property will trigger replacement.
Server Storage Config Args - The config of the storage.
- Billing
Config Changes to this property will trigger replacement.
Server Billing Config Args - The config of the billing.
- Custom
Data Changes to this property will trigger replacement.
Server Custom Data Args - The custom data.
- Default
Cluster stringName - The name of default cluster.
- Secret
Data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- cloudserver
Name This property is required. Changes to this property will trigger replacement.
- The name of cloud server.
- default
Area Name This property is required. String - The name of default area.
- default
Isp This property is required. String - The default isp info.
- image
Id This property is required. Changes to this property will trigger replacement.
- The image id of cloud server.
- network
Config This property is required. Changes to this property will trigger replacement.
Server Network Config - The config of the network.
- schedule
Strategy This property is required. Changes to this property will trigger replacement.
Server Schedule Strategy - The schedule strategy.
- secret
Type This property is required. Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - server
Area Level This property is required. Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - spec
Name This property is required. Changes to this property will trigger replacement.
- The spec name of cloud server.
- storage
Config This property is required. Changes to this property will trigger replacement.
Server Storage Config - The config of the storage.
- billing
Config Changes to this property will trigger replacement.
Server Billing Config - The config of the billing.
- custom
Data Changes to this property will trigger replacement.
Server Custom Data - The custom data.
- default
Cluster StringName - The name of default cluster.
- secret
Data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- cloudserver
Name This property is required. Changes to this property will trigger replacement.
- The name of cloud server.
- default
Area Name This property is required. string - The name of default area.
- default
Isp This property is required. string - The default isp info.
- image
Id This property is required. Changes to this property will trigger replacement.
- The image id of cloud server.
- network
Config This property is required. Changes to this property will trigger replacement.
Server Network Config - The config of the network.
- schedule
Strategy This property is required. Changes to this property will trigger replacement.
Server Schedule Strategy - The schedule strategy.
- secret
Type This property is required. Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - server
Area Level This property is required. Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - spec
Name This property is required. Changes to this property will trigger replacement.
- The spec name of cloud server.
- storage
Config This property is required. Changes to this property will trigger replacement.
Server Storage Config - The config of the storage.
- billing
Config Changes to this property will trigger replacement.
Server Billing Config - The config of the billing.
- custom
Data Changes to this property will trigger replacement.
Server Custom Data - The custom data.
- default
Cluster stringName - The name of default cluster.
- secret
Data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- cloudserver_
name This property is required. Changes to this property will trigger replacement.
- The name of cloud server.
- default_
area_ name This property is required. str - The name of default area.
- default_
isp This property is required. str - The default isp info.
- image_
id This property is required. Changes to this property will trigger replacement.
- The image id of cloud server.
- network_
config This property is required. Changes to this property will trigger replacement.
Server Network Config Args - The config of the network.
- schedule_
strategy This property is required. Changes to this property will trigger replacement.
Server Schedule Strategy Args - The schedule strategy.
- secret_
type This property is required. Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - server_
area_ level This property is required. Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - spec_
name This property is required. Changes to this property will trigger replacement.
- The spec name of cloud server.
- storage_
config This property is required. Changes to this property will trigger replacement.
Server Storage Config Args - The config of the storage.
- billing_
config Changes to this property will trigger replacement.
Server Billing Config Args - The config of the billing.
- custom_
data Changes to this property will trigger replacement.
Server Custom Data Args - The custom data.
- default_
cluster_ strname - The name of default cluster.
- secret_
data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- cloudserver
Name This property is required. Changes to this property will trigger replacement.
- The name of cloud server.
- default
Area Name This property is required. String - The name of default area.
- default
Isp This property is required. String - The default isp info.
- image
Id This property is required. Changes to this property will trigger replacement.
- The image id of cloud server.
- network
Config This property is required. Changes to this property will trigger replacement.
- The config of the network.
- schedule
Strategy This property is required. Changes to this property will trigger replacement.
- The schedule strategy.
- secret
Type This property is required. Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - server
Area Level This property is required. Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - spec
Name This property is required. Changes to this property will trigger replacement.
- The spec name of cloud server.
- storage
Config This property is required. Changes to this property will trigger replacement.
- The config of the storage.
- billing
Config Changes to this property will trigger replacement.
- The config of the billing.
- custom
Data Changes to this property will trigger replacement.
- The custom data.
- default
Cluster StringName - The name of default cluster.
- secret
Data Changes to this property will trigger replacement.
- 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:
- Default
Instance stringId - The default instance id generate by cloud server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Default
Instance stringId - The default instance id generate by cloud server.
- Id string
- The provider-assigned unique ID for this managed resource.
- default
Instance StringId - The default instance id generate by cloud server.
- id String
- The provider-assigned unique ID for this managed resource.
- default
Instance stringId - The default instance id generate by cloud server.
- id string
- The provider-assigned unique ID for this managed resource.
- default_
instance_ strid - The default instance id generate by cloud server.
- id str
- The provider-assigned unique ID for this managed resource.
- default
Instance StringId - 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)
resources: _: type: volcengine:veenedge:CloudServer get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Billing
Config Changes to this property will trigger replacement.
Server Billing Config - The config of the billing.
- Cloudserver
Name Changes to this property will trigger replacement.
- The name of cloud server.
- Custom
Data Changes to this property will trigger replacement.
Server Custom Data - The custom data.
- Default
Area stringName - The name of default area.
- Default
Cluster stringName - The name of default cluster.
- Default
Instance stringId - The default instance id generate by cloud server.
- Default
Isp string - The default isp info.
- Image
Id Changes to this property will trigger replacement.
- The image id of cloud server.
- Network
Config Changes to this property will trigger replacement.
Server Network Config - The config of the network.
- Schedule
Strategy Changes to this property will trigger replacement.
Server Schedule Strategy - The schedule strategy.
- Secret
Data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- Secret
Type Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - Server
Area Level Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - Spec
Name Changes to this property will trigger replacement.
- The spec name of cloud server.
- Storage
Config Changes to this property will trigger replacement.
Server Storage Config - The config of the storage.
- Billing
Config Changes to this property will trigger replacement.
Server Billing Config Args - The config of the billing.
- Cloudserver
Name Changes to this property will trigger replacement.
- The name of cloud server.
- Custom
Data Changes to this property will trigger replacement.
Server Custom Data Args - The custom data.
- Default
Area stringName - The name of default area.
- Default
Cluster stringName - The name of default cluster.
- Default
Instance stringId - The default instance id generate by cloud server.
- Default
Isp string - The default isp info.
- Image
Id Changes to this property will trigger replacement.
- The image id of cloud server.
- Network
Config Changes to this property will trigger replacement.
Server Network Config Args - The config of the network.
- Schedule
Strategy Changes to this property will trigger replacement.
Server Schedule Strategy Args - The schedule strategy.
- Secret
Data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- Secret
Type Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - Server
Area Level Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - Spec
Name Changes to this property will trigger replacement.
- The spec name of cloud server.
- Storage
Config Changes to this property will trigger replacement.
Server Storage Config Args - The config of the storage.
- billing
Config Changes to this property will trigger replacement.
Server Billing Config - The config of the billing.
- cloudserver
Name Changes to this property will trigger replacement.
- The name of cloud server.
- custom
Data Changes to this property will trigger replacement.
Server Custom Data - The custom data.
- default
Area StringName - The name of default area.
- default
Cluster StringName - The name of default cluster.
- default
Instance StringId - The default instance id generate by cloud server.
- default
Isp String - The default isp info.
- image
Id Changes to this property will trigger replacement.
- The image id of cloud server.
- network
Config Changes to this property will trigger replacement.
Server Network Config - The config of the network.
- schedule
Strategy Changes to this property will trigger replacement.
Server Schedule Strategy - The schedule strategy.
- secret
Data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- secret
Type Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - server
Area Level Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - spec
Name Changes to this property will trigger replacement.
- The spec name of cloud server.
- storage
Config Changes to this property will trigger replacement.
Server Storage Config - The config of the storage.
- billing
Config Changes to this property will trigger replacement.
Server Billing Config - The config of the billing.
- cloudserver
Name Changes to this property will trigger replacement.
- The name of cloud server.
- custom
Data Changes to this property will trigger replacement.
Server Custom Data - The custom data.
- default
Area stringName - The name of default area.
- default
Cluster stringName - The name of default cluster.
- default
Instance stringId - The default instance id generate by cloud server.
- default
Isp string - The default isp info.
- image
Id Changes to this property will trigger replacement.
- The image id of cloud server.
- network
Config Changes to this property will trigger replacement.
Server Network Config - The config of the network.
- schedule
Strategy Changes to this property will trigger replacement.
Server Schedule Strategy - The schedule strategy.
- secret
Data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- secret
Type Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - server
Area Level Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - spec
Name Changes to this property will trigger replacement.
- The spec name of cloud server.
- storage
Config Changes to this property will trigger replacement.
Server Storage Config - The config of the storage.
- billing_
config Changes to this property will trigger replacement.
Server Billing Config Args - The config of the billing.
- cloudserver_
name Changes to this property will trigger replacement.
- The name of cloud server.
- custom_
data Changes to this property will trigger replacement.
Server Custom Data Args - The custom data.
- default_
area_ strname - The name of default area.
- default_
cluster_ strname - The name of default cluster.
- default_
instance_ strid - The default instance id generate by cloud server.
- default_
isp str - The default isp info.
- image_
id Changes to this property will trigger replacement.
- The image id of cloud server.
- network_
config Changes to this property will trigger replacement.
Server Network Config Args - The config of the network.
- schedule_
strategy Changes to this property will trigger replacement.
Server Schedule Strategy Args - The schedule strategy.
- secret_
data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- secret_
type Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - server_
area_ level Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - spec_
name Changes to this property will trigger replacement.
- The spec name of cloud server.
- storage_
config Changes to this property will trigger replacement.
Server Storage Config Args - The config of the storage.
- billing
Config Changes to this property will trigger replacement.
- The config of the billing.
- cloudserver
Name Changes to this property will trigger replacement.
- The name of cloud server.
- custom
Data Changes to this property will trigger replacement.
- The custom data.
- default
Area StringName - The name of default area.
- default
Cluster StringName - The name of default cluster.
- default
Instance StringId - The default instance id generate by cloud server.
- default
Isp String - The default isp info.
- image
Id Changes to this property will trigger replacement.
- The image id of cloud server.
- network
Config Changes to this property will trigger replacement.
- The config of the network.
- schedule
Strategy Changes to this property will trigger replacement.
- The schedule strategy.
- secret
Data Changes to this property will trigger replacement.
- The data of secret. The value can be Password or KeyPair ID.
- secret
Type Changes to this property will trigger replacement.
- The type of secret. The value can be
KeyPair
orPassword
. - server
Area Level Changes to this property will trigger replacement.
- The server area level. The value can be
region
orcity
. - spec
Name Changes to this property will trigger replacement.
- The spec name of cloud server.
- storage
Config Changes to this property will trigger replacement.
- The config of the storage.
Supporting Types
CloudServerBillingConfig, CloudServerBillingConfigArgs
- Bandwidth
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of bandwidth billing. The value can be
MonthlyP95
orDailyPeak
. - Computing
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of computing billing. The value can be
MonthlyPeak
orDailyPeak
.
- Bandwidth
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of bandwidth billing. The value can be
MonthlyP95
orDailyPeak
. - Computing
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of computing billing. The value can be
MonthlyPeak
orDailyPeak
.
- bandwidth
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of bandwidth billing. The value can be
MonthlyP95
orDailyPeak
. - computing
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of computing billing. The value can be
MonthlyPeak
orDailyPeak
.
- bandwidth
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of bandwidth billing. The value can be
MonthlyP95
orDailyPeak
. - computing
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of computing billing. The value can be
MonthlyPeak
orDailyPeak
.
- bandwidth_
billing_ method This property is required. Changes to this property will trigger replacement.
- The method of bandwidth billing. The value can be
MonthlyP95
orDailyPeak
. - computing_
billing_ method This property is required. Changes to this property will trigger replacement.
- The method of computing billing. The value can be
MonthlyPeak
orDailyPeak
.
- bandwidth
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of bandwidth billing. The value can be
MonthlyP95
orDailyPeak
. - computing
Billing Method This property is required. Changes to this property will trigger replacement.
- The method of computing billing. The value can be
MonthlyPeak
orDailyPeak
.
CloudServerCustomData, CloudServerCustomDataArgs
- Data
This property is required. Changes to this property will trigger replacement.
- The custom data info.
- Data
This property is required. Changes to this property will trigger replacement.
- The custom data info.
- data
This property is required. Changes to this property will trigger replacement.
- The custom data info.
- data
This property is required. Changes to this property will trigger replacement.
- The custom data info.
- data
This property is required. Changes to this property will trigger replacement.
- The custom data info.
- data
This property is required. Changes to this property will trigger replacement.
- The custom data info.
CloudServerNetworkConfig, CloudServerNetworkConfigArgs
- Bandwidth
Peak This property is required. Changes to this property will trigger replacement.
- The peak of bandwidth.
- Custom
External Interface Name Changes to this property will trigger replacement.
- The name of custom external interface.
- Custom
Internal Interface Name Changes to this property will trigger replacement.
- The name of custom internal interface.
- Enable
Ipv6 Changes to this property will trigger replacement.
- Whether enable ipv6.
- Internal
Bandwidth Peak Changes to this property will trigger replacement.
- The internal peak of bandwidth.
- Bandwidth
Peak This property is required. Changes to this property will trigger replacement.
- The peak of bandwidth.
- Custom
External Interface Name Changes to this property will trigger replacement.
- The name of custom external interface.
- Custom
Internal Interface Name Changes to this property will trigger replacement.
- The name of custom internal interface.
- Enable
Ipv6 Changes to this property will trigger replacement.
- Whether enable ipv6.
- Internal
Bandwidth Peak Changes to this property will trigger replacement.
- The internal peak of bandwidth.
- bandwidth
Peak This property is required. Changes to this property will trigger replacement.
- The peak of bandwidth.
- custom
External Interface Name Changes to this property will trigger replacement.
- The name of custom external interface.
- custom
Internal Interface Name Changes to this property will trigger replacement.
- The name of custom internal interface.
- enable
Ipv6 Changes to this property will trigger replacement.
- Whether enable ipv6.
- internal
Bandwidth Peak Changes to this property will trigger replacement.
- The internal peak of bandwidth.
- bandwidth
Peak This property is required. Changes to this property will trigger replacement.
- The peak of bandwidth.
- custom
External Interface Name Changes to this property will trigger replacement.
- The name of custom external interface.
- custom
Internal Interface Name Changes to this property will trigger replacement.
- The name of custom internal interface.
- enable
Ipv6 Changes to this property will trigger replacement.
- Whether enable ipv6.
- internal
Bandwidth Peak Changes to this property will trigger replacement.
- The internal peak of bandwidth.
- bandwidth_
peak This property is required. Changes to this property will trigger replacement.
- The peak of bandwidth.
- custom_
external_ interface_ name Changes to this property will trigger replacement.
- The name of custom external interface.
- custom_
internal_ interface_ name Changes to this property will trigger replacement.
- The name of custom internal interface.
- enable_
ipv6 Changes to this property will trigger replacement.
- Whether enable ipv6.
- internal_
bandwidth_ peak Changes to this property will trigger replacement.
- The internal peak of bandwidth.
- bandwidth
Peak This property is required. Changes to this property will trigger replacement.
- The peak of bandwidth.
- custom
External Interface Name Changes to this property will trigger replacement.
- The name of custom external interface.
- custom
Internal Interface Name Changes to this property will trigger replacement.
- The name of custom internal interface.
- enable
Ipv6 Changes to this property will trigger replacement.
- Whether enable ipv6.
- internal
Bandwidth Peak Changes to this property will trigger replacement.
- The internal peak of bandwidth.
CloudServerScheduleStrategy, CloudServerScheduleStrategyArgs
- Network
Strategy This property is required. Changes to this property will trigger replacement.
- The network strategy.
- Price
Strategy This property is required. Changes to this property will trigger replacement.
- The price strategy. The value can be
high_priority
orlow_priority
. - Schedule
Strategy This property is required. Changes to this property will trigger replacement.
- The type of schedule strategy. The value can be
dispersion
orconcentration
.
- Network
Strategy This property is required. Changes to this property will trigger replacement.
- The network strategy.
- Price
Strategy This property is required. Changes to this property will trigger replacement.
- The price strategy. The value can be
high_priority
orlow_priority
. - Schedule
Strategy This property is required. Changes to this property will trigger replacement.
- The type of schedule strategy. The value can be
dispersion
orconcentration
.
- network
Strategy This property is required. Changes to this property will trigger replacement.
- The network strategy.
- price
Strategy This property is required. Changes to this property will trigger replacement.
- The price strategy. The value can be
high_priority
orlow_priority
. - schedule
Strategy This property is required. Changes to this property will trigger replacement.
- The type of schedule strategy. The value can be
dispersion
orconcentration
.
- network
Strategy This property is required. Changes to this property will trigger replacement.
- The network strategy.
- price
Strategy This property is required. Changes to this property will trigger replacement.
- The price strategy. The value can be
high_priority
orlow_priority
. - schedule
Strategy This property is required. Changes to this property will trigger replacement.
- The type of schedule strategy. The value can be
dispersion
orconcentration
.
- network_
strategy This property is required. Changes to this property will trigger replacement.
- The network strategy.
- price_
strategy This property is required. Changes to this property will trigger replacement.
- The price strategy. The value can be
high_priority
orlow_priority
. - schedule_
strategy This property is required. Changes to this property will trigger replacement.
- The type of schedule strategy. The value can be
dispersion
orconcentration
.
- network
Strategy This property is required. Changes to this property will trigger replacement.
- The network strategy.
- price
Strategy This property is required. Changes to this property will trigger replacement.
- The price strategy. The value can be
high_priority
orlow_priority
. - schedule
Strategy This property is required. Changes to this property will trigger replacement.
- The type of schedule strategy. The value can be
dispersion
orconcentration
.
CloudServerStorageConfig, CloudServerStorageConfigArgs
- System
Disk This property is required. Changes to this property will trigger replacement.
Server Storage Config System Disk - The disk info of system.
- Data
Disk Lists Changes to this property will trigger replacement.
Server Storage Config Data Disk List> - The disk list info of data.
- System
Disk This property is required. Changes to this property will trigger replacement.
Server Storage Config System Disk - The disk info of system.
- Data
Disk Lists Changes to this property will trigger replacement.
Server Storage Config Data Disk List - The disk list info of data.
- system
Disk This property is required. Changes to this property will trigger replacement.
Server Storage Config System Disk - The disk info of system.
- data
Disk Lists Changes to this property will trigger replacement.
Server Storage Config Data Disk List> - The disk list info of data.
- system
Disk This property is required. Changes to this property will trigger replacement.
Server Storage Config System Disk - The disk info of system.
- data
Disk Lists Changes to this property will trigger replacement.
Server Storage Config Data Disk List[] - The disk list info of data.
- system_
disk This property is required. Changes to this property will trigger replacement.
Server Storage Config System Disk - The disk info of system.
- data_
disk_ lists Changes to this property will trigger replacement.
Server Storage Config Data Disk List] - The disk list info of data.
- system
Disk This property is required. Changes to this property will trigger replacement.
- The disk info of system.
- data
Disk Lists Changes to this property will trigger replacement.
- The disk list info of data.
CloudServerStorageConfigDataDiskList, CloudServerStorageConfigDataDiskListArgs
- Capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- Storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- Capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- Storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- storage_
type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
CloudServerStorageConfigSystemDisk, CloudServerStorageConfigSystemDiskArgs
- Capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- Storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- Capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- Storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- storage_
type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
- capacity
This property is required. Changes to this property will trigger replacement.
- The capacity of storage.
- storage
Type This property is required. Changes to this property will trigger replacement.
- The type of storage. The value can be
CloudBlockHDD
orCloudBlockSSD
.
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.