ucloud.UfsVolume
Explore with Pulumi AI
Provides a UFS Volume resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const foo = new ucloud.UfsVolume("foo", {
protocolType: "NFSv4",
remark: "test",
size: 500,
storageType: "Basic",
tag: "tf-acc",
});
import pulumi
import pulumi_ucloud as ucloud
foo = ucloud.UfsVolume("foo",
protocol_type="NFSv4",
remark="test",
size=500,
storage_type="Basic",
tag="tf-acc")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ucloud.NewUfsVolume(ctx, "foo", &ucloud.UfsVolumeArgs{
ProtocolType: pulumi.String("NFSv4"),
Remark: pulumi.String("test"),
Size: pulumi.Float64(500),
StorageType: pulumi.String("Basic"),
Tag: pulumi.String("tf-acc"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() =>
{
var foo = new Ucloud.UfsVolume("foo", new()
{
ProtocolType = "NFSv4",
Remark = "test",
Size = 500,
StorageType = "Basic",
Tag = "tf-acc",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.UfsVolume;
import com.pulumi.ucloud.UfsVolumeArgs;
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 UfsVolume("foo", UfsVolumeArgs.builder()
.protocolType("NFSv4")
.remark("test")
.size(500)
.storageType("Basic")
.tag("tf-acc")
.build());
}
}
resources:
foo:
type: ucloud:UfsVolume
properties:
protocolType: NFSv4
remark: test
size: 500
storageType: Basic
tag: tf-acc
Create UfsVolume Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UfsVolume(name: string, args: UfsVolumeArgs, opts?: CustomResourceOptions);
@overload
def UfsVolume(resource_name: str,
args: UfsVolumeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UfsVolume(resource_name: str,
opts: Optional[ResourceOptions] = None,
protocol_type: Optional[str] = None,
size: Optional[float] = None,
storage_type: Optional[str] = None,
charge_type: Optional[str] = None,
duration: Optional[float] = None,
name: Optional[str] = None,
remark: Optional[str] = None,
tag: Optional[str] = None,
ufs_volume_id: Optional[str] = None)
func NewUfsVolume(ctx *Context, name string, args UfsVolumeArgs, opts ...ResourceOption) (*UfsVolume, error)
public UfsVolume(string name, UfsVolumeArgs args, CustomResourceOptions? opts = null)
public UfsVolume(String name, UfsVolumeArgs args)
public UfsVolume(String name, UfsVolumeArgs args, CustomResourceOptions options)
type: ucloud:UfsVolume
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 UfsVolumeArgs
- 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 UfsVolumeArgs
- 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 UfsVolumeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UfsVolumeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UfsVolumeArgs
- 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 ufsVolumeResource = new Ucloud.UfsVolume("ufsVolumeResource", new()
{
ProtocolType = "string",
Size = 0,
StorageType = "string",
ChargeType = "string",
Duration = 0,
Name = "string",
Remark = "string",
Tag = "string",
UfsVolumeId = "string",
});
example, err := ucloud.NewUfsVolume(ctx, "ufsVolumeResource", &ucloud.UfsVolumeArgs{
ProtocolType: pulumi.String("string"),
Size: pulumi.Float64(0),
StorageType: pulumi.String("string"),
ChargeType: pulumi.String("string"),
Duration: pulumi.Float64(0),
Name: pulumi.String("string"),
Remark: pulumi.String("string"),
Tag: pulumi.String("string"),
UfsVolumeId: pulumi.String("string"),
})
var ufsVolumeResource = new UfsVolume("ufsVolumeResource", UfsVolumeArgs.builder()
.protocolType("string")
.size(0)
.storageType("string")
.chargeType("string")
.duration(0)
.name("string")
.remark("string")
.tag("string")
.ufsVolumeId("string")
.build());
ufs_volume_resource = ucloud.UfsVolume("ufsVolumeResource",
protocol_type="string",
size=0,
storage_type="string",
charge_type="string",
duration=0,
name="string",
remark="string",
tag="string",
ufs_volume_id="string")
const ufsVolumeResource = new ucloud.UfsVolume("ufsVolumeResource", {
protocolType: "string",
size: 0,
storageType: "string",
chargeType: "string",
duration: 0,
name: "string",
remark: "string",
tag: "string",
ufsVolumeId: "string",
});
type: ucloud:UfsVolume
properties:
chargeType: string
duration: 0
name: string
protocolType: string
remark: string
size: 0
storageType: string
tag: string
ufsVolumeId: string
UfsVolume 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 UfsVolume resource accepts the following input properties:
- Protocol
Type string - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - Size double
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - Storage
Type string - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Duration double
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Name string
- Remark string
- The remarks of instance. (Default:
""
). - Tag string
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Ufs
Volume stringId - The ID of the resource UFS Volume.
- Protocol
Type string - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - Size float64
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - Storage
Type string - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Duration float64
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Name string
- Remark string
- The remarks of instance. (Default:
""
). - Tag string
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Ufs
Volume stringId - The ID of the resource UFS Volume.
- protocol
Type String - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - size Double
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - storage
Type String - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration Double
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - name String
- remark String
- The remarks of instance. (Default:
""
). - tag String
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - ufs
Volume StringId - The ID of the resource UFS Volume.
- protocol
Type string - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - size number
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - storage
Type string - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration number
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - name string
- remark string
- The remarks of instance. (Default:
""
). - tag string
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - ufs
Volume stringId - The ID of the resource UFS Volume.
- protocol_
type str - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - size float
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - storage_
type str - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - charge_
type str - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration float
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - name str
- remark str
- The remarks of instance. (Default:
""
). - tag str
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - ufs_
volume_ strid - The ID of the resource UFS Volume.
- protocol
Type String - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - size Number
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - storage
Type String - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration Number
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - name String
- remark String
- The remarks of instance. (Default:
""
). - tag String
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - ufs
Volume StringId - The ID of the resource UFS Volume.
Outputs
All input properties are implicitly available as output properties. Additionally, the UfsVolume resource produces the following output properties:
- Create
Time string - The time of creation of UFS Volume, formatted in RFC3339 time string.
- Expire
Time string - The expiration time of UFS Volume, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The time of creation of UFS Volume, formatted in RFC3339 time string.
- Expire
Time string - The expiration time of UFS Volume, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The time of creation of UFS Volume, formatted in RFC3339 time string.
- expire
Time String - The expiration time of UFS Volume, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The time of creation of UFS Volume, formatted in RFC3339 time string.
- expire
Time string - The expiration time of UFS Volume, formatted in RFC3339 time string.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The time of creation of UFS Volume, formatted in RFC3339 time string.
- expire_
time str - The expiration time of UFS Volume, formatted in RFC3339 time string.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The time of creation of UFS Volume, formatted in RFC3339 time string.
- expire
Time String - The expiration time of UFS Volume, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing UfsVolume Resource
Get an existing UfsVolume 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?: UfsVolumeState, opts?: CustomResourceOptions): UfsVolume
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
charge_type: Optional[str] = None,
create_time: Optional[str] = None,
duration: Optional[float] = None,
expire_time: Optional[str] = None,
name: Optional[str] = None,
protocol_type: Optional[str] = None,
remark: Optional[str] = None,
size: Optional[float] = None,
storage_type: Optional[str] = None,
tag: Optional[str] = None,
ufs_volume_id: Optional[str] = None) -> UfsVolume
func GetUfsVolume(ctx *Context, name string, id IDInput, state *UfsVolumeState, opts ...ResourceOption) (*UfsVolume, error)
public static UfsVolume Get(string name, Input<string> id, UfsVolumeState? state, CustomResourceOptions? opts = null)
public static UfsVolume get(String name, Output<String> id, UfsVolumeState state, CustomResourceOptions options)
resources: _: type: ucloud:UfsVolume 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.
- Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Create
Time string - The time of creation of UFS Volume, formatted in RFC3339 time string.
- Duration double
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Expire
Time string - The expiration time of UFS Volume, formatted in RFC3339 time string.
- Name string
- Protocol
Type string - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - Remark string
- The remarks of instance. (Default:
""
). - Size double
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - Storage
Type string - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - Tag string
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Ufs
Volume stringId - The ID of the resource UFS Volume.
- Charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Create
Time string - The time of creation of UFS Volume, formatted in RFC3339 time string.
- Duration float64
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Expire
Time string - The expiration time of UFS Volume, formatted in RFC3339 time string.
- Name string
- Protocol
Type string - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - Remark string
- The remarks of instance. (Default:
""
). - Size float64
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - Storage
Type string - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - Tag string
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Ufs
Volume stringId - The ID of the resource UFS Volume.
- charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create
Time String - The time of creation of UFS Volume, formatted in RFC3339 time string.
- duration Double
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - expire
Time String - The expiration time of UFS Volume, formatted in RFC3339 time string.
- name String
- protocol
Type String - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - remark String
- The remarks of instance. (Default:
""
). - size Double
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - storage
Type String - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - tag String
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - ufs
Volume StringId - The ID of the resource UFS Volume.
- charge
Type string - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create
Time string - The time of creation of UFS Volume, formatted in RFC3339 time string.
- duration number
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - expire
Time string - The expiration time of UFS Volume, formatted in RFC3339 time string.
- name string
- protocol
Type string - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - remark string
- The remarks of instance. (Default:
""
). - size number
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - storage
Type string - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - tag string
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - ufs
Volume stringId - The ID of the resource UFS Volume.
- charge_
type str - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create_
time str - The time of creation of UFS Volume, formatted in RFC3339 time string.
- duration float
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - expire_
time str - The expiration time of UFS Volume, formatted in RFC3339 time string.
- name str
- protocol_
type str - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - remark str
- The remarks of instance. (Default:
""
). - size float
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - storage_
type str - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - tag str
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - ufs_
volume_ strid - The ID of the resource UFS Volume.
- charge
Type String - The charge type of instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create
Time String - The time of creation of UFS Volume, formatted in RFC3339 time string.
- duration Number
- The duration that you will buy the instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - expire
Time String - The expiration time of UFS Volume, formatted in RFC3339 time string.
- name String
- protocol
Type String - The protocol_type of the UFS Volume. Possible values are:
NFSv3
,NFSv4
. - remark String
- The remarks of instance. (Default:
""
). - size Number
- The size of the UFS Volume, measured in GB (GigaByte), 500 - 100000 for
Basic
storage type, 100 - 20000 forAdvanced
storage type. - storage
Type String - The storage type of the UFS Volume. Possible values are:
Basic
,Advanced
. - tag String
- A tag assigned to UFS Volume, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - ufs
Volume StringId - The ID of the resource UFS Volume.
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloud
Terraform Provider.