1. Packages
  2. Volcengine
  3. API Docs
  4. veenedge
  5. Instance
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.veenedge.Instance

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Provides a resource to manage veenedge instance

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Veenedge.Instance("foo", new()
        {
            AreaName = "*****",
            CloudserverId = "cloudserver-x92*****jcc8f",
            Isp = "CMCC",
        });
    
        var foo1 = new Volcengine.Veenedge.Instance("foo1", new()
        {
            InstanceId = "veen0*****0111112",
        });
    
    });
    
    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.NewInstance(ctx, "foo", &veenedge.InstanceArgs{
    			AreaName:      pulumi.String("*****"),
    			CloudserverId: pulumi.String("cloudserver-x92*****jcc8f"),
    			Isp:           pulumi.String("CMCC"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = veenedge.NewInstance(ctx, "foo1", &veenedge.InstanceArgs{
    			InstanceId: pulumi.String("veen0*****0111112"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.veenedge.Instance;
    import com.pulumi.volcengine.veenedge.InstanceArgs;
    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 Instance("foo", InstanceArgs.builder()        
                .areaName("*****")
                .cloudserverId("cloudserver-x92*****jcc8f")
                .isp("CMCC")
                .build());
    
            var foo1 = new Instance("foo1", InstanceArgs.builder()        
                .instanceId("veen0*****0111112")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.veenedge.Instance("foo",
        area_name="*****",
        cloudserver_id="cloudserver-x92*****jcc8f",
        isp="CMCC")
    foo1 = volcengine.veenedge.Instance("foo1", instance_id="veen0*****0111112")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.veenedge.Instance("foo", {
        areaName: "*****",
        cloudserverId: "cloudserver-x92*****jcc8f",
        isp: "CMCC",
    });
    const foo1 = new volcengine.veenedge.Instance("foo1", {instanceId: "veen0*****0111112"});
    
    resources:
      foo:
        type: volcengine:veenedge:Instance
        properties:
          areaName: '*****'
          cloudserverId: cloudserver-x92*****jcc8f
          isp: CMCC
      foo1:
        type: volcengine:veenedge:Instance
        properties:
          instanceId: veen0*****0111112
    

    Create Instance Resource

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

    Constructor syntax

    new Instance(name: string, args?: InstanceArgs, opts?: CustomResourceOptions);
    @overload
    def Instance(resource_name: str,
                 args: Optional[InstanceArgs] = None,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Instance(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 area_name: Optional[str] = None,
                 cloudserver_id: Optional[str] = None,
                 cluster_name: Optional[str] = None,
                 default_isp: Optional[str] = None,
                 instance_id: Optional[str] = None,
                 isp: Optional[str] = None,
                 name: Optional[str] = None,
                 secret_data: Optional[str] = None,
                 secret_type: Optional[str] = None)
    func NewInstance(ctx *Context, name string, args *InstanceArgs, opts ...ResourceOption) (*Instance, error)
    public Instance(string name, InstanceArgs? args = null, CustomResourceOptions? opts = null)
    public Instance(String name, InstanceArgs args)
    public Instance(String name, InstanceArgs args, CustomResourceOptions options)
    
    type: volcengine:veenedge:Instance
    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 InstanceArgs
    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 InstanceArgs
    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 InstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceArgs
    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 exampleinstanceResourceResourceFromVeenedgeinstance = new Volcengine.Veenedge.Instance("exampleinstanceResourceResourceFromVeenedgeinstance", new()
    {
        AreaName = "string",
        CloudserverId = "string",
        ClusterName = "string",
        DefaultIsp = "string",
        InstanceId = "string",
        Isp = "string",
        Name = "string",
        SecretData = "string",
        SecretType = "string",
    });
    
    example, err := veenedge.NewInstance(ctx, "exampleinstanceResourceResourceFromVeenedgeinstance", &veenedge.InstanceArgs{
    	AreaName:      pulumi.String("string"),
    	CloudserverId: pulumi.String("string"),
    	ClusterName:   pulumi.String("string"),
    	DefaultIsp:    pulumi.String("string"),
    	InstanceId:    pulumi.String("string"),
    	Isp:           pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	SecretData:    pulumi.String("string"),
    	SecretType:    pulumi.String("string"),
    })
    
    var exampleinstanceResourceResourceFromVeenedgeinstance = new Instance("exampleinstanceResourceResourceFromVeenedgeinstance", InstanceArgs.builder()
        .areaName("string")
        .cloudserverId("string")
        .clusterName("string")
        .defaultIsp("string")
        .instanceId("string")
        .isp("string")
        .name("string")
        .secretData("string")
        .secretType("string")
        .build());
    
    exampleinstance_resource_resource_from_veenedgeinstance = volcengine.veenedge.Instance("exampleinstanceResourceResourceFromVeenedgeinstance",
        area_name="string",
        cloudserver_id="string",
        cluster_name="string",
        default_isp="string",
        instance_id="string",
        isp="string",
        name="string",
        secret_data="string",
        secret_type="string")
    
    const exampleinstanceResourceResourceFromVeenedgeinstance = new volcengine.veenedge.Instance("exampleinstanceResourceResourceFromVeenedgeinstance", {
        areaName: "string",
        cloudserverId: "string",
        clusterName: "string",
        defaultIsp: "string",
        instanceId: "string",
        isp: "string",
        name: "string",
        secretData: "string",
        secretType: "string",
    });
    
    type: volcengine:veenedge:Instance
    properties:
        areaName: string
        cloudserverId: string
        clusterName: string
        defaultIsp: string
        instanceId: string
        isp: string
        name: string
        secretData: string
        secretType: string
    

    Instance Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Instance resource accepts the following input properties:

    AreaName string
    The area name.
    CloudserverId string
    The id of cloud server.
    ClusterName string
    The name of cluster.
    DefaultIsp string
    The default isp for multi line node.
    InstanceId string
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    Isp string
    The isp info.
    Name string
    The name of instance, only effected in update scene.
    SecretData string
    The data of secret, only effected in update scene.
    SecretType string
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    AreaName string
    The area name.
    CloudserverId string
    The id of cloud server.
    ClusterName string
    The name of cluster.
    DefaultIsp string
    The default isp for multi line node.
    InstanceId string
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    Isp string
    The isp info.
    Name string
    The name of instance, only effected in update scene.
    SecretData string
    The data of secret, only effected in update scene.
    SecretType string
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    areaName String
    The area name.
    cloudserverId String
    The id of cloud server.
    clusterName String
    The name of cluster.
    defaultIsp String
    The default isp for multi line node.
    instanceId String
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    isp String
    The isp info.
    name String
    The name of instance, only effected in update scene.
    secretData String
    The data of secret, only effected in update scene.
    secretType String
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    areaName string
    The area name.
    cloudserverId string
    The id of cloud server.
    clusterName string
    The name of cluster.
    defaultIsp string
    The default isp for multi line node.
    instanceId string
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    isp string
    The isp info.
    name string
    The name of instance, only effected in update scene.
    secretData string
    The data of secret, only effected in update scene.
    secretType string
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    area_name str
    The area name.
    cloudserver_id str
    The id of cloud server.
    cluster_name str
    The name of cluster.
    default_isp str
    The default isp for multi line node.
    instance_id str
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    isp str
    The isp info.
    name str
    The name of instance, only effected in update scene.
    secret_data str
    The data of secret, only effected in update scene.
    secret_type str
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    areaName String
    The area name.
    cloudserverId String
    The id of cloud server.
    clusterName String
    The name of cluster.
    defaultIsp String
    The default isp for multi line node.
    instanceId String
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    isp String
    The isp info.
    name String
    The name of instance, only effected in update scene.
    secretData String
    The data of secret, only effected in update scene.
    secretType String
    The type of secret, only effected in update scene. The value can be KeyPair or Password.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Instance 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 Instance Resource

    Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            area_name: Optional[str] = None,
            cloudserver_id: Optional[str] = None,
            cluster_name: Optional[str] = None,
            default_isp: Optional[str] = None,
            instance_id: Optional[str] = None,
            isp: Optional[str] = None,
            name: Optional[str] = None,
            secret_data: Optional[str] = None,
            secret_type: Optional[str] = None) -> Instance
    func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
    public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
    public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AreaName string
    The area name.
    CloudserverId string
    The id of cloud server.
    ClusterName string
    The name of cluster.
    DefaultIsp string
    The default isp for multi line node.
    InstanceId string
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    Isp string
    The isp info.
    Name string
    The name of instance, only effected in update scene.
    SecretData string
    The data of secret, only effected in update scene.
    SecretType string
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    AreaName string
    The area name.
    CloudserverId string
    The id of cloud server.
    ClusterName string
    The name of cluster.
    DefaultIsp string
    The default isp for multi line node.
    InstanceId string
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    Isp string
    The isp info.
    Name string
    The name of instance, only effected in update scene.
    SecretData string
    The data of secret, only effected in update scene.
    SecretType string
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    areaName String
    The area name.
    cloudserverId String
    The id of cloud server.
    clusterName String
    The name of cluster.
    defaultIsp String
    The default isp for multi line node.
    instanceId String
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    isp String
    The isp info.
    name String
    The name of instance, only effected in update scene.
    secretData String
    The data of secret, only effected in update scene.
    secretType String
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    areaName string
    The area name.
    cloudserverId string
    The id of cloud server.
    clusterName string
    The name of cluster.
    defaultIsp string
    The default isp for multi line node.
    instanceId string
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    isp string
    The isp info.
    name string
    The name of instance, only effected in update scene.
    secretData string
    The data of secret, only effected in update scene.
    secretType string
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    area_name str
    The area name.
    cloudserver_id str
    The id of cloud server.
    cluster_name str
    The name of cluster.
    default_isp str
    The default isp for multi line node.
    instance_id str
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    isp str
    The isp info.
    name str
    The name of instance, only effected in update scene.
    secret_data str
    The data of secret, only effected in update scene.
    secret_type str
    The type of secret, only effected in update scene. The value can be KeyPair or Password.
    areaName String
    The area name.
    cloudserverId String
    The id of cloud server.
    clusterName String
    The name of cluster.
    defaultIsp String
    The default isp for multi line node.
    instanceId String
    Import an exist instance, usually for import a default instance generated with cloud server creating.
    isp String
    The isp info.
    name String
    The name of instance, only effected in update scene.
    secretData String
    The data of secret, only effected in update scene.
    secretType String
    The type of secret, only effected in update scene. The value can be KeyPair or Password.

    Import

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

     $ pulumi import volcengine:veenedge/instance:Instance default veenn769ewmjjqyqh5dv
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine