flexibleengine.AsConfiguration
Explore with Pulumi AI
Manages a V1 AS Configuration resource within flexibleengine.
Example Usage
Basic AS Configuration
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
import * as fs from "fs";
const myAsConfig = new flexibleengine.AsConfiguration("myAsConfig", {
scalingConfigurationName: "my_as_config",
instanceConfig: {
flavor: _var.flavor,
image: _var.image_id,
disks: [{
size: 40,
volumeType: "SATA",
diskType: "SYS",
}],
keyName: _var.keyname,
userData: fs.readFileSync("userdata.txt", "utf8"),
},
});
import pulumi
import pulumi_flexibleengine as flexibleengine
my_as_config = flexibleengine.AsConfiguration("myAsConfig",
scaling_configuration_name="my_as_config",
instance_config={
"flavor": var["flavor"],
"image": var["image_id"],
"disks": [{
"size": 40,
"volume_type": "SATA",
"disk_type": "SYS",
}],
"key_name": var["keyname"],
"user_data": (lambda path: open(path).read())("userdata.txt"),
})
package main
import (
"os"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput {
data, err := os.ReadFile(path)
if err != nil {
panic(err.Error())
}
return pulumi.String(string(data))
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewAsConfiguration(ctx, "myAsConfig", &flexibleengine.AsConfigurationArgs{
ScalingConfigurationName: pulumi.String("my_as_config"),
InstanceConfig: &flexibleengine.AsConfigurationInstanceConfigArgs{
Flavor: pulumi.Any(_var.Flavor),
Image: pulumi.Any(_var.Image_id),
Disks: flexibleengine.AsConfigurationInstanceConfigDiskArray{
&flexibleengine.AsConfigurationInstanceConfigDiskArgs{
Size: pulumi.Float64(40),
VolumeType: pulumi.String("SATA"),
DiskType: pulumi.String("SYS"),
},
},
KeyName: pulumi.Any(_var.Keyname),
UserData: pulumi.String(readFileOrPanic("userdata.txt")),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var myAsConfig = new Flexibleengine.AsConfiguration("myAsConfig", new()
{
ScalingConfigurationName = "my_as_config",
InstanceConfig = new Flexibleengine.Inputs.AsConfigurationInstanceConfigArgs
{
Flavor = @var.Flavor,
Image = @var.Image_id,
Disks = new[]
{
new Flexibleengine.Inputs.AsConfigurationInstanceConfigDiskArgs
{
Size = 40,
VolumeType = "SATA",
DiskType = "SYS",
},
},
KeyName = @var.Keyname,
UserData = File.ReadAllText("userdata.txt"),
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.AsConfiguration;
import com.pulumi.flexibleengine.AsConfigurationArgs;
import com.pulumi.flexibleengine.inputs.AsConfigurationInstanceConfigArgs;
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 myAsConfig = new AsConfiguration("myAsConfig", AsConfigurationArgs.builder()
.scalingConfigurationName("my_as_config")
.instanceConfig(AsConfigurationInstanceConfigArgs.builder()
.flavor(var_.flavor())
.image(var_.image_id())
.disks(AsConfigurationInstanceConfigDiskArgs.builder()
.size(40)
.volumeType("SATA")
.diskType("SYS")
.build())
.keyName(var_.keyname())
.userData(Files.readString(Paths.get("userdata.txt")))
.build())
.build());
}
}
resources:
myAsConfig:
type: flexibleengine:AsConfiguration
properties:
scalingConfigurationName: my_as_config
instanceConfig:
flavor: ${var.flavor}
image: ${var.image_id}
disks:
- size: 40
volumeType: SATA
diskType: SYS
keyName: ${var.keyname}
userData:
fn::readFile: userdata.txt
AS Configuration With User Data and Metadata
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
import * as fs from "fs";
const myAsConfig = new flexibleengine.AsConfiguration("myAsConfig", {
scalingConfigurationName: "my_as_config",
instanceConfig: {
flavor: _var.flavor,
image: _var.image_id,
disks: [{
size: 40,
volumeType: "SATA",
diskType: "SYS",
}],
keyName: _var.keyname,
userData: fs.readFileSync("userdata.txt", "utf8"),
metadata: {
some_key: "some_value",
},
},
});
import pulumi
import pulumi_flexibleengine as flexibleengine
my_as_config = flexibleengine.AsConfiguration("myAsConfig",
scaling_configuration_name="my_as_config",
instance_config={
"flavor": var["flavor"],
"image": var["image_id"],
"disks": [{
"size": 40,
"volume_type": "SATA",
"disk_type": "SYS",
}],
"key_name": var["keyname"],
"user_data": (lambda path: open(path).read())("userdata.txt"),
"metadata": {
"some_key": "some_value",
},
})
package main
import (
"os"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput {
data, err := os.ReadFile(path)
if err != nil {
panic(err.Error())
}
return pulumi.String(string(data))
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewAsConfiguration(ctx, "myAsConfig", &flexibleengine.AsConfigurationArgs{
ScalingConfigurationName: pulumi.String("my_as_config"),
InstanceConfig: &flexibleengine.AsConfigurationInstanceConfigArgs{
Flavor: pulumi.Any(_var.Flavor),
Image: pulumi.Any(_var.Image_id),
Disks: flexibleengine.AsConfigurationInstanceConfigDiskArray{
&flexibleengine.AsConfigurationInstanceConfigDiskArgs{
Size: pulumi.Float64(40),
VolumeType: pulumi.String("SATA"),
DiskType: pulumi.String("SYS"),
},
},
KeyName: pulumi.Any(_var.Keyname),
UserData: pulumi.String(readFileOrPanic("userdata.txt")),
Metadata: pulumi.StringMap{
"some_key": pulumi.String("some_value"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var myAsConfig = new Flexibleengine.AsConfiguration("myAsConfig", new()
{
ScalingConfigurationName = "my_as_config",
InstanceConfig = new Flexibleengine.Inputs.AsConfigurationInstanceConfigArgs
{
Flavor = @var.Flavor,
Image = @var.Image_id,
Disks = new[]
{
new Flexibleengine.Inputs.AsConfigurationInstanceConfigDiskArgs
{
Size = 40,
VolumeType = "SATA",
DiskType = "SYS",
},
},
KeyName = @var.Keyname,
UserData = File.ReadAllText("userdata.txt"),
Metadata =
{
{ "some_key", "some_value" },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.AsConfiguration;
import com.pulumi.flexibleengine.AsConfigurationArgs;
import com.pulumi.flexibleengine.inputs.AsConfigurationInstanceConfigArgs;
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 myAsConfig = new AsConfiguration("myAsConfig", AsConfigurationArgs.builder()
.scalingConfigurationName("my_as_config")
.instanceConfig(AsConfigurationInstanceConfigArgs.builder()
.flavor(var_.flavor())
.image(var_.image_id())
.disks(AsConfigurationInstanceConfigDiskArgs.builder()
.size(40)
.volumeType("SATA")
.diskType("SYS")
.build())
.keyName(var_.keyname())
.userData(Files.readString(Paths.get("userdata.txt")))
.metadata(Map.of("some_key", "some_value"))
.build())
.build());
}
}
resources:
myAsConfig:
type: flexibleengine:AsConfiguration
properties:
scalingConfigurationName: my_as_config
instanceConfig:
flavor: ${var.flavor}
image: ${var.image_id}
disks:
- size: 40
volumeType: SATA
diskType: SYS
keyName: ${var.keyname}
userData:
fn::readFile: userdata.txt
metadata:
some_key: some_value
user_data
can come from a variety of sources: inline, read in from the file
function, or the template_cloudinit_config
resource.
AS Configuration uses the existing instance specifications as the template
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const myAsConfig = new flexibleengine.AsConfiguration("myAsConfig", {
scalingConfigurationName: "my_as_config",
instanceConfig: {
instanceId: "4579f2f5-cbe8-425a-8f32-53dcb9d9053a",
keyName: _var.keyname,
},
});
import pulumi
import pulumi_flexibleengine as flexibleengine
my_as_config = flexibleengine.AsConfiguration("myAsConfig",
scaling_configuration_name="my_as_config",
instance_config={
"instance_id": "4579f2f5-cbe8-425a-8f32-53dcb9d9053a",
"key_name": var["keyname"],
})
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 {
_, err := flexibleengine.NewAsConfiguration(ctx, "myAsConfig", &flexibleengine.AsConfigurationArgs{
ScalingConfigurationName: pulumi.String("my_as_config"),
InstanceConfig: &flexibleengine.AsConfigurationInstanceConfigArgs{
InstanceId: pulumi.String("4579f2f5-cbe8-425a-8f32-53dcb9d9053a"),
KeyName: pulumi.Any(_var.Keyname),
},
})
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 myAsConfig = new Flexibleengine.AsConfiguration("myAsConfig", new()
{
ScalingConfigurationName = "my_as_config",
InstanceConfig = new Flexibleengine.Inputs.AsConfigurationInstanceConfigArgs
{
InstanceId = "4579f2f5-cbe8-425a-8f32-53dcb9d9053a",
KeyName = @var.Keyname,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.AsConfiguration;
import com.pulumi.flexibleengine.AsConfigurationArgs;
import com.pulumi.flexibleengine.inputs.AsConfigurationInstanceConfigArgs;
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 myAsConfig = new AsConfiguration("myAsConfig", AsConfigurationArgs.builder()
.scalingConfigurationName("my_as_config")
.instanceConfig(AsConfigurationInstanceConfigArgs.builder()
.instanceId("4579f2f5-cbe8-425a-8f32-53dcb9d9053a")
.keyName(var_.keyname())
.build())
.build());
}
}
resources:
myAsConfig:
type: flexibleengine:AsConfiguration
properties:
scalingConfigurationName: my_as_config
instanceConfig:
instanceId: 4579f2f5-cbe8-425a-8f32-53dcb9d9053a
keyName: ${var.keyname}
Create AsConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AsConfiguration(name: string, args: AsConfigurationArgs, opts?: CustomResourceOptions);
@overload
def AsConfiguration(resource_name: str,
args: AsConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AsConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_config: Optional[AsConfigurationInstanceConfigArgs] = None,
scaling_configuration_name: Optional[str] = None,
as_configuration_id: Optional[str] = None,
region: Optional[str] = None)
func NewAsConfiguration(ctx *Context, name string, args AsConfigurationArgs, opts ...ResourceOption) (*AsConfiguration, error)
public AsConfiguration(string name, AsConfigurationArgs args, CustomResourceOptions? opts = null)
public AsConfiguration(String name, AsConfigurationArgs args)
public AsConfiguration(String name, AsConfigurationArgs args, CustomResourceOptions options)
type: flexibleengine:AsConfiguration
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 AsConfigurationArgs
- 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 AsConfigurationArgs
- 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 AsConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AsConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AsConfigurationArgs
- 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 asConfigurationResource = new Flexibleengine.AsConfiguration("asConfigurationResource", new()
{
InstanceConfig = new Flexibleengine.Inputs.AsConfigurationInstanceConfigArgs
{
KeyName = "string",
Disks = new[]
{
new Flexibleengine.Inputs.AsConfigurationInstanceConfigDiskArgs
{
DiskType = "string",
Size = 0,
VolumeType = "string",
},
},
Flavor = "string",
Image = "string",
InstanceId = "string",
Metadata =
{
{ "string", "string" },
},
Personalities = new[]
{
new Flexibleengine.Inputs.AsConfigurationInstanceConfigPersonalityArgs
{
Content = "string",
Path = "string",
},
},
PublicIp = new Flexibleengine.Inputs.AsConfigurationInstanceConfigPublicIpArgs
{
Eip = new Flexibleengine.Inputs.AsConfigurationInstanceConfigPublicIpEipArgs
{
Bandwidth = new Flexibleengine.Inputs.AsConfigurationInstanceConfigPublicIpEipBandwidthArgs
{
ChargingMode = "string",
ShareType = "string",
Size = 0,
},
IpType = "string",
},
},
UserData = "string",
},
ScalingConfigurationName = "string",
AsConfigurationId = "string",
Region = "string",
});
example, err := flexibleengine.NewAsConfiguration(ctx, "asConfigurationResource", &flexibleengine.AsConfigurationArgs{
InstanceConfig: &flexibleengine.AsConfigurationInstanceConfigArgs{
KeyName: pulumi.String("string"),
Disks: flexibleengine.AsConfigurationInstanceConfigDiskArray{
&flexibleengine.AsConfigurationInstanceConfigDiskArgs{
DiskType: pulumi.String("string"),
Size: pulumi.Float64(0),
VolumeType: pulumi.String("string"),
},
},
Flavor: pulumi.String("string"),
Image: pulumi.String("string"),
InstanceId: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Personalities: flexibleengine.AsConfigurationInstanceConfigPersonalityArray{
&flexibleengine.AsConfigurationInstanceConfigPersonalityArgs{
Content: pulumi.String("string"),
Path: pulumi.String("string"),
},
},
PublicIp: &flexibleengine.AsConfigurationInstanceConfigPublicIpArgs{
Eip: &flexibleengine.AsConfigurationInstanceConfigPublicIpEipArgs{
Bandwidth: &flexibleengine.AsConfigurationInstanceConfigPublicIpEipBandwidthArgs{
ChargingMode: pulumi.String("string"),
ShareType: pulumi.String("string"),
Size: pulumi.Float64(0),
},
IpType: pulumi.String("string"),
},
},
UserData: pulumi.String("string"),
},
ScalingConfigurationName: pulumi.String("string"),
AsConfigurationId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var asConfigurationResource = new AsConfiguration("asConfigurationResource", AsConfigurationArgs.builder()
.instanceConfig(AsConfigurationInstanceConfigArgs.builder()
.keyName("string")
.disks(AsConfigurationInstanceConfigDiskArgs.builder()
.diskType("string")
.size(0)
.volumeType("string")
.build())
.flavor("string")
.image("string")
.instanceId("string")
.metadata(Map.of("string", "string"))
.personalities(AsConfigurationInstanceConfigPersonalityArgs.builder()
.content("string")
.path("string")
.build())
.publicIp(AsConfigurationInstanceConfigPublicIpArgs.builder()
.eip(AsConfigurationInstanceConfigPublicIpEipArgs.builder()
.bandwidth(AsConfigurationInstanceConfigPublicIpEipBandwidthArgs.builder()
.chargingMode("string")
.shareType("string")
.size(0)
.build())
.ipType("string")
.build())
.build())
.userData("string")
.build())
.scalingConfigurationName("string")
.asConfigurationId("string")
.region("string")
.build());
as_configuration_resource = flexibleengine.AsConfiguration("asConfigurationResource",
instance_config={
"key_name": "string",
"disks": [{
"disk_type": "string",
"size": 0,
"volume_type": "string",
}],
"flavor": "string",
"image": "string",
"instance_id": "string",
"metadata": {
"string": "string",
},
"personalities": [{
"content": "string",
"path": "string",
}],
"public_ip": {
"eip": {
"bandwidth": {
"charging_mode": "string",
"share_type": "string",
"size": 0,
},
"ip_type": "string",
},
},
"user_data": "string",
},
scaling_configuration_name="string",
as_configuration_id="string",
region="string")
const asConfigurationResource = new flexibleengine.AsConfiguration("asConfigurationResource", {
instanceConfig: {
keyName: "string",
disks: [{
diskType: "string",
size: 0,
volumeType: "string",
}],
flavor: "string",
image: "string",
instanceId: "string",
metadata: {
string: "string",
},
personalities: [{
content: "string",
path: "string",
}],
publicIp: {
eip: {
bandwidth: {
chargingMode: "string",
shareType: "string",
size: 0,
},
ipType: "string",
},
},
userData: "string",
},
scalingConfigurationName: "string",
asConfigurationId: "string",
region: "string",
});
type: flexibleengine:AsConfiguration
properties:
asConfigurationId: string
instanceConfig:
disks:
- diskType: string
size: 0
volumeType: string
flavor: string
image: string
instanceId: string
keyName: string
metadata:
string: string
personalities:
- content: string
path: string
publicIp:
eip:
bandwidth:
chargingMode: string
shareType: string
size: 0
ipType: string
userData: string
region: string
scalingConfigurationName: string
AsConfiguration 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 AsConfiguration resource accepts the following input properties:
- Instance
Config AsConfiguration Instance Config - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- Scaling
Configuration stringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- As
Configuration stringId - Region string
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration.
- Instance
Config AsConfiguration Instance Config Args - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- Scaling
Configuration stringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- As
Configuration stringId - Region string
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration.
- instance
Config AsConfiguration Instance Config - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- scaling
Configuration StringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- as
Configuration StringId - region String
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration.
- instance
Config AsConfiguration Instance Config - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- scaling
Configuration stringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- as
Configuration stringId - region string
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration.
- instance_
config AsConfiguration Instance Config Args - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- scaling_
configuration_ strname - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- as_
configuration_ strid - region str
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration.
- instance
Config Property Map - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- scaling
Configuration StringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- as
Configuration StringId - region String
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the AsConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AsConfiguration Resource
Get an existing AsConfiguration 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?: AsConfigurationState, opts?: CustomResourceOptions): AsConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
as_configuration_id: Optional[str] = None,
instance_config: Optional[AsConfigurationInstanceConfigArgs] = None,
region: Optional[str] = None,
scaling_configuration_name: Optional[str] = None) -> AsConfiguration
func GetAsConfiguration(ctx *Context, name string, id IDInput, state *AsConfigurationState, opts ...ResourceOption) (*AsConfiguration, error)
public static AsConfiguration Get(string name, Input<string> id, AsConfigurationState? state, CustomResourceOptions? opts = null)
public static AsConfiguration get(String name, Output<String> id, AsConfigurationState state, CustomResourceOptions options)
resources: _: type: flexibleengine:AsConfiguration 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.
- As
Configuration stringId - Instance
Config AsConfiguration Instance Config - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- Region string
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration. - Scaling
Configuration stringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- As
Configuration stringId - Instance
Config AsConfiguration Instance Config Args - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- Region string
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration. - Scaling
Configuration stringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- as
Configuration StringId - instance
Config AsConfiguration Instance Config - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- region String
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration. - scaling
Configuration StringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- as
Configuration stringId - instance
Config AsConfiguration Instance Config - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- region string
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration. - scaling
Configuration stringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- as_
configuration_ strid - instance_
config AsConfiguration Instance Config Args - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- region str
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration. - scaling_
configuration_ strname - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
- as
Configuration StringId - instance
Config Property Map - The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
- region String
- The region in which to create the AS configuration. If
omitted, the
region
argument of the provider is used. Changing this creates a new AS configuration. - scaling
Configuration StringName - The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
Supporting Types
AsConfigurationInstanceConfig, AsConfigurationInstanceConfigArgs
- Key
Name string - The name of the SSH key pair used to log in to the instance.
- Disks
List<As
Configuration Instance Config Disk> - The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
- Flavor string
- The flavor ID.
- Image string
- The image ID.
- Instance
Id string - When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
- Metadata Dictionary<string, string>
- Metadata key/value pairs to make available from within the instance.
- Personalities
List<As
Configuration Instance Config Personality> - Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- Public
Ip AsConfiguration Instance Config Public Ip - The elastic IP address of the instance. The public_ip structure is described below.
- User
Data string - The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
- Key
Name string - The name of the SSH key pair used to log in to the instance.
- Disks
[]As
Configuration Instance Config Disk - The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
- Flavor string
- The flavor ID.
- Image string
- The image ID.
- Instance
Id string - When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
- Metadata map[string]string
- Metadata key/value pairs to make available from within the instance.
- Personalities
[]As
Configuration Instance Config Personality - Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- Public
Ip AsConfiguration Instance Config Public Ip - The elastic IP address of the instance. The public_ip structure is described below.
- User
Data string - The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
- key
Name String - The name of the SSH key pair used to log in to the instance.
- disks
List<As
Configuration Instance Config Disk> - The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
- flavor String
- The flavor ID.
- image String
- The image ID.
- instance
Id String - When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
- metadata Map<String,String>
- Metadata key/value pairs to make available from within the instance.
- personalities
List<As
Configuration Instance Config Personality> - Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- public
Ip AsConfiguration Instance Config Public Ip - The elastic IP address of the instance. The public_ip structure is described below.
- user
Data String - The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
- key
Name string - The name of the SSH key pair used to log in to the instance.
- disks
As
Configuration Instance Config Disk[] - The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
- flavor string
- The flavor ID.
- image string
- The image ID.
- instance
Id string - When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
- metadata {[key: string]: string}
- Metadata key/value pairs to make available from within the instance.
- personalities
As
Configuration Instance Config Personality[] - Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- public
Ip AsConfiguration Instance Config Public Ip - The elastic IP address of the instance. The public_ip structure is described below.
- user
Data string - The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
- key_
name str - The name of the SSH key pair used to log in to the instance.
- disks
Sequence[As
Configuration Instance Config Disk] - The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
- flavor str
- The flavor ID.
- image str
- The image ID.
- instance_
id str - When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
- metadata Mapping[str, str]
- Metadata key/value pairs to make available from within the instance.
- personalities
Sequence[As
Configuration Instance Config Personality] - Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- public_
ip AsConfiguration Instance Config Public Ip - The elastic IP address of the instance. The public_ip structure is described below.
- user_
data str - The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
- key
Name String - The name of the SSH key pair used to log in to the instance.
- disks List<Property Map>
- The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
- flavor String
- The flavor ID.
- image String
- The image ID.
- instance
Id String - When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
- metadata Map<String>
- Metadata key/value pairs to make available from within the instance.
- personalities List<Property Map>
- Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- public
Ip Property Map - The elastic IP address of the instance. The public_ip structure is described below.
- user
Data String - The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
AsConfigurationInstanceConfigDisk, AsConfigurationInstanceConfigDiskArgs
- Disk
Type string - Whether the disk is a system disk or a data disk. Option
DATA
indicates a data disk. optionSYS
indicates a system disk. - Size double
- The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
- Volume
Type string - The disk type, which must be the same as the disk type available in the system.
The options include
SATA
(common I/O disk type) andSSD
(ultra-high I/O disk type).
- Disk
Type string - Whether the disk is a system disk or a data disk. Option
DATA
indicates a data disk. optionSYS
indicates a system disk. - Size float64
- The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
- Volume
Type string - The disk type, which must be the same as the disk type available in the system.
The options include
SATA
(common I/O disk type) andSSD
(ultra-high I/O disk type).
- disk
Type String - Whether the disk is a system disk or a data disk. Option
DATA
indicates a data disk. optionSYS
indicates a system disk. - size Double
- The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
- volume
Type String - The disk type, which must be the same as the disk type available in the system.
The options include
SATA
(common I/O disk type) andSSD
(ultra-high I/O disk type).
- disk
Type string - Whether the disk is a system disk or a data disk. Option
DATA
indicates a data disk. optionSYS
indicates a system disk. - size number
- The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
- volume
Type string - The disk type, which must be the same as the disk type available in the system.
The options include
SATA
(common I/O disk type) andSSD
(ultra-high I/O disk type).
- disk_
type str - Whether the disk is a system disk or a data disk. Option
DATA
indicates a data disk. optionSYS
indicates a system disk. - size float
- The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
- volume_
type str - The disk type, which must be the same as the disk type available in the system.
The options include
SATA
(common I/O disk type) andSSD
(ultra-high I/O disk type).
- disk
Type String - Whether the disk is a system disk or a data disk. Option
DATA
indicates a data disk. optionSYS
indicates a system disk. - size Number
- The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
- volume
Type String - The disk type, which must be the same as the disk type available in the system.
The options include
SATA
(common I/O disk type) andSSD
(ultra-high I/O disk type).
AsConfigurationInstanceConfigPersonality, AsConfigurationInstanceConfigPersonalityArgs
AsConfigurationInstanceConfigPublicIp, AsConfigurationInstanceConfigPublicIpArgs
- Eip
As
Configuration Instance Config Public Ip Eip - The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
- Eip
As
Configuration Instance Config Public Ip Eip - The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
- eip
As
Configuration Instance Config Public Ip Eip - The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
- eip
As
Configuration Instance Config Public Ip Eip - The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
- eip
As
Configuration Instance Config Public Ip Eip - The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
- eip Property Map
- The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
AsConfigurationInstanceConfigPublicIpEip, AsConfigurationInstanceConfigPublicIpEipArgs
- Bandwidth
As
Configuration Instance Config Public Ip Eip Bandwidth - The bandwidth information. The structure is described below.
- Ip
Type string - The IP address type. The system only supports
5_bgp
(indicates dynamic BGP).
- Bandwidth
As
Configuration Instance Config Public Ip Eip Bandwidth - The bandwidth information. The structure is described below.
- Ip
Type string - The IP address type. The system only supports
5_bgp
(indicates dynamic BGP).
- bandwidth
As
Configuration Instance Config Public Ip Eip Bandwidth - The bandwidth information. The structure is described below.
- ip
Type String - The IP address type. The system only supports
5_bgp
(indicates dynamic BGP).
- bandwidth
As
Configuration Instance Config Public Ip Eip Bandwidth - The bandwidth information. The structure is described below.
- ip
Type string - The IP address type. The system only supports
5_bgp
(indicates dynamic BGP).
- bandwidth
As
Configuration Instance Config Public Ip Eip Bandwidth - The bandwidth information. The structure is described below.
- ip_
type str - The IP address type. The system only supports
5_bgp
(indicates dynamic BGP).
- bandwidth Property Map
- The bandwidth information. The structure is described below.
- ip
Type String - The IP address type. The system only supports
5_bgp
(indicates dynamic BGP).
AsConfigurationInstanceConfigPublicIpEipBandwidth, AsConfigurationInstanceConfigPublicIpEipBandwidthArgs
- Charging
Mode string - The bandwidth charging mode. The system only supports
traffic
. - string
- The bandwidth sharing type. The system only supports
PER
(indicates exclusive bandwidth). - Size double
- The bandwidth (Mbit/s). The value range is 1 to 300.
- Charging
Mode string - The bandwidth charging mode. The system only supports
traffic
. - string
- The bandwidth sharing type. The system only supports
PER
(indicates exclusive bandwidth). - Size float64
- The bandwidth (Mbit/s). The value range is 1 to 300.
- charging
Mode String - The bandwidth charging mode. The system only supports
traffic
. - String
- The bandwidth sharing type. The system only supports
PER
(indicates exclusive bandwidth). - size Double
- The bandwidth (Mbit/s). The value range is 1 to 300.
- charging
Mode string - The bandwidth charging mode. The system only supports
traffic
. - string
- The bandwidth sharing type. The system only supports
PER
(indicates exclusive bandwidth). - size number
- The bandwidth (Mbit/s). The value range is 1 to 300.
- charging_
mode str - The bandwidth charging mode. The system only supports
traffic
. - str
- The bandwidth sharing type. The system only supports
PER
(indicates exclusive bandwidth). - size float
- The bandwidth (Mbit/s). The value range is 1 to 300.
- charging
Mode String - The bandwidth charging mode. The system only supports
traffic
. - String
- The bandwidth sharing type. The system only supports
PER
(indicates exclusive bandwidth). - size Number
- The bandwidth (Mbit/s). The value range is 1 to 300.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.