tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getCbsSnapshots
Start a Neo task
Explain and create a tencentcloud.getCbsSnapshots resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of CBS snapshots.
Example Usage
Query all snapshots
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const snapshots = tencentcloud.getCbsSnapshots({});
import pulumi
import pulumi_tencentcloud as tencentcloud
snapshots = tencentcloud.get_cbs_snapshots()
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.GetCbsSnapshots(ctx, &tencentcloud.GetCbsSnapshotsArgs{}, 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 snapshots = Tencentcloud.GetCbsSnapshots.Invoke();
});
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.GetCbsSnapshotsArgs;
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 snapshots = TencentcloudFunctions.getCbsSnapshots(GetCbsSnapshotsArgs.builder()
.build());
}
}
variables:
snapshots:
fn::invoke:
function: tencentcloud:getCbsSnapshots
arguments: {}
Using getCbsSnapshots
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 getCbsSnapshots(args: GetCbsSnapshotsArgs, opts?: InvokeOptions): Promise<GetCbsSnapshotsResult>
function getCbsSnapshotsOutput(args: GetCbsSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetCbsSnapshotsResult>def get_cbs_snapshots(availability_zone: Optional[str] = None,
id: Optional[str] = None,
project_id: Optional[str] = None,
result_output_file: Optional[str] = None,
snapshot_id: Optional[str] = None,
snapshot_name: Optional[str] = None,
storage_id: Optional[str] = None,
storage_usage: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCbsSnapshotsResult
def get_cbs_snapshots_output(availability_zone: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
snapshot_name: Optional[pulumi.Input[str]] = None,
storage_id: Optional[pulumi.Input[str]] = None,
storage_usage: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCbsSnapshotsResult]func GetCbsSnapshots(ctx *Context, args *GetCbsSnapshotsArgs, opts ...InvokeOption) (*GetCbsSnapshotsResult, error)
func GetCbsSnapshotsOutput(ctx *Context, args *GetCbsSnapshotsOutputArgs, opts ...InvokeOption) GetCbsSnapshotsResultOutput> Note: This function is named GetCbsSnapshots in the Go SDK.
public static class GetCbsSnapshots
{
public static Task<GetCbsSnapshotsResult> InvokeAsync(GetCbsSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetCbsSnapshotsResult> Invoke(GetCbsSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCbsSnapshotsResult> getCbsSnapshots(GetCbsSnapshotsArgs args, InvokeOptions options)
public static Output<GetCbsSnapshotsResult> getCbsSnapshots(GetCbsSnapshotsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCbsSnapshots:getCbsSnapshots
arguments:
# arguments dictionaryThe following arguments are supported:
- Availability
Zone string - The available zone that the CBS instance locates at.
- Id string
- Project
Id string - ID of the project within the snapshot.
- Result
Output stringFile - Used to save results.
- Snapshot
Id string - ID of the snapshot to be queried.
- Snapshot
Name string - Name of the snapshot to be queried.
- Storage
Id string - ID of the the CBS which this snapshot created from.
- Storage
Usage string - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- Availability
Zone string - The available zone that the CBS instance locates at.
- Id string
- Project
Id string - ID of the project within the snapshot.
- Result
Output stringFile - Used to save results.
- Snapshot
Id string - ID of the snapshot to be queried.
- Snapshot
Name string - Name of the snapshot to be queried.
- Storage
Id string - ID of the the CBS which this snapshot created from.
- Storage
Usage string - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- availability
Zone String - The available zone that the CBS instance locates at.
- id String
- project
Id String - ID of the project within the snapshot.
- result
Output StringFile - Used to save results.
- snapshot
Id String - ID of the snapshot to be queried.
- snapshot
Name String - Name of the snapshot to be queried.
- storage
Id String - ID of the the CBS which this snapshot created from.
- storage
Usage String - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- availability
Zone string - The available zone that the CBS instance locates at.
- id string
- project
Id string - ID of the project within the snapshot.
- result
Output stringFile - Used to save results.
- snapshot
Id string - ID of the snapshot to be queried.
- snapshot
Name string - Name of the snapshot to be queried.
- storage
Id string - ID of the the CBS which this snapshot created from.
- storage
Usage string - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- availability_
zone str - The available zone that the CBS instance locates at.
- id str
- project_
id str - ID of the project within the snapshot.
- result_
output_ strfile - Used to save results.
- snapshot_
id str - ID of the snapshot to be queried.
- snapshot_
name str - Name of the snapshot to be queried.
- storage_
id str - ID of the the CBS which this snapshot created from.
- storage_
usage str - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- availability
Zone String - The available zone that the CBS instance locates at.
- id String
- project
Id String - ID of the project within the snapshot.
- result
Output StringFile - Used to save results.
- snapshot
Id String - ID of the snapshot to be queried.
- snapshot
Name String - Name of the snapshot to be queried.
- storage
Id String - ID of the the CBS which this snapshot created from.
- storage
Usage String - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
getCbsSnapshots Result
The following output properties are available:
- Id string
- Snapshot
Lists List<GetCbs Snapshots Snapshot List> - A list of snapshot. Each element contains the following attributes:
- Availability
Zone string - The available zone that the CBS instance locates at.
- Project
Id string - ID of the project within the snapshot.
- Result
Output stringFile - Snapshot
Id string - ID of the snapshot.
- Snapshot
Name string - Name of the snapshot.
- Storage
Id string - ID of the the CBS which this snapshot created from.
- Storage
Usage string - Types of CBS which this snapshot created from.
- Id string
- Snapshot
Lists []GetCbs Snapshots Snapshot List - A list of snapshot. Each element contains the following attributes:
- Availability
Zone string - The available zone that the CBS instance locates at.
- Project
Id string - ID of the project within the snapshot.
- Result
Output stringFile - Snapshot
Id string - ID of the snapshot.
- Snapshot
Name string - Name of the snapshot.
- Storage
Id string - ID of the the CBS which this snapshot created from.
- Storage
Usage string - Types of CBS which this snapshot created from.
- id String
- snapshot
Lists List<GetCbs Snapshots Snapshot List> - A list of snapshot. Each element contains the following attributes:
- availability
Zone String - The available zone that the CBS instance locates at.
- project
Id String - ID of the project within the snapshot.
- result
Output StringFile - snapshot
Id String - ID of the snapshot.
- snapshot
Name String - Name of the snapshot.
- storage
Id String - ID of the the CBS which this snapshot created from.
- storage
Usage String - Types of CBS which this snapshot created from.
- id string
- snapshot
Lists GetCbs Snapshots Snapshot List[] - A list of snapshot. Each element contains the following attributes:
- availability
Zone string - The available zone that the CBS instance locates at.
- project
Id string - ID of the project within the snapshot.
- result
Output stringFile - snapshot
Id string - ID of the snapshot.
- snapshot
Name string - Name of the snapshot.
- storage
Id string - ID of the the CBS which this snapshot created from.
- storage
Usage string - Types of CBS which this snapshot created from.
- id str
- snapshot_
lists Sequence[GetCbs Snapshots Snapshot List] - A list of snapshot. Each element contains the following attributes:
- availability_
zone str - The available zone that the CBS instance locates at.
- project_
id str - ID of the project within the snapshot.
- result_
output_ strfile - snapshot_
id str - ID of the snapshot.
- snapshot_
name str - Name of the snapshot.
- storage_
id str - ID of the the CBS which this snapshot created from.
- storage_
usage str - Types of CBS which this snapshot created from.
- id String
- snapshot
Lists List<Property Map> - A list of snapshot. Each element contains the following attributes:
- availability
Zone String - The available zone that the CBS instance locates at.
- project
Id String - ID of the project within the snapshot.
- result
Output StringFile - snapshot
Id String - ID of the snapshot.
- snapshot
Name String - Name of the snapshot.
- storage
Id String - ID of the the CBS which this snapshot created from.
- storage
Usage String - Types of CBS which this snapshot created from.
Supporting Types
GetCbsSnapshotsSnapshotList
- Availability
Zone string - The available zone that the CBS instance locates at.
- Create
Time string - Creation time of snapshot.
- Encrypt bool
- Indicates whether the snapshot is encrypted.
- Percent double
- Snapshot creation progress percentage.
- Project
Id double - ID of the project within the snapshot.
- Snapshot
Id string - ID of the snapshot to be queried.
- Snapshot
Name string - Name of the snapshot to be queried.
- Storage
Id string - ID of the the CBS which this snapshot created from.
- Storage
Size double - Volume of storage which this snapshot created from.
- Storage
Usage string - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- Availability
Zone string - The available zone that the CBS instance locates at.
- Create
Time string - Creation time of snapshot.
- Encrypt bool
- Indicates whether the snapshot is encrypted.
- Percent float64
- Snapshot creation progress percentage.
- Project
Id float64 - ID of the project within the snapshot.
- Snapshot
Id string - ID of the snapshot to be queried.
- Snapshot
Name string - Name of the snapshot to be queried.
- Storage
Id string - ID of the the CBS which this snapshot created from.
- Storage
Size float64 - Volume of storage which this snapshot created from.
- Storage
Usage string - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- availability
Zone String - The available zone that the CBS instance locates at.
- create
Time String - Creation time of snapshot.
- encrypt Boolean
- Indicates whether the snapshot is encrypted.
- percent Double
- Snapshot creation progress percentage.
- project
Id Double - ID of the project within the snapshot.
- snapshot
Id String - ID of the snapshot to be queried.
- snapshot
Name String - Name of the snapshot to be queried.
- storage
Id String - ID of the the CBS which this snapshot created from.
- storage
Size Double - Volume of storage which this snapshot created from.
- storage
Usage String - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- availability
Zone string - The available zone that the CBS instance locates at.
- create
Time string - Creation time of snapshot.
- encrypt boolean
- Indicates whether the snapshot is encrypted.
- percent number
- Snapshot creation progress percentage.
- project
Id number - ID of the project within the snapshot.
- snapshot
Id string - ID of the snapshot to be queried.
- snapshot
Name string - Name of the snapshot to be queried.
- storage
Id string - ID of the the CBS which this snapshot created from.
- storage
Size number - Volume of storage which this snapshot created from.
- storage
Usage string - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- availability_
zone str - The available zone that the CBS instance locates at.
- create_
time str - Creation time of snapshot.
- encrypt bool
- Indicates whether the snapshot is encrypted.
- percent float
- Snapshot creation progress percentage.
- project_
id float - ID of the project within the snapshot.
- snapshot_
id str - ID of the snapshot to be queried.
- snapshot_
name str - Name of the snapshot to be queried.
- storage_
id str - ID of the the CBS which this snapshot created from.
- storage_
size float - Volume of storage which this snapshot created from.
- storage_
usage str - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
- availability
Zone String - The available zone that the CBS instance locates at.
- create
Time String - Creation time of snapshot.
- encrypt Boolean
- Indicates whether the snapshot is encrypted.
- percent Number
- Snapshot creation progress percentage.
- project
Id Number - ID of the project within the snapshot.
- snapshot
Id String - ID of the snapshot to be queried.
- snapshot
Name String - Name of the snapshot to be queried.
- storage
Id String - ID of the the CBS which this snapshot created from.
- storage
Size Number - Volume of storage which this snapshot created from.
- storage
Usage String - Types of CBS which this snapshot created from, and available values include
SYSTEM_DISKandDATA_DISK.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
