Documentation
¶
Index ¶
- type GetSnapshotPoliciesArgs
- type GetSnapshotPoliciesOutputArgs
- type GetSnapshotPoliciesResult
- type GetSnapshotPoliciesResultOutput
- func (GetSnapshotPoliciesResultOutput) ElementType() reflect.Type
- func (o GetSnapshotPoliciesResultOutput) Id() pulumi.StringOutput
- func (o GetSnapshotPoliciesResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetSnapshotPoliciesResultOutput) SnapshotPolicyId() pulumi.StringPtrOutput
- func (o GetSnapshotPoliciesResultOutput) SnapshotPolicyLists() GetSnapshotPoliciesSnapshotPolicyListArrayOutput
- func (o GetSnapshotPoliciesResultOutput) SnapshotPolicyName() pulumi.StringPtrOutput
- func (o GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutput() GetSnapshotPoliciesResultOutput
- func (o GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutputWithContext(ctx context.Context) GetSnapshotPoliciesResultOutput
- type GetSnapshotPoliciesSnapshotPolicyList
- type GetSnapshotPoliciesSnapshotPolicyListArgs
- func (GetSnapshotPoliciesSnapshotPolicyListArgs) ElementType() reflect.Type
- func (i GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutput() GetSnapshotPoliciesSnapshotPolicyListOutput
- func (i GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListOutput
- type GetSnapshotPoliciesSnapshotPolicyListArray
- func (GetSnapshotPoliciesSnapshotPolicyListArray) ElementType() reflect.Type
- func (i GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput() GetSnapshotPoliciesSnapshotPolicyListArrayOutput
- func (i GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListArrayOutput
- type GetSnapshotPoliciesSnapshotPolicyListArrayInput
- type GetSnapshotPoliciesSnapshotPolicyListArrayOutput
- func (GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ElementType() reflect.Type
- func (o GetSnapshotPoliciesSnapshotPolicyListArrayOutput) Index(i pulumi.IntInput) GetSnapshotPoliciesSnapshotPolicyListOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput() GetSnapshotPoliciesSnapshotPolicyListArrayOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListArrayOutput
- type GetSnapshotPoliciesSnapshotPolicyListInput
- type GetSnapshotPoliciesSnapshotPolicyListOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) AttachedStorageIds() pulumi.StringArrayOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) CreateTime() pulumi.StringOutput
- func (GetSnapshotPoliciesSnapshotPolicyListOutput) ElementType() reflect.Type
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) RepeatHours() pulumi.IntArrayOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) RepeatWeekdays() pulumi.IntArrayOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) RetentionDays() pulumi.IntOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) SnapshotPolicyId() pulumi.StringOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) SnapshotPolicyName() pulumi.StringOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) Status() pulumi.StringOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutput() GetSnapshotPoliciesSnapshotPolicyListOutput
- func (o GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListOutput
- type GetSnapshotsArgs
- type GetSnapshotsOutputArgs
- type GetSnapshotsResult
- type GetSnapshotsResultOutput
- func (o GetSnapshotsResultOutput) AvailabilityZone() pulumi.StringPtrOutput
- func (GetSnapshotsResultOutput) ElementType() reflect.Type
- func (o GetSnapshotsResultOutput) Id() pulumi.StringOutput
- func (o GetSnapshotsResultOutput) ProjectId() pulumi.IntPtrOutput
- func (o GetSnapshotsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetSnapshotsResultOutput) SnapshotId() pulumi.StringPtrOutput
- func (o GetSnapshotsResultOutput) SnapshotLists() GetSnapshotsSnapshotListArrayOutput
- func (o GetSnapshotsResultOutput) SnapshotName() pulumi.StringPtrOutput
- func (o GetSnapshotsResultOutput) StorageId() pulumi.StringPtrOutput
- func (o GetSnapshotsResultOutput) StorageUsage() pulumi.StringPtrOutput
- func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutput() GetSnapshotsResultOutput
- func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext(ctx context.Context) GetSnapshotsResultOutput
- type GetSnapshotsSnapshotList
- type GetSnapshotsSnapshotListArgs
- func (GetSnapshotsSnapshotListArgs) ElementType() reflect.Type
- func (i GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutput() GetSnapshotsSnapshotListOutput
- func (i GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListOutput
- type GetSnapshotsSnapshotListArray
- func (GetSnapshotsSnapshotListArray) ElementType() reflect.Type
- func (i GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutput() GetSnapshotsSnapshotListArrayOutput
- func (i GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListArrayOutput
- type GetSnapshotsSnapshotListArrayInput
- type GetSnapshotsSnapshotListArrayOutput
- func (GetSnapshotsSnapshotListArrayOutput) ElementType() reflect.Type
- func (o GetSnapshotsSnapshotListArrayOutput) Index(i pulumi.IntInput) GetSnapshotsSnapshotListOutput
- func (o GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutput() GetSnapshotsSnapshotListArrayOutput
- func (o GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListArrayOutput
- type GetSnapshotsSnapshotListInput
- type GetSnapshotsSnapshotListOutput
- func (o GetSnapshotsSnapshotListOutput) AvailabilityZone() pulumi.StringOutput
- func (o GetSnapshotsSnapshotListOutput) CreateTime() pulumi.StringOutput
- func (GetSnapshotsSnapshotListOutput) ElementType() reflect.Type
- func (o GetSnapshotsSnapshotListOutput) Encrypt() pulumi.BoolOutput
- func (o GetSnapshotsSnapshotListOutput) Percent() pulumi.IntOutput
- func (o GetSnapshotsSnapshotListOutput) ProjectId() pulumi.IntOutput
- func (o GetSnapshotsSnapshotListOutput) SnapshotId() pulumi.StringOutput
- func (o GetSnapshotsSnapshotListOutput) SnapshotName() pulumi.StringOutput
- func (o GetSnapshotsSnapshotListOutput) StorageId() pulumi.StringOutput
- func (o GetSnapshotsSnapshotListOutput) StorageSize() pulumi.IntOutput
- func (o GetSnapshotsSnapshotListOutput) StorageUsage() pulumi.StringOutput
- func (o GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutput() GetSnapshotsSnapshotListOutput
- func (o GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListOutput
- type GetStoragesArgs
- type GetStoragesOutputArgs
- type GetStoragesResult
- type GetStoragesResultOutput
- func (o GetStoragesResultOutput) AvailabilityZone() pulumi.StringPtrOutput
- func (o GetStoragesResultOutput) ChargeTypes() pulumi.StringArrayOutput
- func (GetStoragesResultOutput) ElementType() reflect.Type
- func (o GetStoragesResultOutput) Id() pulumi.StringOutput
- func (o GetStoragesResultOutput) InstanceIps() pulumi.StringArrayOutput
- func (o GetStoragesResultOutput) InstanceNames() pulumi.StringArrayOutput
- func (o GetStoragesResultOutput) Portable() pulumi.BoolPtrOutput
- func (o GetStoragesResultOutput) ProjectId() pulumi.IntPtrOutput
- func (o GetStoragesResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetStoragesResultOutput) StorageId() pulumi.StringPtrOutput
- func (o GetStoragesResultOutput) StorageLists() GetStoragesStorageListArrayOutput
- func (o GetStoragesResultOutput) StorageName() pulumi.StringPtrOutput
- func (o GetStoragesResultOutput) StorageStates() pulumi.StringArrayOutput
- func (o GetStoragesResultOutput) StorageType() pulumi.StringPtrOutput
- func (o GetStoragesResultOutput) StorageUsage() pulumi.StringPtrOutput
- func (o GetStoragesResultOutput) TagKeys() pulumi.StringArrayOutput
- func (o GetStoragesResultOutput) TagValues() pulumi.StringArrayOutput
- func (o GetStoragesResultOutput) ToGetStoragesResultOutput() GetStoragesResultOutput
- func (o GetStoragesResultOutput) ToGetStoragesResultOutputWithContext(ctx context.Context) GetStoragesResultOutput
- type GetStoragesSetArgs
- type GetStoragesSetOutputArgs
- type GetStoragesSetResult
- type GetStoragesSetResultOutput
- func (o GetStoragesSetResultOutput) AvailabilityZone() pulumi.StringPtrOutput
- func (o GetStoragesSetResultOutput) ChargeTypes() pulumi.StringArrayOutput
- func (GetStoragesSetResultOutput) ElementType() reflect.Type
- func (o GetStoragesSetResultOutput) Id() pulumi.StringOutput
- func (o GetStoragesSetResultOutput) InstanceIps() pulumi.StringArrayOutput
- func (o GetStoragesSetResultOutput) InstanceNames() pulumi.StringArrayOutput
- func (o GetStoragesSetResultOutput) Portable() pulumi.BoolPtrOutput
- func (o GetStoragesSetResultOutput) ProjectId() pulumi.IntPtrOutput
- func (o GetStoragesSetResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetStoragesSetResultOutput) StorageId() pulumi.StringPtrOutput
- func (o GetStoragesSetResultOutput) StorageLists() GetStoragesSetStorageListArrayOutput
- func (o GetStoragesSetResultOutput) StorageName() pulumi.StringPtrOutput
- func (o GetStoragesSetResultOutput) StorageStates() pulumi.StringArrayOutput
- func (o GetStoragesSetResultOutput) StorageType() pulumi.StringPtrOutput
- func (o GetStoragesSetResultOutput) StorageUsage() pulumi.StringPtrOutput
- func (o GetStoragesSetResultOutput) TagKeys() pulumi.StringArrayOutput
- func (o GetStoragesSetResultOutput) TagValues() pulumi.StringArrayOutput
- func (o GetStoragesSetResultOutput) ToGetStoragesSetResultOutput() GetStoragesSetResultOutput
- func (o GetStoragesSetResultOutput) ToGetStoragesSetResultOutputWithContext(ctx context.Context) GetStoragesSetResultOutput
- type GetStoragesSetStorageList
- type GetStoragesSetStorageListArgs
- func (GetStoragesSetStorageListArgs) ElementType() reflect.Type
- func (i GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutput() GetStoragesSetStorageListOutput
- func (i GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutputWithContext(ctx context.Context) GetStoragesSetStorageListOutput
- type GetStoragesSetStorageListArray
- func (GetStoragesSetStorageListArray) ElementType() reflect.Type
- func (i GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutput() GetStoragesSetStorageListArrayOutput
- func (i GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutputWithContext(ctx context.Context) GetStoragesSetStorageListArrayOutput
- type GetStoragesSetStorageListArrayInput
- type GetStoragesSetStorageListArrayOutput
- func (GetStoragesSetStorageListArrayOutput) ElementType() reflect.Type
- func (o GetStoragesSetStorageListArrayOutput) Index(i pulumi.IntInput) GetStoragesSetStorageListOutput
- func (o GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutput() GetStoragesSetStorageListArrayOutput
- func (o GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutputWithContext(ctx context.Context) GetStoragesSetStorageListArrayOutput
- type GetStoragesSetStorageListInput
- type GetStoragesSetStorageListOutput
- func (o GetStoragesSetStorageListOutput) Attached() pulumi.BoolOutput
- func (o GetStoragesSetStorageListOutput) AvailabilityZone() pulumi.StringOutput
- func (o GetStoragesSetStorageListOutput) ChargeType() pulumi.StringOutput
- func (o GetStoragesSetStorageListOutput) CreateTime() pulumi.StringOutput
- func (GetStoragesSetStorageListOutput) ElementType() reflect.Type
- func (o GetStoragesSetStorageListOutput) Encrypt() pulumi.BoolOutput
- func (o GetStoragesSetStorageListOutput) InstanceId() pulumi.StringOutput
- func (o GetStoragesSetStorageListOutput) PrepaidRenewFlag() pulumi.StringOutput
- func (o GetStoragesSetStorageListOutput) ProjectId() pulumi.IntOutput
- func (o GetStoragesSetStorageListOutput) Status() pulumi.StringOutput
- func (o GetStoragesSetStorageListOutput) StorageId() pulumi.StringOutput
- func (o GetStoragesSetStorageListOutput) StorageName() pulumi.StringOutput
- func (o GetStoragesSetStorageListOutput) StorageSize() pulumi.IntOutput
- func (o GetStoragesSetStorageListOutput) StorageType() pulumi.StringOutput
- func (o GetStoragesSetStorageListOutput) StorageUsage() pulumi.StringOutput
- func (o GetStoragesSetStorageListOutput) Tags() pulumi.MapOutput
- func (o GetStoragesSetStorageListOutput) ThroughputPerformance() pulumi.IntOutput
- func (o GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutput() GetStoragesSetStorageListOutput
- func (o GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutputWithContext(ctx context.Context) GetStoragesSetStorageListOutput
- type GetStoragesStorageList
- type GetStoragesStorageListArgs
- type GetStoragesStorageListArray
- func (GetStoragesStorageListArray) ElementType() reflect.Type
- func (i GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutput() GetStoragesStorageListArrayOutput
- func (i GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutputWithContext(ctx context.Context) GetStoragesStorageListArrayOutput
- type GetStoragesStorageListArrayInput
- type GetStoragesStorageListArrayOutput
- func (GetStoragesStorageListArrayOutput) ElementType() reflect.Type
- func (o GetStoragesStorageListArrayOutput) Index(i pulumi.IntInput) GetStoragesStorageListOutput
- func (o GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutput() GetStoragesStorageListArrayOutput
- func (o GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutputWithContext(ctx context.Context) GetStoragesStorageListArrayOutput
- type GetStoragesStorageListInput
- type GetStoragesStorageListOutput
- func (o GetStoragesStorageListOutput) Attached() pulumi.BoolOutput
- func (o GetStoragesStorageListOutput) AvailabilityZone() pulumi.StringOutput
- func (o GetStoragesStorageListOutput) ChargeType() pulumi.StringOutput
- func (o GetStoragesStorageListOutput) CreateTime() pulumi.StringOutput
- func (GetStoragesStorageListOutput) ElementType() reflect.Type
- func (o GetStoragesStorageListOutput) Encrypt() pulumi.BoolOutput
- func (o GetStoragesStorageListOutput) InstanceId() pulumi.StringOutput
- func (o GetStoragesStorageListOutput) PrepaidRenewFlag() pulumi.StringOutput
- func (o GetStoragesStorageListOutput) ProjectId() pulumi.IntOutput
- func (o GetStoragesStorageListOutput) Status() pulumi.StringOutput
- func (o GetStoragesStorageListOutput) StorageId() pulumi.StringOutput
- func (o GetStoragesStorageListOutput) StorageName() pulumi.StringOutput
- func (o GetStoragesStorageListOutput) StorageSize() pulumi.IntOutput
- func (o GetStoragesStorageListOutput) StorageType() pulumi.StringOutput
- func (o GetStoragesStorageListOutput) StorageUsage() pulumi.StringOutput
- func (o GetStoragesStorageListOutput) Tags() pulumi.MapOutput
- func (o GetStoragesStorageListOutput) ThroughputPerformance() pulumi.IntOutput
- func (o GetStoragesStorageListOutput) ToGetStoragesStorageListOutput() GetStoragesStorageListOutput
- func (o GetStoragesStorageListOutput) ToGetStoragesStorageListOutputWithContext(ctx context.Context) GetStoragesStorageListOutput
- type Snapshot
- type SnapshotArgs
- type SnapshotArray
- type SnapshotArrayInput
- type SnapshotArrayOutput
- type SnapshotInput
- type SnapshotMap
- type SnapshotMapInput
- type SnapshotMapOutput
- type SnapshotOutput
- func (o SnapshotOutput) CreateTime() pulumi.StringOutput
- func (o SnapshotOutput) DiskType() pulumi.StringOutput
- func (SnapshotOutput) ElementType() reflect.Type
- func (o SnapshotOutput) Percent() pulumi.IntOutput
- func (o SnapshotOutput) SnapshotName() pulumi.StringOutput
- func (o SnapshotOutput) SnapshotStatus() pulumi.StringOutput
- func (o SnapshotOutput) StorageId() pulumi.StringOutput
- func (o SnapshotOutput) StorageSize() pulumi.IntOutput
- func (o SnapshotOutput) ToSnapshotOutput() SnapshotOutput
- func (o SnapshotOutput) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput
- type SnapshotPolicy
- type SnapshotPolicyArgs
- type SnapshotPolicyArray
- type SnapshotPolicyArrayInput
- type SnapshotPolicyArrayOutput
- func (SnapshotPolicyArrayOutput) ElementType() reflect.Type
- func (o SnapshotPolicyArrayOutput) Index(i pulumi.IntInput) SnapshotPolicyOutput
- func (o SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput
- func (o SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutputWithContext(ctx context.Context) SnapshotPolicyArrayOutput
- type SnapshotPolicyAttachment
- type SnapshotPolicyAttachmentArgs
- type SnapshotPolicyAttachmentArray
- func (SnapshotPolicyAttachmentArray) ElementType() reflect.Type
- func (i SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutput() SnapshotPolicyAttachmentArrayOutput
- func (i SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentArrayOutput
- type SnapshotPolicyAttachmentArrayInput
- type SnapshotPolicyAttachmentArrayOutput
- func (SnapshotPolicyAttachmentArrayOutput) ElementType() reflect.Type
- func (o SnapshotPolicyAttachmentArrayOutput) Index(i pulumi.IntInput) SnapshotPolicyAttachmentOutput
- func (o SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutput() SnapshotPolicyAttachmentArrayOutput
- func (o SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentArrayOutput
- type SnapshotPolicyAttachmentInput
- type SnapshotPolicyAttachmentMap
- func (SnapshotPolicyAttachmentMap) ElementType() reflect.Type
- func (i SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutput() SnapshotPolicyAttachmentMapOutput
- func (i SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentMapOutput
- type SnapshotPolicyAttachmentMapInput
- type SnapshotPolicyAttachmentMapOutput
- func (SnapshotPolicyAttachmentMapOutput) ElementType() reflect.Type
- func (o SnapshotPolicyAttachmentMapOutput) MapIndex(k pulumi.StringInput) SnapshotPolicyAttachmentOutput
- func (o SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutput() SnapshotPolicyAttachmentMapOutput
- func (o SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentMapOutput
- type SnapshotPolicyAttachmentOutput
- func (SnapshotPolicyAttachmentOutput) ElementType() reflect.Type
- func (o SnapshotPolicyAttachmentOutput) SnapshotPolicyId() pulumi.StringOutput
- func (o SnapshotPolicyAttachmentOutput) StorageId() pulumi.StringOutput
- func (o SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutput() SnapshotPolicyAttachmentOutput
- func (o SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentOutput
- type SnapshotPolicyAttachmentState
- type SnapshotPolicyInput
- type SnapshotPolicyMap
- type SnapshotPolicyMapInput
- type SnapshotPolicyMapOutput
- func (SnapshotPolicyMapOutput) ElementType() reflect.Type
- func (o SnapshotPolicyMapOutput) MapIndex(k pulumi.StringInput) SnapshotPolicyOutput
- func (o SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput
- func (o SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutputWithContext(ctx context.Context) SnapshotPolicyMapOutput
- type SnapshotPolicyOutput
- func (SnapshotPolicyOutput) ElementType() reflect.Type
- func (o SnapshotPolicyOutput) RepeatHours() pulumi.IntArrayOutput
- func (o SnapshotPolicyOutput) RepeatWeekdays() pulumi.IntArrayOutput
- func (o SnapshotPolicyOutput) RetentionDays() pulumi.IntPtrOutput
- func (o SnapshotPolicyOutput) SnapshotPolicyName() pulumi.StringOutput
- func (o SnapshotPolicyOutput) ToSnapshotPolicyOutput() SnapshotPolicyOutput
- func (o SnapshotPolicyOutput) ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput
- type SnapshotPolicyState
- type SnapshotState
- type Storage
- type StorageArgs
- type StorageArray
- type StorageArrayInput
- type StorageArrayOutput
- type StorageAttachment
- type StorageAttachmentArgs
- type StorageAttachmentArray
- type StorageAttachmentArrayInput
- type StorageAttachmentArrayOutput
- func (StorageAttachmentArrayOutput) ElementType() reflect.Type
- func (o StorageAttachmentArrayOutput) Index(i pulumi.IntInput) StorageAttachmentOutput
- func (o StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutput() StorageAttachmentArrayOutput
- func (o StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutputWithContext(ctx context.Context) StorageAttachmentArrayOutput
- type StorageAttachmentInput
- type StorageAttachmentMap
- type StorageAttachmentMapInput
- type StorageAttachmentMapOutput
- func (StorageAttachmentMapOutput) ElementType() reflect.Type
- func (o StorageAttachmentMapOutput) MapIndex(k pulumi.StringInput) StorageAttachmentOutput
- func (o StorageAttachmentMapOutput) ToStorageAttachmentMapOutput() StorageAttachmentMapOutput
- func (o StorageAttachmentMapOutput) ToStorageAttachmentMapOutputWithContext(ctx context.Context) StorageAttachmentMapOutput
- type StorageAttachmentOutput
- func (StorageAttachmentOutput) ElementType() reflect.Type
- func (o StorageAttachmentOutput) InstanceId() pulumi.StringOutput
- func (o StorageAttachmentOutput) StorageId() pulumi.StringOutput
- func (o StorageAttachmentOutput) ToStorageAttachmentOutput() StorageAttachmentOutput
- func (o StorageAttachmentOutput) ToStorageAttachmentOutputWithContext(ctx context.Context) StorageAttachmentOutput
- type StorageAttachmentState
- type StorageInput
- type StorageMap
- type StorageMapInput
- type StorageMapOutput
- type StorageOutput
- func (o StorageOutput) Attached() pulumi.BoolOutput
- func (o StorageOutput) AvailabilityZone() pulumi.StringOutput
- func (o StorageOutput) ChargeType() pulumi.StringPtrOutput
- func (StorageOutput) ElementType() reflect.Type
- func (o StorageOutput) Encrypt() pulumi.BoolPtrOutput
- func (o StorageOutput) ForceDelete() pulumi.BoolPtrOutput
- func (o StorageOutput) Period() pulumi.IntPtrOutputdeprecated
- func (o StorageOutput) PrepaidPeriod() pulumi.IntOutput
- func (o StorageOutput) PrepaidRenewFlag() pulumi.StringOutput
- func (o StorageOutput) ProjectId() pulumi.IntPtrOutput
- func (o StorageOutput) SnapshotId() pulumi.StringOutput
- func (o StorageOutput) StorageName() pulumi.StringOutput
- func (o StorageOutput) StorageSize() pulumi.IntOutput
- func (o StorageOutput) StorageStatus() pulumi.StringOutput
- func (o StorageOutput) StorageType() pulumi.StringOutput
- func (o StorageOutput) Tags() pulumi.MapOutput
- func (o StorageOutput) ThroughputPerformance() pulumi.IntPtrOutput
- func (o StorageOutput) ToStorageOutput() StorageOutput
- func (o StorageOutput) ToStorageOutputWithContext(ctx context.Context) StorageOutput
- type StorageSet
- type StorageSetArgs
- type StorageSetArray
- type StorageSetArrayInput
- type StorageSetArrayOutput
- func (StorageSetArrayOutput) ElementType() reflect.Type
- func (o StorageSetArrayOutput) Index(i pulumi.IntInput) StorageSetOutput
- func (o StorageSetArrayOutput) ToStorageSetArrayOutput() StorageSetArrayOutput
- func (o StorageSetArrayOutput) ToStorageSetArrayOutputWithContext(ctx context.Context) StorageSetArrayOutput
- type StorageSetAttachment
- type StorageSetAttachmentArgs
- type StorageSetAttachmentArray
- type StorageSetAttachmentArrayInput
- type StorageSetAttachmentArrayOutput
- func (StorageSetAttachmentArrayOutput) ElementType() reflect.Type
- func (o StorageSetAttachmentArrayOutput) Index(i pulumi.IntInput) StorageSetAttachmentOutput
- func (o StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutput() StorageSetAttachmentArrayOutput
- func (o StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutputWithContext(ctx context.Context) StorageSetAttachmentArrayOutput
- type StorageSetAttachmentInput
- type StorageSetAttachmentMap
- type StorageSetAttachmentMapInput
- type StorageSetAttachmentMapOutput
- func (StorageSetAttachmentMapOutput) ElementType() reflect.Type
- func (o StorageSetAttachmentMapOutput) MapIndex(k pulumi.StringInput) StorageSetAttachmentOutput
- func (o StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutput() StorageSetAttachmentMapOutput
- func (o StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutputWithContext(ctx context.Context) StorageSetAttachmentMapOutput
- type StorageSetAttachmentOutput
- func (StorageSetAttachmentOutput) ElementType() reflect.Type
- func (o StorageSetAttachmentOutput) InstanceId() pulumi.StringOutput
- func (o StorageSetAttachmentOutput) StorageId() pulumi.StringOutput
- func (o StorageSetAttachmentOutput) ToStorageSetAttachmentOutput() StorageSetAttachmentOutput
- func (o StorageSetAttachmentOutput) ToStorageSetAttachmentOutputWithContext(ctx context.Context) StorageSetAttachmentOutput
- type StorageSetAttachmentState
- type StorageSetInput
- type StorageSetMap
- type StorageSetMapInput
- type StorageSetMapOutput
- func (StorageSetMapOutput) ElementType() reflect.Type
- func (o StorageSetMapOutput) MapIndex(k pulumi.StringInput) StorageSetOutput
- func (o StorageSetMapOutput) ToStorageSetMapOutput() StorageSetMapOutput
- func (o StorageSetMapOutput) ToStorageSetMapOutputWithContext(ctx context.Context) StorageSetMapOutput
- type StorageSetOutput
- func (o StorageSetOutput) Attached() pulumi.BoolOutput
- func (o StorageSetOutput) AvailabilityZone() pulumi.StringOutput
- func (o StorageSetOutput) ChargeType() pulumi.StringPtrOutput
- func (o StorageSetOutput) DiskCount() pulumi.IntPtrOutput
- func (o StorageSetOutput) DiskIds() pulumi.StringArrayOutput
- func (StorageSetOutput) ElementType() reflect.Type
- func (o StorageSetOutput) Encrypt() pulumi.BoolPtrOutput
- func (o StorageSetOutput) ProjectId() pulumi.IntPtrOutput
- func (o StorageSetOutput) SnapshotId() pulumi.StringOutput
- func (o StorageSetOutput) StorageName() pulumi.StringOutput
- func (o StorageSetOutput) StorageSize() pulumi.IntOutput
- func (o StorageSetOutput) StorageStatus() pulumi.StringOutput
- func (o StorageSetOutput) StorageType() pulumi.StringOutput
- func (o StorageSetOutput) ThroughputPerformance() pulumi.IntPtrOutput
- func (o StorageSetOutput) ToStorageSetOutput() StorageSetOutput
- func (o StorageSetOutput) ToStorageSetOutputWithContext(ctx context.Context) StorageSetOutput
- type StorageSetState
- type StorageState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetSnapshotPoliciesArgs ¶
type GetSnapshotPoliciesArgs struct { // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of the snapshot policy to be queried. SnapshotPolicyId *string `pulumi:"snapshotPolicyId"` // Name of the snapshot policy to be queried. SnapshotPolicyName *string `pulumi:"snapshotPolicyName"` }
A collection of arguments for invoking getSnapshotPolicies.
type GetSnapshotPoliciesOutputArgs ¶
type GetSnapshotPoliciesOutputArgs struct { // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // ID of the snapshot policy to be queried. SnapshotPolicyId pulumi.StringPtrInput `pulumi:"snapshotPolicyId"` // Name of the snapshot policy to be queried. SnapshotPolicyName pulumi.StringPtrInput `pulumi:"snapshotPolicyName"` }
A collection of arguments for invoking getSnapshotPolicies.
func (GetSnapshotPoliciesOutputArgs) ElementType ¶
func (GetSnapshotPoliciesOutputArgs) ElementType() reflect.Type
type GetSnapshotPoliciesResult ¶
type GetSnapshotPoliciesResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of the snapshot policy. SnapshotPolicyId *string `pulumi:"snapshotPolicyId"` // A list of snapshot policy. Each element contains the following attributes: SnapshotPolicyLists []GetSnapshotPoliciesSnapshotPolicyList `pulumi:"snapshotPolicyLists"` // Name of the snapshot policy. SnapshotPolicyName *string `pulumi:"snapshotPolicyName"` }
A collection of values returned by getSnapshotPolicies.
func GetSnapshotPolicies ¶
func GetSnapshotPolicies(ctx *pulumi.Context, args *GetSnapshotPoliciesArgs, opts ...pulumi.InvokeOption) (*GetSnapshotPoliciesResult, error)
Use this data source to query detailed information of CBS snapshot policies.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.GetSnapshotPolicies(ctx, &cbs.GetSnapshotPoliciesArgs{ SnapshotPolicyId: pulumi.StringRef("snap-f3io7adt"), SnapshotPolicyName: pulumi.StringRef("test"), }, nil) if err != nil { return err } return nil }) }
```
type GetSnapshotPoliciesResultOutput ¶
type GetSnapshotPoliciesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSnapshotPolicies.
func GetSnapshotPoliciesOutput ¶
func GetSnapshotPoliciesOutput(ctx *pulumi.Context, args GetSnapshotPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetSnapshotPoliciesResultOutput
func (GetSnapshotPoliciesResultOutput) ElementType ¶
func (GetSnapshotPoliciesResultOutput) ElementType() reflect.Type
func (GetSnapshotPoliciesResultOutput) Id ¶
func (o GetSnapshotPoliciesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSnapshotPoliciesResultOutput) ResultOutputFile ¶
func (o GetSnapshotPoliciesResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetSnapshotPoliciesResultOutput) SnapshotPolicyId ¶
func (o GetSnapshotPoliciesResultOutput) SnapshotPolicyId() pulumi.StringPtrOutput
ID of the snapshot policy.
func (GetSnapshotPoliciesResultOutput) SnapshotPolicyLists ¶
func (o GetSnapshotPoliciesResultOutput) SnapshotPolicyLists() GetSnapshotPoliciesSnapshotPolicyListArrayOutput
A list of snapshot policy. Each element contains the following attributes:
func (GetSnapshotPoliciesResultOutput) SnapshotPolicyName ¶
func (o GetSnapshotPoliciesResultOutput) SnapshotPolicyName() pulumi.StringPtrOutput
Name of the snapshot policy.
func (GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutput ¶
func (o GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutput() GetSnapshotPoliciesResultOutput
func (GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutputWithContext ¶
func (o GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutputWithContext(ctx context.Context) GetSnapshotPoliciesResultOutput
type GetSnapshotPoliciesSnapshotPolicyList ¶
type GetSnapshotPoliciesSnapshotPolicyList struct { // Storage IDs that the snapshot policy attached. AttachedStorageIds []string `pulumi:"attachedStorageIds"` // Create time of the snapshot policy. CreateTime string `pulumi:"createTime"` // Trigger hours of periodic snapshot. RepeatHours []int `pulumi:"repeatHours"` // Trigger days of periodic snapshot. RepeatWeekdays []int `pulumi:"repeatWeekdays"` // Retention days of the snapshot. RetentionDays int `pulumi:"retentionDays"` // ID of the snapshot policy to be queried. SnapshotPolicyId string `pulumi:"snapshotPolicyId"` // Name of the snapshot policy to be queried. SnapshotPolicyName string `pulumi:"snapshotPolicyName"` // Status of the snapshot policy. Status string `pulumi:"status"` }
type GetSnapshotPoliciesSnapshotPolicyListArgs ¶
type GetSnapshotPoliciesSnapshotPolicyListArgs struct { // Storage IDs that the snapshot policy attached. AttachedStorageIds pulumi.StringArrayInput `pulumi:"attachedStorageIds"` // Create time of the snapshot policy. CreateTime pulumi.StringInput `pulumi:"createTime"` // Trigger hours of periodic snapshot. RepeatHours pulumi.IntArrayInput `pulumi:"repeatHours"` // Trigger days of periodic snapshot. RepeatWeekdays pulumi.IntArrayInput `pulumi:"repeatWeekdays"` // Retention days of the snapshot. RetentionDays pulumi.IntInput `pulumi:"retentionDays"` // ID of the snapshot policy to be queried. SnapshotPolicyId pulumi.StringInput `pulumi:"snapshotPolicyId"` // Name of the snapshot policy to be queried. SnapshotPolicyName pulumi.StringInput `pulumi:"snapshotPolicyName"` // Status of the snapshot policy. Status pulumi.StringInput `pulumi:"status"` }
func (GetSnapshotPoliciesSnapshotPolicyListArgs) ElementType ¶
func (GetSnapshotPoliciesSnapshotPolicyListArgs) ElementType() reflect.Type
func (GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutput ¶
func (i GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutput() GetSnapshotPoliciesSnapshotPolicyListOutput
func (GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext ¶
func (i GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListOutput
type GetSnapshotPoliciesSnapshotPolicyListArray ¶
type GetSnapshotPoliciesSnapshotPolicyListArray []GetSnapshotPoliciesSnapshotPolicyListInput
func (GetSnapshotPoliciesSnapshotPolicyListArray) ElementType ¶
func (GetSnapshotPoliciesSnapshotPolicyListArray) ElementType() reflect.Type
func (GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput ¶
func (i GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput() GetSnapshotPoliciesSnapshotPolicyListArrayOutput
func (GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext ¶
func (i GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListArrayOutput
type GetSnapshotPoliciesSnapshotPolicyListArrayInput ¶
type GetSnapshotPoliciesSnapshotPolicyListArrayInput interface { pulumi.Input ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput() GetSnapshotPoliciesSnapshotPolicyListArrayOutput ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext(context.Context) GetSnapshotPoliciesSnapshotPolicyListArrayOutput }
GetSnapshotPoliciesSnapshotPolicyListArrayInput is an input type that accepts GetSnapshotPoliciesSnapshotPolicyListArray and GetSnapshotPoliciesSnapshotPolicyListArrayOutput values. You can construct a concrete instance of `GetSnapshotPoliciesSnapshotPolicyListArrayInput` via:
GetSnapshotPoliciesSnapshotPolicyListArray{ GetSnapshotPoliciesSnapshotPolicyListArgs{...} }
type GetSnapshotPoliciesSnapshotPolicyListArrayOutput ¶
type GetSnapshotPoliciesSnapshotPolicyListArrayOutput struct{ *pulumi.OutputState }
func (GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ElementType ¶
func (GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ElementType() reflect.Type
func (GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput ¶
func (o GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput() GetSnapshotPoliciesSnapshotPolicyListArrayOutput
func (GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext ¶
func (o GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListArrayOutput
type GetSnapshotPoliciesSnapshotPolicyListInput ¶
type GetSnapshotPoliciesSnapshotPolicyListInput interface { pulumi.Input ToGetSnapshotPoliciesSnapshotPolicyListOutput() GetSnapshotPoliciesSnapshotPolicyListOutput ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext(context.Context) GetSnapshotPoliciesSnapshotPolicyListOutput }
GetSnapshotPoliciesSnapshotPolicyListInput is an input type that accepts GetSnapshotPoliciesSnapshotPolicyListArgs and GetSnapshotPoliciesSnapshotPolicyListOutput values. You can construct a concrete instance of `GetSnapshotPoliciesSnapshotPolicyListInput` via:
GetSnapshotPoliciesSnapshotPolicyListArgs{...}
type GetSnapshotPoliciesSnapshotPolicyListOutput ¶
type GetSnapshotPoliciesSnapshotPolicyListOutput struct{ *pulumi.OutputState }
func (GetSnapshotPoliciesSnapshotPolicyListOutput) AttachedStorageIds ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) AttachedStorageIds() pulumi.StringArrayOutput
Storage IDs that the snapshot policy attached.
func (GetSnapshotPoliciesSnapshotPolicyListOutput) CreateTime ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) CreateTime() pulumi.StringOutput
Create time of the snapshot policy.
func (GetSnapshotPoliciesSnapshotPolicyListOutput) ElementType ¶
func (GetSnapshotPoliciesSnapshotPolicyListOutput) ElementType() reflect.Type
func (GetSnapshotPoliciesSnapshotPolicyListOutput) RepeatHours ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) RepeatHours() pulumi.IntArrayOutput
Trigger hours of periodic snapshot.
func (GetSnapshotPoliciesSnapshotPolicyListOutput) RepeatWeekdays ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) RepeatWeekdays() pulumi.IntArrayOutput
Trigger days of periodic snapshot.
func (GetSnapshotPoliciesSnapshotPolicyListOutput) RetentionDays ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) RetentionDays() pulumi.IntOutput
Retention days of the snapshot.
func (GetSnapshotPoliciesSnapshotPolicyListOutput) SnapshotPolicyId ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) SnapshotPolicyId() pulumi.StringOutput
ID of the snapshot policy to be queried.
func (GetSnapshotPoliciesSnapshotPolicyListOutput) SnapshotPolicyName ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) SnapshotPolicyName() pulumi.StringOutput
Name of the snapshot policy to be queried.
func (GetSnapshotPoliciesSnapshotPolicyListOutput) Status ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) Status() pulumi.StringOutput
Status of the snapshot policy.
func (GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutput ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutput() GetSnapshotPoliciesSnapshotPolicyListOutput
func (GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext ¶
func (o GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListOutput
type GetSnapshotsArgs ¶
type GetSnapshotsArgs struct { // The available zone that the CBS instance locates at. AvailabilityZone *string `pulumi:"availabilityZone"` // ID of the project within the snapshot. ProjectId *int `pulumi:"projectId"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of the snapshot to be queried. SnapshotId *string `pulumi:"snapshotId"` // Name of the snapshot to be queried. SnapshotName *string `pulumi:"snapshotName"` // ID of the the CBS which this snapshot created from. StorageId *string `pulumi:"storageId"` // Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK. StorageUsage *string `pulumi:"storageUsage"` }
A collection of arguments for invoking getSnapshots.
type GetSnapshotsOutputArgs ¶
type GetSnapshotsOutputArgs struct { // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"` // ID of the project within the snapshot. ProjectId pulumi.IntPtrInput `pulumi:"projectId"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // ID of the snapshot to be queried. SnapshotId pulumi.StringPtrInput `pulumi:"snapshotId"` // Name of the snapshot to be queried. SnapshotName pulumi.StringPtrInput `pulumi:"snapshotName"` // ID of the the CBS which this snapshot created from. StorageId pulumi.StringPtrInput `pulumi:"storageId"` // Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK. StorageUsage pulumi.StringPtrInput `pulumi:"storageUsage"` }
A collection of arguments for invoking getSnapshots.
func (GetSnapshotsOutputArgs) ElementType ¶
func (GetSnapshotsOutputArgs) ElementType() reflect.Type
type GetSnapshotsResult ¶
type GetSnapshotsResult struct { // The available zone that the CBS instance locates at. AvailabilityZone *string `pulumi:"availabilityZone"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // ID of the project within the snapshot. ProjectId *int `pulumi:"projectId"` ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of the snapshot. SnapshotId *string `pulumi:"snapshotId"` // A list of snapshot. Each element contains the following attributes: SnapshotLists []GetSnapshotsSnapshotList `pulumi:"snapshotLists"` // Name of the snapshot. SnapshotName *string `pulumi:"snapshotName"` // ID of the the CBS which this snapshot created from. StorageId *string `pulumi:"storageId"` // Types of CBS which this snapshot created from. StorageUsage *string `pulumi:"storageUsage"` }
A collection of values returned by getSnapshots.
func GetSnapshots ¶
func GetSnapshots(ctx *pulumi.Context, args *GetSnapshotsArgs, opts ...pulumi.InvokeOption) (*GetSnapshotsResult, error)
Use this data source to query detailed information of CBS snapshots.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.GetSnapshots(ctx, &cbs.GetSnapshotsArgs{ ResultOutputFile: pulumi.StringRef("mytestpath"), SnapshotId: pulumi.StringRef("snap-f3io7adt"), }, nil) if err != nil { return err } return nil }) }
```
type GetSnapshotsResultOutput ¶
type GetSnapshotsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSnapshots.
func GetSnapshotsOutput ¶
func GetSnapshotsOutput(ctx *pulumi.Context, args GetSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetSnapshotsResultOutput
func (GetSnapshotsResultOutput) AvailabilityZone ¶
func (o GetSnapshotsResultOutput) AvailabilityZone() pulumi.StringPtrOutput
The available zone that the CBS instance locates at.
func (GetSnapshotsResultOutput) ElementType ¶
func (GetSnapshotsResultOutput) ElementType() reflect.Type
func (GetSnapshotsResultOutput) Id ¶
func (o GetSnapshotsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSnapshotsResultOutput) ProjectId ¶
func (o GetSnapshotsResultOutput) ProjectId() pulumi.IntPtrOutput
ID of the project within the snapshot.
func (GetSnapshotsResultOutput) ResultOutputFile ¶
func (o GetSnapshotsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetSnapshotsResultOutput) SnapshotId ¶
func (o GetSnapshotsResultOutput) SnapshotId() pulumi.StringPtrOutput
ID of the snapshot.
func (GetSnapshotsResultOutput) SnapshotLists ¶
func (o GetSnapshotsResultOutput) SnapshotLists() GetSnapshotsSnapshotListArrayOutput
A list of snapshot. Each element contains the following attributes:
func (GetSnapshotsResultOutput) SnapshotName ¶
func (o GetSnapshotsResultOutput) SnapshotName() pulumi.StringPtrOutput
Name of the snapshot.
func (GetSnapshotsResultOutput) StorageId ¶
func (o GetSnapshotsResultOutput) StorageId() pulumi.StringPtrOutput
ID of the the CBS which this snapshot created from.
func (GetSnapshotsResultOutput) StorageUsage ¶
func (o GetSnapshotsResultOutput) StorageUsage() pulumi.StringPtrOutput
Types of CBS which this snapshot created from.
func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutput ¶
func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutput() GetSnapshotsResultOutput
func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext ¶
func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext(ctx context.Context) GetSnapshotsResultOutput
type GetSnapshotsSnapshotList ¶
type GetSnapshotsSnapshotList struct { // The available zone that the CBS instance locates at. AvailabilityZone string `pulumi:"availabilityZone"` // Creation time of snapshot. CreateTime string `pulumi:"createTime"` // Indicates whether the snapshot is encrypted. Encrypt bool `pulumi:"encrypt"` // Snapshot creation progress percentage. Percent int `pulumi:"percent"` // ID of the project within the snapshot. ProjectId int `pulumi:"projectId"` // ID of the snapshot to be queried. SnapshotId string `pulumi:"snapshotId"` // Name of the snapshot to be queried. SnapshotName string `pulumi:"snapshotName"` // ID of the the CBS which this snapshot created from. StorageId string `pulumi:"storageId"` // Volume of storage which this snapshot created from. StorageSize int `pulumi:"storageSize"` // Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK. StorageUsage string `pulumi:"storageUsage"` }
type GetSnapshotsSnapshotListArgs ¶
type GetSnapshotsSnapshotListArgs struct { // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"` // Creation time of snapshot. CreateTime pulumi.StringInput `pulumi:"createTime"` // Indicates whether the snapshot is encrypted. Encrypt pulumi.BoolInput `pulumi:"encrypt"` // Snapshot creation progress percentage. Percent pulumi.IntInput `pulumi:"percent"` // ID of the project within the snapshot. ProjectId pulumi.IntInput `pulumi:"projectId"` // ID of the snapshot to be queried. SnapshotId pulumi.StringInput `pulumi:"snapshotId"` // Name of the snapshot to be queried. SnapshotName pulumi.StringInput `pulumi:"snapshotName"` // ID of the the CBS which this snapshot created from. StorageId pulumi.StringInput `pulumi:"storageId"` // Volume of storage which this snapshot created from. StorageSize pulumi.IntInput `pulumi:"storageSize"` // Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK. StorageUsage pulumi.StringInput `pulumi:"storageUsage"` }
func (GetSnapshotsSnapshotListArgs) ElementType ¶
func (GetSnapshotsSnapshotListArgs) ElementType() reflect.Type
func (GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutput ¶
func (i GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutput() GetSnapshotsSnapshotListOutput
func (GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutputWithContext ¶
func (i GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListOutput
type GetSnapshotsSnapshotListArray ¶
type GetSnapshotsSnapshotListArray []GetSnapshotsSnapshotListInput
func (GetSnapshotsSnapshotListArray) ElementType ¶
func (GetSnapshotsSnapshotListArray) ElementType() reflect.Type
func (GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutput ¶
func (i GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutput() GetSnapshotsSnapshotListArrayOutput
func (GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutputWithContext ¶
func (i GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListArrayOutput
type GetSnapshotsSnapshotListArrayInput ¶
type GetSnapshotsSnapshotListArrayInput interface { pulumi.Input ToGetSnapshotsSnapshotListArrayOutput() GetSnapshotsSnapshotListArrayOutput ToGetSnapshotsSnapshotListArrayOutputWithContext(context.Context) GetSnapshotsSnapshotListArrayOutput }
GetSnapshotsSnapshotListArrayInput is an input type that accepts GetSnapshotsSnapshotListArray and GetSnapshotsSnapshotListArrayOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotListArrayInput` via:
GetSnapshotsSnapshotListArray{ GetSnapshotsSnapshotListArgs{...} }
type GetSnapshotsSnapshotListArrayOutput ¶
type GetSnapshotsSnapshotListArrayOutput struct{ *pulumi.OutputState }
func (GetSnapshotsSnapshotListArrayOutput) ElementType ¶
func (GetSnapshotsSnapshotListArrayOutput) ElementType() reflect.Type
func (GetSnapshotsSnapshotListArrayOutput) Index ¶
func (o GetSnapshotsSnapshotListArrayOutput) Index(i pulumi.IntInput) GetSnapshotsSnapshotListOutput
func (GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutput ¶
func (o GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutput() GetSnapshotsSnapshotListArrayOutput
func (GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutputWithContext ¶
func (o GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListArrayOutput
type GetSnapshotsSnapshotListInput ¶
type GetSnapshotsSnapshotListInput interface { pulumi.Input ToGetSnapshotsSnapshotListOutput() GetSnapshotsSnapshotListOutput ToGetSnapshotsSnapshotListOutputWithContext(context.Context) GetSnapshotsSnapshotListOutput }
GetSnapshotsSnapshotListInput is an input type that accepts GetSnapshotsSnapshotListArgs and GetSnapshotsSnapshotListOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotListInput` via:
GetSnapshotsSnapshotListArgs{...}
type GetSnapshotsSnapshotListOutput ¶
type GetSnapshotsSnapshotListOutput struct{ *pulumi.OutputState }
func (GetSnapshotsSnapshotListOutput) AvailabilityZone ¶
func (o GetSnapshotsSnapshotListOutput) AvailabilityZone() pulumi.StringOutput
The available zone that the CBS instance locates at.
func (GetSnapshotsSnapshotListOutput) CreateTime ¶
func (o GetSnapshotsSnapshotListOutput) CreateTime() pulumi.StringOutput
Creation time of snapshot.
func (GetSnapshotsSnapshotListOutput) ElementType ¶
func (GetSnapshotsSnapshotListOutput) ElementType() reflect.Type
func (GetSnapshotsSnapshotListOutput) Encrypt ¶
func (o GetSnapshotsSnapshotListOutput) Encrypt() pulumi.BoolOutput
Indicates whether the snapshot is encrypted.
func (GetSnapshotsSnapshotListOutput) Percent ¶
func (o GetSnapshotsSnapshotListOutput) Percent() pulumi.IntOutput
Snapshot creation progress percentage.
func (GetSnapshotsSnapshotListOutput) ProjectId ¶
func (o GetSnapshotsSnapshotListOutput) ProjectId() pulumi.IntOutput
ID of the project within the snapshot.
func (GetSnapshotsSnapshotListOutput) SnapshotId ¶
func (o GetSnapshotsSnapshotListOutput) SnapshotId() pulumi.StringOutput
ID of the snapshot to be queried.
func (GetSnapshotsSnapshotListOutput) SnapshotName ¶
func (o GetSnapshotsSnapshotListOutput) SnapshotName() pulumi.StringOutput
Name of the snapshot to be queried.
func (GetSnapshotsSnapshotListOutput) StorageId ¶
func (o GetSnapshotsSnapshotListOutput) StorageId() pulumi.StringOutput
ID of the the CBS which this snapshot created from.
func (GetSnapshotsSnapshotListOutput) StorageSize ¶
func (o GetSnapshotsSnapshotListOutput) StorageSize() pulumi.IntOutput
Volume of storage which this snapshot created from.
func (GetSnapshotsSnapshotListOutput) StorageUsage ¶
func (o GetSnapshotsSnapshotListOutput) StorageUsage() pulumi.StringOutput
Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK.
func (GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutput ¶
func (o GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutput() GetSnapshotsSnapshotListOutput
func (GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutputWithContext ¶
func (o GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListOutput
type GetStoragesArgs ¶
type GetStoragesArgs struct { // The available zone that the CBS instance locates at. AvailabilityZone *string `pulumi:"availabilityZone"` // List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`). ChargeTypes []string `pulumi:"chargeTypes"` // List filter by attached instance public or private IPs. InstanceIps []string `pulumi:"instanceIps"` // List filter by attached instance name. InstanceNames []string `pulumi:"instanceNames"` // Filter by whether the disk is portable (Boolean `true` or `false`). Portable *bool `pulumi:"portable"` // ID of the project with which the CBS is associated. ProjectId *int `pulumi:"projectId"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of the CBS to be queried. StorageId *string `pulumi:"storageId"` // Name of the CBS to be queried. StorageName *string `pulumi:"storageName"` // List filter by disk state (`UNATTACHED` | `ATTACHING` | `ATTACHED` | `DETACHING` | `EXPANDING` | `ROLLBACKING` | `TORECYCLE`). StorageStates []string `pulumi:"storageStates"` // Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk). StorageType *string `pulumi:"storageType"` // Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk). StorageUsage *string `pulumi:"storageUsage"` // List filter by tag keys. TagKeys []string `pulumi:"tagKeys"` // List filter by tag values. TagValues []string `pulumi:"tagValues"` }
A collection of arguments for invoking getStorages.
type GetStoragesOutputArgs ¶
type GetStoragesOutputArgs struct { // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"` // List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`). ChargeTypes pulumi.StringArrayInput `pulumi:"chargeTypes"` // List filter by attached instance public or private IPs. InstanceIps pulumi.StringArrayInput `pulumi:"instanceIps"` // List filter by attached instance name. InstanceNames pulumi.StringArrayInput `pulumi:"instanceNames"` // Filter by whether the disk is portable (Boolean `true` or `false`). Portable pulumi.BoolPtrInput `pulumi:"portable"` // ID of the project with which the CBS is associated. ProjectId pulumi.IntPtrInput `pulumi:"projectId"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // ID of the CBS to be queried. StorageId pulumi.StringPtrInput `pulumi:"storageId"` // Name of the CBS to be queried. StorageName pulumi.StringPtrInput `pulumi:"storageName"` // List filter by disk state (`UNATTACHED` | `ATTACHING` | `ATTACHED` | `DETACHING` | `EXPANDING` | `ROLLBACKING` | `TORECYCLE`). StorageStates pulumi.StringArrayInput `pulumi:"storageStates"` // Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk). StorageType pulumi.StringPtrInput `pulumi:"storageType"` // Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk). StorageUsage pulumi.StringPtrInput `pulumi:"storageUsage"` // List filter by tag keys. TagKeys pulumi.StringArrayInput `pulumi:"tagKeys"` // List filter by tag values. TagValues pulumi.StringArrayInput `pulumi:"tagValues"` }
A collection of arguments for invoking getStorages.
func (GetStoragesOutputArgs) ElementType ¶
func (GetStoragesOutputArgs) ElementType() reflect.Type
type GetStoragesResult ¶
type GetStoragesResult struct { // The zone of CBS. AvailabilityZone *string `pulumi:"availabilityZone"` // Pay type of the CBS instance. ChargeTypes []string `pulumi:"chargeTypes"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` InstanceIps []string `pulumi:"instanceIps"` InstanceNames []string `pulumi:"instanceNames"` Portable *bool `pulumi:"portable"` // ID of the project. ProjectId *int `pulumi:"projectId"` ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of CBS. StorageId *string `pulumi:"storageId"` // A list of storage. Each element contains the following attributes: StorageLists []GetStoragesStorageList `pulumi:"storageLists"` // Name of CBS. StorageName *string `pulumi:"storageName"` StorageStates []string `pulumi:"storageStates"` // Types of storage medium. StorageType *string `pulumi:"storageType"` // Types of CBS. StorageUsage *string `pulumi:"storageUsage"` TagKeys []string `pulumi:"tagKeys"` TagValues []string `pulumi:"tagValues"` }
A collection of values returned by getStorages.
func GetStorages ¶
func GetStorages(ctx *pulumi.Context, args *GetStoragesArgs, opts ...pulumi.InvokeOption) (*GetStoragesResult, error)
Use this data source to query detailed information of CBS storages.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.GetStorages(ctx, &cbs.GetStoragesArgs{ ResultOutputFile: pulumi.StringRef("mytestpath"), StorageId: pulumi.StringRef("disk-kdt0sq6m"), }, nil) if err != nil { return err } return nil }) }
```
The following snippet shows the new supported query params ¶
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.GetStorages(ctx, &cbs.GetStoragesArgs{ ChargeTypes: []string{ "POSTPAID_BY_HOUR", "PREPAID", }, InstanceIps: []string{ "10.0.0.2", }, InstanceNames: []string{ "my-instance", }, Portable: pulumi.BoolRef(true), StorageStates: []string{ "ATTACHED", }, TagKeys: []string{ "foo", }, TagValues: []string{ "bar", "baz", }, }, nil) if err != nil { return err } return nil }) }
```
type GetStoragesResultOutput ¶
type GetStoragesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getStorages.
func GetStoragesOutput ¶
func GetStoragesOutput(ctx *pulumi.Context, args GetStoragesOutputArgs, opts ...pulumi.InvokeOption) GetStoragesResultOutput
func (GetStoragesResultOutput) AvailabilityZone ¶
func (o GetStoragesResultOutput) AvailabilityZone() pulumi.StringPtrOutput
The zone of CBS.
func (GetStoragesResultOutput) ChargeTypes ¶
func (o GetStoragesResultOutput) ChargeTypes() pulumi.StringArrayOutput
Pay type of the CBS instance.
func (GetStoragesResultOutput) ElementType ¶
func (GetStoragesResultOutput) ElementType() reflect.Type
func (GetStoragesResultOutput) Id ¶
func (o GetStoragesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetStoragesResultOutput) InstanceIps ¶
func (o GetStoragesResultOutput) InstanceIps() pulumi.StringArrayOutput
func (GetStoragesResultOutput) InstanceNames ¶
func (o GetStoragesResultOutput) InstanceNames() pulumi.StringArrayOutput
func (GetStoragesResultOutput) Portable ¶
func (o GetStoragesResultOutput) Portable() pulumi.BoolPtrOutput
func (GetStoragesResultOutput) ProjectId ¶
func (o GetStoragesResultOutput) ProjectId() pulumi.IntPtrOutput
ID of the project.
func (GetStoragesResultOutput) ResultOutputFile ¶
func (o GetStoragesResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetStoragesResultOutput) StorageId ¶
func (o GetStoragesResultOutput) StorageId() pulumi.StringPtrOutput
ID of CBS.
func (GetStoragesResultOutput) StorageLists ¶
func (o GetStoragesResultOutput) StorageLists() GetStoragesStorageListArrayOutput
A list of storage. Each element contains the following attributes:
func (GetStoragesResultOutput) StorageName ¶
func (o GetStoragesResultOutput) StorageName() pulumi.StringPtrOutput
Name of CBS.
func (GetStoragesResultOutput) StorageStates ¶
func (o GetStoragesResultOutput) StorageStates() pulumi.StringArrayOutput
func (GetStoragesResultOutput) StorageType ¶
func (o GetStoragesResultOutput) StorageType() pulumi.StringPtrOutput
Types of storage medium.
func (GetStoragesResultOutput) StorageUsage ¶
func (o GetStoragesResultOutput) StorageUsage() pulumi.StringPtrOutput
Types of CBS.
func (GetStoragesResultOutput) TagKeys ¶
func (o GetStoragesResultOutput) TagKeys() pulumi.StringArrayOutput
func (GetStoragesResultOutput) TagValues ¶
func (o GetStoragesResultOutput) TagValues() pulumi.StringArrayOutput
func (GetStoragesResultOutput) ToGetStoragesResultOutput ¶
func (o GetStoragesResultOutput) ToGetStoragesResultOutput() GetStoragesResultOutput
func (GetStoragesResultOutput) ToGetStoragesResultOutputWithContext ¶
func (o GetStoragesResultOutput) ToGetStoragesResultOutputWithContext(ctx context.Context) GetStoragesResultOutput
type GetStoragesSetArgs ¶
type GetStoragesSetArgs struct { // The available zone that the CBS instance locates at. AvailabilityZone *string `pulumi:"availabilityZone"` // List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`). ChargeTypes []string `pulumi:"chargeTypes"` // List filter by attached instance public or private IPs. InstanceIps []string `pulumi:"instanceIps"` // List filter by attached instance name. InstanceNames []string `pulumi:"instanceNames"` // Filter by whether the disk is portable (Boolean `true` or `false`). Portable *bool `pulumi:"portable"` // ID of the project with which the CBS is associated. ProjectId *int `pulumi:"projectId"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of the CBS to be queried. StorageId *string `pulumi:"storageId"` // Name of the CBS to be queried. StorageName *string `pulumi:"storageName"` // List filter by disk state (`UNATTACHED` | `ATTACHING` | `ATTACHED` | `DETACHING` | `EXPANDING` | `ROLLBACKING` | `TORECYCLE`). StorageStates []string `pulumi:"storageStates"` // Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk). StorageType *string `pulumi:"storageType"` // Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk). StorageUsage *string `pulumi:"storageUsage"` // List filter by tag keys. TagKeys []string `pulumi:"tagKeys"` // List filter by tag values. TagValues []string `pulumi:"tagValues"` }
A collection of arguments for invoking getStoragesSet.
type GetStoragesSetOutputArgs ¶
type GetStoragesSetOutputArgs struct { // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"` // List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`). ChargeTypes pulumi.StringArrayInput `pulumi:"chargeTypes"` // List filter by attached instance public or private IPs. InstanceIps pulumi.StringArrayInput `pulumi:"instanceIps"` // List filter by attached instance name. InstanceNames pulumi.StringArrayInput `pulumi:"instanceNames"` // Filter by whether the disk is portable (Boolean `true` or `false`). Portable pulumi.BoolPtrInput `pulumi:"portable"` // ID of the project with which the CBS is associated. ProjectId pulumi.IntPtrInput `pulumi:"projectId"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // ID of the CBS to be queried. StorageId pulumi.StringPtrInput `pulumi:"storageId"` // Name of the CBS to be queried. StorageName pulumi.StringPtrInput `pulumi:"storageName"` // List filter by disk state (`UNATTACHED` | `ATTACHING` | `ATTACHED` | `DETACHING` | `EXPANDING` | `ROLLBACKING` | `TORECYCLE`). StorageStates pulumi.StringArrayInput `pulumi:"storageStates"` // Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk). StorageType pulumi.StringPtrInput `pulumi:"storageType"` // Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk). StorageUsage pulumi.StringPtrInput `pulumi:"storageUsage"` // List filter by tag keys. TagKeys pulumi.StringArrayInput `pulumi:"tagKeys"` // List filter by tag values. TagValues pulumi.StringArrayInput `pulumi:"tagValues"` }
A collection of arguments for invoking getStoragesSet.
func (GetStoragesSetOutputArgs) ElementType ¶
func (GetStoragesSetOutputArgs) ElementType() reflect.Type
type GetStoragesSetResult ¶
type GetStoragesSetResult struct { // The zone of CBS. AvailabilityZone *string `pulumi:"availabilityZone"` // Pay type of the CBS instance. ChargeTypes []string `pulumi:"chargeTypes"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` InstanceIps []string `pulumi:"instanceIps"` InstanceNames []string `pulumi:"instanceNames"` Portable *bool `pulumi:"portable"` // ID of the project. ProjectId *int `pulumi:"projectId"` ResultOutputFile *string `pulumi:"resultOutputFile"` // ID of CBS. StorageId *string `pulumi:"storageId"` // A list of storage. Each element contains the following attributes: StorageLists []GetStoragesSetStorageList `pulumi:"storageLists"` // Name of CBS. StorageName *string `pulumi:"storageName"` StorageStates []string `pulumi:"storageStates"` // Types of storage medium. StorageType *string `pulumi:"storageType"` // Types of CBS. StorageUsage *string `pulumi:"storageUsage"` TagKeys []string `pulumi:"tagKeys"` TagValues []string `pulumi:"tagValues"` }
A collection of values returned by getStoragesSet.
func GetStoragesSet ¶
func GetStoragesSet(ctx *pulumi.Context, args *GetStoragesSetArgs, opts ...pulumi.InvokeOption) (*GetStoragesSetResult, error)
Use this data source to query detailed information of CBS storages in parallel.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.GetStoragesSet(ctx, &cbs.GetStoragesSetArgs{ AvailabilityZone: pulumi.StringRef("ap-guangzhou-3"), }, nil) if err != nil { return err } return nil }) }
```
type GetStoragesSetResultOutput ¶
type GetStoragesSetResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getStoragesSet.
func GetStoragesSetOutput ¶
func GetStoragesSetOutput(ctx *pulumi.Context, args GetStoragesSetOutputArgs, opts ...pulumi.InvokeOption) GetStoragesSetResultOutput
func (GetStoragesSetResultOutput) AvailabilityZone ¶
func (o GetStoragesSetResultOutput) AvailabilityZone() pulumi.StringPtrOutput
The zone of CBS.
func (GetStoragesSetResultOutput) ChargeTypes ¶
func (o GetStoragesSetResultOutput) ChargeTypes() pulumi.StringArrayOutput
Pay type of the CBS instance.
func (GetStoragesSetResultOutput) ElementType ¶
func (GetStoragesSetResultOutput) ElementType() reflect.Type
func (GetStoragesSetResultOutput) Id ¶
func (o GetStoragesSetResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetStoragesSetResultOutput) InstanceIps ¶
func (o GetStoragesSetResultOutput) InstanceIps() pulumi.StringArrayOutput
func (GetStoragesSetResultOutput) InstanceNames ¶
func (o GetStoragesSetResultOutput) InstanceNames() pulumi.StringArrayOutput
func (GetStoragesSetResultOutput) Portable ¶
func (o GetStoragesSetResultOutput) Portable() pulumi.BoolPtrOutput
func (GetStoragesSetResultOutput) ProjectId ¶
func (o GetStoragesSetResultOutput) ProjectId() pulumi.IntPtrOutput
ID of the project.
func (GetStoragesSetResultOutput) ResultOutputFile ¶
func (o GetStoragesSetResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetStoragesSetResultOutput) StorageId ¶
func (o GetStoragesSetResultOutput) StorageId() pulumi.StringPtrOutput
ID of CBS.
func (GetStoragesSetResultOutput) StorageLists ¶
func (o GetStoragesSetResultOutput) StorageLists() GetStoragesSetStorageListArrayOutput
A list of storage. Each element contains the following attributes:
func (GetStoragesSetResultOutput) StorageName ¶
func (o GetStoragesSetResultOutput) StorageName() pulumi.StringPtrOutput
Name of CBS.
func (GetStoragesSetResultOutput) StorageStates ¶
func (o GetStoragesSetResultOutput) StorageStates() pulumi.StringArrayOutput
func (GetStoragesSetResultOutput) StorageType ¶
func (o GetStoragesSetResultOutput) StorageType() pulumi.StringPtrOutput
Types of storage medium.
func (GetStoragesSetResultOutput) StorageUsage ¶
func (o GetStoragesSetResultOutput) StorageUsage() pulumi.StringPtrOutput
Types of CBS.
func (GetStoragesSetResultOutput) TagKeys ¶
func (o GetStoragesSetResultOutput) TagKeys() pulumi.StringArrayOutput
func (GetStoragesSetResultOutput) TagValues ¶
func (o GetStoragesSetResultOutput) TagValues() pulumi.StringArrayOutput
func (GetStoragesSetResultOutput) ToGetStoragesSetResultOutput ¶
func (o GetStoragesSetResultOutput) ToGetStoragesSetResultOutput() GetStoragesSetResultOutput
func (GetStoragesSetResultOutput) ToGetStoragesSetResultOutputWithContext ¶
func (o GetStoragesSetResultOutput) ToGetStoragesSetResultOutputWithContext(ctx context.Context) GetStoragesSetResultOutput
type GetStoragesSetStorageList ¶
type GetStoragesSetStorageList struct { // Indicates whether the CBS is mounted the CVM. Attached bool `pulumi:"attached"` // The available zone that the CBS instance locates at. AvailabilityZone string `pulumi:"availabilityZone"` // List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`). ChargeType string `pulumi:"chargeType"` // Creation time of CBS. CreateTime string `pulumi:"createTime"` // Indicates whether CBS is encrypted. Encrypt bool `pulumi:"encrypt"` // ID of the CVM instance that be mounted by this CBS. InstanceId string `pulumi:"instanceId"` // The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy. PrepaidRenewFlag string `pulumi:"prepaidRenewFlag"` // ID of the project with which the CBS is associated. ProjectId int `pulumi:"projectId"` // Status of CBS. Status string `pulumi:"status"` // ID of the CBS to be queried. StorageId string `pulumi:"storageId"` // Name of the CBS to be queried. StorageName string `pulumi:"storageName"` // Volume of CBS. StorageSize int `pulumi:"storageSize"` // Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk). StorageType string `pulumi:"storageType"` // Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk). StorageUsage string `pulumi:"storageUsage"` // The available tags within this CBS. Tags map[string]interface{} `pulumi:"tags"` // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance int `pulumi:"throughputPerformance"` }
type GetStoragesSetStorageListArgs ¶
type GetStoragesSetStorageListArgs struct { // Indicates whether the CBS is mounted the CVM. Attached pulumi.BoolInput `pulumi:"attached"` // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"` // List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`). ChargeType pulumi.StringInput `pulumi:"chargeType"` // Creation time of CBS. CreateTime pulumi.StringInput `pulumi:"createTime"` // Indicates whether CBS is encrypted. Encrypt pulumi.BoolInput `pulumi:"encrypt"` // ID of the CVM instance that be mounted by this CBS. InstanceId pulumi.StringInput `pulumi:"instanceId"` // The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy. PrepaidRenewFlag pulumi.StringInput `pulumi:"prepaidRenewFlag"` // ID of the project with which the CBS is associated. ProjectId pulumi.IntInput `pulumi:"projectId"` // Status of CBS. Status pulumi.StringInput `pulumi:"status"` // ID of the CBS to be queried. StorageId pulumi.StringInput `pulumi:"storageId"` // Name of the CBS to be queried. StorageName pulumi.StringInput `pulumi:"storageName"` // Volume of CBS. StorageSize pulumi.IntInput `pulumi:"storageSize"` // Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk). StorageType pulumi.StringInput `pulumi:"storageType"` // Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk). StorageUsage pulumi.StringInput `pulumi:"storageUsage"` // The available tags within this CBS. Tags pulumi.MapInput `pulumi:"tags"` // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance pulumi.IntInput `pulumi:"throughputPerformance"` }
func (GetStoragesSetStorageListArgs) ElementType ¶
func (GetStoragesSetStorageListArgs) ElementType() reflect.Type
func (GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutput ¶
func (i GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutput() GetStoragesSetStorageListOutput
func (GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutputWithContext ¶
func (i GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutputWithContext(ctx context.Context) GetStoragesSetStorageListOutput
type GetStoragesSetStorageListArray ¶
type GetStoragesSetStorageListArray []GetStoragesSetStorageListInput
func (GetStoragesSetStorageListArray) ElementType ¶
func (GetStoragesSetStorageListArray) ElementType() reflect.Type
func (GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutput ¶
func (i GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutput() GetStoragesSetStorageListArrayOutput
func (GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutputWithContext ¶
func (i GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutputWithContext(ctx context.Context) GetStoragesSetStorageListArrayOutput
type GetStoragesSetStorageListArrayInput ¶
type GetStoragesSetStorageListArrayInput interface { pulumi.Input ToGetStoragesSetStorageListArrayOutput() GetStoragesSetStorageListArrayOutput ToGetStoragesSetStorageListArrayOutputWithContext(context.Context) GetStoragesSetStorageListArrayOutput }
GetStoragesSetStorageListArrayInput is an input type that accepts GetStoragesSetStorageListArray and GetStoragesSetStorageListArrayOutput values. You can construct a concrete instance of `GetStoragesSetStorageListArrayInput` via:
GetStoragesSetStorageListArray{ GetStoragesSetStorageListArgs{...} }
type GetStoragesSetStorageListArrayOutput ¶
type GetStoragesSetStorageListArrayOutput struct{ *pulumi.OutputState }
func (GetStoragesSetStorageListArrayOutput) ElementType ¶
func (GetStoragesSetStorageListArrayOutput) ElementType() reflect.Type
func (GetStoragesSetStorageListArrayOutput) Index ¶
func (o GetStoragesSetStorageListArrayOutput) Index(i pulumi.IntInput) GetStoragesSetStorageListOutput
func (GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutput ¶
func (o GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutput() GetStoragesSetStorageListArrayOutput
func (GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutputWithContext ¶
func (o GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutputWithContext(ctx context.Context) GetStoragesSetStorageListArrayOutput
type GetStoragesSetStorageListInput ¶
type GetStoragesSetStorageListInput interface { pulumi.Input ToGetStoragesSetStorageListOutput() GetStoragesSetStorageListOutput ToGetStoragesSetStorageListOutputWithContext(context.Context) GetStoragesSetStorageListOutput }
GetStoragesSetStorageListInput is an input type that accepts GetStoragesSetStorageListArgs and GetStoragesSetStorageListOutput values. You can construct a concrete instance of `GetStoragesSetStorageListInput` via:
GetStoragesSetStorageListArgs{...}
type GetStoragesSetStorageListOutput ¶
type GetStoragesSetStorageListOutput struct{ *pulumi.OutputState }
func (GetStoragesSetStorageListOutput) Attached ¶
func (o GetStoragesSetStorageListOutput) Attached() pulumi.BoolOutput
Indicates whether the CBS is mounted the CVM.
func (GetStoragesSetStorageListOutput) AvailabilityZone ¶
func (o GetStoragesSetStorageListOutput) AvailabilityZone() pulumi.StringOutput
The available zone that the CBS instance locates at.
func (GetStoragesSetStorageListOutput) ChargeType ¶
func (o GetStoragesSetStorageListOutput) ChargeType() pulumi.StringOutput
List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
func (GetStoragesSetStorageListOutput) CreateTime ¶
func (o GetStoragesSetStorageListOutput) CreateTime() pulumi.StringOutput
Creation time of CBS.
func (GetStoragesSetStorageListOutput) ElementType ¶
func (GetStoragesSetStorageListOutput) ElementType() reflect.Type
func (GetStoragesSetStorageListOutput) Encrypt ¶
func (o GetStoragesSetStorageListOutput) Encrypt() pulumi.BoolOutput
Indicates whether CBS is encrypted.
func (GetStoragesSetStorageListOutput) InstanceId ¶
func (o GetStoragesSetStorageListOutput) InstanceId() pulumi.StringOutput
ID of the CVM instance that be mounted by this CBS.
func (GetStoragesSetStorageListOutput) PrepaidRenewFlag ¶
func (o GetStoragesSetStorageListOutput) PrepaidRenewFlag() pulumi.StringOutput
The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy.
func (GetStoragesSetStorageListOutput) ProjectId ¶
func (o GetStoragesSetStorageListOutput) ProjectId() pulumi.IntOutput
ID of the project with which the CBS is associated.
func (GetStoragesSetStorageListOutput) Status ¶
func (o GetStoragesSetStorageListOutput) Status() pulumi.StringOutput
Status of CBS.
func (GetStoragesSetStorageListOutput) StorageId ¶
func (o GetStoragesSetStorageListOutput) StorageId() pulumi.StringOutput
ID of the CBS to be queried.
func (GetStoragesSetStorageListOutput) StorageName ¶
func (o GetStoragesSetStorageListOutput) StorageName() pulumi.StringOutput
Name of the CBS to be queried.
func (GetStoragesSetStorageListOutput) StorageSize ¶
func (o GetStoragesSetStorageListOutput) StorageSize() pulumi.IntOutput
Volume of CBS.
func (GetStoragesSetStorageListOutput) StorageType ¶
func (o GetStoragesSetStorageListOutput) StorageType() pulumi.StringOutput
Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
func (GetStoragesSetStorageListOutput) StorageUsage ¶
func (o GetStoragesSetStorageListOutput) StorageUsage() pulumi.StringOutput
Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
func (GetStoragesSetStorageListOutput) Tags ¶
func (o GetStoragesSetStorageListOutput) Tags() pulumi.MapOutput
The available tags within this CBS.
func (GetStoragesSetStorageListOutput) ThroughputPerformance ¶
func (o GetStoragesSetStorageListOutput) ThroughputPerformance() pulumi.IntOutput
Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
func (GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutput ¶
func (o GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutput() GetStoragesSetStorageListOutput
func (GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutputWithContext ¶
func (o GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutputWithContext(ctx context.Context) GetStoragesSetStorageListOutput
type GetStoragesStorageList ¶
type GetStoragesStorageList struct { // Indicates whether the CBS is mounted the CVM. Attached bool `pulumi:"attached"` // The available zone that the CBS instance locates at. AvailabilityZone string `pulumi:"availabilityZone"` // List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`). ChargeType string `pulumi:"chargeType"` // Creation time of CBS. CreateTime string `pulumi:"createTime"` // Indicates whether CBS is encrypted. Encrypt bool `pulumi:"encrypt"` // ID of the CVM instance that be mounted by this CBS. InstanceId string `pulumi:"instanceId"` // The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy. PrepaidRenewFlag string `pulumi:"prepaidRenewFlag"` // ID of the project with which the CBS is associated. ProjectId int `pulumi:"projectId"` // Status of CBS. Status string `pulumi:"status"` // ID of the CBS to be queried. StorageId string `pulumi:"storageId"` // Name of the CBS to be queried. StorageName string `pulumi:"storageName"` // Volume of CBS. StorageSize int `pulumi:"storageSize"` // Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk). StorageType string `pulumi:"storageType"` // Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk). StorageUsage string `pulumi:"storageUsage"` // The available tags within this CBS. Tags map[string]interface{} `pulumi:"tags"` // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance int `pulumi:"throughputPerformance"` }
type GetStoragesStorageListArgs ¶
type GetStoragesStorageListArgs struct { // Indicates whether the CBS is mounted the CVM. Attached pulumi.BoolInput `pulumi:"attached"` // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"` // List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`). ChargeType pulumi.StringInput `pulumi:"chargeType"` // Creation time of CBS. CreateTime pulumi.StringInput `pulumi:"createTime"` // Indicates whether CBS is encrypted. Encrypt pulumi.BoolInput `pulumi:"encrypt"` // ID of the CVM instance that be mounted by this CBS. InstanceId pulumi.StringInput `pulumi:"instanceId"` // The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy. PrepaidRenewFlag pulumi.StringInput `pulumi:"prepaidRenewFlag"` // ID of the project with which the CBS is associated. ProjectId pulumi.IntInput `pulumi:"projectId"` // Status of CBS. Status pulumi.StringInput `pulumi:"status"` // ID of the CBS to be queried. StorageId pulumi.StringInput `pulumi:"storageId"` // Name of the CBS to be queried. StorageName pulumi.StringInput `pulumi:"storageName"` // Volume of CBS. StorageSize pulumi.IntInput `pulumi:"storageSize"` // Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk). StorageType pulumi.StringInput `pulumi:"storageType"` // Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk). StorageUsage pulumi.StringInput `pulumi:"storageUsage"` // The available tags within this CBS. Tags pulumi.MapInput `pulumi:"tags"` // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance pulumi.IntInput `pulumi:"throughputPerformance"` }
func (GetStoragesStorageListArgs) ElementType ¶
func (GetStoragesStorageListArgs) ElementType() reflect.Type
func (GetStoragesStorageListArgs) ToGetStoragesStorageListOutput ¶
func (i GetStoragesStorageListArgs) ToGetStoragesStorageListOutput() GetStoragesStorageListOutput
func (GetStoragesStorageListArgs) ToGetStoragesStorageListOutputWithContext ¶
func (i GetStoragesStorageListArgs) ToGetStoragesStorageListOutputWithContext(ctx context.Context) GetStoragesStorageListOutput
type GetStoragesStorageListArray ¶
type GetStoragesStorageListArray []GetStoragesStorageListInput
func (GetStoragesStorageListArray) ElementType ¶
func (GetStoragesStorageListArray) ElementType() reflect.Type
func (GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutput ¶
func (i GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutput() GetStoragesStorageListArrayOutput
func (GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutputWithContext ¶
func (i GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutputWithContext(ctx context.Context) GetStoragesStorageListArrayOutput
type GetStoragesStorageListArrayInput ¶
type GetStoragesStorageListArrayInput interface { pulumi.Input ToGetStoragesStorageListArrayOutput() GetStoragesStorageListArrayOutput ToGetStoragesStorageListArrayOutputWithContext(context.Context) GetStoragesStorageListArrayOutput }
GetStoragesStorageListArrayInput is an input type that accepts GetStoragesStorageListArray and GetStoragesStorageListArrayOutput values. You can construct a concrete instance of `GetStoragesStorageListArrayInput` via:
GetStoragesStorageListArray{ GetStoragesStorageListArgs{...} }
type GetStoragesStorageListArrayOutput ¶
type GetStoragesStorageListArrayOutput struct{ *pulumi.OutputState }
func (GetStoragesStorageListArrayOutput) ElementType ¶
func (GetStoragesStorageListArrayOutput) ElementType() reflect.Type
func (GetStoragesStorageListArrayOutput) Index ¶
func (o GetStoragesStorageListArrayOutput) Index(i pulumi.IntInput) GetStoragesStorageListOutput
func (GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutput ¶
func (o GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutput() GetStoragesStorageListArrayOutput
func (GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutputWithContext ¶
func (o GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutputWithContext(ctx context.Context) GetStoragesStorageListArrayOutput
type GetStoragesStorageListInput ¶
type GetStoragesStorageListInput interface { pulumi.Input ToGetStoragesStorageListOutput() GetStoragesStorageListOutput ToGetStoragesStorageListOutputWithContext(context.Context) GetStoragesStorageListOutput }
GetStoragesStorageListInput is an input type that accepts GetStoragesStorageListArgs and GetStoragesStorageListOutput values. You can construct a concrete instance of `GetStoragesStorageListInput` via:
GetStoragesStorageListArgs{...}
type GetStoragesStorageListOutput ¶
type GetStoragesStorageListOutput struct{ *pulumi.OutputState }
func (GetStoragesStorageListOutput) Attached ¶
func (o GetStoragesStorageListOutput) Attached() pulumi.BoolOutput
Indicates whether the CBS is mounted the CVM.
func (GetStoragesStorageListOutput) AvailabilityZone ¶
func (o GetStoragesStorageListOutput) AvailabilityZone() pulumi.StringOutput
The available zone that the CBS instance locates at.
func (GetStoragesStorageListOutput) ChargeType ¶
func (o GetStoragesStorageListOutput) ChargeType() pulumi.StringOutput
List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
func (GetStoragesStorageListOutput) CreateTime ¶
func (o GetStoragesStorageListOutput) CreateTime() pulumi.StringOutput
Creation time of CBS.
func (GetStoragesStorageListOutput) ElementType ¶
func (GetStoragesStorageListOutput) ElementType() reflect.Type
func (GetStoragesStorageListOutput) Encrypt ¶
func (o GetStoragesStorageListOutput) Encrypt() pulumi.BoolOutput
Indicates whether CBS is encrypted.
func (GetStoragesStorageListOutput) InstanceId ¶
func (o GetStoragesStorageListOutput) InstanceId() pulumi.StringOutput
ID of the CVM instance that be mounted by this CBS.
func (GetStoragesStorageListOutput) PrepaidRenewFlag ¶
func (o GetStoragesStorageListOutput) PrepaidRenewFlag() pulumi.StringOutput
The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy.
func (GetStoragesStorageListOutput) ProjectId ¶
func (o GetStoragesStorageListOutput) ProjectId() pulumi.IntOutput
ID of the project with which the CBS is associated.
func (GetStoragesStorageListOutput) Status ¶
func (o GetStoragesStorageListOutput) Status() pulumi.StringOutput
Status of CBS.
func (GetStoragesStorageListOutput) StorageId ¶
func (o GetStoragesStorageListOutput) StorageId() pulumi.StringOutput
ID of the CBS to be queried.
func (GetStoragesStorageListOutput) StorageName ¶
func (o GetStoragesStorageListOutput) StorageName() pulumi.StringOutput
Name of the CBS to be queried.
func (GetStoragesStorageListOutput) StorageSize ¶
func (o GetStoragesStorageListOutput) StorageSize() pulumi.IntOutput
Volume of CBS.
func (GetStoragesStorageListOutput) StorageType ¶
func (o GetStoragesStorageListOutput) StorageType() pulumi.StringOutput
Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
func (GetStoragesStorageListOutput) StorageUsage ¶
func (o GetStoragesStorageListOutput) StorageUsage() pulumi.StringOutput
Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
func (GetStoragesStorageListOutput) Tags ¶
func (o GetStoragesStorageListOutput) Tags() pulumi.MapOutput
The available tags within this CBS.
func (GetStoragesStorageListOutput) ThroughputPerformance ¶
func (o GetStoragesStorageListOutput) ThroughputPerformance() pulumi.IntOutput
Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
func (GetStoragesStorageListOutput) ToGetStoragesStorageListOutput ¶
func (o GetStoragesStorageListOutput) ToGetStoragesStorageListOutput() GetStoragesStorageListOutput
func (GetStoragesStorageListOutput) ToGetStoragesStorageListOutputWithContext ¶
func (o GetStoragesStorageListOutput) ToGetStoragesStorageListOutputWithContext(ctx context.Context) GetStoragesStorageListOutput
type Snapshot ¶
type Snapshot struct { pulumi.CustomResourceState // Creation time of snapshot. CreateTime pulumi.StringOutput `pulumi:"createTime"` // Types of CBS which this snapshot created from. DiskType pulumi.StringOutput `pulumi:"diskType"` // Snapshot creation progress percentage. If the snapshot has created successfully, the constant value is 100. Percent pulumi.IntOutput `pulumi:"percent"` // Name of the snapshot. SnapshotName pulumi.StringOutput `pulumi:"snapshotName"` // Status of the snapshot. SnapshotStatus pulumi.StringOutput `pulumi:"snapshotStatus"` // ID of the the CBS which this snapshot created from. StorageId pulumi.StringOutput `pulumi:"storageId"` // Volume of storage which this snapshot created from. StorageSize pulumi.IntOutput `pulumi:"storageSize"` }
Provides a resource to create a CBS snapshot.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.NewSnapshot(ctx, "snapshot", &Cbs.SnapshotArgs{ SnapshotName: pulumi.String("unnamed"), StorageId: pulumi.String("disk-kdt0sq6m"), }) if err != nil { return err } return nil }) }
```
## Import
CBS snapshot can be imported using the id, e.g.
```sh
$ pulumi import tencentcloud:Cbs/snapshot:Snapshot snapshot snap-3sa3f39b
```
func GetSnapshot ¶
func GetSnapshot(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SnapshotState, opts ...pulumi.ResourceOption) (*Snapshot, error)
GetSnapshot gets an existing Snapshot resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSnapshot ¶
func NewSnapshot(ctx *pulumi.Context, name string, args *SnapshotArgs, opts ...pulumi.ResourceOption) (*Snapshot, error)
NewSnapshot registers a new resource with the given unique name, arguments, and options.
func (*Snapshot) ElementType ¶
func (*Snapshot) ToSnapshotOutput ¶
func (i *Snapshot) ToSnapshotOutput() SnapshotOutput
func (*Snapshot) ToSnapshotOutputWithContext ¶
func (i *Snapshot) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput
type SnapshotArgs ¶
type SnapshotArgs struct { // Name of the snapshot. SnapshotName pulumi.StringInput // ID of the the CBS which this snapshot created from. StorageId pulumi.StringInput }
The set of arguments for constructing a Snapshot resource.
func (SnapshotArgs) ElementType ¶
func (SnapshotArgs) ElementType() reflect.Type
type SnapshotArray ¶
type SnapshotArray []SnapshotInput
func (SnapshotArray) ElementType ¶
func (SnapshotArray) ElementType() reflect.Type
func (SnapshotArray) ToSnapshotArrayOutput ¶
func (i SnapshotArray) ToSnapshotArrayOutput() SnapshotArrayOutput
func (SnapshotArray) ToSnapshotArrayOutputWithContext ¶
func (i SnapshotArray) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput
type SnapshotArrayInput ¶
type SnapshotArrayInput interface { pulumi.Input ToSnapshotArrayOutput() SnapshotArrayOutput ToSnapshotArrayOutputWithContext(context.Context) SnapshotArrayOutput }
SnapshotArrayInput is an input type that accepts SnapshotArray and SnapshotArrayOutput values. You can construct a concrete instance of `SnapshotArrayInput` via:
SnapshotArray{ SnapshotArgs{...} }
type SnapshotArrayOutput ¶
type SnapshotArrayOutput struct{ *pulumi.OutputState }
func (SnapshotArrayOutput) ElementType ¶
func (SnapshotArrayOutput) ElementType() reflect.Type
func (SnapshotArrayOutput) Index ¶
func (o SnapshotArrayOutput) Index(i pulumi.IntInput) SnapshotOutput
func (SnapshotArrayOutput) ToSnapshotArrayOutput ¶
func (o SnapshotArrayOutput) ToSnapshotArrayOutput() SnapshotArrayOutput
func (SnapshotArrayOutput) ToSnapshotArrayOutputWithContext ¶
func (o SnapshotArrayOutput) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput
type SnapshotInput ¶
type SnapshotInput interface { pulumi.Input ToSnapshotOutput() SnapshotOutput ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput }
type SnapshotMap ¶
type SnapshotMap map[string]SnapshotInput
func (SnapshotMap) ElementType ¶
func (SnapshotMap) ElementType() reflect.Type
func (SnapshotMap) ToSnapshotMapOutput ¶
func (i SnapshotMap) ToSnapshotMapOutput() SnapshotMapOutput
func (SnapshotMap) ToSnapshotMapOutputWithContext ¶
func (i SnapshotMap) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput
type SnapshotMapInput ¶
type SnapshotMapInput interface { pulumi.Input ToSnapshotMapOutput() SnapshotMapOutput ToSnapshotMapOutputWithContext(context.Context) SnapshotMapOutput }
SnapshotMapInput is an input type that accepts SnapshotMap and SnapshotMapOutput values. You can construct a concrete instance of `SnapshotMapInput` via:
SnapshotMap{ "key": SnapshotArgs{...} }
type SnapshotMapOutput ¶
type SnapshotMapOutput struct{ *pulumi.OutputState }
func (SnapshotMapOutput) ElementType ¶
func (SnapshotMapOutput) ElementType() reflect.Type
func (SnapshotMapOutput) MapIndex ¶
func (o SnapshotMapOutput) MapIndex(k pulumi.StringInput) SnapshotOutput
func (SnapshotMapOutput) ToSnapshotMapOutput ¶
func (o SnapshotMapOutput) ToSnapshotMapOutput() SnapshotMapOutput
func (SnapshotMapOutput) ToSnapshotMapOutputWithContext ¶
func (o SnapshotMapOutput) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput
type SnapshotOutput ¶
type SnapshotOutput struct{ *pulumi.OutputState }
func (SnapshotOutput) CreateTime ¶
func (o SnapshotOutput) CreateTime() pulumi.StringOutput
Creation time of snapshot.
func (SnapshotOutput) DiskType ¶
func (o SnapshotOutput) DiskType() pulumi.StringOutput
Types of CBS which this snapshot created from.
func (SnapshotOutput) ElementType ¶
func (SnapshotOutput) ElementType() reflect.Type
func (SnapshotOutput) Percent ¶
func (o SnapshotOutput) Percent() pulumi.IntOutput
Snapshot creation progress percentage. If the snapshot has created successfully, the constant value is 100.
func (SnapshotOutput) SnapshotName ¶
func (o SnapshotOutput) SnapshotName() pulumi.StringOutput
Name of the snapshot.
func (SnapshotOutput) SnapshotStatus ¶
func (o SnapshotOutput) SnapshotStatus() pulumi.StringOutput
Status of the snapshot.
func (SnapshotOutput) StorageId ¶
func (o SnapshotOutput) StorageId() pulumi.StringOutput
ID of the the CBS which this snapshot created from.
func (SnapshotOutput) StorageSize ¶
func (o SnapshotOutput) StorageSize() pulumi.IntOutput
Volume of storage which this snapshot created from.
func (SnapshotOutput) ToSnapshotOutput ¶
func (o SnapshotOutput) ToSnapshotOutput() SnapshotOutput
func (SnapshotOutput) ToSnapshotOutputWithContext ¶
func (o SnapshotOutput) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput
type SnapshotPolicy ¶
type SnapshotPolicy struct { pulumi.CustomResourceState // Trigger times of periodic snapshot. Valid value ranges: (0~23). The 0 means 00:00, and so on. RepeatHours pulumi.IntArrayOutput `pulumi:"repeatHours"` // Periodic snapshot is enabled. Valid values: [0, 1, 2, 3, 4, 5, 6]. 0 means Sunday, 1-6 means Monday to Saturday. RepeatWeekdays pulumi.IntArrayOutput `pulumi:"repeatWeekdays"` // Retention days of the snapshot, and the default value is 7. RetentionDays pulumi.IntPtrOutput `pulumi:"retentionDays"` // Name of snapshot policy. The maximum length can not exceed 60 bytes. SnapshotPolicyName pulumi.StringOutput `pulumi:"snapshotPolicyName"` }
Provides a snapshot policy resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.NewSnapshotPolicy(ctx, "snapshotPolicy", &Cbs.SnapshotPolicyArgs{ RepeatHours: pulumi.IntArray{ pulumi.Int(1), }, RepeatWeekdays: pulumi.IntArray{ pulumi.Int(1), pulumi.Int(4), }, RetentionDays: pulumi.Int(7), SnapshotPolicyName: pulumi.String("mysnapshotpolicyname"), }) if err != nil { return err } return nil }) }
```
## Import
CBS snapshot policy can be imported using the id, e.g.
```sh
$ pulumi import tencentcloud:Cbs/snapshotPolicy:SnapshotPolicy snapshot_policy asp-jliex1tn
```
func GetSnapshotPolicy ¶
func GetSnapshotPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SnapshotPolicyState, opts ...pulumi.ResourceOption) (*SnapshotPolicy, error)
GetSnapshotPolicy gets an existing SnapshotPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSnapshotPolicy ¶
func NewSnapshotPolicy(ctx *pulumi.Context, name string, args *SnapshotPolicyArgs, opts ...pulumi.ResourceOption) (*SnapshotPolicy, error)
NewSnapshotPolicy registers a new resource with the given unique name, arguments, and options.
func (*SnapshotPolicy) ElementType ¶
func (*SnapshotPolicy) ElementType() reflect.Type
func (*SnapshotPolicy) ToSnapshotPolicyOutput ¶
func (i *SnapshotPolicy) ToSnapshotPolicyOutput() SnapshotPolicyOutput
func (*SnapshotPolicy) ToSnapshotPolicyOutputWithContext ¶
func (i *SnapshotPolicy) ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput
type SnapshotPolicyArgs ¶
type SnapshotPolicyArgs struct { // Trigger times of periodic snapshot. Valid value ranges: (0~23). The 0 means 00:00, and so on. RepeatHours pulumi.IntArrayInput // Periodic snapshot is enabled. Valid values: [0, 1, 2, 3, 4, 5, 6]. 0 means Sunday, 1-6 means Monday to Saturday. RepeatWeekdays pulumi.IntArrayInput // Retention days of the snapshot, and the default value is 7. RetentionDays pulumi.IntPtrInput // Name of snapshot policy. The maximum length can not exceed 60 bytes. SnapshotPolicyName pulumi.StringInput }
The set of arguments for constructing a SnapshotPolicy resource.
func (SnapshotPolicyArgs) ElementType ¶
func (SnapshotPolicyArgs) ElementType() reflect.Type
type SnapshotPolicyArray ¶
type SnapshotPolicyArray []SnapshotPolicyInput
func (SnapshotPolicyArray) ElementType ¶
func (SnapshotPolicyArray) ElementType() reflect.Type
func (SnapshotPolicyArray) ToSnapshotPolicyArrayOutput ¶
func (i SnapshotPolicyArray) ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput
func (SnapshotPolicyArray) ToSnapshotPolicyArrayOutputWithContext ¶
func (i SnapshotPolicyArray) ToSnapshotPolicyArrayOutputWithContext(ctx context.Context) SnapshotPolicyArrayOutput
type SnapshotPolicyArrayInput ¶
type SnapshotPolicyArrayInput interface { pulumi.Input ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput ToSnapshotPolicyArrayOutputWithContext(context.Context) SnapshotPolicyArrayOutput }
SnapshotPolicyArrayInput is an input type that accepts SnapshotPolicyArray and SnapshotPolicyArrayOutput values. You can construct a concrete instance of `SnapshotPolicyArrayInput` via:
SnapshotPolicyArray{ SnapshotPolicyArgs{...} }
type SnapshotPolicyArrayOutput ¶
type SnapshotPolicyArrayOutput struct{ *pulumi.OutputState }
func (SnapshotPolicyArrayOutput) ElementType ¶
func (SnapshotPolicyArrayOutput) ElementType() reflect.Type
func (SnapshotPolicyArrayOutput) Index ¶
func (o SnapshotPolicyArrayOutput) Index(i pulumi.IntInput) SnapshotPolicyOutput
func (SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutput ¶
func (o SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput
func (SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutputWithContext ¶
func (o SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutputWithContext(ctx context.Context) SnapshotPolicyArrayOutput
type SnapshotPolicyAttachment ¶
type SnapshotPolicyAttachment struct { pulumi.CustomResourceState // ID of CBS snapshot policy. SnapshotPolicyId pulumi.StringOutput `pulumi:"snapshotPolicyId"` // ID of CBS. StorageId pulumi.StringOutput `pulumi:"storageId"` }
Provides a CBS snapshot policy attachment resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.NewSnapshotPolicyAttachment(ctx, "foo", &Cbs.SnapshotPolicyAttachmentArgs{ StorageId: pulumi.Any(tencentcloud_cbs_storage.Foo.Id), SnapshotPolicyId: pulumi.Any(tencentcloud_cbs_snapshot_policy.Policy.Id), }) if err != nil { return err } return nil }) }
```
func GetSnapshotPolicyAttachment ¶
func GetSnapshotPolicyAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SnapshotPolicyAttachmentState, opts ...pulumi.ResourceOption) (*SnapshotPolicyAttachment, error)
GetSnapshotPolicyAttachment gets an existing SnapshotPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSnapshotPolicyAttachment ¶
func NewSnapshotPolicyAttachment(ctx *pulumi.Context, name string, args *SnapshotPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*SnapshotPolicyAttachment, error)
NewSnapshotPolicyAttachment registers a new resource with the given unique name, arguments, and options.
func (*SnapshotPolicyAttachment) ElementType ¶
func (*SnapshotPolicyAttachment) ElementType() reflect.Type
func (*SnapshotPolicyAttachment) ToSnapshotPolicyAttachmentOutput ¶
func (i *SnapshotPolicyAttachment) ToSnapshotPolicyAttachmentOutput() SnapshotPolicyAttachmentOutput
func (*SnapshotPolicyAttachment) ToSnapshotPolicyAttachmentOutputWithContext ¶
func (i *SnapshotPolicyAttachment) ToSnapshotPolicyAttachmentOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentOutput
type SnapshotPolicyAttachmentArgs ¶
type SnapshotPolicyAttachmentArgs struct { // ID of CBS snapshot policy. SnapshotPolicyId pulumi.StringInput // ID of CBS. StorageId pulumi.StringInput }
The set of arguments for constructing a SnapshotPolicyAttachment resource.
func (SnapshotPolicyAttachmentArgs) ElementType ¶
func (SnapshotPolicyAttachmentArgs) ElementType() reflect.Type
type SnapshotPolicyAttachmentArray ¶
type SnapshotPolicyAttachmentArray []SnapshotPolicyAttachmentInput
func (SnapshotPolicyAttachmentArray) ElementType ¶
func (SnapshotPolicyAttachmentArray) ElementType() reflect.Type
func (SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutput ¶
func (i SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutput() SnapshotPolicyAttachmentArrayOutput
func (SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutputWithContext ¶
func (i SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentArrayOutput
type SnapshotPolicyAttachmentArrayInput ¶
type SnapshotPolicyAttachmentArrayInput interface { pulumi.Input ToSnapshotPolicyAttachmentArrayOutput() SnapshotPolicyAttachmentArrayOutput ToSnapshotPolicyAttachmentArrayOutputWithContext(context.Context) SnapshotPolicyAttachmentArrayOutput }
SnapshotPolicyAttachmentArrayInput is an input type that accepts SnapshotPolicyAttachmentArray and SnapshotPolicyAttachmentArrayOutput values. You can construct a concrete instance of `SnapshotPolicyAttachmentArrayInput` via:
SnapshotPolicyAttachmentArray{ SnapshotPolicyAttachmentArgs{...} }
type SnapshotPolicyAttachmentArrayOutput ¶
type SnapshotPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }
func (SnapshotPolicyAttachmentArrayOutput) ElementType ¶
func (SnapshotPolicyAttachmentArrayOutput) ElementType() reflect.Type
func (SnapshotPolicyAttachmentArrayOutput) Index ¶
func (o SnapshotPolicyAttachmentArrayOutput) Index(i pulumi.IntInput) SnapshotPolicyAttachmentOutput
func (SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutput ¶
func (o SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutput() SnapshotPolicyAttachmentArrayOutput
func (SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutputWithContext ¶
func (o SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentArrayOutput
type SnapshotPolicyAttachmentInput ¶
type SnapshotPolicyAttachmentInput interface { pulumi.Input ToSnapshotPolicyAttachmentOutput() SnapshotPolicyAttachmentOutput ToSnapshotPolicyAttachmentOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentOutput }
type SnapshotPolicyAttachmentMap ¶
type SnapshotPolicyAttachmentMap map[string]SnapshotPolicyAttachmentInput
func (SnapshotPolicyAttachmentMap) ElementType ¶
func (SnapshotPolicyAttachmentMap) ElementType() reflect.Type
func (SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutput ¶
func (i SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutput() SnapshotPolicyAttachmentMapOutput
func (SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutputWithContext ¶
func (i SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentMapOutput
type SnapshotPolicyAttachmentMapInput ¶
type SnapshotPolicyAttachmentMapInput interface { pulumi.Input ToSnapshotPolicyAttachmentMapOutput() SnapshotPolicyAttachmentMapOutput ToSnapshotPolicyAttachmentMapOutputWithContext(context.Context) SnapshotPolicyAttachmentMapOutput }
SnapshotPolicyAttachmentMapInput is an input type that accepts SnapshotPolicyAttachmentMap and SnapshotPolicyAttachmentMapOutput values. You can construct a concrete instance of `SnapshotPolicyAttachmentMapInput` via:
SnapshotPolicyAttachmentMap{ "key": SnapshotPolicyAttachmentArgs{...} }
type SnapshotPolicyAttachmentMapOutput ¶
type SnapshotPolicyAttachmentMapOutput struct{ *pulumi.OutputState }
func (SnapshotPolicyAttachmentMapOutput) ElementType ¶
func (SnapshotPolicyAttachmentMapOutput) ElementType() reflect.Type
func (SnapshotPolicyAttachmentMapOutput) MapIndex ¶
func (o SnapshotPolicyAttachmentMapOutput) MapIndex(k pulumi.StringInput) SnapshotPolicyAttachmentOutput
func (SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutput ¶
func (o SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutput() SnapshotPolicyAttachmentMapOutput
func (SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutputWithContext ¶
func (o SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentMapOutput
type SnapshotPolicyAttachmentOutput ¶
type SnapshotPolicyAttachmentOutput struct{ *pulumi.OutputState }
func (SnapshotPolicyAttachmentOutput) ElementType ¶
func (SnapshotPolicyAttachmentOutput) ElementType() reflect.Type
func (SnapshotPolicyAttachmentOutput) SnapshotPolicyId ¶
func (o SnapshotPolicyAttachmentOutput) SnapshotPolicyId() pulumi.StringOutput
ID of CBS snapshot policy.
func (SnapshotPolicyAttachmentOutput) StorageId ¶
func (o SnapshotPolicyAttachmentOutput) StorageId() pulumi.StringOutput
ID of CBS.
func (SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutput ¶
func (o SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutput() SnapshotPolicyAttachmentOutput
func (SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutputWithContext ¶
func (o SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentOutput
type SnapshotPolicyAttachmentState ¶
type SnapshotPolicyAttachmentState struct { // ID of CBS snapshot policy. SnapshotPolicyId pulumi.StringPtrInput // ID of CBS. StorageId pulumi.StringPtrInput }
func (SnapshotPolicyAttachmentState) ElementType ¶
func (SnapshotPolicyAttachmentState) ElementType() reflect.Type
type SnapshotPolicyInput ¶
type SnapshotPolicyInput interface { pulumi.Input ToSnapshotPolicyOutput() SnapshotPolicyOutput ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput }
type SnapshotPolicyMap ¶
type SnapshotPolicyMap map[string]SnapshotPolicyInput
func (SnapshotPolicyMap) ElementType ¶
func (SnapshotPolicyMap) ElementType() reflect.Type
func (SnapshotPolicyMap) ToSnapshotPolicyMapOutput ¶
func (i SnapshotPolicyMap) ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput
func (SnapshotPolicyMap) ToSnapshotPolicyMapOutputWithContext ¶
func (i SnapshotPolicyMap) ToSnapshotPolicyMapOutputWithContext(ctx context.Context) SnapshotPolicyMapOutput
type SnapshotPolicyMapInput ¶
type SnapshotPolicyMapInput interface { pulumi.Input ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput ToSnapshotPolicyMapOutputWithContext(context.Context) SnapshotPolicyMapOutput }
SnapshotPolicyMapInput is an input type that accepts SnapshotPolicyMap and SnapshotPolicyMapOutput values. You can construct a concrete instance of `SnapshotPolicyMapInput` via:
SnapshotPolicyMap{ "key": SnapshotPolicyArgs{...} }
type SnapshotPolicyMapOutput ¶
type SnapshotPolicyMapOutput struct{ *pulumi.OutputState }
func (SnapshotPolicyMapOutput) ElementType ¶
func (SnapshotPolicyMapOutput) ElementType() reflect.Type
func (SnapshotPolicyMapOutput) MapIndex ¶
func (o SnapshotPolicyMapOutput) MapIndex(k pulumi.StringInput) SnapshotPolicyOutput
func (SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutput ¶
func (o SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput
func (SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutputWithContext ¶
func (o SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutputWithContext(ctx context.Context) SnapshotPolicyMapOutput
type SnapshotPolicyOutput ¶
type SnapshotPolicyOutput struct{ *pulumi.OutputState }
func (SnapshotPolicyOutput) ElementType ¶
func (SnapshotPolicyOutput) ElementType() reflect.Type
func (SnapshotPolicyOutput) RepeatHours ¶
func (o SnapshotPolicyOutput) RepeatHours() pulumi.IntArrayOutput
Trigger times of periodic snapshot. Valid value ranges: (0~23). The 0 means 00:00, and so on.
func (SnapshotPolicyOutput) RepeatWeekdays ¶
func (o SnapshotPolicyOutput) RepeatWeekdays() pulumi.IntArrayOutput
Periodic snapshot is enabled. Valid values: [0, 1, 2, 3, 4, 5, 6]. 0 means Sunday, 1-6 means Monday to Saturday.
func (SnapshotPolicyOutput) RetentionDays ¶
func (o SnapshotPolicyOutput) RetentionDays() pulumi.IntPtrOutput
Retention days of the snapshot, and the default value is 7.
func (SnapshotPolicyOutput) SnapshotPolicyName ¶
func (o SnapshotPolicyOutput) SnapshotPolicyName() pulumi.StringOutput
Name of snapshot policy. The maximum length can not exceed 60 bytes.
func (SnapshotPolicyOutput) ToSnapshotPolicyOutput ¶
func (o SnapshotPolicyOutput) ToSnapshotPolicyOutput() SnapshotPolicyOutput
func (SnapshotPolicyOutput) ToSnapshotPolicyOutputWithContext ¶
func (o SnapshotPolicyOutput) ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput
type SnapshotPolicyState ¶
type SnapshotPolicyState struct { // Trigger times of periodic snapshot. Valid value ranges: (0~23). The 0 means 00:00, and so on. RepeatHours pulumi.IntArrayInput // Periodic snapshot is enabled. Valid values: [0, 1, 2, 3, 4, 5, 6]. 0 means Sunday, 1-6 means Monday to Saturday. RepeatWeekdays pulumi.IntArrayInput // Retention days of the snapshot, and the default value is 7. RetentionDays pulumi.IntPtrInput // Name of snapshot policy. The maximum length can not exceed 60 bytes. SnapshotPolicyName pulumi.StringPtrInput }
func (SnapshotPolicyState) ElementType ¶
func (SnapshotPolicyState) ElementType() reflect.Type
type SnapshotState ¶
type SnapshotState struct { // Creation time of snapshot. CreateTime pulumi.StringPtrInput // Types of CBS which this snapshot created from. DiskType pulumi.StringPtrInput // Snapshot creation progress percentage. If the snapshot has created successfully, the constant value is 100. Percent pulumi.IntPtrInput // Name of the snapshot. SnapshotName pulumi.StringPtrInput // Status of the snapshot. SnapshotStatus pulumi.StringPtrInput // ID of the the CBS which this snapshot created from. StorageId pulumi.StringPtrInput // Volume of storage which this snapshot created from. StorageSize pulumi.IntPtrInput }
func (SnapshotState) ElementType ¶
func (SnapshotState) ElementType() reflect.Type
type Storage ¶
type Storage struct { pulumi.CustomResourceState // Indicates whether the CBS is mounted the CVM. Attached pulumi.BoolOutput `pulumi:"attached"` // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"` // The charge type of CBS instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`. ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"` // Indicates whether CBS is encrypted. Encrypt pulumi.BoolPtrOutput `pulumi:"encrypt"` // Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. ForceDelete pulumi.BoolPtrOutput `pulumi:"forceDelete"` // It has been deprecated from version 1.33.0. Set `prepaidPeriod` instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. // // Deprecated: It has been deprecated from version 1.33.0. Set `prepaid_period` instead. Period pulumi.IntPtrOutput `pulumi:"period"` // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when chargeType is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. PrepaidPeriod pulumi.IntOutput `pulumi:"prepaidPeriod"` // Auto Renewal flag. Value range: `NOTIFY_AND_AUTO_RENEW`: Notify expiry and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Neither notify expiry nor renew automatically. Default value range: `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically. NOTE: it only works when chargeType is set to `PREPAID`. PrepaidRenewFlag pulumi.StringOutput `pulumi:"prepaidRenewFlag"` // ID of the project to which the instance belongs. ProjectId pulumi.IntPtrOutput `pulumi:"projectId"` // ID of the snapshot. If specified, created the CBS by this snapshot. SnapshotId pulumi.StringOutput `pulumi:"snapshotId"` // Name of CBS. The maximum length can not exceed 60 bytes. StorageName pulumi.StringOutput `pulumi:"storageName"` // Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000]. StorageSize pulumi.IntOutput `pulumi:"storageSize"` // Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING. StorageStatus pulumi.StringOutput `pulumi:"storageStatus"` // Type of CBS medium. Valid values: CLOUD_PREMIUM, CLOUD_SSD, CLOUD_TSSD and CLOUD_HSSD. StorageType pulumi.StringOutput `pulumi:"storageType"` // The available tags within this CBS. Tags pulumi.MapOutput `pulumi:"tags"` // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance pulumi.IntPtrOutput `pulumi:"throughputPerformance"` }
Provides a resource to create a CBS.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.NewStorage(ctx, "storage", &Cbs.StorageArgs{ AvailabilityZone: pulumi.String("ap-guangzhou-3"), Encrypt: pulumi.Bool(false), ProjectId: pulumi.Int(0), StorageName: pulumi.String("mystorage"), StorageSize: pulumi.Int(100), StorageType: pulumi.String("CLOUD_SSD"), Tags: pulumi.AnyMap{ "test": pulumi.Any("tf"), }, }) if err != nil { return err } return nil }) }
```
## Import
CBS storage can be imported using the id, e.g.
```sh
$ pulumi import tencentcloud:Cbs/storage:Storage storage disk-41s6jwy4
```
func GetStorage ¶
func GetStorage(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StorageState, opts ...pulumi.ResourceOption) (*Storage, error)
GetStorage gets an existing Storage resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewStorage ¶
func NewStorage(ctx *pulumi.Context, name string, args *StorageArgs, opts ...pulumi.ResourceOption) (*Storage, error)
NewStorage registers a new resource with the given unique name, arguments, and options.
func (*Storage) ElementType ¶
func (*Storage) ToStorageOutput ¶
func (i *Storage) ToStorageOutput() StorageOutput
func (*Storage) ToStorageOutputWithContext ¶
func (i *Storage) ToStorageOutputWithContext(ctx context.Context) StorageOutput
type StorageArgs ¶
type StorageArgs struct { // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringInput // The charge type of CBS instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`. ChargeType pulumi.StringPtrInput // Indicates whether CBS is encrypted. Encrypt pulumi.BoolPtrInput // Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. ForceDelete pulumi.BoolPtrInput // It has been deprecated from version 1.33.0. Set `prepaidPeriod` instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. // // Deprecated: It has been deprecated from version 1.33.0. Set `prepaid_period` instead. Period pulumi.IntPtrInput // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when chargeType is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. PrepaidPeriod pulumi.IntPtrInput // Auto Renewal flag. Value range: `NOTIFY_AND_AUTO_RENEW`: Notify expiry and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Neither notify expiry nor renew automatically. Default value range: `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically. NOTE: it only works when chargeType is set to `PREPAID`. PrepaidRenewFlag pulumi.StringPtrInput // ID of the project to which the instance belongs. ProjectId pulumi.IntPtrInput // ID of the snapshot. If specified, created the CBS by this snapshot. SnapshotId pulumi.StringPtrInput // Name of CBS. The maximum length can not exceed 60 bytes. StorageName pulumi.StringInput // Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000]. StorageSize pulumi.IntInput // Type of CBS medium. Valid values: CLOUD_PREMIUM, CLOUD_SSD, CLOUD_TSSD and CLOUD_HSSD. StorageType pulumi.StringInput // The available tags within this CBS. Tags pulumi.MapInput // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance pulumi.IntPtrInput }
The set of arguments for constructing a Storage resource.
func (StorageArgs) ElementType ¶
func (StorageArgs) ElementType() reflect.Type
type StorageArray ¶
type StorageArray []StorageInput
func (StorageArray) ElementType ¶
func (StorageArray) ElementType() reflect.Type
func (StorageArray) ToStorageArrayOutput ¶
func (i StorageArray) ToStorageArrayOutput() StorageArrayOutput
func (StorageArray) ToStorageArrayOutputWithContext ¶
func (i StorageArray) ToStorageArrayOutputWithContext(ctx context.Context) StorageArrayOutput
type StorageArrayInput ¶
type StorageArrayInput interface { pulumi.Input ToStorageArrayOutput() StorageArrayOutput ToStorageArrayOutputWithContext(context.Context) StorageArrayOutput }
StorageArrayInput is an input type that accepts StorageArray and StorageArrayOutput values. You can construct a concrete instance of `StorageArrayInput` via:
StorageArray{ StorageArgs{...} }
type StorageArrayOutput ¶
type StorageArrayOutput struct{ *pulumi.OutputState }
func (StorageArrayOutput) ElementType ¶
func (StorageArrayOutput) ElementType() reflect.Type
func (StorageArrayOutput) Index ¶
func (o StorageArrayOutput) Index(i pulumi.IntInput) StorageOutput
func (StorageArrayOutput) ToStorageArrayOutput ¶
func (o StorageArrayOutput) ToStorageArrayOutput() StorageArrayOutput
func (StorageArrayOutput) ToStorageArrayOutputWithContext ¶
func (o StorageArrayOutput) ToStorageArrayOutputWithContext(ctx context.Context) StorageArrayOutput
type StorageAttachment ¶
type StorageAttachment struct { pulumi.CustomResourceState // ID of the CVM instance. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // ID of the mounted CBS. StorageId pulumi.StringOutput `pulumi:"storageId"` }
Provides a CBS storage attachment resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.NewStorageAttachment(ctx, "attachment", &Cbs.StorageAttachmentArgs{ InstanceId: pulumi.String("ins-jqlegd42"), StorageId: pulumi.String("disk-kdt0sq6m"), }) if err != nil { return err } return nil }) }
```
## Import
CBS storage attachment can be imported using the id, e.g.
```sh
$ pulumi import tencentcloud:Cbs/storageAttachment:StorageAttachment attachment disk-41s6jwy4
```
func GetStorageAttachment ¶
func GetStorageAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StorageAttachmentState, opts ...pulumi.ResourceOption) (*StorageAttachment, error)
GetStorageAttachment gets an existing StorageAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewStorageAttachment ¶
func NewStorageAttachment(ctx *pulumi.Context, name string, args *StorageAttachmentArgs, opts ...pulumi.ResourceOption) (*StorageAttachment, error)
NewStorageAttachment registers a new resource with the given unique name, arguments, and options.
func (*StorageAttachment) ElementType ¶
func (*StorageAttachment) ElementType() reflect.Type
func (*StorageAttachment) ToStorageAttachmentOutput ¶
func (i *StorageAttachment) ToStorageAttachmentOutput() StorageAttachmentOutput
func (*StorageAttachment) ToStorageAttachmentOutputWithContext ¶
func (i *StorageAttachment) ToStorageAttachmentOutputWithContext(ctx context.Context) StorageAttachmentOutput
type StorageAttachmentArgs ¶
type StorageAttachmentArgs struct { // ID of the CVM instance. InstanceId pulumi.StringInput // ID of the mounted CBS. StorageId pulumi.StringInput }
The set of arguments for constructing a StorageAttachment resource.
func (StorageAttachmentArgs) ElementType ¶
func (StorageAttachmentArgs) ElementType() reflect.Type
type StorageAttachmentArray ¶
type StorageAttachmentArray []StorageAttachmentInput
func (StorageAttachmentArray) ElementType ¶
func (StorageAttachmentArray) ElementType() reflect.Type
func (StorageAttachmentArray) ToStorageAttachmentArrayOutput ¶
func (i StorageAttachmentArray) ToStorageAttachmentArrayOutput() StorageAttachmentArrayOutput
func (StorageAttachmentArray) ToStorageAttachmentArrayOutputWithContext ¶
func (i StorageAttachmentArray) ToStorageAttachmentArrayOutputWithContext(ctx context.Context) StorageAttachmentArrayOutput
type StorageAttachmentArrayInput ¶
type StorageAttachmentArrayInput interface { pulumi.Input ToStorageAttachmentArrayOutput() StorageAttachmentArrayOutput ToStorageAttachmentArrayOutputWithContext(context.Context) StorageAttachmentArrayOutput }
StorageAttachmentArrayInput is an input type that accepts StorageAttachmentArray and StorageAttachmentArrayOutput values. You can construct a concrete instance of `StorageAttachmentArrayInput` via:
StorageAttachmentArray{ StorageAttachmentArgs{...} }
type StorageAttachmentArrayOutput ¶
type StorageAttachmentArrayOutput struct{ *pulumi.OutputState }
func (StorageAttachmentArrayOutput) ElementType ¶
func (StorageAttachmentArrayOutput) ElementType() reflect.Type
func (StorageAttachmentArrayOutput) Index ¶
func (o StorageAttachmentArrayOutput) Index(i pulumi.IntInput) StorageAttachmentOutput
func (StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutput ¶
func (o StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutput() StorageAttachmentArrayOutput
func (StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutputWithContext ¶
func (o StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutputWithContext(ctx context.Context) StorageAttachmentArrayOutput
type StorageAttachmentInput ¶
type StorageAttachmentInput interface { pulumi.Input ToStorageAttachmentOutput() StorageAttachmentOutput ToStorageAttachmentOutputWithContext(ctx context.Context) StorageAttachmentOutput }
type StorageAttachmentMap ¶
type StorageAttachmentMap map[string]StorageAttachmentInput
func (StorageAttachmentMap) ElementType ¶
func (StorageAttachmentMap) ElementType() reflect.Type
func (StorageAttachmentMap) ToStorageAttachmentMapOutput ¶
func (i StorageAttachmentMap) ToStorageAttachmentMapOutput() StorageAttachmentMapOutput
func (StorageAttachmentMap) ToStorageAttachmentMapOutputWithContext ¶
func (i StorageAttachmentMap) ToStorageAttachmentMapOutputWithContext(ctx context.Context) StorageAttachmentMapOutput
type StorageAttachmentMapInput ¶
type StorageAttachmentMapInput interface { pulumi.Input ToStorageAttachmentMapOutput() StorageAttachmentMapOutput ToStorageAttachmentMapOutputWithContext(context.Context) StorageAttachmentMapOutput }
StorageAttachmentMapInput is an input type that accepts StorageAttachmentMap and StorageAttachmentMapOutput values. You can construct a concrete instance of `StorageAttachmentMapInput` via:
StorageAttachmentMap{ "key": StorageAttachmentArgs{...} }
type StorageAttachmentMapOutput ¶
type StorageAttachmentMapOutput struct{ *pulumi.OutputState }
func (StorageAttachmentMapOutput) ElementType ¶
func (StorageAttachmentMapOutput) ElementType() reflect.Type
func (StorageAttachmentMapOutput) MapIndex ¶
func (o StorageAttachmentMapOutput) MapIndex(k pulumi.StringInput) StorageAttachmentOutput
func (StorageAttachmentMapOutput) ToStorageAttachmentMapOutput ¶
func (o StorageAttachmentMapOutput) ToStorageAttachmentMapOutput() StorageAttachmentMapOutput
func (StorageAttachmentMapOutput) ToStorageAttachmentMapOutputWithContext ¶
func (o StorageAttachmentMapOutput) ToStorageAttachmentMapOutputWithContext(ctx context.Context) StorageAttachmentMapOutput
type StorageAttachmentOutput ¶
type StorageAttachmentOutput struct{ *pulumi.OutputState }
func (StorageAttachmentOutput) ElementType ¶
func (StorageAttachmentOutput) ElementType() reflect.Type
func (StorageAttachmentOutput) InstanceId ¶
func (o StorageAttachmentOutput) InstanceId() pulumi.StringOutput
ID of the CVM instance.
func (StorageAttachmentOutput) StorageId ¶
func (o StorageAttachmentOutput) StorageId() pulumi.StringOutput
ID of the mounted CBS.
func (StorageAttachmentOutput) ToStorageAttachmentOutput ¶
func (o StorageAttachmentOutput) ToStorageAttachmentOutput() StorageAttachmentOutput
func (StorageAttachmentOutput) ToStorageAttachmentOutputWithContext ¶
func (o StorageAttachmentOutput) ToStorageAttachmentOutputWithContext(ctx context.Context) StorageAttachmentOutput
type StorageAttachmentState ¶
type StorageAttachmentState struct { // ID of the CVM instance. InstanceId pulumi.StringPtrInput // ID of the mounted CBS. StorageId pulumi.StringPtrInput }
func (StorageAttachmentState) ElementType ¶
func (StorageAttachmentState) ElementType() reflect.Type
type StorageInput ¶
type StorageInput interface { pulumi.Input ToStorageOutput() StorageOutput ToStorageOutputWithContext(ctx context.Context) StorageOutput }
type StorageMap ¶
type StorageMap map[string]StorageInput
func (StorageMap) ElementType ¶
func (StorageMap) ElementType() reflect.Type
func (StorageMap) ToStorageMapOutput ¶
func (i StorageMap) ToStorageMapOutput() StorageMapOutput
func (StorageMap) ToStorageMapOutputWithContext ¶
func (i StorageMap) ToStorageMapOutputWithContext(ctx context.Context) StorageMapOutput
type StorageMapInput ¶
type StorageMapInput interface { pulumi.Input ToStorageMapOutput() StorageMapOutput ToStorageMapOutputWithContext(context.Context) StorageMapOutput }
StorageMapInput is an input type that accepts StorageMap and StorageMapOutput values. You can construct a concrete instance of `StorageMapInput` via:
StorageMap{ "key": StorageArgs{...} }
type StorageMapOutput ¶
type StorageMapOutput struct{ *pulumi.OutputState }
func (StorageMapOutput) ElementType ¶
func (StorageMapOutput) ElementType() reflect.Type
func (StorageMapOutput) MapIndex ¶
func (o StorageMapOutput) MapIndex(k pulumi.StringInput) StorageOutput
func (StorageMapOutput) ToStorageMapOutput ¶
func (o StorageMapOutput) ToStorageMapOutput() StorageMapOutput
func (StorageMapOutput) ToStorageMapOutputWithContext ¶
func (o StorageMapOutput) ToStorageMapOutputWithContext(ctx context.Context) StorageMapOutput
type StorageOutput ¶
type StorageOutput struct{ *pulumi.OutputState }
func (StorageOutput) Attached ¶
func (o StorageOutput) Attached() pulumi.BoolOutput
Indicates whether the CBS is mounted the CVM.
func (StorageOutput) AvailabilityZone ¶
func (o StorageOutput) AvailabilityZone() pulumi.StringOutput
The available zone that the CBS instance locates at.
func (StorageOutput) ChargeType ¶
func (o StorageOutput) ChargeType() pulumi.StringPtrOutput
The charge type of CBS instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`.
func (StorageOutput) ElementType ¶
func (StorageOutput) ElementType() reflect.Type
func (StorageOutput) Encrypt ¶
func (o StorageOutput) Encrypt() pulumi.BoolPtrOutput
Indicates whether CBS is encrypted.
func (StorageOutput) ForceDelete ¶
func (o StorageOutput) ForceDelete() pulumi.BoolPtrOutput
Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
func (StorageOutput) Period
deprecated
func (o StorageOutput) Period() pulumi.IntPtrOutput
It has been deprecated from version 1.33.0. Set `prepaidPeriod` instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36].
Deprecated: It has been deprecated from version 1.33.0. Set `prepaid_period` instead.
func (StorageOutput) PrepaidPeriod ¶
func (o StorageOutput) PrepaidPeriod() pulumi.IntOutput
The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when chargeType is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
func (StorageOutput) PrepaidRenewFlag ¶
func (o StorageOutput) PrepaidRenewFlag() pulumi.StringOutput
Auto Renewal flag. Value range: `NOTIFY_AND_AUTO_RENEW`: Notify expiry and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Neither notify expiry nor renew automatically. Default value range: `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically. NOTE: it only works when chargeType is set to `PREPAID`.
func (StorageOutput) ProjectId ¶
func (o StorageOutput) ProjectId() pulumi.IntPtrOutput
ID of the project to which the instance belongs.
func (StorageOutput) SnapshotId ¶
func (o StorageOutput) SnapshotId() pulumi.StringOutput
ID of the snapshot. If specified, created the CBS by this snapshot.
func (StorageOutput) StorageName ¶
func (o StorageOutput) StorageName() pulumi.StringOutput
Name of CBS. The maximum length can not exceed 60 bytes.
func (StorageOutput) StorageSize ¶
func (o StorageOutput) StorageSize() pulumi.IntOutput
Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000].
func (StorageOutput) StorageStatus ¶
func (o StorageOutput) StorageStatus() pulumi.StringOutput
Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
func (StorageOutput) StorageType ¶
func (o StorageOutput) StorageType() pulumi.StringOutput
Type of CBS medium. Valid values: CLOUD_PREMIUM, CLOUD_SSD, CLOUD_TSSD and CLOUD_HSSD.
func (StorageOutput) Tags ¶
func (o StorageOutput) Tags() pulumi.MapOutput
The available tags within this CBS.
func (StorageOutput) ThroughputPerformance ¶
func (o StorageOutput) ThroughputPerformance() pulumi.IntPtrOutput
Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
func (StorageOutput) ToStorageOutput ¶
func (o StorageOutput) ToStorageOutput() StorageOutput
func (StorageOutput) ToStorageOutputWithContext ¶
func (o StorageOutput) ToStorageOutputWithContext(ctx context.Context) StorageOutput
type StorageSet ¶
type StorageSet struct { pulumi.CustomResourceState // Indicates whether the CBS is mounted the CVM. Attached pulumi.BoolOutput `pulumi:"attached"` // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"` // The charge type of CBS instance. Only support `POSTPAID_BY_HOUR`. ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"` // The number of disks to be purchased. Default 1. DiskCount pulumi.IntPtrOutput `pulumi:"diskCount"` // disk id list. DiskIds pulumi.StringArrayOutput `pulumi:"diskIds"` // Indicates whether CBS is encrypted. Encrypt pulumi.BoolPtrOutput `pulumi:"encrypt"` // ID of the project to which the instance belongs. ProjectId pulumi.IntPtrOutput `pulumi:"projectId"` // ID of the snapshot. If specified, created the CBS by this snapshot. SnapshotId pulumi.StringOutput `pulumi:"snapshotId"` // Name of CBS. The maximum length can not exceed 60 bytes. StorageName pulumi.StringOutput `pulumi:"storageName"` // Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000]. StorageSize pulumi.IntOutput `pulumi:"storageSize"` // Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING. StorageStatus pulumi.StringOutput `pulumi:"storageStatus"` // Type of CBS medium. Valid values: CLOUD_PREMIUM, CLOUD_SSD, CLOUD_TSSD and CLOUD_HSSD. StorageType pulumi.StringOutput `pulumi:"storageType"` // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance pulumi.IntPtrOutput `pulumi:"throughputPerformance"` }
Provides a resource to create CBS set.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.NewStorageSet(ctx, "storage", &Cbs.StorageSetArgs{ AvailabilityZone: pulumi.String("ap-guangzhou-3"), DiskCount: pulumi.Int(10), Encrypt: pulumi.Bool(false), ProjectId: pulumi.Int(0), StorageName: pulumi.String("mystorage"), StorageSize: pulumi.Int(100), StorageType: pulumi.String("CLOUD_SSD"), }) if err != nil { return err } return nil }) }
```
func GetStorageSet ¶
func GetStorageSet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StorageSetState, opts ...pulumi.ResourceOption) (*StorageSet, error)
GetStorageSet gets an existing StorageSet resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewStorageSet ¶
func NewStorageSet(ctx *pulumi.Context, name string, args *StorageSetArgs, opts ...pulumi.ResourceOption) (*StorageSet, error)
NewStorageSet registers a new resource with the given unique name, arguments, and options.
func (*StorageSet) ElementType ¶
func (*StorageSet) ElementType() reflect.Type
func (*StorageSet) ToStorageSetOutput ¶
func (i *StorageSet) ToStorageSetOutput() StorageSetOutput
func (*StorageSet) ToStorageSetOutputWithContext ¶
func (i *StorageSet) ToStorageSetOutputWithContext(ctx context.Context) StorageSetOutput
type StorageSetArgs ¶
type StorageSetArgs struct { // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringInput // The charge type of CBS instance. Only support `POSTPAID_BY_HOUR`. ChargeType pulumi.StringPtrInput // The number of disks to be purchased. Default 1. DiskCount pulumi.IntPtrInput // Indicates whether CBS is encrypted. Encrypt pulumi.BoolPtrInput // ID of the project to which the instance belongs. ProjectId pulumi.IntPtrInput // ID of the snapshot. If specified, created the CBS by this snapshot. SnapshotId pulumi.StringPtrInput // Name of CBS. The maximum length can not exceed 60 bytes. StorageName pulumi.StringInput // Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000]. StorageSize pulumi.IntInput // Type of CBS medium. Valid values: CLOUD_PREMIUM, CLOUD_SSD, CLOUD_TSSD and CLOUD_HSSD. StorageType pulumi.StringInput // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance pulumi.IntPtrInput }
The set of arguments for constructing a StorageSet resource.
func (StorageSetArgs) ElementType ¶
func (StorageSetArgs) ElementType() reflect.Type
type StorageSetArray ¶
type StorageSetArray []StorageSetInput
func (StorageSetArray) ElementType ¶
func (StorageSetArray) ElementType() reflect.Type
func (StorageSetArray) ToStorageSetArrayOutput ¶
func (i StorageSetArray) ToStorageSetArrayOutput() StorageSetArrayOutput
func (StorageSetArray) ToStorageSetArrayOutputWithContext ¶
func (i StorageSetArray) ToStorageSetArrayOutputWithContext(ctx context.Context) StorageSetArrayOutput
type StorageSetArrayInput ¶
type StorageSetArrayInput interface { pulumi.Input ToStorageSetArrayOutput() StorageSetArrayOutput ToStorageSetArrayOutputWithContext(context.Context) StorageSetArrayOutput }
StorageSetArrayInput is an input type that accepts StorageSetArray and StorageSetArrayOutput values. You can construct a concrete instance of `StorageSetArrayInput` via:
StorageSetArray{ StorageSetArgs{...} }
type StorageSetArrayOutput ¶
type StorageSetArrayOutput struct{ *pulumi.OutputState }
func (StorageSetArrayOutput) ElementType ¶
func (StorageSetArrayOutput) ElementType() reflect.Type
func (StorageSetArrayOutput) Index ¶
func (o StorageSetArrayOutput) Index(i pulumi.IntInput) StorageSetOutput
func (StorageSetArrayOutput) ToStorageSetArrayOutput ¶
func (o StorageSetArrayOutput) ToStorageSetArrayOutput() StorageSetArrayOutput
func (StorageSetArrayOutput) ToStorageSetArrayOutputWithContext ¶
func (o StorageSetArrayOutput) ToStorageSetArrayOutputWithContext(ctx context.Context) StorageSetArrayOutput
type StorageSetAttachment ¶
type StorageSetAttachment struct { pulumi.CustomResourceState // ID of the CVM instance. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // ID of the mounted CBS. StorageId pulumi.StringOutput `pulumi:"storageId"` }
Provides a CBS storage set attachment resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Cbs.NewStorageSetAttachment(ctx, "attachment", &Cbs.StorageSetAttachmentArgs{ InstanceId: pulumi.String("ins-jqlegd42"), StorageId: pulumi.String("disk-kdt0sq6m"), }) if err != nil { return err } return nil }) }
```
func GetStorageSetAttachment ¶
func GetStorageSetAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StorageSetAttachmentState, opts ...pulumi.ResourceOption) (*StorageSetAttachment, error)
GetStorageSetAttachment gets an existing StorageSetAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewStorageSetAttachment ¶
func NewStorageSetAttachment(ctx *pulumi.Context, name string, args *StorageSetAttachmentArgs, opts ...pulumi.ResourceOption) (*StorageSetAttachment, error)
NewStorageSetAttachment registers a new resource with the given unique name, arguments, and options.
func (*StorageSetAttachment) ElementType ¶
func (*StorageSetAttachment) ElementType() reflect.Type
func (*StorageSetAttachment) ToStorageSetAttachmentOutput ¶
func (i *StorageSetAttachment) ToStorageSetAttachmentOutput() StorageSetAttachmentOutput
func (*StorageSetAttachment) ToStorageSetAttachmentOutputWithContext ¶
func (i *StorageSetAttachment) ToStorageSetAttachmentOutputWithContext(ctx context.Context) StorageSetAttachmentOutput
type StorageSetAttachmentArgs ¶
type StorageSetAttachmentArgs struct { // ID of the CVM instance. InstanceId pulumi.StringInput // ID of the mounted CBS. StorageId pulumi.StringInput }
The set of arguments for constructing a StorageSetAttachment resource.
func (StorageSetAttachmentArgs) ElementType ¶
func (StorageSetAttachmentArgs) ElementType() reflect.Type
type StorageSetAttachmentArray ¶
type StorageSetAttachmentArray []StorageSetAttachmentInput
func (StorageSetAttachmentArray) ElementType ¶
func (StorageSetAttachmentArray) ElementType() reflect.Type
func (StorageSetAttachmentArray) ToStorageSetAttachmentArrayOutput ¶
func (i StorageSetAttachmentArray) ToStorageSetAttachmentArrayOutput() StorageSetAttachmentArrayOutput
func (StorageSetAttachmentArray) ToStorageSetAttachmentArrayOutputWithContext ¶
func (i StorageSetAttachmentArray) ToStorageSetAttachmentArrayOutputWithContext(ctx context.Context) StorageSetAttachmentArrayOutput
type StorageSetAttachmentArrayInput ¶
type StorageSetAttachmentArrayInput interface { pulumi.Input ToStorageSetAttachmentArrayOutput() StorageSetAttachmentArrayOutput ToStorageSetAttachmentArrayOutputWithContext(context.Context) StorageSetAttachmentArrayOutput }
StorageSetAttachmentArrayInput is an input type that accepts StorageSetAttachmentArray and StorageSetAttachmentArrayOutput values. You can construct a concrete instance of `StorageSetAttachmentArrayInput` via:
StorageSetAttachmentArray{ StorageSetAttachmentArgs{...} }
type StorageSetAttachmentArrayOutput ¶
type StorageSetAttachmentArrayOutput struct{ *pulumi.OutputState }
func (StorageSetAttachmentArrayOutput) ElementType ¶
func (StorageSetAttachmentArrayOutput) ElementType() reflect.Type
func (StorageSetAttachmentArrayOutput) Index ¶
func (o StorageSetAttachmentArrayOutput) Index(i pulumi.IntInput) StorageSetAttachmentOutput
func (StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutput ¶
func (o StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutput() StorageSetAttachmentArrayOutput
func (StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutputWithContext ¶
func (o StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutputWithContext(ctx context.Context) StorageSetAttachmentArrayOutput
type StorageSetAttachmentInput ¶
type StorageSetAttachmentInput interface { pulumi.Input ToStorageSetAttachmentOutput() StorageSetAttachmentOutput ToStorageSetAttachmentOutputWithContext(ctx context.Context) StorageSetAttachmentOutput }
type StorageSetAttachmentMap ¶
type StorageSetAttachmentMap map[string]StorageSetAttachmentInput
func (StorageSetAttachmentMap) ElementType ¶
func (StorageSetAttachmentMap) ElementType() reflect.Type
func (StorageSetAttachmentMap) ToStorageSetAttachmentMapOutput ¶
func (i StorageSetAttachmentMap) ToStorageSetAttachmentMapOutput() StorageSetAttachmentMapOutput
func (StorageSetAttachmentMap) ToStorageSetAttachmentMapOutputWithContext ¶
func (i StorageSetAttachmentMap) ToStorageSetAttachmentMapOutputWithContext(ctx context.Context) StorageSetAttachmentMapOutput
type StorageSetAttachmentMapInput ¶
type StorageSetAttachmentMapInput interface { pulumi.Input ToStorageSetAttachmentMapOutput() StorageSetAttachmentMapOutput ToStorageSetAttachmentMapOutputWithContext(context.Context) StorageSetAttachmentMapOutput }
StorageSetAttachmentMapInput is an input type that accepts StorageSetAttachmentMap and StorageSetAttachmentMapOutput values. You can construct a concrete instance of `StorageSetAttachmentMapInput` via:
StorageSetAttachmentMap{ "key": StorageSetAttachmentArgs{...} }
type StorageSetAttachmentMapOutput ¶
type StorageSetAttachmentMapOutput struct{ *pulumi.OutputState }
func (StorageSetAttachmentMapOutput) ElementType ¶
func (StorageSetAttachmentMapOutput) ElementType() reflect.Type
func (StorageSetAttachmentMapOutput) MapIndex ¶
func (o StorageSetAttachmentMapOutput) MapIndex(k pulumi.StringInput) StorageSetAttachmentOutput
func (StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutput ¶
func (o StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutput() StorageSetAttachmentMapOutput
func (StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutputWithContext ¶
func (o StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutputWithContext(ctx context.Context) StorageSetAttachmentMapOutput
type StorageSetAttachmentOutput ¶
type StorageSetAttachmentOutput struct{ *pulumi.OutputState }
func (StorageSetAttachmentOutput) ElementType ¶
func (StorageSetAttachmentOutput) ElementType() reflect.Type
func (StorageSetAttachmentOutput) InstanceId ¶
func (o StorageSetAttachmentOutput) InstanceId() pulumi.StringOutput
ID of the CVM instance.
func (StorageSetAttachmentOutput) StorageId ¶
func (o StorageSetAttachmentOutput) StorageId() pulumi.StringOutput
ID of the mounted CBS.
func (StorageSetAttachmentOutput) ToStorageSetAttachmentOutput ¶
func (o StorageSetAttachmentOutput) ToStorageSetAttachmentOutput() StorageSetAttachmentOutput
func (StorageSetAttachmentOutput) ToStorageSetAttachmentOutputWithContext ¶
func (o StorageSetAttachmentOutput) ToStorageSetAttachmentOutputWithContext(ctx context.Context) StorageSetAttachmentOutput
type StorageSetAttachmentState ¶
type StorageSetAttachmentState struct { // ID of the CVM instance. InstanceId pulumi.StringPtrInput // ID of the mounted CBS. StorageId pulumi.StringPtrInput }
func (StorageSetAttachmentState) ElementType ¶
func (StorageSetAttachmentState) ElementType() reflect.Type
type StorageSetInput ¶
type StorageSetInput interface { pulumi.Input ToStorageSetOutput() StorageSetOutput ToStorageSetOutputWithContext(ctx context.Context) StorageSetOutput }
type StorageSetMap ¶
type StorageSetMap map[string]StorageSetInput
func (StorageSetMap) ElementType ¶
func (StorageSetMap) ElementType() reflect.Type
func (StorageSetMap) ToStorageSetMapOutput ¶
func (i StorageSetMap) ToStorageSetMapOutput() StorageSetMapOutput
func (StorageSetMap) ToStorageSetMapOutputWithContext ¶
func (i StorageSetMap) ToStorageSetMapOutputWithContext(ctx context.Context) StorageSetMapOutput
type StorageSetMapInput ¶
type StorageSetMapInput interface { pulumi.Input ToStorageSetMapOutput() StorageSetMapOutput ToStorageSetMapOutputWithContext(context.Context) StorageSetMapOutput }
StorageSetMapInput is an input type that accepts StorageSetMap and StorageSetMapOutput values. You can construct a concrete instance of `StorageSetMapInput` via:
StorageSetMap{ "key": StorageSetArgs{...} }
type StorageSetMapOutput ¶
type StorageSetMapOutput struct{ *pulumi.OutputState }
func (StorageSetMapOutput) ElementType ¶
func (StorageSetMapOutput) ElementType() reflect.Type
func (StorageSetMapOutput) MapIndex ¶
func (o StorageSetMapOutput) MapIndex(k pulumi.StringInput) StorageSetOutput
func (StorageSetMapOutput) ToStorageSetMapOutput ¶
func (o StorageSetMapOutput) ToStorageSetMapOutput() StorageSetMapOutput
func (StorageSetMapOutput) ToStorageSetMapOutputWithContext ¶
func (o StorageSetMapOutput) ToStorageSetMapOutputWithContext(ctx context.Context) StorageSetMapOutput
type StorageSetOutput ¶
type StorageSetOutput struct{ *pulumi.OutputState }
func (StorageSetOutput) Attached ¶
func (o StorageSetOutput) Attached() pulumi.BoolOutput
Indicates whether the CBS is mounted the CVM.
func (StorageSetOutput) AvailabilityZone ¶
func (o StorageSetOutput) AvailabilityZone() pulumi.StringOutput
The available zone that the CBS instance locates at.
func (StorageSetOutput) ChargeType ¶
func (o StorageSetOutput) ChargeType() pulumi.StringPtrOutput
The charge type of CBS instance. Only support `POSTPAID_BY_HOUR`.
func (StorageSetOutput) DiskCount ¶
func (o StorageSetOutput) DiskCount() pulumi.IntPtrOutput
The number of disks to be purchased. Default 1.
func (StorageSetOutput) DiskIds ¶
func (o StorageSetOutput) DiskIds() pulumi.StringArrayOutput
disk id list.
func (StorageSetOutput) ElementType ¶
func (StorageSetOutput) ElementType() reflect.Type
func (StorageSetOutput) Encrypt ¶
func (o StorageSetOutput) Encrypt() pulumi.BoolPtrOutput
Indicates whether CBS is encrypted.
func (StorageSetOutput) ProjectId ¶
func (o StorageSetOutput) ProjectId() pulumi.IntPtrOutput
ID of the project to which the instance belongs.
func (StorageSetOutput) SnapshotId ¶
func (o StorageSetOutput) SnapshotId() pulumi.StringOutput
ID of the snapshot. If specified, created the CBS by this snapshot.
func (StorageSetOutput) StorageName ¶
func (o StorageSetOutput) StorageName() pulumi.StringOutput
Name of CBS. The maximum length can not exceed 60 bytes.
func (StorageSetOutput) StorageSize ¶
func (o StorageSetOutput) StorageSize() pulumi.IntOutput
Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000].
func (StorageSetOutput) StorageStatus ¶
func (o StorageSetOutput) StorageStatus() pulumi.StringOutput
Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
func (StorageSetOutput) StorageType ¶
func (o StorageSetOutput) StorageType() pulumi.StringOutput
Type of CBS medium. Valid values: CLOUD_PREMIUM, CLOUD_SSD, CLOUD_TSSD and CLOUD_HSSD.
func (StorageSetOutput) ThroughputPerformance ¶
func (o StorageSetOutput) ThroughputPerformance() pulumi.IntPtrOutput
Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
func (StorageSetOutput) ToStorageSetOutput ¶
func (o StorageSetOutput) ToStorageSetOutput() StorageSetOutput
func (StorageSetOutput) ToStorageSetOutputWithContext ¶
func (o StorageSetOutput) ToStorageSetOutputWithContext(ctx context.Context) StorageSetOutput
type StorageSetState ¶
type StorageSetState struct { // Indicates whether the CBS is mounted the CVM. Attached pulumi.BoolPtrInput // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringPtrInput // The charge type of CBS instance. Only support `POSTPAID_BY_HOUR`. ChargeType pulumi.StringPtrInput // The number of disks to be purchased. Default 1. DiskCount pulumi.IntPtrInput // disk id list. DiskIds pulumi.StringArrayInput // Indicates whether CBS is encrypted. Encrypt pulumi.BoolPtrInput // ID of the project to which the instance belongs. ProjectId pulumi.IntPtrInput // ID of the snapshot. If specified, created the CBS by this snapshot. SnapshotId pulumi.StringPtrInput // Name of CBS. The maximum length can not exceed 60 bytes. StorageName pulumi.StringPtrInput // Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000]. StorageSize pulumi.IntPtrInput // Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING. StorageStatus pulumi.StringPtrInput // Type of CBS medium. Valid values: CLOUD_PREMIUM, CLOUD_SSD, CLOUD_TSSD and CLOUD_HSSD. StorageType pulumi.StringPtrInput // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance pulumi.IntPtrInput }
func (StorageSetState) ElementType ¶
func (StorageSetState) ElementType() reflect.Type
type StorageState ¶
type StorageState struct { // Indicates whether the CBS is mounted the CVM. Attached pulumi.BoolPtrInput // The available zone that the CBS instance locates at. AvailabilityZone pulumi.StringPtrInput // The charge type of CBS instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`. ChargeType pulumi.StringPtrInput // Indicates whether CBS is encrypted. Encrypt pulumi.BoolPtrInput // Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. ForceDelete pulumi.BoolPtrInput // It has been deprecated from version 1.33.0. Set `prepaidPeriod` instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. // // Deprecated: It has been deprecated from version 1.33.0. Set `prepaid_period` instead. Period pulumi.IntPtrInput // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when chargeType is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. PrepaidPeriod pulumi.IntPtrInput // Auto Renewal flag. Value range: `NOTIFY_AND_AUTO_RENEW`: Notify expiry and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Neither notify expiry nor renew automatically. Default value range: `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically. NOTE: it only works when chargeType is set to `PREPAID`. PrepaidRenewFlag pulumi.StringPtrInput // ID of the project to which the instance belongs. ProjectId pulumi.IntPtrInput // ID of the snapshot. If specified, created the CBS by this snapshot. SnapshotId pulumi.StringPtrInput // Name of CBS. The maximum length can not exceed 60 bytes. StorageName pulumi.StringPtrInput // Volume of CBS, and unit is GB. If storage type is `CLOUD_SSD`, the size range is [100, 16000], and the others are [10-16000]. StorageSize pulumi.IntPtrInput // Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING. StorageStatus pulumi.StringPtrInput // Type of CBS medium. Valid values: CLOUD_PREMIUM, CLOUD_SSD, CLOUD_TSSD and CLOUD_HSSD. StorageType pulumi.StringPtrInput // The available tags within this CBS. Tags pulumi.MapInput // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance pulumi.IntPtrInput }
func (StorageState) ElementType ¶
func (StorageState) ElementType() reflect.Type