alicloud.eflo.Vsc
Explore with Pulumi AI
Provides a Eflo Vsc resource.
Virtual Storage Channel.
For information about Eflo Vsc and how to use it, see What is Vsc.
NOTE: Available since v1.250.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.eflo.Vsc("default", {
vscType: "primary",
nodeId: "e01-cn-9me49omda01",
vscName: name,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.eflo.Vsc("default",
vsc_type="primary",
node_id="e01-cn-9me49omda01",
vsc_name=name)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eflo"
"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
}
_, err := eflo.NewVsc(ctx, "default", &eflo.VscArgs{
VscType: pulumi.String("primary"),
NodeId: pulumi.String("e01-cn-9me49omda01"),
VscName: pulumi.String(name),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Eflo.Vsc("default", new()
{
VscType = "primary",
NodeId = "e01-cn-9me49omda01",
VscName = name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eflo.Vsc;
import com.pulumi.alicloud.eflo.VscArgs;
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");
var default_ = new Vsc("default", VscArgs.builder()
.vscType("primary")
.nodeId("e01-cn-9me49omda01")
.vscName(name)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:eflo:Vsc
properties:
vscType: primary
nodeId: e01-cn-9me49omda01
vscName: ${name}
Create Vsc Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Vsc(name: string, args: VscArgs, opts?: CustomResourceOptions);
@overload
def Vsc(resource_name: str,
args: VscArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Vsc(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_id: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vsc_name: Optional[str] = None,
vsc_type: Optional[str] = None)
func NewVsc(ctx *Context, name string, args VscArgs, opts ...ResourceOption) (*Vsc, error)
public Vsc(string name, VscArgs args, CustomResourceOptions? opts = null)
type: alicloud:eflo:Vsc
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 VscArgs
- 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 VscArgs
- 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 VscArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VscArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VscArgs
- 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 vscResource = new AliCloud.Eflo.Vsc("vscResource", new()
{
NodeId = "string",
ResourceGroupId = "string",
Tags =
{
{ "string", "string" },
},
VscName = "string",
VscType = "string",
});
example, err := eflo.NewVsc(ctx, "vscResource", &eflo.VscArgs{
NodeId: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VscName: pulumi.String("string"),
VscType: pulumi.String("string"),
})
var vscResource = new Vsc("vscResource", VscArgs.builder()
.nodeId("string")
.resourceGroupId("string")
.tags(Map.of("string", "string"))
.vscName("string")
.vscType("string")
.build());
vsc_resource = alicloud.eflo.Vsc("vscResource",
node_id="string",
resource_group_id="string",
tags={
"string": "string",
},
vsc_name="string",
vsc_type="string")
const vscResource = new alicloud.eflo.Vsc("vscResource", {
nodeId: "string",
resourceGroupId: "string",
tags: {
string: "string",
},
vscName: "string",
vscType: "string",
});
type: alicloud:eflo:Vsc
properties:
nodeId: string
resourceGroupId: string
tags:
string: string
vscName: string
vscType: string
Vsc 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 Vsc resource accepts the following input properties:
- Node
Id string - The ID of the Node.
- Resource
Group stringId - The ID of the resource group.
- Dictionary<string, string>
- The tag of the resource.
- Vsc
Name string - The name of the Vsc.
- Vsc
Type string - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- Node
Id string - The ID of the Node.
- Resource
Group stringId - The ID of the resource group.
- map[string]string
- The tag of the resource.
- Vsc
Name string - The name of the Vsc.
- Vsc
Type string - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- node
Id String - The ID of the Node.
- resource
Group StringId - The ID of the resource group.
- Map<String,String>
- The tag of the resource.
- vsc
Name String - The name of the Vsc.
- vsc
Type String - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- node
Id string - The ID of the Node.
- resource
Group stringId - The ID of the resource group.
- {[key: string]: string}
- The tag of the resource.
- vsc
Name string - The name of the Vsc.
- vsc
Type string - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- node_
id str - The ID of the Node.
- resource_
group_ strid - The ID of the resource group.
- Mapping[str, str]
- The tag of the resource.
- vsc_
name str - The name of the Vsc.
- vsc_
type str - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- node
Id String - The ID of the Node.
- resource
Group StringId - The ID of the resource group.
- Map<String>
- The tag of the resource.
- vsc
Name String - The name of the Vsc.
- vsc
Type String - The type of the Vsc. Default value:
primary
. Valid values:primary
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Vsc resource produces the following output properties:
Look up Existing Vsc Resource
Get an existing Vsc 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?: VscState, opts?: CustomResourceOptions): Vsc
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
node_id: Optional[str] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vsc_name: Optional[str] = None,
vsc_type: Optional[str] = None) -> Vsc
func GetVsc(ctx *Context, name string, id IDInput, state *VscState, opts ...ResourceOption) (*Vsc, error)
public static Vsc Get(string name, Input<string> id, VscState? state, CustomResourceOptions? opts = null)
public static Vsc get(String name, Output<String> id, VscState state, CustomResourceOptions options)
resources: _: type: alicloud:eflo:Vsc 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.
- Node
Id string - The ID of the Node.
- Resource
Group stringId - The ID of the resource group.
- Status string
- The status of the Vsc.
- Dictionary<string, string>
- The tag of the resource.
- Vsc
Name string - The name of the Vsc.
- Vsc
Type string - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- Node
Id string - The ID of the Node.
- Resource
Group stringId - The ID of the resource group.
- Status string
- The status of the Vsc.
- map[string]string
- The tag of the resource.
- Vsc
Name string - The name of the Vsc.
- Vsc
Type string - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- node
Id String - The ID of the Node.
- resource
Group StringId - The ID of the resource group.
- status String
- The status of the Vsc.
- Map<String,String>
- The tag of the resource.
- vsc
Name String - The name of the Vsc.
- vsc
Type String - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- node
Id string - The ID of the Node.
- resource
Group stringId - The ID of the resource group.
- status string
- The status of the Vsc.
- {[key: string]: string}
- The tag of the resource.
- vsc
Name string - The name of the Vsc.
- vsc
Type string - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- node_
id str - The ID of the Node.
- resource_
group_ strid - The ID of the resource group.
- status str
- The status of the Vsc.
- Mapping[str, str]
- The tag of the resource.
- vsc_
name str - The name of the Vsc.
- vsc_
type str - The type of the Vsc. Default value:
primary
. Valid values:primary
.
- node
Id String - The ID of the Node.
- resource
Group StringId - The ID of the resource group.
- status String
- The status of the Vsc.
- Map<String>
- The tag of the resource.
- vsc
Name String - The name of the Vsc.
- vsc
Type String - The type of the Vsc. Default value:
primary
. Valid values:primary
.
Import
Eflo Vsc can be imported using the id, e.g.
$ pulumi import alicloud:eflo/vsc:Vsc 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.