tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getLighthouseDisks
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of lighthouse disk
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const disks = tencentcloud.getLighthouseDisks({
diskIds: ["lhdisk-xxxxxx"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
disks = tencentcloud.get_lighthouse_disks(disk_ids=["lhdisk-xxxxxx"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetLighthouseDisks(ctx, &tencentcloud.GetLighthouseDisksArgs{
DiskIds: []string{
"lhdisk-xxxxxx",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var disks = Tencentcloud.GetLighthouseDisks.Invoke(new()
{
DiskIds = new[]
{
"lhdisk-xxxxxx",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetLighthouseDisksArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var disks = TencentcloudFunctions.getLighthouseDisks(GetLighthouseDisksArgs.builder()
.diskIds("lhdisk-xxxxxx")
.build());
}
}
variables:
disks:
fn::invoke:
function: tencentcloud:getLighthouseDisks
arguments:
diskIds:
- lhdisk-xxxxxx
Using getLighthouseDisks
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLighthouseDisks(args: GetLighthouseDisksArgs, opts?: InvokeOptions): Promise<GetLighthouseDisksResult>
function getLighthouseDisksOutput(args: GetLighthouseDisksOutputArgs, opts?: InvokeOptions): Output<GetLighthouseDisksResult>
def get_lighthouse_disks(disk_ids: Optional[Sequence[str]] = None,
filters: Optional[Sequence[GetLighthouseDisksFilter]] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLighthouseDisksResult
def get_lighthouse_disks_output(disk_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetLighthouseDisksFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLighthouseDisksResult]
func GetLighthouseDisks(ctx *Context, args *GetLighthouseDisksArgs, opts ...InvokeOption) (*GetLighthouseDisksResult, error)
func GetLighthouseDisksOutput(ctx *Context, args *GetLighthouseDisksOutputArgs, opts ...InvokeOption) GetLighthouseDisksResultOutput
> Note: This function is named GetLighthouseDisks
in the Go SDK.
public static class GetLighthouseDisks
{
public static Task<GetLighthouseDisksResult> InvokeAsync(GetLighthouseDisksArgs args, InvokeOptions? opts = null)
public static Output<GetLighthouseDisksResult> Invoke(GetLighthouseDisksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLighthouseDisksResult> getLighthouseDisks(GetLighthouseDisksArgs args, InvokeOptions options)
public static Output<GetLighthouseDisksResult> getLighthouseDisks(GetLighthouseDisksArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getLighthouseDisks:getLighthouseDisks
arguments:
# arguments dictionary
The following arguments are supported:
- Disk
Ids List<string> - List of disk ids.
- Filters
List<Get
Lighthouse Disks Filter> - Filter list.
- Id string
- Result
Output stringFile - Used to save results.
- Disk
Ids []string - List of disk ids.
- Filters
[]Get
Lighthouse Disks Filter - Filter list.
- Id string
- Result
Output stringFile - Used to save results.
- disk
Ids List<String> - List of disk ids.
- filters
List<Get
Lighthouse Disks Filter> - Filter list.
- id String
- result
Output StringFile - Used to save results.
- disk
Ids string[] - List of disk ids.
- filters
Get
Lighthouse Disks Filter[] - Filter list.
- id string
- result
Output stringFile - Used to save results.
- disk_
ids Sequence[str] - List of disk ids.
- filters
Sequence[Get
Lighthouse Disks Filter] - Filter list.
- id str
- result_
output_ strfile - Used to save results.
- disk
Ids List<String> - List of disk ids.
- filters List<Property Map>
- Filter list.
- id String
- result
Output StringFile - Used to save results.
getLighthouseDisks Result
The following output properties are available:
- Disk
Lists List<GetLighthouse Disks Disk List> - Cloud disk information list.
- Id string
- Disk
Ids List<string> - Filters
List<Get
Lighthouse Disks Filter> - Result
Output stringFile
- Disk
Lists []GetLighthouse Disks Disk List - Cloud disk information list.
- Id string
- Disk
Ids []string - Filters
[]Get
Lighthouse Disks Filter - Result
Output stringFile
- disk
Lists List<GetLighthouse Disks Disk List> - Cloud disk information list.
- id String
- disk
Ids List<String> - filters
List<Get
Lighthouse Disks Filter> - result
Output StringFile
- disk
Lists GetLighthouse Disks Disk List[] - Cloud disk information list.
- id string
- disk
Ids string[] - filters
Get
Lighthouse Disks Filter[] - result
Output stringFile
- disk_
lists Sequence[GetLighthouse Disks Disk List] - Cloud disk information list.
- id str
- disk_
ids Sequence[str] - filters
Sequence[Get
Lighthouse Disks Filter] - result_
output_ strfile
- disk
Lists List<Property Map> - Cloud disk information list.
- id String
- disk
Ids List<String> - filters List<Property Map>
- result
Output StringFile
Supporting Types
GetLighthouseDisksDiskList
- Attached bool
- Disk attach state.
- Created
Time string - Created time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - Delete
With boolInstance - Whether to release with the instance.
- Disk
Backup doubleCount - Number of existing backup points of cloud disk.
- Disk
Backup doubleQuota - Number of backup points quota for cloud disk.
- Disk
Charge stringType - Disk charge type.
- Disk
Id string - Disk id.
- Disk
Name string - Disk name.
- Disk
Size double - Disk size.
- Disk
State string - Disk state. Valid values:
PENDING
,UNATTACHED
,ATTACHING
,ATTACHED
,DETACHING
,SHUTDOWN
,CREATED_FAILED
,TERMINATING
,DELETING
,FREEZING
. - Disk
Type string - Disk type.
- Disk
Usage string - Disk usage.
- Expired
Time string - Expired time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - Instance
Id string - Instance id.
- Isolated
Time string - Isolated time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - Latest
Operation string - Latest operation.
- Latest
Operation stringRequest Id - Latest operation request id.
- Latest
Operation stringState - Latest operation state.
- Renew
Flag string - Renew flag.
- Zone string
- Availability zone.
- Attached bool
- Disk attach state.
- Created
Time string - Created time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - Delete
With boolInstance - Whether to release with the instance.
- Disk
Backup float64Count - Number of existing backup points of cloud disk.
- Disk
Backup float64Quota - Number of backup points quota for cloud disk.
- Disk
Charge stringType - Disk charge type.
- Disk
Id string - Disk id.
- Disk
Name string - Disk name.
- Disk
Size float64 - Disk size.
- Disk
State string - Disk state. Valid values:
PENDING
,UNATTACHED
,ATTACHING
,ATTACHED
,DETACHING
,SHUTDOWN
,CREATED_FAILED
,TERMINATING
,DELETING
,FREEZING
. - Disk
Type string - Disk type.
- Disk
Usage string - Disk usage.
- Expired
Time string - Expired time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - Instance
Id string - Instance id.
- Isolated
Time string - Isolated time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - Latest
Operation string - Latest operation.
- Latest
Operation stringRequest Id - Latest operation request id.
- Latest
Operation stringState - Latest operation state.
- Renew
Flag string - Renew flag.
- Zone string
- Availability zone.
- attached Boolean
- Disk attach state.
- created
Time String - Created time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - delete
With BooleanInstance - Whether to release with the instance.
- disk
Backup DoubleCount - Number of existing backup points of cloud disk.
- disk
Backup DoubleQuota - Number of backup points quota for cloud disk.
- disk
Charge StringType - Disk charge type.
- disk
Id String - Disk id.
- disk
Name String - Disk name.
- disk
Size Double - Disk size.
- disk
State String - Disk state. Valid values:
PENDING
,UNATTACHED
,ATTACHING
,ATTACHED
,DETACHING
,SHUTDOWN
,CREATED_FAILED
,TERMINATING
,DELETING
,FREEZING
. - disk
Type String - Disk type.
- disk
Usage String - Disk usage.
- expired
Time String - Expired time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - instance
Id String - Instance id.
- isolated
Time String - Isolated time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - latest
Operation String - Latest operation.
- latest
Operation StringRequest Id - Latest operation request id.
- latest
Operation StringState - Latest operation state.
- renew
Flag String - Renew flag.
- zone String
- Availability zone.
- attached boolean
- Disk attach state.
- created
Time string - Created time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - delete
With booleanInstance - Whether to release with the instance.
- disk
Backup numberCount - Number of existing backup points of cloud disk.
- disk
Backup numberQuota - Number of backup points quota for cloud disk.
- disk
Charge stringType - Disk charge type.
- disk
Id string - Disk id.
- disk
Name string - Disk name.
- disk
Size number - Disk size.
- disk
State string - Disk state. Valid values:
PENDING
,UNATTACHED
,ATTACHING
,ATTACHED
,DETACHING
,SHUTDOWN
,CREATED_FAILED
,TERMINATING
,DELETING
,FREEZING
. - disk
Type string - Disk type.
- disk
Usage string - Disk usage.
- expired
Time string - Expired time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - instance
Id string - Instance id.
- isolated
Time string - Isolated time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - latest
Operation string - Latest operation.
- latest
Operation stringRequest Id - Latest operation request id.
- latest
Operation stringState - Latest operation state.
- renew
Flag string - Renew flag.
- zone string
- Availability zone.
- attached bool
- Disk attach state.
- created_
time str - Created time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - delete_
with_ boolinstance - Whether to release with the instance.
- disk_
backup_ floatcount - Number of existing backup points of cloud disk.
- disk_
backup_ floatquota - Number of backup points quota for cloud disk.
- disk_
charge_ strtype - Disk charge type.
- disk_
id str - Disk id.
- disk_
name str - Disk name.
- disk_
size float - Disk size.
- disk_
state str - Disk state. Valid values:
PENDING
,UNATTACHED
,ATTACHING
,ATTACHED
,DETACHING
,SHUTDOWN
,CREATED_FAILED
,TERMINATING
,DELETING
,FREEZING
. - disk_
type str - Disk type.
- disk_
usage str - Disk usage.
- expired_
time str - Expired time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - instance_
id str - Instance id.
- isolated_
time str - Isolated time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - latest_
operation str - Latest operation.
- latest_
operation_ strrequest_ id - Latest operation request id.
- latest_
operation_ strstate - Latest operation state.
- renew_
flag str - Renew flag.
- zone str
- Availability zone.
- attached Boolean
- Disk attach state.
- created
Time String - Created time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - delete
With BooleanInstance - Whether to release with the instance.
- disk
Backup NumberCount - Number of existing backup points of cloud disk.
- disk
Backup NumberQuota - Number of backup points quota for cloud disk.
- disk
Charge StringType - Disk charge type.
- disk
Id String - Disk id.
- disk
Name String - Disk name.
- disk
Size Number - Disk size.
- disk
State String - Disk state. Valid values:
PENDING
,UNATTACHED
,ATTACHING
,ATTACHED
,DETACHING
,SHUTDOWN
,CREATED_FAILED
,TERMINATING
,DELETING
,FREEZING
. - disk
Type String - Disk type.
- disk
Usage String - Disk usage.
- expired
Time String - Expired time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - instance
Id String - Instance id.
- isolated
Time String - Isolated time. Expressed according to the ISO8601 standard, and using UTC time. The format is
YYYY-MM-DDThh:mm:ssZ
. - latest
Operation String - Latest operation.
- latest
Operation StringRequest Id - Latest operation request id.
- latest
Operation StringState - Latest operation state.
- renew
Flag String - Renew flag.
- zone String
- Availability zone.
GetLighthouseDisksFilter
- Name string
- Fields to be filtered. Valid names:
disk-id
: Filters by disk id;instance-id
: Filter by instance id;disk-name
: Filter by disk name;zone
: Filter by zone;disk-usage
: Filter by disk usage(Values:SYSTEM_DISK
orDATA_DISK
);disk-state
: Filter by disk state. - Values List<string>
- Value of the field.
- Name string
- Fields to be filtered. Valid names:
disk-id
: Filters by disk id;instance-id
: Filter by instance id;disk-name
: Filter by disk name;zone
: Filter by zone;disk-usage
: Filter by disk usage(Values:SYSTEM_DISK
orDATA_DISK
);disk-state
: Filter by disk state. - Values []string
- Value of the field.
- name String
- Fields to be filtered. Valid names:
disk-id
: Filters by disk id;instance-id
: Filter by instance id;disk-name
: Filter by disk name;zone
: Filter by zone;disk-usage
: Filter by disk usage(Values:SYSTEM_DISK
orDATA_DISK
);disk-state
: Filter by disk state. - values List<String>
- Value of the field.
- name string
- Fields to be filtered. Valid names:
disk-id
: Filters by disk id;instance-id
: Filter by instance id;disk-name
: Filter by disk name;zone
: Filter by zone;disk-usage
: Filter by disk usage(Values:SYSTEM_DISK
orDATA_DISK
);disk-state
: Filter by disk state. - values string[]
- Value of the field.
- name str
- Fields to be filtered. Valid names:
disk-id
: Filters by disk id;instance-id
: Filter by instance id;disk-name
: Filter by disk name;zone
: Filter by zone;disk-usage
: Filter by disk usage(Values:SYSTEM_DISK
orDATA_DISK
);disk-state
: Filter by disk state. - values Sequence[str]
- Value of the field.
- name String
- Fields to be filtered. Valid names:
disk-id
: Filters by disk id;instance-id
: Filter by instance id;disk-name
: Filter by disk name;zone
: Filter by zone;disk-usage
: Filter by disk usage(Values:SYSTEM_DISK
orDATA_DISK
);disk-state
: Filter by disk state. - values List<String>
- Value of the field.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack