1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. realtimecompute
  5. VvpInstance
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi

    Provides a Realtime Compute Vvp Instance resource.

    For information about Realtime Compute Vvp Instance and how to use it, see What is Vvp Instance.

    NOTE: Available since v1.214.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const zoneId = config.get("zoneId") || "cn-hangzhou-i";
    const defaultInteger = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const _default = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultGetNetworks = alicloud.vpc.getNetworks({
        nameRegex: "^default-NODELETING$",
    });
    const defaultGetSwitches = defaultGetNetworks.then(defaultGetNetworks => alicloud.vpc.getSwitches({
        vpcId: defaultGetNetworks.ids?.[0],
        zoneId: zoneId,
    }));
    const defaultOSS = new alicloud.oss.Bucket("defaultOSS", {bucket: `${name}-${defaultInteger.result}`});
    const defaultGetResourceGroups = alicloud.resourcemanager.getResourceGroups({
        status: "OK",
    });
    const defaultVvpInstance = new alicloud.realtimecompute.VvpInstance("default", {
        storage: {
            oss: {
                bucket: defaultOSS.bucket,
            },
        },
        vvpInstanceName: `${name}-${defaultInteger.result}`,
        vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
        zoneId: zoneId,
        vswitchIds: [defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0])],
        paymentType: "PayAsYouGo",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    zone_id = config.get("zoneId")
    if zone_id is None:
        zone_id = "cn-hangzhou-i"
    default_integer = random.index.Integer("default",
        min=10000,
        max=99999)
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
    default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
        zone_id=zone_id)
    default_oss = alicloud.oss.Bucket("defaultOSS", bucket=f"{name}-{default_integer['result']}")
    default_get_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
    default_vvp_instance = alicloud.realtimecompute.VvpInstance("default",
        storage={
            "oss": {
                "bucket": default_oss.bucket,
            },
        },
        vvp_instance_name=f"{name}-{default_integer['result']}",
        vpc_id=default_get_networks.ids[0],
        zone_id=zone_id,
        vswitch_ids=[default_get_switches.ids[0]],
        payment_type="PayAsYouGo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/realtimecompute"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"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, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		zoneId := "cn-hangzhou-i"
    		if param := cfg.Get("zoneId"); param != "" {
    			zoneId = param
    		}
    		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Min: 10000,
    			Max: 99999,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
    			NameRegex: pulumi.StringRef("^default-NODELETING$"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
    			VpcId:  pulumi.StringRef(defaultGetNetworks.Ids[0]),
    			ZoneId: pulumi.StringRef(zoneId),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultOSS, err := oss.NewBucket(ctx, "defaultOSS", &oss.BucketArgs{
    			Bucket: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
    			Status: pulumi.StringRef("OK"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = realtimecompute.NewVvpInstance(ctx, "default", &realtimecompute.VvpInstanceArgs{
    			Storage: &realtimecompute.VvpInstanceStorageArgs{
    				Oss: &realtimecompute.VvpInstanceStorageOssArgs{
    					Bucket: defaultOSS.Bucket,
    				},
    			},
    			VvpInstanceName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
    			VpcId:           pulumi.String(defaultGetNetworks.Ids[0]),
    			ZoneId:          pulumi.String(zoneId),
    			VswitchIds: pulumi.StringArray{
    				pulumi.String(defaultGetSwitches.Ids[0]),
    			},
    			PaymentType: pulumi.String("PayAsYouGo"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var zoneId = config.Get("zoneId") ?? "cn-hangzhou-i";
        var defaultInteger = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
        {
            NameRegex = "^default-NODELETING$",
        });
    
        var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
        {
            VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            ZoneId = zoneId,
        });
    
        var defaultOSS = new AliCloud.Oss.Bucket("defaultOSS", new()
        {
            BucketName = $"{name}-{defaultInteger.Result}",
        });
    
        var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
        {
            Status = "OK",
        });
    
        var defaultVvpInstance = new AliCloud.RealtimeCompute.VvpInstance("default", new()
        {
            Storage = new AliCloud.RealtimeCompute.Inputs.VvpInstanceStorageArgs
            {
                Oss = new AliCloud.RealtimeCompute.Inputs.VvpInstanceStorageOssArgs
                {
                    Bucket = defaultOSS.BucketName,
                },
            },
            VvpInstanceName = $"{name}-{defaultInteger.Result}",
            VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            ZoneId = zoneId,
            VswitchIds = new[]
            {
                defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
            },
            PaymentType = "PayAsYouGo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.Integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.VpcFunctions;
    import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
    import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
    import com.pulumi.alicloud.oss.Bucket;
    import com.pulumi.alicloud.oss.BucketArgs;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.realtimecompute.VvpInstance;
    import com.pulumi.alicloud.realtimecompute.VvpInstanceArgs;
    import com.pulumi.alicloud.realtimecompute.inputs.VvpInstanceStorageArgs;
    import com.pulumi.alicloud.realtimecompute.inputs.VvpInstanceStorageOssArgs;
    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 name = config.get("name").orElse("terraform-example");
            final var zoneId = config.get("zoneId").orElse("cn-hangzhou-i");
            var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
                .nameRegex("^default-NODELETING$")
                .build());
    
            final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
                .vpcId(defaultGetNetworks.ids()[0])
                .zoneId(zoneId)
                .build());
    
            var defaultOSS = new Bucket("defaultOSS", BucketArgs.builder()
                .bucket(String.format("%s-%s", name,defaultInteger.result()))
                .build());
    
            final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
                .status("OK")
                .build());
    
            var defaultVvpInstance = new VvpInstance("defaultVvpInstance", VvpInstanceArgs.builder()
                .storage(VvpInstanceStorageArgs.builder()
                    .oss(VvpInstanceStorageOssArgs.builder()
                        .bucket(defaultOSS.bucket())
                        .build())
                    .build())
                .vvpInstanceName(String.format("%s-%s", name,defaultInteger.result()))
                .vpcId(defaultGetNetworks.ids()[0])
                .zoneId(zoneId)
                .vswitchIds(defaultGetSwitches.ids()[0])
                .paymentType("PayAsYouGo")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      zoneId:
        type: string
        default: cn-hangzhou-i
    resources:
      defaultInteger:
        type: random:Integer
        name: default
        properties:
          min: 10000
          max: 99999
      defaultOSS:
        type: alicloud:oss:Bucket
        properties:
          bucket: ${name}-${defaultInteger.result}
      defaultVvpInstance:
        type: alicloud:realtimecompute:VvpInstance
        name: default
        properties:
          storage:
            oss:
              bucket: ${defaultOSS.bucket}
          vvpInstanceName: ${name}-${defaultInteger.result}
          vpcId: ${defaultGetNetworks.ids[0]}
          zoneId: ${zoneId}
          vswitchIds:
            - ${defaultGetSwitches.ids[0]}
          paymentType: PayAsYouGo
    variables:
      default:
        fn::invoke:
          function: alicloud:getZones
          arguments:
            availableResourceCreation: VSwitch
      defaultGetNetworks:
        fn::invoke:
          function: alicloud:vpc:getNetworks
          arguments:
            nameRegex: ^default-NODELETING$
      defaultGetSwitches:
        fn::invoke:
          function: alicloud:vpc:getSwitches
          arguments:
            vpcId: ${defaultGetNetworks.ids[0]}
            zoneId: ${zoneId}
      defaultGetResourceGroups:
        fn::invoke:
          function: alicloud:resourcemanager:getResourceGroups
          arguments:
            status: OK
    

    Deleting alicloud.realtimecompute.VvpInstance or removing it from your configuration

    The alicloud.realtimecompute.VvpInstance resource allows you to manage payment_type </span>= "Subscription" instance, but Terraform cannot destroy it. Deleting the subscription resource or removing it from your configuration will remove it from your state file and management, but will not destroy the Instance. You can resume managing the subscription instance via the AlibabaCloud Console.

    📚 Need more examples? VIEW MORE EXAMPLES

    Create VvpInstance Resource

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

    Constructor syntax

    new VvpInstance(name: string, args: VvpInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def VvpInstance(resource_name: str,
                    args: VvpInstanceArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VvpInstance(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    payment_type: Optional[str] = None,
                    storage: Optional[VvpInstanceStorageArgs] = None,
                    vpc_id: Optional[str] = None,
                    vswitch_ids: Optional[Sequence[str]] = None,
                    vvp_instance_name: Optional[str] = None,
                    zone_id: Optional[str] = None,
                    duration: Optional[int] = None,
                    pricing_cycle: Optional[str] = None,
                    resource_group_id: Optional[str] = None,
                    resource_spec: Optional[VvpInstanceResourceSpecArgs] = None,
                    tags: Optional[Mapping[str, str]] = None)
    func NewVvpInstance(ctx *Context, name string, args VvpInstanceArgs, opts ...ResourceOption) (*VvpInstance, error)
    public VvpInstance(string name, VvpInstanceArgs args, CustomResourceOptions? opts = null)
    public VvpInstance(String name, VvpInstanceArgs args)
    public VvpInstance(String name, VvpInstanceArgs args, CustomResourceOptions options)
    
    type: alicloud:realtimecompute:VvpInstance
    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 VvpInstanceArgs
    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 VvpInstanceArgs
    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 VvpInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VvpInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VvpInstanceArgs
    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 vvpInstanceResource = new AliCloud.RealtimeCompute.VvpInstance("vvpInstanceResource", new()
    {
        PaymentType = "string",
        Storage = new AliCloud.RealtimeCompute.Inputs.VvpInstanceStorageArgs
        {
            Oss = new AliCloud.RealtimeCompute.Inputs.VvpInstanceStorageOssArgs
            {
                Bucket = "string",
            },
        },
        VpcId = "string",
        VswitchIds = new[]
        {
            "string",
        },
        VvpInstanceName = "string",
        ZoneId = "string",
        Duration = 0,
        PricingCycle = "string",
        ResourceGroupId = "string",
        ResourceSpec = new AliCloud.RealtimeCompute.Inputs.VvpInstanceResourceSpecArgs
        {
            Cpu = 0,
            MemoryGb = 0,
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := realtimecompute.NewVvpInstance(ctx, "vvpInstanceResource", &realtimecompute.VvpInstanceArgs{
    	PaymentType: pulumi.String("string"),
    	Storage: &realtimecompute.VvpInstanceStorageArgs{
    		Oss: &realtimecompute.VvpInstanceStorageOssArgs{
    			Bucket: pulumi.String("string"),
    		},
    	},
    	VpcId: pulumi.String("string"),
    	VswitchIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	VvpInstanceName: pulumi.String("string"),
    	ZoneId:          pulumi.String("string"),
    	Duration:        pulumi.Int(0),
    	PricingCycle:    pulumi.String("string"),
    	ResourceGroupId: pulumi.String("string"),
    	ResourceSpec: &realtimecompute.VvpInstanceResourceSpecArgs{
    		Cpu:      pulumi.Int(0),
    		MemoryGb: pulumi.Int(0),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var vvpInstanceResource = new VvpInstance("vvpInstanceResource", VvpInstanceArgs.builder()
        .paymentType("string")
        .storage(VvpInstanceStorageArgs.builder()
            .oss(VvpInstanceStorageOssArgs.builder()
                .bucket("string")
                .build())
            .build())
        .vpcId("string")
        .vswitchIds("string")
        .vvpInstanceName("string")
        .zoneId("string")
        .duration(0)
        .pricingCycle("string")
        .resourceGroupId("string")
        .resourceSpec(VvpInstanceResourceSpecArgs.builder()
            .cpu(0)
            .memoryGb(0)
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    vvp_instance_resource = alicloud.realtimecompute.VvpInstance("vvpInstanceResource",
        payment_type="string",
        storage={
            "oss": {
                "bucket": "string",
            },
        },
        vpc_id="string",
        vswitch_ids=["string"],
        vvp_instance_name="string",
        zone_id="string",
        duration=0,
        pricing_cycle="string",
        resource_group_id="string",
        resource_spec={
            "cpu": 0,
            "memory_gb": 0,
        },
        tags={
            "string": "string",
        })
    
    const vvpInstanceResource = new alicloud.realtimecompute.VvpInstance("vvpInstanceResource", {
        paymentType: "string",
        storage: {
            oss: {
                bucket: "string",
            },
        },
        vpcId: "string",
        vswitchIds: ["string"],
        vvpInstanceName: "string",
        zoneId: "string",
        duration: 0,
        pricingCycle: "string",
        resourceGroupId: "string",
        resourceSpec: {
            cpu: 0,
            memoryGb: 0,
        },
        tags: {
            string: "string",
        },
    });
    
    type: alicloud:realtimecompute:VvpInstance
    properties:
        duration: 0
        paymentType: string
        pricingCycle: string
        resourceGroupId: string
        resourceSpec:
            cpu: 0
            memoryGb: 0
        storage:
            oss:
                bucket: string
        tags:
            string: string
        vpcId: string
        vswitchIds:
            - string
        vvpInstanceName: string
        zoneId: string
    

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

    PaymentType string
    The payment type of the resource.
    Storage Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceStorage
    Store information. See storage below.
    VpcId string
    The VPC ID of the user.
    VswitchIds List<string>
    Virtual Switch ID.
    VvpInstanceName string
    The name of the workspace.
    ZoneId string
    The zone ID of the resource.
    Duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    PricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    ResourceGroupId string
    The resource group to which the newly purchased instance belongs.
    ResourceSpec Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    Tags Dictionary<string, string>
    The tags of the resource.
    PaymentType string
    The payment type of the resource.
    Storage VvpInstanceStorageArgs
    Store information. See storage below.
    VpcId string
    The VPC ID of the user.
    VswitchIds []string
    Virtual Switch ID.
    VvpInstanceName string
    The name of the workspace.
    ZoneId string
    The zone ID of the resource.
    Duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    PricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    ResourceGroupId string
    The resource group to which the newly purchased instance belongs.
    ResourceSpec VvpInstanceResourceSpecArgs
    Resource specifications. See resource_spec below.
    Tags map[string]string
    The tags of the resource.
    paymentType String
    The payment type of the resource.
    storage VvpInstanceStorage
    Store information. See storage below.
    vpcId String
    The VPC ID of the user.
    vswitchIds List<String>
    Virtual Switch ID.
    vvpInstanceName String
    The name of the workspace.
    zoneId String
    The zone ID of the resource.
    duration Integer
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    pricingCycle String
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId String
    The resource group to which the newly purchased instance belongs.
    resourceSpec VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    tags Map<String,String>
    The tags of the resource.
    paymentType string
    The payment type of the resource.
    storage VvpInstanceStorage
    Store information. See storage below.
    vpcId string
    The VPC ID of the user.
    vswitchIds string[]
    Virtual Switch ID.
    vvpInstanceName string
    The name of the workspace.
    zoneId string
    The zone ID of the resource.
    duration number
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    pricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId string
    The resource group to which the newly purchased instance belongs.
    resourceSpec VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    tags {[key: string]: string}
    The tags of the resource.
    payment_type str
    The payment type of the resource.
    storage VvpInstanceStorageArgs
    Store information. See storage below.
    vpc_id str
    The VPC ID of the user.
    vswitch_ids Sequence[str]
    Virtual Switch ID.
    vvp_instance_name str
    The name of the workspace.
    zone_id str
    The zone ID of the resource.
    duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    pricing_cycle str
    The subscription period. If the payment type is PRE, this parameter is required.
    resource_group_id str
    The resource group to which the newly purchased instance belongs.
    resource_spec VvpInstanceResourceSpecArgs
    Resource specifications. See resource_spec below.
    tags Mapping[str, str]
    The tags of the resource.
    paymentType String
    The payment type of the resource.
    storage Property Map
    Store information. See storage below.
    vpcId String
    The VPC ID of the user.
    vswitchIds List<String>
    Virtual Switch ID.
    vvpInstanceName String
    The name of the workspace.
    zoneId String
    The zone ID of the resource.
    duration Number
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    pricingCycle String
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId String
    The resource group to which the newly purchased instance belongs.
    resourceSpec Property Map
    Resource specifications. See resource_spec below.
    tags Map<String>
    The tags of the resource.

    Outputs

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

    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    (Available since v1.264.0) The ID of the K8s cluster.
    Status string
    The status of the resource.
    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    (Available since v1.264.0) The ID of the K8s cluster.
    Status string
    The status of the resource.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    (Available since v1.264.0) The ID of the K8s cluster.
    status String
    The status of the resource.
    createTime string
    The creation time of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceId string
    (Available since v1.264.0) The ID of the K8s cluster.
    status string
    The status of the resource.
    create_time str
    The creation time of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_id str
    (Available since v1.264.0) The ID of the K8s cluster.
    status str
    The status of the resource.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    (Available since v1.264.0) The ID of the K8s cluster.
    status String
    The status of the resource.

    Look up Existing VvpInstance Resource

    Get an existing VvpInstance 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?: VvpInstanceState, opts?: CustomResourceOptions): VvpInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            duration: Optional[int] = None,
            payment_type: Optional[str] = None,
            pricing_cycle: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            resource_id: Optional[str] = None,
            resource_spec: Optional[VvpInstanceResourceSpecArgs] = None,
            status: Optional[str] = None,
            storage: Optional[VvpInstanceStorageArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            vpc_id: Optional[str] = None,
            vswitch_ids: Optional[Sequence[str]] = None,
            vvp_instance_name: Optional[str] = None,
            zone_id: Optional[str] = None) -> VvpInstance
    func GetVvpInstance(ctx *Context, name string, id IDInput, state *VvpInstanceState, opts ...ResourceOption) (*VvpInstance, error)
    public static VvpInstance Get(string name, Input<string> id, VvpInstanceState? state, CustomResourceOptions? opts = null)
    public static VvpInstance get(String name, Output<String> id, VvpInstanceState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:realtimecompute:VvpInstance    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.
    The following state arguments are supported:
    CreateTime string
    The creation time of the resource.
    Duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    PaymentType string
    The payment type of the resource.
    PricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    ResourceGroupId string
    The resource group to which the newly purchased instance belongs.
    ResourceId string
    (Available since v1.264.0) The ID of the K8s cluster.
    ResourceSpec Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    Status string
    The status of the resource.
    Storage Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceStorage
    Store information. See storage below.
    Tags Dictionary<string, string>
    The tags of the resource.
    VpcId string
    The VPC ID of the user.
    VswitchIds List<string>
    Virtual Switch ID.
    VvpInstanceName string
    The name of the workspace.
    ZoneId string
    The zone ID of the resource.
    CreateTime string
    The creation time of the resource.
    Duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    PaymentType string
    The payment type of the resource.
    PricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    ResourceGroupId string
    The resource group to which the newly purchased instance belongs.
    ResourceId string
    (Available since v1.264.0) The ID of the K8s cluster.
    ResourceSpec VvpInstanceResourceSpecArgs
    Resource specifications. See resource_spec below.
    Status string
    The status of the resource.
    Storage VvpInstanceStorageArgs
    Store information. See storage below.
    Tags map[string]string
    The tags of the resource.
    VpcId string
    The VPC ID of the user.
    VswitchIds []string
    Virtual Switch ID.
    VvpInstanceName string
    The name of the workspace.
    ZoneId string
    The zone ID of the resource.
    createTime String
    The creation time of the resource.
    duration Integer
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    paymentType String
    The payment type of the resource.
    pricingCycle String
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId String
    The resource group to which the newly purchased instance belongs.
    resourceId String
    (Available since v1.264.0) The ID of the K8s cluster.
    resourceSpec VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    status String
    The status of the resource.
    storage VvpInstanceStorage
    Store information. See storage below.
    tags Map<String,String>
    The tags of the resource.
    vpcId String
    The VPC ID of the user.
    vswitchIds List<String>
    Virtual Switch ID.
    vvpInstanceName String
    The name of the workspace.
    zoneId String
    The zone ID of the resource.
    createTime string
    The creation time of the resource.
    duration number
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    paymentType string
    The payment type of the resource.
    pricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId string
    The resource group to which the newly purchased instance belongs.
    resourceId string
    (Available since v1.264.0) The ID of the K8s cluster.
    resourceSpec VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    status string
    The status of the resource.
    storage VvpInstanceStorage
    Store information. See storage below.
    tags {[key: string]: string}
    The tags of the resource.
    vpcId string
    The VPC ID of the user.
    vswitchIds string[]
    Virtual Switch ID.
    vvpInstanceName string
    The name of the workspace.
    zoneId string
    The zone ID of the resource.
    create_time str
    The creation time of the resource.
    duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    payment_type str
    The payment type of the resource.
    pricing_cycle str
    The subscription period. If the payment type is PRE, this parameter is required.
    resource_group_id str
    The resource group to which the newly purchased instance belongs.
    resource_id str
    (Available since v1.264.0) The ID of the K8s cluster.
    resource_spec VvpInstanceResourceSpecArgs
    Resource specifications. See resource_spec below.
    status str
    The status of the resource.
    storage VvpInstanceStorageArgs
    Store information. See storage below.
    tags Mapping[str, str]
    The tags of the resource.
    vpc_id str
    The VPC ID of the user.
    vswitch_ids Sequence[str]
    Virtual Switch ID.
    vvp_instance_name str
    The name of the workspace.
    zone_id str
    The zone ID of the resource.
    createTime String
    The creation time of the resource.
    duration Number
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    paymentType String
    The payment type of the resource.
    pricingCycle String
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId String
    The resource group to which the newly purchased instance belongs.
    resourceId String
    (Available since v1.264.0) The ID of the K8s cluster.
    resourceSpec Property Map
    Resource specifications. See resource_spec below.
    status String
    The status of the resource.
    storage Property Map
    Store information. See storage below.
    tags Map<String>
    The tags of the resource.
    vpcId String
    The VPC ID of the user.
    vswitchIds List<String>
    Virtual Switch ID.
    vvpInstanceName String
    The name of the workspace.
    zoneId String
    The zone ID of the resource.

    Supporting Types

    VvpInstanceResourceSpec, VvpInstanceResourceSpecArgs

    Cpu int
    CPU number.
    MemoryGb int
    Memory size.
    Cpu int
    CPU number.
    MemoryGb int
    Memory size.
    cpu Integer
    CPU number.
    memoryGb Integer
    Memory size.
    cpu number
    CPU number.
    memoryGb number
    Memory size.
    cpu int
    CPU number.
    memory_gb int
    Memory size.
    cpu Number
    CPU number.
    memoryGb Number
    Memory size.

    VvpInstanceStorage, VvpInstanceStorageArgs

    Oss VvpInstanceStorageOss
    OSS stores information. See oss below.
    oss VvpInstanceStorageOss
    OSS stores information. See oss below.
    oss VvpInstanceStorageOss
    OSS stores information. See oss below.
    oss VvpInstanceStorageOss
    OSS stores information. See oss below.
    oss Property Map
    OSS stores information. See oss below.

    VvpInstanceStorageOss, VvpInstanceStorageOssArgs

    Bucket string
    OSS Bucket name.
    Bucket string
    OSS Bucket name.
    bucket String
    OSS Bucket name.
    bucket string
    OSS Bucket name.
    bucket str
    OSS Bucket name.
    bucket String
    OSS Bucket name.

    Import

    Realtime Compute Vvp Instance can be imported using the id, e.g.

    $ pulumi import alicloud:realtimecompute/vvpInstance:VvpInstance example <id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.97.0
    published on Saturday, Mar 14, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.