flexibleengine.SmsServerTemplate
Explore with Pulumi AI
Manages an SMS server template resource within FlexibleEngine.
Example Usage
A template will create networks during migration
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const demoAvailabilityZones = flexibleengine.getAvailabilityZones({});
const demoSmsServerTemplate = new flexibleengine.SmsServerTemplate("demoSmsServerTemplate", {availabilityZone: demoAvailabilityZones.then(demoAvailabilityZones => demoAvailabilityZones.names?.[0])});
import pulumi
import pulumi_flexibleengine as flexibleengine
demo_availability_zones = flexibleengine.get_availability_zones()
demo_sms_server_template = flexibleengine.SmsServerTemplate("demoSmsServerTemplate", availability_zone=demo_availability_zones.names[0])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
demoAvailabilityZones, err := flexibleengine.GetAvailabilityZones(ctx, &flexibleengine.GetAvailabilityZonesArgs{}, nil)
if err != nil {
return err
}
_, err = flexibleengine.NewSmsServerTemplate(ctx, "demoSmsServerTemplate", &flexibleengine.SmsServerTemplateArgs{
AvailabilityZone: pulumi.String(demoAvailabilityZones.Names[0]),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var demoAvailabilityZones = Flexibleengine.GetAvailabilityZones.Invoke();
var demoSmsServerTemplate = new Flexibleengine.SmsServerTemplate("demoSmsServerTemplate", new()
{
AvailabilityZone = demoAvailabilityZones.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Names[0]),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetAvailabilityZonesArgs;
import com.pulumi.flexibleengine.SmsServerTemplate;
import com.pulumi.flexibleengine.SmsServerTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var demoAvailabilityZones = FlexibleengineFunctions.getAvailabilityZones();
var demoSmsServerTemplate = new SmsServerTemplate("demoSmsServerTemplate", SmsServerTemplateArgs.builder()
.availabilityZone(demoAvailabilityZones.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0]))
.build());
}
}
resources:
demoSmsServerTemplate:
type: flexibleengine:SmsServerTemplate
properties:
availabilityZone: ${demoAvailabilityZones.names[0]}
variables:
demoAvailabilityZones:
fn::invoke:
function: flexibleengine:getAvailabilityZones
arguments: {}
A template will use the existing networks during migration
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const vpcId = config.requireObject("vpcId");
const subentId = config.requireObject("subentId");
const secgroupId = config.requireObject("secgroupId");
const demoAvailabilityZones = flexibleengine.getAvailabilityZones({});
const demoSmsServerTemplate = new flexibleengine.SmsServerTemplate("demoSmsServerTemplate", {
availabilityZone: demoAvailabilityZones.then(demoAvailabilityZones => demoAvailabilityZones.names?.[0]),
vpcId: vpcId,
subnetIds: [subentId],
securityGroupIds: [secgroupId],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
vpc_id = config.require_object("vpcId")
subent_id = config.require_object("subentId")
secgroup_id = config.require_object("secgroupId")
demo_availability_zones = flexibleengine.get_availability_zones()
demo_sms_server_template = flexibleengine.SmsServerTemplate("demoSmsServerTemplate",
availability_zone=demo_availability_zones.names[0],
vpc_id=vpc_id,
subnet_ids=[subent_id],
security_group_ids=[secgroup_id])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
vpcId := cfg.RequireObject("vpcId")
subentId := cfg.RequireObject("subentId")
secgroupId := cfg.RequireObject("secgroupId")
demoAvailabilityZones, err := flexibleengine.GetAvailabilityZones(ctx, &flexibleengine.GetAvailabilityZonesArgs{}, nil)
if err != nil {
return err
}
_, err = flexibleengine.NewSmsServerTemplate(ctx, "demoSmsServerTemplate", &flexibleengine.SmsServerTemplateArgs{
AvailabilityZone: pulumi.String(demoAvailabilityZones.Names[0]),
VpcId: pulumi.Any(vpcId),
SubnetIds: pulumi.StringArray{
subentId,
},
SecurityGroupIds: pulumi.StringArray{
secgroupId,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var vpcId = config.RequireObject<dynamic>("vpcId");
var subentId = config.RequireObject<dynamic>("subentId");
var secgroupId = config.RequireObject<dynamic>("secgroupId");
var demoAvailabilityZones = Flexibleengine.GetAvailabilityZones.Invoke();
var demoSmsServerTemplate = new Flexibleengine.SmsServerTemplate("demoSmsServerTemplate", new()
{
AvailabilityZone = demoAvailabilityZones.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Names[0]),
VpcId = vpcId,
SubnetIds = new[]
{
subentId,
},
SecurityGroupIds = new[]
{
secgroupId,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetAvailabilityZonesArgs;
import com.pulumi.flexibleengine.SmsServerTemplate;
import com.pulumi.flexibleengine.SmsServerTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var vpcId = config.get("vpcId");
final var subentId = config.get("subentId");
final var secgroupId = config.get("secgroupId");
final var demoAvailabilityZones = FlexibleengineFunctions.getAvailabilityZones();
var demoSmsServerTemplate = new SmsServerTemplate("demoSmsServerTemplate", SmsServerTemplateArgs.builder()
.availabilityZone(demoAvailabilityZones.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0]))
.vpcId(vpcId)
.subnetIds(subentId)
.securityGroupIds(secgroupId)
.build());
}
}
configuration:
vpcId:
type: dynamic
subentId:
type: dynamic
secgroupId:
type: dynamic
resources:
demoSmsServerTemplate:
type: flexibleengine:SmsServerTemplate
properties:
availabilityZone: ${demoAvailabilityZones.names[0]}
vpcId: ${vpcId}
subnetIds:
- ${subentId}
securityGroupIds:
- ${secgroupId}
variables:
demoAvailabilityZones:
fn::invoke:
function: flexibleengine:getAvailabilityZones
arguments: {}
Create SmsServerTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmsServerTemplate(name: string, args: SmsServerTemplateArgs, opts?: CustomResourceOptions);
@overload
def SmsServerTemplate(resource_name: str,
args: SmsServerTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmsServerTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
bandwidth_size: Optional[float] = None,
flavor: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
sms_server_template_id: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
target_server_name: Optional[str] = None,
timeouts: Optional[SmsServerTemplateTimeoutsArgs] = None,
volume_type: Optional[str] = None,
vpc_id: Optional[str] = None)
func NewSmsServerTemplate(ctx *Context, name string, args SmsServerTemplateArgs, opts ...ResourceOption) (*SmsServerTemplate, error)
public SmsServerTemplate(string name, SmsServerTemplateArgs args, CustomResourceOptions? opts = null)
public SmsServerTemplate(String name, SmsServerTemplateArgs args)
public SmsServerTemplate(String name, SmsServerTemplateArgs args, CustomResourceOptions options)
type: flexibleengine:SmsServerTemplate
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 SmsServerTemplateArgs
- 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 SmsServerTemplateArgs
- 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 SmsServerTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmsServerTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmsServerTemplateArgs
- 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 smsServerTemplateResource = new Flexibleengine.SmsServerTemplate("smsServerTemplateResource", new()
{
AvailabilityZone = "string",
BandwidthSize = 0,
Flavor = "string",
Name = "string",
ProjectId = "string",
Region = "string",
SecurityGroupIds = new[]
{
"string",
},
SmsServerTemplateId = "string",
SubnetIds = new[]
{
"string",
},
TargetServerName = "string",
Timeouts = new Flexibleengine.Inputs.SmsServerTemplateTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
VolumeType = "string",
VpcId = "string",
});
example, err := flexibleengine.NewSmsServerTemplate(ctx, "smsServerTemplateResource", &flexibleengine.SmsServerTemplateArgs{
AvailabilityZone: pulumi.String("string"),
BandwidthSize: pulumi.Float64(0),
Flavor: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SmsServerTemplateId: pulumi.String("string"),
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
TargetServerName: pulumi.String("string"),
Timeouts: &flexibleengine.SmsServerTemplateTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
VolumeType: pulumi.String("string"),
VpcId: pulumi.String("string"),
})
var smsServerTemplateResource = new SmsServerTemplate("smsServerTemplateResource", SmsServerTemplateArgs.builder()
.availabilityZone("string")
.bandwidthSize(0)
.flavor("string")
.name("string")
.projectId("string")
.region("string")
.securityGroupIds("string")
.smsServerTemplateId("string")
.subnetIds("string")
.targetServerName("string")
.timeouts(SmsServerTemplateTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.volumeType("string")
.vpcId("string")
.build());
sms_server_template_resource = flexibleengine.SmsServerTemplate("smsServerTemplateResource",
availability_zone="string",
bandwidth_size=0,
flavor="string",
name="string",
project_id="string",
region="string",
security_group_ids=["string"],
sms_server_template_id="string",
subnet_ids=["string"],
target_server_name="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
volume_type="string",
vpc_id="string")
const smsServerTemplateResource = new flexibleengine.SmsServerTemplate("smsServerTemplateResource", {
availabilityZone: "string",
bandwidthSize: 0,
flavor: "string",
name: "string",
projectId: "string",
region: "string",
securityGroupIds: ["string"],
smsServerTemplateId: "string",
subnetIds: ["string"],
targetServerName: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
volumeType: "string",
vpcId: "string",
});
type: flexibleengine:SmsServerTemplate
properties:
availabilityZone: string
bandwidthSize: 0
flavor: string
name: string
projectId: string
region: string
securityGroupIds:
- string
smsServerTemplateId: string
subnetIds:
- string
targetServerName: string
timeouts:
create: string
delete: string
update: string
volumeType: string
vpcId: string
SmsServerTemplate 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 SmsServerTemplate resource accepts the following input properties:
- Availability
Zone string - Specifies the availability zone where the target server is located.
- Bandwidth
Size double - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- Flavor string
- Specifies the flavor ID for the target server.
- Name string
- Specifies the server template name.
- Project
Id string - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- Region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- Security
Group List<string>Ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- Sms
Server stringTemplate Id - The resource ID in UUID format.
- Subnet
Ids List<string> - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- Target
Server stringName - Specifies the name of the target server. Defaults to the template name.
- Timeouts
Sms
Server Template Timeouts - Volume
Type string - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- Vpc
Id string - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- Availability
Zone string - Specifies the availability zone where the target server is located.
- Bandwidth
Size float64 - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- Flavor string
- Specifies the flavor ID for the target server.
- Name string
- Specifies the server template name.
- Project
Id string - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- Region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- Security
Group []stringIds - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- Sms
Server stringTemplate Id - The resource ID in UUID format.
- Subnet
Ids []string - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- Target
Server stringName - Specifies the name of the target server. Defaults to the template name.
- Timeouts
Sms
Server Template Timeouts Args - Volume
Type string - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- Vpc
Id string - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- availability
Zone String - Specifies the availability zone where the target server is located.
- bandwidth
Size Double - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- flavor String
- Specifies the flavor ID for the target server.
- name String
- Specifies the server template name.
- project
Id String - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- region String
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- security
Group List<String>Ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- sms
Server StringTemplate Id - The resource ID in UUID format.
- subnet
Ids List<String> - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- target
Server StringName - Specifies the name of the target server. Defaults to the template name.
- timeouts
Sms
Server Template Timeouts - volume
Type String - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- vpc
Id String - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- availability
Zone string - Specifies the availability zone where the target server is located.
- bandwidth
Size number - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- flavor string
- Specifies the flavor ID for the target server.
- name string
- Specifies the server template name.
- project
Id string - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- security
Group string[]Ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- sms
Server stringTemplate Id - The resource ID in UUID format.
- subnet
Ids string[] - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- target
Server stringName - Specifies the name of the target server. Defaults to the template name.
- timeouts
Sms
Server Template Timeouts - volume
Type string - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- vpc
Id string - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- availability_
zone str - Specifies the availability zone where the target server is located.
- bandwidth_
size float - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- flavor str
- Specifies the flavor ID for the target server.
- name str
- Specifies the server template name.
- project_
id str - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- region str
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- security_
group_ Sequence[str]ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- sms_
server_ strtemplate_ id - The resource ID in UUID format.
- subnet_
ids Sequence[str] - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- target_
server_ strname - Specifies the name of the target server. Defaults to the template name.
- timeouts
Sms
Server Template Timeouts Args - volume_
type str - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- vpc_
id str - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- availability
Zone String - Specifies the availability zone where the target server is located.
- bandwidth
Size Number - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- flavor String
- Specifies the flavor ID for the target server.
- name String
- Specifies the server template name.
- project
Id String - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- region String
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- security
Group List<String>Ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- sms
Server StringTemplate Id - The resource ID in UUID format.
- subnet
Ids List<String> - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- target
Server StringName - Specifies the name of the target server. Defaults to the template name.
- timeouts Property Map
- volume
Type String - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- vpc
Id String - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmsServerTemplate resource produces the following output properties:
Look up Existing SmsServerTemplate Resource
Get an existing SmsServerTemplate 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?: SmsServerTemplateState, opts?: CustomResourceOptions): SmsServerTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
bandwidth_size: Optional[float] = None,
flavor: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
sms_server_template_id: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
target_server_name: Optional[str] = None,
timeouts: Optional[SmsServerTemplateTimeoutsArgs] = None,
volume_type: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_name: Optional[str] = None) -> SmsServerTemplate
func GetSmsServerTemplate(ctx *Context, name string, id IDInput, state *SmsServerTemplateState, opts ...ResourceOption) (*SmsServerTemplate, error)
public static SmsServerTemplate Get(string name, Input<string> id, SmsServerTemplateState? state, CustomResourceOptions? opts = null)
public static SmsServerTemplate get(String name, Output<String> id, SmsServerTemplateState state, CustomResourceOptions options)
resources: _: type: flexibleengine:SmsServerTemplate get: id: ${id}
- 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.
- Availability
Zone string - Specifies the availability zone where the target server is located.
- Bandwidth
Size double - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- Flavor string
- Specifies the flavor ID for the target server.
- Name string
- Specifies the server template name.
- Project
Id string - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- Region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- Security
Group List<string>Ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- Sms
Server stringTemplate Id - The resource ID in UUID format.
- Subnet
Ids List<string> - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- Target
Server stringName - Specifies the name of the target server. Defaults to the template name.
- Timeouts
Sms
Server Template Timeouts - Volume
Type string - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- Vpc
Id string - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- Vpc
Name string - The name of the VPC which the target server belongs to.
- Availability
Zone string - Specifies the availability zone where the target server is located.
- Bandwidth
Size float64 - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- Flavor string
- Specifies the flavor ID for the target server.
- Name string
- Specifies the server template name.
- Project
Id string - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- Region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- Security
Group []stringIds - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- Sms
Server stringTemplate Id - The resource ID in UUID format.
- Subnet
Ids []string - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- Target
Server stringName - Specifies the name of the target server. Defaults to the template name.
- Timeouts
Sms
Server Template Timeouts Args - Volume
Type string - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- Vpc
Id string - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- Vpc
Name string - The name of the VPC which the target server belongs to.
- availability
Zone String - Specifies the availability zone where the target server is located.
- bandwidth
Size Double - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- flavor String
- Specifies the flavor ID for the target server.
- name String
- Specifies the server template name.
- project
Id String - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- region String
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- security
Group List<String>Ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- sms
Server StringTemplate Id - The resource ID in UUID format.
- subnet
Ids List<String> - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- target
Server StringName - Specifies the name of the target server. Defaults to the template name.
- timeouts
Sms
Server Template Timeouts - volume
Type String - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- vpc
Id String - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- vpc
Name String - The name of the VPC which the target server belongs to.
- availability
Zone string - Specifies the availability zone where the target server is located.
- bandwidth
Size number - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- flavor string
- Specifies the flavor ID for the target server.
- name string
- Specifies the server template name.
- project
Id string - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- security
Group string[]Ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- sms
Server stringTemplate Id - The resource ID in UUID format.
- subnet
Ids string[] - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- target
Server stringName - Specifies the name of the target server. Defaults to the template name.
- timeouts
Sms
Server Template Timeouts - volume
Type string - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- vpc
Id string - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- vpc
Name string - The name of the VPC which the target server belongs to.
- availability_
zone str - Specifies the availability zone where the target server is located.
- bandwidth_
size float - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- flavor str
- Specifies the flavor ID for the target server.
- name str
- Specifies the server template name.
- project_
id str - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- region str
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- security_
group_ Sequence[str]ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- sms_
server_ strtemplate_ id - The resource ID in UUID format.
- subnet_
ids Sequence[str] - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- target_
server_ strname - Specifies the name of the target server. Defaults to the template name.
- timeouts
Sms
Server Template Timeouts Args - volume_
type str - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- vpc_
id str - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- vpc_
name str - The name of the VPC which the target server belongs to.
- availability
Zone String - Specifies the availability zone where the target server is located.
- bandwidth
Size Number - Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.
- flavor String
- Specifies the flavor ID for the target server.
- name String
- Specifies the server template name.
- project
Id String - Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
- region String
- Specifies the region where the target server is located. If omitted, the provider-level region will be used.
- security
Group List<String>Ids - Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
- sms
Server StringTemplate Id - The resource ID in UUID format.
- subnet
Ids List<String> - Specifies an array of one or more VPC subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
- target
Server StringName - Specifies the name of the target server. Defaults to the template name.
- timeouts Property Map
- volume
Type String - Specifies the disk type of the target server. Available values are: SAS, SSD, GPSSD and ESSD, defaults to SAS.
- vpc
Id String - Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
- vpc
Name String - The name of the VPC which the target server belongs to.
Supporting Types
SmsServerTemplateTimeouts, SmsServerTemplateTimeoutsArgs
Import
SMS server templates can be imported by id
, e.g.
$ pulumi import flexibleengine:index/smsServerTemplate:SmsServerTemplate demo 4618ccaf-b4d7-43b9-b958-3df3b885126d
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.