Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
volcengine.nas.AutoSnapshotPolicies
Explore with Pulumi AI
Deprecated: volcengine.nas.AutoSnapshotPolicies has been deprecated in favor of volcengine.nas.getAutoSnapshotPolicies
Use this data source to query detailed information of nas auto snapshot policies
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooAutoSnapshotPolicy = new volcengine.nas.AutoSnapshotPolicy("fooAutoSnapshotPolicy", {
autoSnapshotPolicyName: "acc-test-auto_snapshot_policy",
repeatWeekdays: "1,3,5,7",
timePoints: "0,7,17",
retentionDays: 20,
});
const fooAutoSnapshotPolicies = volcengine.nas.getAutoSnapshotPoliciesOutput({
autoSnapshotPolicyId: fooAutoSnapshotPolicy.id,
});
import pulumi
import pulumi_volcengine as volcengine
foo_auto_snapshot_policy = volcengine.nas.AutoSnapshotPolicy("fooAutoSnapshotPolicy",
auto_snapshot_policy_name="acc-test-auto_snapshot_policy",
repeat_weekdays="1,3,5,7",
time_points="0,7,17",
retention_days=20)
foo_auto_snapshot_policies = volcengine.nas.get_auto_snapshot_policies_output(auto_snapshot_policy_id=foo_auto_snapshot_policy.id)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nas"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooAutoSnapshotPolicy, err := nas.NewAutoSnapshotPolicy(ctx, "fooAutoSnapshotPolicy", &nas.AutoSnapshotPolicyArgs{
AutoSnapshotPolicyName: pulumi.String("acc-test-auto_snapshot_policy"),
RepeatWeekdays: pulumi.String("1,3,5,7"),
TimePoints: pulumi.String("0,7,17"),
RetentionDays: pulumi.Int(20),
})
if err != nil {
return err
}
_ = nas.GetAutoSnapshotPoliciesOutput(ctx, nas.GetAutoSnapshotPoliciesOutputArgs{
AutoSnapshotPolicyId: fooAutoSnapshotPolicy.ID(),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooAutoSnapshotPolicy = new Volcengine.Nas.AutoSnapshotPolicy("fooAutoSnapshotPolicy", new()
{
AutoSnapshotPolicyName = "acc-test-auto_snapshot_policy",
RepeatWeekdays = "1,3,5,7",
TimePoints = "0,7,17",
RetentionDays = 20,
});
var fooAutoSnapshotPolicies = Volcengine.Nas.GetAutoSnapshotPolicies.Invoke(new()
{
AutoSnapshotPolicyId = fooAutoSnapshotPolicy.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.nas.AutoSnapshotPolicy;
import com.pulumi.volcengine.nas.AutoSnapshotPolicyArgs;
import com.pulumi.volcengine.nas.NasFunctions;
import com.pulumi.volcengine.nas.inputs.GetAutoSnapshotPoliciesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fooAutoSnapshotPolicy = new AutoSnapshotPolicy("fooAutoSnapshotPolicy", AutoSnapshotPolicyArgs.builder()
.autoSnapshotPolicyName("acc-test-auto_snapshot_policy")
.repeatWeekdays("1,3,5,7")
.timePoints("0,7,17")
.retentionDays(20)
.build());
final var fooAutoSnapshotPolicies = NasFunctions.getAutoSnapshotPolicies(GetAutoSnapshotPoliciesArgs.builder()
.autoSnapshotPolicyId(fooAutoSnapshotPolicy.id())
.build());
}
}
resources:
fooAutoSnapshotPolicy:
type: volcengine:nas:AutoSnapshotPolicy
properties:
autoSnapshotPolicyName: acc-test-auto_snapshot_policy
repeatWeekdays: 1,3,5,7
timePoints: 0,7,17
retentionDays: 20
variables:
fooAutoSnapshotPolicies:
fn::invoke:
Function: volcengine:nas:getAutoSnapshotPolicies
Arguments:
autoSnapshotPolicyId: ${fooAutoSnapshotPolicy.id}
Using AutoSnapshotPolicies
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 autoSnapshotPolicies(args: AutoSnapshotPoliciesArgs, opts?: InvokeOptions): Promise<AutoSnapshotPoliciesResult>
function autoSnapshotPoliciesOutput(args: AutoSnapshotPoliciesOutputArgs, opts?: InvokeOptions): Output<AutoSnapshotPoliciesResult>
def auto_snapshot_policies(auto_snapshot_policy_id: Optional[str] = None,
auto_snapshot_policy_name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> AutoSnapshotPoliciesResult
def auto_snapshot_policies_output(auto_snapshot_policy_id: Optional[pulumi.Input[str]] = None,
auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[AutoSnapshotPoliciesResult]
func AutoSnapshotPolicies(ctx *Context, args *AutoSnapshotPoliciesArgs, opts ...InvokeOption) (*AutoSnapshotPoliciesResult, error)
func AutoSnapshotPoliciesOutput(ctx *Context, args *AutoSnapshotPoliciesOutputArgs, opts ...InvokeOption) AutoSnapshotPoliciesResultOutput
public static class AutoSnapshotPolicies
{
public static Task<AutoSnapshotPoliciesResult> InvokeAsync(AutoSnapshotPoliciesArgs args, InvokeOptions? opts = null)
public static Output<AutoSnapshotPoliciesResult> Invoke(AutoSnapshotPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<AutoSnapshotPoliciesResult> autoSnapshotPolicies(AutoSnapshotPoliciesArgs args, InvokeOptions options)
public static Output<AutoSnapshotPoliciesResult> autoSnapshotPolicies(AutoSnapshotPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:nas:AutoSnapshotPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Auto
Snapshot stringPolicy Id - The id of auto snapshot policy.
- Auto
Snapshot stringPolicy Name - The name of auto snapshot policy.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Auto
Snapshot stringPolicy Id - The id of auto snapshot policy.
- Auto
Snapshot stringPolicy Name - The name of auto snapshot policy.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- auto
Snapshot StringPolicy Id - The id of auto snapshot policy.
- auto
Snapshot StringPolicy Name - The name of auto snapshot policy.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- auto
Snapshot stringPolicy Id - The id of auto snapshot policy.
- auto
Snapshot stringPolicy Name - The name of auto snapshot policy.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- auto_
snapshot_ strpolicy_ id - The id of auto snapshot policy.
- auto_
snapshot_ strpolicy_ name - The name of auto snapshot policy.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- auto
Snapshot StringPolicy Id - The id of auto snapshot policy.
- auto
Snapshot StringPolicy Name - The name of auto snapshot policy.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
AutoSnapshotPolicies Result
The following output properties are available:
- Auto
Snapshot List<AutoPolices Snapshot Policies Auto Snapshot Police> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Auto
Snapshot stringPolicy Id - The ID of auto snapshot policy.
- Auto
Snapshot stringPolicy Name - The name of auto snapshot policy.
- Name
Regex string - Output
File string
- Auto
Snapshot []AutoPolices Snapshot Policies Auto Snapshot Police - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Auto
Snapshot stringPolicy Id - The ID of auto snapshot policy.
- Auto
Snapshot stringPolicy Name - The name of auto snapshot policy.
- Name
Regex string - Output
File string
- auto
Snapshot List<AutoPolices Snapshot Policies Auto Snapshot Police> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- auto
Snapshot StringPolicy Id - The ID of auto snapshot policy.
- auto
Snapshot StringPolicy Name - The name of auto snapshot policy.
- name
Regex String - output
File String
- auto
Snapshot AutoPolices Snapshot Policies Auto Snapshot Police[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- auto
Snapshot stringPolicy Id - The ID of auto snapshot policy.
- auto
Snapshot stringPolicy Name - The name of auto snapshot policy.
- name
Regex string - output
File string
- auto_
snapshot_ Sequence[Autopolices Snapshot Policies Auto Snapshot Police] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- auto_
snapshot_ strpolicy_ id - The ID of auto snapshot policy.
- auto_
snapshot_ strpolicy_ name - The name of auto snapshot policy.
- name_
regex str - output_
file str
- auto
Snapshot List<Property Map>Polices - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- auto
Snapshot StringPolicy Id - The ID of auto snapshot policy.
- auto
Snapshot StringPolicy Name - The name of auto snapshot policy.
- name
Regex String - output
File String
Supporting Types
AutoSnapshotPoliciesAutoSnapshotPolice
- Auto
Snapshot stringPolicy Id - The id of auto snapshot policy.
- Auto
Snapshot stringPolicy Name - The name of auto snapshot policy.
- Create
Time string - The create time of auto snapshot policy.
- File
System intCount - The count of file system which auto snapshot policy bind.
- Id string
- The ID of auto snapshot policy.
- Repeat
Weekdays string - The repeat weekdays of auto snapshot policy. Unit: day.
- Retention
Days int - The retention days of auto snapshot policy. Unit: day.
- Status string
- The status of auto snapshot policy.
- Time
Points string - The time points of auto snapshot policy. Unit: hour.
- Auto
Snapshot stringPolicy Id - The id of auto snapshot policy.
- Auto
Snapshot stringPolicy Name - The name of auto snapshot policy.
- Create
Time string - The create time of auto snapshot policy.
- File
System intCount - The count of file system which auto snapshot policy bind.
- Id string
- The ID of auto snapshot policy.
- Repeat
Weekdays string - The repeat weekdays of auto snapshot policy. Unit: day.
- Retention
Days int - The retention days of auto snapshot policy. Unit: day.
- Status string
- The status of auto snapshot policy.
- Time
Points string - The time points of auto snapshot policy. Unit: hour.
- auto
Snapshot StringPolicy Id - The id of auto snapshot policy.
- auto
Snapshot StringPolicy Name - The name of auto snapshot policy.
- create
Time String - The create time of auto snapshot policy.
- file
System IntegerCount - The count of file system which auto snapshot policy bind.
- id String
- The ID of auto snapshot policy.
- repeat
Weekdays String - The repeat weekdays of auto snapshot policy. Unit: day.
- retention
Days Integer - The retention days of auto snapshot policy. Unit: day.
- status String
- The status of auto snapshot policy.
- time
Points String - The time points of auto snapshot policy. Unit: hour.
- auto
Snapshot stringPolicy Id - The id of auto snapshot policy.
- auto
Snapshot stringPolicy Name - The name of auto snapshot policy.
- create
Time string - The create time of auto snapshot policy.
- file
System numberCount - The count of file system which auto snapshot policy bind.
- id string
- The ID of auto snapshot policy.
- repeat
Weekdays string - The repeat weekdays of auto snapshot policy. Unit: day.
- retention
Days number - The retention days of auto snapshot policy. Unit: day.
- status string
- The status of auto snapshot policy.
- time
Points string - The time points of auto snapshot policy. Unit: hour.
- auto_
snapshot_ strpolicy_ id - The id of auto snapshot policy.
- auto_
snapshot_ strpolicy_ name - The name of auto snapshot policy.
- create_
time str - The create time of auto snapshot policy.
- file_
system_ intcount - The count of file system which auto snapshot policy bind.
- id str
- The ID of auto snapshot policy.
- repeat_
weekdays str - The repeat weekdays of auto snapshot policy. Unit: day.
- retention_
days int - The retention days of auto snapshot policy. Unit: day.
- status str
- The status of auto snapshot policy.
- time_
points str - The time points of auto snapshot policy. Unit: hour.
- auto
Snapshot StringPolicy Id - The id of auto snapshot policy.
- auto
Snapshot StringPolicy Name - The name of auto snapshot policy.
- create
Time String - The create time of auto snapshot policy.
- file
System NumberCount - The count of file system which auto snapshot policy bind.
- id String
- The ID of auto snapshot policy.
- repeat
Weekdays String - The repeat weekdays of auto snapshot policy. Unit: day.
- retention
Days Number - The retention days of auto snapshot policy. Unit: day.
- status String
- The status of auto snapshot policy.
- time
Points String - The time points of auto snapshot policy. Unit: hour.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.