1. Packages
  2. Nutanix
  3. API Docs
  4. getSelfServiceSnapshotPolicyList
Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg

nutanix.getSelfServiceSnapshotPolicyList

Explore with Pulumi AI

nutanix logo
Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg

    Describes snapshot policies present in a blueprint. Environment containing snapshot policy must be added in blueprint for this data source to work.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const test = nutanix.getSelfServiceSnapshotPolicyList({
        bpName: "NAME OF BLUEPRINT",
        length: 250,
        offset: 0,
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    test = nutanix.get_self_service_snapshot_policy_list(bp_name="NAME OF BLUEPRINT",
        length=250,
        offset=0)
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nutanix.GetSelfServiceSnapshotPolicyList(ctx, &nutanix.GetSelfServiceSnapshotPolicyListArgs{
    			BpName: pulumi.StringRef("NAME OF BLUEPRINT"),
    			Length: 250,
    			Offset: 0,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = Pulumi.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Nutanix.GetSelfServiceSnapshotPolicyList.Invoke(new()
        {
            BpName = "NAME OF BLUEPRINT",
            Length = 250,
            Offset = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NutanixFunctions;
    import com.pulumi.nutanix.inputs.GetSelfServiceSnapshotPolicyListArgs;
    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 test = NutanixFunctions.getSelfServiceSnapshotPolicyList(GetSelfServiceSnapshotPolicyListArgs.builder()
                .bpName("NAME OF BLUEPRINT")
                .length(250)
                .offset(0)
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: nutanix:getSelfServiceSnapshotPolicyList
          arguments:
            bpName: NAME OF BLUEPRINT
            length: 250
            offset: 0
    

    Using getSelfServiceSnapshotPolicyList

    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 getSelfServiceSnapshotPolicyList(args: GetSelfServiceSnapshotPolicyListArgs, opts?: InvokeOptions): Promise<GetSelfServiceSnapshotPolicyListResult>
    function getSelfServiceSnapshotPolicyListOutput(args: GetSelfServiceSnapshotPolicyListOutputArgs, opts?: InvokeOptions): Output<GetSelfServiceSnapshotPolicyListResult>
    def get_self_service_snapshot_policy_list(bp_name: Optional[str] = None,
                                              bp_uuid: Optional[str] = None,
                                              length: Optional[int] = None,
                                              offset: Optional[int] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetSelfServiceSnapshotPolicyListResult
    def get_self_service_snapshot_policy_list_output(bp_name: Optional[pulumi.Input[str]] = None,
                                              bp_uuid: Optional[pulumi.Input[str]] = None,
                                              length: Optional[pulumi.Input[int]] = None,
                                              offset: Optional[pulumi.Input[int]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetSelfServiceSnapshotPolicyListResult]
    func GetSelfServiceSnapshotPolicyList(ctx *Context, args *GetSelfServiceSnapshotPolicyListArgs, opts ...InvokeOption) (*GetSelfServiceSnapshotPolicyListResult, error)
    func GetSelfServiceSnapshotPolicyListOutput(ctx *Context, args *GetSelfServiceSnapshotPolicyListOutputArgs, opts ...InvokeOption) GetSelfServiceSnapshotPolicyListResultOutput

    > Note: This function is named GetSelfServiceSnapshotPolicyList in the Go SDK.

    public static class GetSelfServiceSnapshotPolicyList 
    {
        public static Task<GetSelfServiceSnapshotPolicyListResult> InvokeAsync(GetSelfServiceSnapshotPolicyListArgs args, InvokeOptions? opts = null)
        public static Output<GetSelfServiceSnapshotPolicyListResult> Invoke(GetSelfServiceSnapshotPolicyListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSelfServiceSnapshotPolicyListResult> getSelfServiceSnapshotPolicyList(GetSelfServiceSnapshotPolicyListArgs args, InvokeOptions options)
    public static Output<GetSelfServiceSnapshotPolicyListResult> getSelfServiceSnapshotPolicyList(GetSelfServiceSnapshotPolicyListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: nutanix:index/getSelfServiceSnapshotPolicyList:getSelfServiceSnapshotPolicyList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Length int
    • (Required) The number of snapshot policy records to return.
    Offset int
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    BpName string
    • (Optional) The UUID of the blueprint for which snapshot policies should be listed.
    BpUuid string
    • (Optional) The name of the blueprint for which snapshot policies should be listed.

    Both (bp_name and bp_uuid) are optional but atleast one of them to be provided for this data source to work.

    Length int
    • (Required) The number of snapshot policy records to return.
    Offset int
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    BpName string
    • (Optional) The UUID of the blueprint for which snapshot policies should be listed.
    BpUuid string
    • (Optional) The name of the blueprint for which snapshot policies should be listed.

    Both (bp_name and bp_uuid) are optional but atleast one of them to be provided for this data source to work.

    length Integer
    • (Required) The number of snapshot policy records to return.
    offset Integer
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    bpName String
    • (Optional) The UUID of the blueprint for which snapshot policies should be listed.
    bpUuid String
    • (Optional) The name of the blueprint for which snapshot policies should be listed.

    Both (bp_name and bp_uuid) are optional but atleast one of them to be provided for this data source to work.

    length number
    • (Required) The number of snapshot policy records to return.
    offset number
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    bpName string
    • (Optional) The UUID of the blueprint for which snapshot policies should be listed.
    bpUuid string
    • (Optional) The name of the blueprint for which snapshot policies should be listed.

    Both (bp_name and bp_uuid) are optional but atleast one of them to be provided for this data source to work.

    length int
    • (Required) The number of snapshot policy records to return.
    offset int
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    bp_name str
    • (Optional) The UUID of the blueprint for which snapshot policies should be listed.
    bp_uuid str
    • (Optional) The name of the blueprint for which snapshot policies should be listed.

    Both (bp_name and bp_uuid) are optional but atleast one of them to be provided for this data source to work.

    length Number
    • (Required) The number of snapshot policy records to return.
    offset Number
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    bpName String
    • (Optional) The UUID of the blueprint for which snapshot policies should be listed.
    bpUuid String
    • (Optional) The name of the blueprint for which snapshot policies should be listed.

    Both (bp_name and bp_uuid) are optional but atleast one of them to be provided for this data source to work.

    getSelfServiceSnapshotPolicyList Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Length int
    • (Required) The number of snapshot policy records to return.
    Offset int
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    PolicyLists List<PiersKarsenbarg.Nutanix.Outputs.GetSelfServiceSnapshotPolicyListPolicyList>
    BpName string
    BpUuid string
    Id string
    The provider-assigned unique ID for this managed resource.
    Length int
    • (Required) The number of snapshot policy records to return.
    Offset int
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    PolicyLists []GetSelfServiceSnapshotPolicyListPolicyList
    BpName string
    BpUuid string
    id String
    The provider-assigned unique ID for this managed resource.
    length Integer
    • (Required) The number of snapshot policy records to return.
    offset Integer
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    policyLists List<GetSelfServiceSnapshotPolicyListPolicyList>
    bpName String
    bpUuid String
    id string
    The provider-assigned unique ID for this managed resource.
    length number
    • (Required) The number of snapshot policy records to return.
    offset number
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    policyLists GetSelfServiceSnapshotPolicyListPolicyList[]
    bpName string
    bpUuid string
    id str
    The provider-assigned unique ID for this managed resource.
    length int
    • (Required) The number of snapshot policy records to return.
    offset int
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    policy_lists Sequence[GetSelfServiceSnapshotPolicyListPolicyList]
    bp_name str
    bp_uuid str
    id String
    The provider-assigned unique ID for this managed resource.
    length Number
    • (Required) The number of snapshot policy records to return.
    offset Number
    • (Required) The index of the first snapshot policy to return Used for pagination. Default value: 0
    policyLists List<Property Map>
    bpName String
    bpUuid String

    Supporting Types

    GetSelfServiceSnapshotPolicyListPolicyList

    PolicyExpiryDays double
    • The number of days after which the snapshot policy expires.
    PolicyName string
    • The name of the snapshot policy.
    PolicyUuid string
    • The UUID of the snapshot policy.
    SnapshotConfigName string
    • The name of the associated snapshot configuration.
    SnapshotConfigUuid string
    • The UUID of the associated snapshot configuration.
    PolicyExpiryDays float64
    • The number of days after which the snapshot policy expires.
    PolicyName string
    • The name of the snapshot policy.
    PolicyUuid string
    • The UUID of the snapshot policy.
    SnapshotConfigName string
    • The name of the associated snapshot configuration.
    SnapshotConfigUuid string
    • The UUID of the associated snapshot configuration.
    policyExpiryDays Double
    • The number of days after which the snapshot policy expires.
    policyName String
    • The name of the snapshot policy.
    policyUuid String
    • The UUID of the snapshot policy.
    snapshotConfigName String
    • The name of the associated snapshot configuration.
    snapshotConfigUuid String
    • The UUID of the associated snapshot configuration.
    policyExpiryDays number
    • The number of days after which the snapshot policy expires.
    policyName string
    • The name of the snapshot policy.
    policyUuid string
    • The UUID of the snapshot policy.
    snapshotConfigName string
    • The name of the associated snapshot configuration.
    snapshotConfigUuid string
    • The UUID of the associated snapshot configuration.
    policy_expiry_days float
    • The number of days after which the snapshot policy expires.
    policy_name str
    • The name of the snapshot policy.
    policy_uuid str
    • The UUID of the snapshot policy.
    snapshot_config_name str
    • The name of the associated snapshot configuration.
    snapshot_config_uuid str
    • The UUID of the associated snapshot configuration.
    policyExpiryDays Number
    • The number of days after which the snapshot policy expires.
    policyName String
    • The name of the snapshot policy.
    policyUuid String
    • The UUID of the snapshot policy.
    snapshotConfigName String
    • The name of the associated snapshot configuration.
    snapshotConfigUuid String
    • The UUID of the associated snapshot configuration.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg