alicloud.cloudstoragegateway.GatewayCacheDisk
Explore with Pulumi AI
Provides a Cloud Storage Gateway Gateway Cache Disk resource.
For information about Cloud Storage Gateway Gateway Cache Disk and how to use it, see What is Gateway Cache Disk.
NOTE: Available since v1.144.0.
Create GatewayCacheDisk Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayCacheDisk(name: string, args: GatewayCacheDiskArgs, opts?: CustomResourceOptions);
@overload
def GatewayCacheDisk(resource_name: str,
args: GatewayCacheDiskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayCacheDisk(resource_name: str,
opts: Optional[ResourceOptions] = None,
cache_disk_size_in_gb: Optional[int] = None,
gateway_id: Optional[str] = None,
cache_disk_category: Optional[str] = None)
func NewGatewayCacheDisk(ctx *Context, name string, args GatewayCacheDiskArgs, opts ...ResourceOption) (*GatewayCacheDisk, error)
public GatewayCacheDisk(string name, GatewayCacheDiskArgs args, CustomResourceOptions? opts = null)
public GatewayCacheDisk(String name, GatewayCacheDiskArgs args)
public GatewayCacheDisk(String name, GatewayCacheDiskArgs args, CustomResourceOptions options)
type: alicloud:cloudstoragegateway:GatewayCacheDisk
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 GatewayCacheDiskArgs
- 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 GatewayCacheDiskArgs
- 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 GatewayCacheDiskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayCacheDiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayCacheDiskArgs
- 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 gatewayCacheDiskResource = new AliCloud.CloudStorageGateway.GatewayCacheDisk("gatewayCacheDiskResource", new()
{
CacheDiskSizeInGb = 0,
GatewayId = "string",
CacheDiskCategory = "string",
});
example, err := cloudstoragegateway.NewGatewayCacheDisk(ctx, "gatewayCacheDiskResource", &cloudstoragegateway.GatewayCacheDiskArgs{
CacheDiskSizeInGb: pulumi.Int(0),
GatewayId: pulumi.String("string"),
CacheDiskCategory: pulumi.String("string"),
})
var gatewayCacheDiskResource = new GatewayCacheDisk("gatewayCacheDiskResource", GatewayCacheDiskArgs.builder()
.cacheDiskSizeInGb(0)
.gatewayId("string")
.cacheDiskCategory("string")
.build());
gateway_cache_disk_resource = alicloud.cloudstoragegateway.GatewayCacheDisk("gatewayCacheDiskResource",
cache_disk_size_in_gb=0,
gateway_id="string",
cache_disk_category="string")
const gatewayCacheDiskResource = new alicloud.cloudstoragegateway.GatewayCacheDisk("gatewayCacheDiskResource", {
cacheDiskSizeInGb: 0,
gatewayId: "string",
cacheDiskCategory: "string",
});
type: alicloud:cloudstoragegateway:GatewayCacheDisk
properties:
cacheDiskCategory: string
cacheDiskSizeInGb: 0
gatewayId: string
GatewayCacheDisk 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 GatewayCacheDisk resource accepts the following input properties:
- Cache
Disk intSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - Gateway
Id string - The ID of the gateway.
- Cache
Disk stringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- Cache
Disk intSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - Gateway
Id string - The ID of the gateway.
- Cache
Disk stringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- cache
Disk IntegerSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - gateway
Id String - The ID of the gateway.
- cache
Disk StringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- cache
Disk numberSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - gateway
Id string - The ID of the gateway.
- cache
Disk stringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- cache_
disk_ intsize_ in_ gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - gateway_
id str - The ID of the gateway.
- cache_
disk_ strcategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
- cache
Disk NumberSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - gateway
Id String - The ID of the gateway.
- cache
Disk StringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayCacheDisk resource produces the following output properties:
- Cache
Id string - The ID of the cache.
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
File stringPath - The cache disk inside the device name.
- Status int
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- Cache
Id string - The ID of the cache.
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
File stringPath - The cache disk inside the device name.
- Status int
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- cache
Id String - The ID of the cache.
- id String
- The provider-assigned unique ID for this managed resource.
- local
File StringPath - The cache disk inside the device name.
- status Integer
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- cache
Id string - The ID of the cache.
- id string
- The provider-assigned unique ID for this managed resource.
- local
File stringPath - The cache disk inside the device name.
- status number
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- cache_
id str - The ID of the cache.
- id str
- The provider-assigned unique ID for this managed resource.
- local_
file_ strpath - The cache disk inside the device name.
- status int
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- cache
Id String - The ID of the cache.
- id String
- The provider-assigned unique ID for this managed resource.
- local
File StringPath - The cache disk inside the device name.
- status Number
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
Look up Existing GatewayCacheDisk Resource
Get an existing GatewayCacheDisk 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?: GatewayCacheDiskState, opts?: CustomResourceOptions): GatewayCacheDisk
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cache_disk_category: Optional[str] = None,
cache_disk_size_in_gb: Optional[int] = None,
cache_id: Optional[str] = None,
gateway_id: Optional[str] = None,
local_file_path: Optional[str] = None,
status: Optional[int] = None) -> GatewayCacheDisk
func GetGatewayCacheDisk(ctx *Context, name string, id IDInput, state *GatewayCacheDiskState, opts ...ResourceOption) (*GatewayCacheDisk, error)
public static GatewayCacheDisk Get(string name, Input<string> id, GatewayCacheDiskState? state, CustomResourceOptions? opts = null)
public static GatewayCacheDisk get(String name, Output<String> id, GatewayCacheDiskState 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.
- Cache
Disk stringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
. - Cache
Disk intSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - Cache
Id string - The ID of the cache.
- Gateway
Id string - The ID of the gateway.
- Local
File stringPath - The cache disk inside the device name.
- Status int
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- Cache
Disk stringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
. - Cache
Disk intSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - Cache
Id string - The ID of the cache.
- Gateway
Id string - The ID of the gateway.
- Local
File stringPath - The cache disk inside the device name.
- Status int
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- cache
Disk StringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
. - cache
Disk IntegerSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - cache
Id String - The ID of the cache.
- gateway
Id String - The ID of the gateway.
- local
File StringPath - The cache disk inside the device name.
- status Integer
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- cache
Disk stringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
. - cache
Disk numberSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - cache
Id string - The ID of the cache.
- gateway
Id string - The ID of the gateway.
- local
File stringPath - The cache disk inside the device name.
- status number
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- cache_
disk_ strcategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
. - cache_
disk_ intsize_ in_ gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - cache_
id str - The ID of the cache.
- gateway_
id str - The ID of the gateway.
- local_
file_ strpath - The cache disk inside the device name.
- status int
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
- cache
Disk StringCategory - The cache disk type. Valid values:
cloud_efficiency
,cloud_ssd
. - cache
Disk NumberSize In Gb - size of the cache disk. Unit:
GB
. The upper limit of the basic gateway cache disk is1
TB (1024
GB), that of the standard gateway is2
TB (2048
GB), and that of other gateway cache disks is32
TB (32768
GB). The lower limit for the file gateway cache disk capacity is40
GB, and the lower limit for the block gateway cache disk capacity is20
GB. - cache
Id String - The ID of the cache.
- gateway
Id String - The ID of the gateway.
- local
File StringPath - The cache disk inside the device name.
- status Number
- The status of the resource. Valid values:
0
,1
,2
.0
: Normal.1
: Is about to expire.2
: Has expired.
Import
Cloud Storage Gateway Gateway Cache Disk can be imported using the id, e.g.
$ pulumi import alicloud:cloudstoragegateway/gatewayCacheDisk:GatewayCacheDisk example <gateway_id>:<cache_id>:<local_file_path>
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.