nutanix.getSelfServiceSnapshotPolicyList
Explore with Pulumi AI
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
- Bp
Name string - (Optional) The UUID of the blueprint for which snapshot policies should be listed.
- Bp
Uuid string - (Optional) The name of the blueprint for which snapshot policies should be listed.
Both (
bp_name
andbp_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 string - (Optional) The UUID of the blueprint for which snapshot policies should be listed.
- Bp
Uuid string - (Optional) The name of the blueprint for which snapshot policies should be listed.
Both (
bp_name
andbp_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
- bp
Name String - (Optional) The UUID of the blueprint for which snapshot policies should be listed.
- bp
Uuid String - (Optional) The name of the blueprint for which snapshot policies should be listed.
Both (
bp_name
andbp_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
- bp
Name string - (Optional) The UUID of the blueprint for which snapshot policies should be listed.
- bp
Uuid string - (Optional) The name of the blueprint for which snapshot policies should be listed.
Both (
bp_name
andbp_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
andbp_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
- bp
Name String - (Optional) The UUID of the blueprint for which snapshot policies should be listed.
- bp
Uuid String - (Optional) The name of the blueprint for which snapshot policies should be listed.
Both (
bp_name
andbp_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
- Policy
Lists List<PiersKarsenbarg. Nutanix. Outputs. Get Self Service Snapshot Policy List Policy List> - Bp
Name string - Bp
Uuid 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
- Policy
Lists []GetSelf Service Snapshot Policy List Policy List - Bp
Name string - Bp
Uuid 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
- policy
Lists List<GetSelf Service Snapshot Policy List Policy List> - bp
Name String - bp
Uuid 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
- policy
Lists GetSelf Service Snapshot Policy List Policy List[] - bp
Name string - bp
Uuid 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[GetSelf Service Snapshot Policy List Policy List] - 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
- policy
Lists List<Property Map> - bp
Name String - bp
Uuid String
Supporting Types
GetSelfServiceSnapshotPolicyListPolicyList
- Policy
Expiry doubleDays - The number of days after which the snapshot policy expires.
- Policy
Name string - The name of the snapshot policy.
- Policy
Uuid string - The UUID of the snapshot policy.
- Snapshot
Config stringName - The name of the associated snapshot configuration.
- Snapshot
Config stringUuid - The UUID of the associated snapshot configuration.
- Policy
Expiry float64Days - The number of days after which the snapshot policy expires.
- Policy
Name string - The name of the snapshot policy.
- Policy
Uuid string - The UUID of the snapshot policy.
- Snapshot
Config stringName - The name of the associated snapshot configuration.
- Snapshot
Config stringUuid - The UUID of the associated snapshot configuration.
- policy
Expiry DoubleDays - The number of days after which the snapshot policy expires.
- policy
Name String - The name of the snapshot policy.
- policy
Uuid String - The UUID of the snapshot policy.
- snapshot
Config StringName - The name of the associated snapshot configuration.
- snapshot
Config StringUuid - The UUID of the associated snapshot configuration.
- policy
Expiry numberDays - The number of days after which the snapshot policy expires.
- policy
Name string - The name of the snapshot policy.
- policy
Uuid string - The UUID of the snapshot policy.
- snapshot
Config stringName - The name of the associated snapshot configuration.
- snapshot
Config stringUuid - The UUID of the associated snapshot configuration.
- policy_
expiry_ floatdays - 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_ strname - The name of the associated snapshot configuration.
- snapshot_
config_ struuid - The UUID of the associated snapshot configuration.
- policy
Expiry NumberDays - The number of days after which the snapshot policy expires.
- policy
Name String - The name of the snapshot policy.
- policy
Uuid String - The UUID of the snapshot policy.
- snapshot
Config StringName - The name of the associated snapshot configuration.
- snapshot
Config StringUuid - 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.